Browse Source

[sis190] Hide the ISA bridge's PCI IDs from parserom.pl

Signed-off-by: Michael Brown <mcb30@etherboot.org>
Modified-by: Michael Brown <mcb30@etherboot.org>
tags/v1.0.0-rc1
Thomas Miletich 15 years ago
parent
commit
8912e24fdc
2 changed files with 9 additions and 4 deletions
  1. 3
    3
      src/drivers/net/sis190.c
  2. 6
    1
      src/include/gpxe/pci.h

+ 3
- 3
src/drivers/net/sis190.c View File

42
  */
42
  */
43
 
43
 
44
 static struct pci_device_id sis190_isa_bridge_tbl[] = {
44
 static struct pci_device_id sis190_isa_bridge_tbl[] = {
45
-	PCI_ROM (0x1039, 0x0965, "", "", 0),
46
-	PCI_ROM (0x1039, 0x0966, "", "", 0),
47
-	PCI_ROM (0x1039, 0x0968, "", "", 0),
45
+	PCI_ID (0x1039, 0x0965, "", "", 0),
46
+	PCI_ID (0x1039, 0x0966, "", "", 0),
47
+	PCI_ID (0x1039, 0x0968, "", "", 0),
48
 };
48
 };
49
 
49
 
50
 static int sis190_isa_bridge_probe(struct pci_device *pdev __unused,
50
 static int sis190_isa_bridge_probe(struct pci_device *pdev __unused,

+ 6
- 1
src/include/gpxe/pci.h View File

359
  * PCI_ROM is used to build up entries in a struct pci_id array.  It
359
  * PCI_ROM is used to build up entries in a struct pci_id array.  It
360
  * is also parsed by parserom.pl to generate Makefile rules and files
360
  * is also parsed by parserom.pl to generate Makefile rules and files
361
  * for rom-o-matic.
361
  * for rom-o-matic.
362
+ *
363
+ * PCI_ID can be used to generate entries without creating a
364
+ * corresponding ROM in the build process.
362
  */
365
  */
363
-#define PCI_ROM( _vendor, _device, _name, _description, _data ) {	\
366
+#define PCI_ID( _vendor, _device, _name, _description, _data ) {	\
364
 	.vendor = _vendor,						\
367
 	.vendor = _vendor,						\
365
 	.device = _device,						\
368
 	.device = _device,						\
366
 	.name = _name,							\
369
 	.name = _name,							\
367
 	.driver_data = _data						\
370
 	.driver_data = _data						\
368
 }
371
 }
372
+#define PCI_ROM( _vendor, _device, _name, _description, _data ) \
373
+	PCI_ID( _vendor, _device, _name, _description, _data )
369
 
374
 
370
 extern void adjust_pci_device ( struct pci_device *pci );
375
 extern void adjust_pci_device ( struct pci_device *pci );
371
 extern unsigned long pci_bar_start ( struct pci_device *pci,
376
 extern unsigned long pci_bar_start ( struct pci_device *pci,

Loading…
Cancel
Save