diff options
| author | Michael Brown | 2005-04-14 12:10:54 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-04-14 12:10:54 +0200 |
| commit | 75d864432cc41c45d46df9ea7d3afd7cccbc0148 (patch) | |
| tree | 8b98bce9c01b2f99f16d5da9f93a4e147dfe1865 /src/include/pci.h | |
| parent | Stripped references to variables in C code. (diff) | |
| download | ipxe-75d864432cc41c45d46df9ea7d3afd7cccbc0148.tar.gz ipxe-75d864432cc41c45d46df9ea7d3afd7cccbc0148.tar.xz ipxe-75d864432cc41c45d46df9ea7d3afd7cccbc0148.zip | |
Use the magic of common symbols to allow struct dev to effectively grow at
link time to accommodate whatever bus objects are included.
Diffstat (limited to 'src/include/pci.h')
| -rw-r--r-- | src/include/pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/pci.h b/src/include/pci.h index 36edc0f58..988259a32 100644 --- a/src/include/pci.h +++ b/src/include/pci.h @@ -232,13 +232,13 @@ #define PCI_MSI_ADDRESS_HI 8 /* Upper 32 bits (if PCI_MSI_FLAGS_64BIT set) */ #define PCI_MSI_DATA_32 8 /* 16 bits of data for 32-bit devices */ #define PCI_MSI_DATA_64 12 /* 16 bits of data for 64-bit devices */ - /* * A physical PCI device * */ struct dev; struct pci_device { + char * magic; /* must be first */ struct dev * dev; uint32_t membase; /* BAR 1 */ uint32_t ioaddr; /* first IO BAR */ |
