1 #ifndef _ASM_S390_EADM_H
2 #define _ASM_S390_EADM_H
4 #include <linux/types.h>
5 #include <linux/device.h>
17 #define ARQB_CMD_MOVE 1
37 #define EQC_WR_PROHIBIT 22
58 #define MSB_OC_CLEAR 0
60 #define MSB_OC_WRITE 2
61 #define MSB_OC_RELEASE 3
63 #define MSB_FLAG_BNM 0x80
64 #define MSB_FLAG_IDA 0x40
69 #define AOB_NR_MSB 124
74 struct msb msb
[AOB_NR_MSB
];
75 } __packed
__aligned(PAGE_SIZE
);
77 struct aob_rq_header
{
78 struct scm_device
*scmdev
;
85 unsigned int nr_max_block
;
88 unsigned int persistence
:4;
89 unsigned int oper_state
:4;
90 unsigned int data_state
:4;
92 unsigned int release
:1;
93 unsigned int res_id
:8;
97 #define OP_STATE_GOOD 1
98 #define OP_STATE_TEMP_ERR 2
99 #define OP_STATE_PERM_ERR 3
101 enum scm_event
{SCM_CHANGE
, SCM_AVAIL
};
104 struct device_driver drv
;
105 int (*probe
) (struct scm_device
*scmdev
);
106 int (*remove
) (struct scm_device
*scmdev
);
107 void (*notify
) (struct scm_device
*scmdev
, enum scm_event event
);
108 void (*handler
) (struct scm_device
*scmdev
, void *data
, int error
);
111 int scm_driver_register(struct scm_driver
*scmdrv
);
112 void scm_driver_unregister(struct scm_driver
*scmdrv
);
114 int eadm_start_aob(struct aob
*aob
);
115 void scm_irq_handler(struct aob
*aob
, int error
);
117 #endif /* _ASM_S390_EADM_H */