Go to the documentation of this file.
8 #ifndef _S390_CCWDEV_H_
9 #define _S390_CCWDEV_H_
11 #include <linux/device.h>
24 #define CCW_DEVICE(cu, cum) \
25 .cu_type=(cu), .cu_model=(cum), \
26 .match_flags=(CCW_DEVICE_ID_MATCH_CU_TYPE \
27 | (cum ? CCW_DEVICE_ID_MATCH_CU_MODEL : 0))
29 #define CCW_DEVICE_DEVTYPE(cu, cum, dev, devm) \
30 .cu_type=(cu), .cu_model=(cum), .dev_type=(dev), .dev_model=(devm),\
31 .match_flags=CCW_DEVICE_ID_MATCH_CU_TYPE \
32 | ((cum) ? CCW_DEVICE_ID_MATCH_CU_MODEL : 0) \
33 | CCW_DEVICE_ID_MATCH_DEVICE_TYPE \
34 | ((devm) ? CCW_DEVICE_ID_MATCH_DEVICE_MODEL : 0)
99 #define PE_PATH_GONE 0x1
100 #define PE_PATH_AVAILABLE 0x2
102 #define PE_PATHGROUP_ESTABLISHED 0x4
170 #define CCWDEV_EARLY_NOTIFICATION 0x0001
172 #define CCWDEV_REPORT_ALL 0x0002
174 #define CCWDEV_DO_PATHGROUP 0x0004
176 #define CCWDEV_ALLOW_FORCE 0x0008
178 #define CCWDEV_DO_MULTIPATH 0x0010
181 unsigned long,
__u8,
unsigned long);
183 unsigned long,
__u8,
unsigned long,
int);
185 unsigned long,
__u8,
__u8,
unsigned long);
197 unsigned long,
u8,
u8);
199 unsigned long,
u8,
u8,
int);
203 unsigned long,
u8,
int);
216 #define get_ccwdev_lock(x) (x)->ccwlock
218 #define to_ccwdev(n) container_of(n, struct ccw_device, dev)
219 #define to_ccwdrv(n) container_of(n, struct ccw_driver, driver)