diff options
| author | Michael Brown | 2005-04-21 20:30:12 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-04-21 20:30:12 +0200 |
| commit | 8153a0fa7e94f8e7a4330fc3414cd6b5366a279b (patch) | |
| tree | 631f2f05c59d70c0ca8465ccdb3f3d3839d06001 /src/include/pci.h | |
| parent | Created a bus/device API that allows for the ROM prefix to specify an (diff) | |
| download | ipxe-8153a0fa7e94f8e7a4330fc3414cd6b5366a279b.tar.gz ipxe-8153a0fa7e94f8e7a4330fc3414cd6b5366a279b.tar.xz ipxe-8153a0fa7e94f8e7a4330fc3414cd6b5366a279b.zip | |
Made macros more like the previous driver API, to minimise required
changes.
Diffstat (limited to 'src/include/pci.h')
| -rw-r--r-- | src/include/pci.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/pci.h b/src/include/pci.h index f904504f0..49e36d506 100644 --- a/src/include/pci.h +++ b/src/include/pci.h @@ -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. |
