blob: 390ab5a6b72fe77eeefb3485c62a3d0de0906359 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Sebastian Otteadb86a2012-08-28 16:48:16 +02002#ifndef EADM_SCH_H
3#define EADM_SCH_H
4
Sebastian Ott6aa26772013-09-25 12:29:05 +02005#include <linux/completion.h>
Sebastian Otteadb86a2012-08-28 16:48:16 +02006#include <linux/device.h>
7#include <linux/timer.h>
8#include <linux/list.h>
9#include "orb.h"
10
11struct eadm_private {
12 union orb orb;
13 enum {EADM_IDLE, EADM_BUSY, EADM_NOT_OPER} state;
Sebastian Ott6aa26772013-09-25 12:29:05 +020014 struct completion *completion;
15 struct subchannel *sch;
Sebastian Otteadb86a2012-08-28 16:48:16 +020016 struct timer_list timer;
17 struct list_head head;
Sebastian Otteadb86a2012-08-28 16:48:16 +020018} __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