eadm_sch.h 522 B

12345678910111213141516171819202122
  1. #ifndef EADM_SCH_H
  2. #define EADM_SCH_H
  3. #include <linux/completion.h>
  4. #include <linux/device.h>
  5. #include <linux/timer.h>
  6. #include <linux/list.h>
  7. #include "orb.h"
  8. struct eadm_private {
  9. union orb orb;
  10. enum {EADM_IDLE, EADM_BUSY, EADM_NOT_OPER} state;
  11. struct completion *completion;
  12. struct subchannel *sch;
  13. struct timer_list timer;
  14. struct list_head head;
  15. } __aligned(8);
  16. #define get_eadm_private(n) ((struct eadm_private *)dev_get_drvdata(&n->dev))
  17. #define set_eadm_private(n, p) (dev_set_drvdata(&n->dev, p))
  18. #endif