1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef LINUX_DEVICE_ID_CCW_H 3 #define LINUX_DEVICE_ID_CCW_H 4 5 #ifdef __KERNEL__ 6 #include <linux/types.h> 7 typedef unsigned long kernel_ulong_t; 8 #endif 9 10 #define CCW_DEVICE_ID_MATCH_CU_TYPE 0x01 11 #define CCW_DEVICE_ID_MATCH_CU_MODEL 0x02 12 #define CCW_DEVICE_ID_MATCH_DEVICE_TYPE 0x04 13 #define CCW_DEVICE_ID_MATCH_DEVICE_MODEL 0x08 14 15 /* s390 CCW devices */ 16 struct ccw_device_id { 17 __u16 match_flags; /* which fields to match against */ 18 19 __u16 cu_type; /* control unit type */ 20 __u16 dev_type; /* device type */ 21 __u8 cu_model; /* control unit model */ 22 __u8 dev_model; /* device model */ 23 24 kernel_ulong_t driver_info; 25 }; 26 27 #endif /* ifndef LINUX_DEVICE_ID_CCW_H */ 28