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 14 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,9 +42,9 @@ static struct pci_device_id sis190_pci_tbl[] = {
42 42
  */
43 43
 
44 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 50
 static int sis190_isa_bridge_probe(struct pci_device *pdev __unused,

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

@@ -359,13 +359,18 @@ struct pci_driver {
359 359
  * PCI_ROM is used to build up entries in a struct pci_id array.  It
360 360
  * is also parsed by parserom.pl to generate Makefile rules and files
361 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 367
 	.vendor = _vendor,						\
365 368
 	.device = _device,						\
366 369
 	.name = _name,							\
367 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 375
 extern void adjust_pci_device ( struct pci_device *pci );
371 376
 extern unsigned long pci_bar_start ( struct pci_device *pci,

Loading…
Cancel
Save