blob: 9664e4653f9861416a78f4193cbe57d8d3105864 [file] [log] [blame]
Sebastian Otteadb86a2012-08-28 16:48:16 +02001#ifndef EADM_SCH_H
2#define EADM_SCH_H
3
Sebastian Ott6aa26772013-09-25 12:29:05 +02004#include <linux/completion.h>
Sebastian Otteadb86a2012-08-28 16:48:16 +02005#include <linux/device.h>
6#include <linux/timer.h>
7#include <linux/list.h>
8#include "orb.h"
9
10struct eadm_private {
11 union orb orb;
12 enum {EADM_IDLE, EADM_BUSY, EADM_NOT_OPER} state;
Sebastian Ott6aa26772013-09-25 12:29:05 +020013 struct completion *completion;
14 struct subchannel *sch;
Sebastian Otteadb86a2012-08-28 16:48:16 +020015 struct timer_list timer;
16 struct list_head head;
Sebastian Otteadb86a2012-08-28 16:48:16 +020017} __aligned(8);
18
19#define get_eadm_private(n) ((struct eadm_private *)dev_get_drvdata(&n->dev))
20#define set_eadm_private(n, p) (dev_set_drvdata(&n->dev, p))
21
22#endif