eadm.h (552c69b36ebd966186573b9c7a286b390935cce1) eadm.h (15f83bb0191261adece5a26bfdf93c6eccdbc0bb)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_S390_EADM_H
3#define _ASM_S390_EADM_H
4
5#include <linux/types.h>
6#include <linux/device.h>
7#include <linux/blk_types.h>
8

--- 91 unchanged lines hidden (view full) ---

100#define OP_STATE_TEMP_ERR 2
101#define OP_STATE_PERM_ERR 3
102
103enum scm_event {SCM_CHANGE, SCM_AVAIL};
104
105struct scm_driver {
106 struct device_driver drv;
107 int (*probe) (struct scm_device *scmdev);
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_S390_EADM_H
3#define _ASM_S390_EADM_H
4
5#include <linux/types.h>
6#include <linux/device.h>
7#include <linux/blk_types.h>
8

--- 91 unchanged lines hidden (view full) ---

100#define OP_STATE_TEMP_ERR 2
101#define OP_STATE_PERM_ERR 3
102
103enum scm_event {SCM_CHANGE, SCM_AVAIL};
104
105struct scm_driver {
106 struct device_driver drv;
107 int (*probe) (struct scm_device *scmdev);
108 int (*remove) (struct scm_device *scmdev);
108 void (*remove) (struct scm_device *scmdev);
109 void (*notify) (struct scm_device *scmdev, enum scm_event event);
110 void (*handler) (struct scm_device *scmdev, void *data,
111 blk_status_t error);
112};
113
114int scm_driver_register(struct scm_driver *scmdrv);
115void scm_driver_unregister(struct scm_driver *scmdrv);
116
117int eadm_start_aob(struct aob *aob);
118void scm_irq_handler(struct aob *aob, blk_status_t error);
119
120#endif /* _ASM_S390_EADM_H */
109 void (*notify) (struct scm_device *scmdev, enum scm_event event);
110 void (*handler) (struct scm_device *scmdev, void *data,
111 blk_status_t error);
112};
113
114int scm_driver_register(struct scm_driver *scmdrv);
115void scm_driver_unregister(struct scm_driver *scmdrv);
116
117int eadm_start_aob(struct aob *aob);
118void scm_irq_handler(struct aob *aob, blk_status_t error);
119
120#endif /* _ASM_S390_EADM_H */