mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 21:41:43 +03:00
[device] Make driver name a generic device property
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -58,6 +58,8 @@ struct device_description {
|
||||
struct device {
|
||||
/** Name */
|
||||
char name[16];
|
||||
/** Driver name */
|
||||
const char *driver_name;
|
||||
/** Device description */
|
||||
struct device_description desc;
|
||||
/** Devices on the same bus */
|
||||
|
||||
@@ -54,8 +54,6 @@ struct eisa_device {
|
||||
* this field.
|
||||
*/
|
||||
void *priv;
|
||||
/** Driver name */
|
||||
const char *driver_name;
|
||||
};
|
||||
|
||||
/** An EISA driver */
|
||||
|
||||
@@ -22,8 +22,6 @@ struct isa_device {
|
||||
* this field.
|
||||
*/
|
||||
void *priv;
|
||||
/** Driver name */
|
||||
const char *driver_name;
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -198,8 +198,6 @@ struct isapnp_device {
|
||||
* this field.
|
||||
*/
|
||||
void *priv;
|
||||
/** Driver name */
|
||||
const char *driver_name;
|
||||
};
|
||||
|
||||
/** An ISAPnP driver */
|
||||
|
||||
@@ -50,8 +50,6 @@ struct mca_device {
|
||||
* this field.
|
||||
*/
|
||||
void *priv;
|
||||
/** Driver name */
|
||||
const char *driver_name;
|
||||
};
|
||||
|
||||
#define MCA_ID(mca) ( ( (mca)->pos[1] << 8 ) + (mca)->pos[0] )
|
||||
|
||||
@@ -410,6 +410,7 @@ static inline void pci_set_driver ( struct pci_device *pci,
|
||||
struct pci_device_id *id ) {
|
||||
pci->driver = driver;
|
||||
pci->id = id;
|
||||
pci->dev.driver_name = id->name;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user