summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorThomas Miletich2009-03-26 11:19:03 +0100
committerMichael Brown2009-03-26 11:22:15 +0100
commit3da6f1c7bdc227ed0b5ab45562278fa4a18c15d3 (patch)
treed82a21d15227a2fa7ff990363e50fdc38a132c71 /src/include
parent[time] Add the sleep command (diff)
downloadipxe-3da6f1c7bdc227ed0b5ab45562278fa4a18c15d3.tar.gz
ipxe-3da6f1c7bdc227ed0b5ab45562278fa4a18c15d3.tar.xz
ipxe-3da6f1c7bdc227ed0b5ab45562278fa4a18c15d3.zip
[pci] Add driver_data field to struct pci_device_id
Modified-by: Michael Brown <mcb30@etherboot.org> Signed-off-by: Michael Brown <mcb30@etherboot.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/pci.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/include/gpxe/pci.h b/src/include/gpxe/pci.h
index b13c01ac..11bb5a8d 100644
--- a/src/include/gpxe/pci.h
+++ b/src/include/gpxe/pci.h
@@ -241,6 +241,8 @@ struct pci_device_id {
uint16_t vendor;
/** PCI device ID */
uint16_t device;
+ /** Arbitrary driver data */
+ unsigned long driver_data;
};
/** Match-anything ID */
@@ -328,10 +330,11 @@ struct pci_driver {
* is also parsed by parserom.pl to generate Makefile rules and files
* for rom-o-matic.
*/
-#define PCI_ROM( _vendor, _device, _name, _description ) { \
- .vendor = _vendor, \
- .device = _device, \
- .name = _name, \
+#define PCI_ROM( _vendor, _device, _name, _description, _data ) { \
+ .vendor = _vendor, \
+ .device = _device, \
+ .name = _name, \
+ .driver_data = _data \
}
extern void adjust_pci_device ( struct pci_device *pci );