mirror of https://github.com/ipxe/ipxe.git
Move the concept of logical devices inside the struct isapnp_device.
parent
d11ea1e44b
commit
05986a848f
|
@ -126,14 +126,21 @@
|
||||||
* An ISAPnP serial identifier
|
* An ISAPnP serial identifier
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
union isapnp_identifier {
|
struct isapnp_identifier {
|
||||||
char bytes[9];
|
uint16_t vendor_id;
|
||||||
struct {
|
uint16_t prod_id;
|
||||||
uint16_t vendor_id;
|
uint32_t serial;
|
||||||
uint16_t prod_id;
|
uint8_t checksum;
|
||||||
uint32_t serial;
|
} __attribute__ (( packed ));
|
||||||
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 ));
|
} __attribute__ (( packed ));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -143,7 +150,8 @@ union isapnp_identifier {
|
||||||
struct isapnp_device {
|
struct isapnp_device {
|
||||||
char *magic; /* must be first */
|
char *magic; /* must be first */
|
||||||
const char *name;
|
const char *name;
|
||||||
unsigned char csn;
|
uint8_t csn;
|
||||||
|
uint8_t logdev;
|
||||||
uint16_t vendor_id;
|
uint16_t vendor_id;
|
||||||
uint16_t prod_id;
|
uint16_t prod_id;
|
||||||
uint16_t ioaddr;
|
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,
|
extern int find_isapnp_boot_device ( struct dev *dev,
|
||||||
struct isapnp_driver *driver );
|
struct isapnp_driver *driver );
|
||||||
extern void activate_isapnp_device ( struct isapnp_device *isapnp,
|
extern void activate_isapnp_device ( struct isapnp_device *isapnp,
|
||||||
uint8_t logdev );
|
int active );
|
||||||
extern void deactivate_isapnp_device ( struct isapnp_device *isapnp,
|
|
||||||
uint8_t logdev );
|
|
||||||
|
|
||||||
#endif /* ISAPNP_H */
|
#endif /* ISAPNP_H */
|
||||||
|
|
Loading…
Reference in New Issue