summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2005-04-15 17:16:03 +0200
committerMichael Brown2005-04-15 17:16:03 +0200
commit05986a848f4ea68a355768908364341089fcf140 (patch)
tree8ce48eab1c30d70915d1a4ea39faab6a74fe4ebe /src/include
parentAdded debugging messages for activation/deactivation of logical devices. (diff)
downloadipxe-05986a848f4ea68a355768908364341089fcf140.tar.gz
ipxe-05986a848f4ea68a355768908364341089fcf140.tar.xz
ipxe-05986a848f4ea68a355768908364341089fcf140.zip
Move the concept of logical devices inside the struct isapnp_device.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/isapnp.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/src/include/isapnp.h b/src/include/isapnp.h
index c9f35ad78..696639e24 100644
--- a/src/include/isapnp.h
+++ b/src/include/isapnp.h
@@ -126,14 +126,21 @@
* An ISAPnP serial identifier
*
*/
-union isapnp_identifier {
- char bytes[9];
- struct {
- uint16_t vendor_id;
- uint16_t prod_id;
- uint32_t serial;
- uint8_t checksum;
- } __attribute__ (( packed ));
+struct isapnp_identifier {
+ uint16_t vendor_id;
+ uint16_t prod_id;
+ uint32_t serial;
+ uint8_t checksum;
+} __attribute__ (( packed ));
+
+/*
+ * An ISAPnP logical device ID structure
+ *
+ */
+struct isapnp_logdevid {
+ uint16_t vendor_id;
+ uint16_t prod_id;
+ uint16_t flags;
} __attribute__ (( packed ));
/*
@@ -143,7 +150,8 @@ union isapnp_identifier {
struct isapnp_device {
char *magic; /* must be first */
const char *name;
- unsigned char csn;
+ uint8_t csn;
+ uint8_t logdev;
uint16_t vendor_id;
uint16_t prod_id;
uint16_t ioaddr;
@@ -189,8 +197,6 @@ extern int find_isapnp_device ( struct isapnp_device *isapnp,
extern int find_isapnp_boot_device ( struct dev *dev,
struct isapnp_driver *driver );
extern void activate_isapnp_device ( struct isapnp_device *isapnp,
- uint8_t logdev );
-extern void deactivate_isapnp_device ( struct isapnp_device *isapnp,
- uint8_t logdev );
+ int active );
#endif /* ISAPNP_H */