Sebastian Ott | eadb86a | 2012-08-28 16:48:16 +0200 | [diff] [blame] | 1 | #ifndef EADM_SCH_H |
| 2 | #define EADM_SCH_H |
| 3 | |
Sebastian Ott | 6aa2677 | 2013-09-25 12:29:05 +0200 | [diff] [blame] | 4 | #include <linux/completion.h> |
Sebastian Ott | eadb86a | 2012-08-28 16:48:16 +0200 | [diff] [blame] | 5 | #include <linux/device.h> |
| 6 | #include <linux/timer.h> |
| 7 | #include <linux/list.h> |
| 8 | #include "orb.h" |
| 9 | |
| 10 | struct eadm_private { |
| 11 | union orb orb; |
| 12 | enum {EADM_IDLE, EADM_BUSY, EADM_NOT_OPER} state; |
Sebastian Ott | 6aa2677 | 2013-09-25 12:29:05 +0200 | [diff] [blame] | 13 | struct completion *completion; |
| 14 | struct subchannel *sch; |
Sebastian Ott | eadb86a | 2012-08-28 16:48:16 +0200 | [diff] [blame] | 15 | struct timer_list timer; |
| 16 | struct list_head head; |
Sebastian Ott | eadb86a | 2012-08-28 16:48:16 +0200 | [diff] [blame] | 17 | } __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 |