xref: /linux/include/linux/device-id/zorro.h (revision 889600e21e3be388a6817c2a0dac0411df860751)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef LINUX_DEVICE_ID_ZORRO_H
3 #define LINUX_DEVICE_ID_ZORRO_H
4 
5 #ifdef __KERNEL__
6 #include <linux/types.h>
7 typedef unsigned long kernel_ulong_t;
8 #endif
9 
10 #define ZORRO_WILDCARD			(0xffffffff)	/* not official */
11 
12 #define ZORRO_DEVICE_MODALIAS_FMT	"zorro:i%08X"
13 
14 struct zorro_device_id {
15 	__u32 id;			/* Device ID or ZORRO_WILDCARD */
16 	union {
17 		/* Data private to the driver */
18 		kernel_ulong_t driver_data;
19 		const void *driver_data_ptr;
20 	};
21 };
22 
23 #endif /* ifndef LINUX_DEVICE_ID_ZORRO_H */
24