Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Sebastian Ott | eadb86a | 2012-08-28 16:48:16 +0200 | [diff] [blame] | 2 | #ifndef EADM_SCH_H |
| 3 | #define EADM_SCH_H |
| 4 | |
Sebastian Ott | 6aa2677 | 2013-09-25 12:29:05 +0200 | [diff] [blame] | 5 | #include <linux/completion.h> |
Sebastian Ott | eadb86a | 2012-08-28 16:48:16 +0200 | [diff] [blame] | 6 | #include <linux/device.h> |
| 7 | #include <linux/timer.h> |
| 8 | #include <linux/list.h> |
| 9 | #include "orb.h" |
| 10 | |
| 11 | struct eadm_private { |
| 12 | union orb orb; |
| 13 | enum {EADM_IDLE, EADM_BUSY, EADM_NOT_OPER} state; |
Sebastian Ott | 6aa2677 | 2013-09-25 12:29:05 +0200 | [diff] [blame] | 14 | struct completion *completion; |
| 15 | struct subchannel *sch; |
Sebastian Ott | eadb86a | 2012-08-28 16:48:16 +0200 | [diff] [blame] | 16 | struct timer_list timer; |
| 17 | struct list_head head; |
Sebastian Ott | eadb86a | 2012-08-28 16:48:16 +0200 | [diff] [blame] | 18 | } __aligned(8); |
| 19 | |
| 20 | #define get_eadm_private(n) ((struct eadm_private *)dev_get_drvdata(&n->dev)) |
| 21 | #define set_eadm_private(n, p) (dev_set_drvdata(&n->dev, p)) |
| 22 | |
| 23 | #endif |