[device] Make driver name a generic device property

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2011-04-07 23:09:19 +01:00
parent 6e6ecacebf
commit fc7e2be617
12 changed files with 14 additions and 16 deletions
+2
View File
@@ -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 */
-2
View File
@@ -54,8 +54,6 @@ struct eisa_device {
* this field.
*/
void *priv;
/** Driver name */
const char *driver_name;
};
/** An EISA driver */
-2
View File
@@ -22,8 +22,6 @@ struct isa_device {
* this field.
*/
void *priv;
/** Driver name */
const char *driver_name;
};
/*
-2
View File
@@ -198,8 +198,6 @@ struct isapnp_device {
* this field.
*/
void *priv;
/** Driver name */
const char *driver_name;
};
/** An ISAPnP driver */
-2
View File
@@ -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] )
+1
View File
@@ -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;
}
/**