diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-parisc/hardware.h | 13 | ||||
-rw-r--r-- | include/linux/mod_devicetable.h | 12 |
2 files changed, 13 insertions, 12 deletions
diff --git a/include/asm-parisc/hardware.h b/include/asm-parisc/hardware.h index 106d3f7cd882..ac5881492b10 100644 --- a/include/asm-parisc/hardware.h +++ b/include/asm-parisc/hardware.h | |||
@@ -1,20 +1,9 @@ | |||
1 | #ifndef _PARISC_HARDWARE_H | 1 | #ifndef _PARISC_HARDWARE_H |
2 | #define _PARISC_HARDWARE_H | 2 | #define _PARISC_HARDWARE_H |
3 | 3 | ||
4 | #include <linux/mod_devicetable.h> | ||
4 | #include <asm/pdc.h> | 5 | #include <asm/pdc.h> |
5 | 6 | ||
6 | struct parisc_device_id { | ||
7 | unsigned char hw_type; /* 5 bits used */ | ||
8 | unsigned char hversion_rev; /* 4 bits */ | ||
9 | unsigned short hversion; /* 12 bits */ | ||
10 | unsigned int sversion; /* 20 bits */ | ||
11 | }; | ||
12 | |||
13 | #define HWTYPE_ANY_ID 0xff | ||
14 | #define HVERSION_REV_ANY_ID 0xff | ||
15 | #define HVERSION_ANY_ID 0xffff | ||
16 | #define SVERSION_ANY_ID 0xffffffffU | ||
17 | |||
18 | struct hp_hardware { | 7 | struct hp_hardware { |
19 | unsigned short hw_type:5; /* HPHW_xxx */ | 8 | unsigned short hw_type:5; /* HPHW_xxx */ |
20 | unsigned short hversion; | 9 | unsigned short hversion; |
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index e0c393cc7240..1632025f3e60 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h | |||
@@ -320,4 +320,16 @@ struct eisa_device_id { | |||
320 | 320 | ||
321 | #define EISA_DEVICE_MODALIAS_FMT "eisa:s%s" | 321 | #define EISA_DEVICE_MODALIAS_FMT "eisa:s%s" |
322 | 322 | ||
323 | struct parisc_device_id { | ||
324 | __u8 hw_type; /* 5 bits used */ | ||
325 | __u8 hversion_rev; /* 4 bits */ | ||
326 | __u16 hversion; /* 12 bits */ | ||
327 | __u32 sversion; /* 20 bits */ | ||
328 | }; | ||
329 | |||
330 | #define HWTYPE_ANY_ID 0xff | ||
331 | #define HVERSION_REV_ANY_ID 0xff | ||
332 | #define HVERSION_ANY_ID 0xffff | ||
333 | #define SVERSION_ANY_ID 0xffffffff | ||
334 | |||
323 | #endif /* LINUX_MOD_DEVICETABLE_H */ | 335 | #endif /* LINUX_MOD_DEVICETABLE_H */ |