|
@@ -126,14 +126,21 @@
|
126
|
126
|
* An ISAPnP serial identifier
|
127
|
127
|
*
|
128
|
128
|
*/
|
129
|
|
-union isapnp_identifier {
|
130
|
|
- char bytes[9];
|
131
|
|
- struct {
|
132
|
|
- uint16_t vendor_id;
|
133
|
|
- uint16_t prod_id;
|
134
|
|
- uint32_t serial;
|
135
|
|
- uint8_t checksum;
|
136
|
|
- } __attribute__ (( packed ));
|
|
129
|
+struct isapnp_identifier {
|
|
130
|
+ uint16_t vendor_id;
|
|
131
|
+ uint16_t prod_id;
|
|
132
|
+ uint32_t serial;
|
|
133
|
+ uint8_t checksum;
|
|
134
|
+} __attribute__ (( packed ));
|
|
135
|
+
|
|
136
|
+/*
|
|
137
|
+ * An ISAPnP logical device ID structure
|
|
138
|
+ *
|
|
139
|
+ */
|
|
140
|
+struct isapnp_logdevid {
|
|
141
|
+ uint16_t vendor_id;
|
|
142
|
+ uint16_t prod_id;
|
|
143
|
+ uint16_t flags;
|
137
|
144
|
} __attribute__ (( packed ));
|
138
|
145
|
|
139
|
146
|
/*
|
|
@@ -143,7 +150,8 @@ union isapnp_identifier {
|
143
|
150
|
struct isapnp_device {
|
144
|
151
|
char *magic; /* must be first */
|
145
|
152
|
const char *name;
|
146
|
|
- unsigned char csn;
|
|
153
|
+ uint8_t csn;
|
|
154
|
+ uint8_t logdev;
|
147
|
155
|
uint16_t vendor_id;
|
148
|
156
|
uint16_t prod_id;
|
149
|
157
|
uint16_t ioaddr;
|
|
@@ -189,8 +197,6 @@ extern int find_isapnp_device ( struct isapnp_device *isapnp,
|
189
|
197
|
extern int find_isapnp_boot_device ( struct dev *dev,
|
190
|
198
|
struct isapnp_driver *driver );
|
191
|
199
|
extern void activate_isapnp_device ( struct isapnp_device *isapnp,
|
192
|
|
- uint8_t logdev );
|
193
|
|
-extern void deactivate_isapnp_device ( struct isapnp_device *isapnp,
|
194
|
|
- uint8_t logdev );
|
|
200
|
+ int active );
|
195
|
201
|
|
196
|
202
|
#endif /* ISAPNP_H */
|