mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 04:50:25 +03:00
Made macros more like the previous driver API, to minimise required
changes.
This commit is contained in:
@@ -307,12 +307,11 @@ struct pci_driver_info {
|
||||
* Define a PCI driver.
|
||||
*
|
||||
*/
|
||||
#define PCI_DRIVER( _info_name, _ids, _class ) \
|
||||
static struct pci_driver_info _info_name = { \
|
||||
#define PCI_DRIVER( _ids, _class ) { \
|
||||
.ids = _ids, \
|
||||
.id_count = sizeof ( _ids ) / sizeof ( _ids[0] ), \
|
||||
.class = _class, \
|
||||
};
|
||||
}
|
||||
|
||||
/*
|
||||
* These are the functions we expect pci_io.c to provide.
|
||||
|
||||
Reference in New Issue
Block a user