1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef LINUX_DEVICE_ID_PNP_H 3 #define LINUX_DEVICE_ID_PNP_H 4 5 #ifdef __KERNEL__ 6 #include <linux/types.h> 7 typedef unsigned long kernel_ulong_t; 8 #endif 9 10 #define PNP_ID_LEN 8 11 #define PNP_MAX_DEVICES 8 12 13 struct pnp_device_id { 14 __u8 id[PNP_ID_LEN]; 15 kernel_ulong_t driver_data; 16 }; 17 18 struct pnp_card_device_id { 19 __u8 id[PNP_ID_LEN]; 20 kernel_ulong_t driver_data; 21 struct { 22 __u8 id[PNP_ID_LEN]; 23 } devs[PNP_MAX_DEVICES]; 24 }; 25 26 #endif /* ifndef LINUX_DEVICE_ID_PNP_H */ 27