Pārlūkot izejas kodu

[undi] Ensure that native drivers are tried before the UNDI PCI driver

Suggested-by: Alessandro Salvatori <sandr8@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 gadus atpakaļ
vecāks
revīzija
a05b89ef45
2 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 1
    1
      src/arch/i386/drivers/net/undi.c
  2. 3
    0
      src/include/ipxe/pci.h

+ 1
- 1
src/arch/i386/drivers/net/undi.c Parādīt failu

@@ -140,7 +140,7 @@ static struct pci_device_id undipci_nics[] = {
140 140
 PCI_ROM ( 0xffff, 0xffff, "undipci", "UNDI (PCI)", 0 ),
141 141
 };
142 142
 
143
-struct pci_driver undipci_driver __pci_driver = {
143
+struct pci_driver undipci_driver __pci_driver_fallback = {
144 144
 	.ids = undipci_nics,
145 145
 	.id_count = ( sizeof ( undipci_nics ) / sizeof ( undipci_nics[0] ) ),
146 146
 	.probe = undipci_probe,

+ 3
- 0
src/include/ipxe/pci.h Parādīt failu

@@ -343,6 +343,9 @@ struct pci_driver {
343 343
 /** Declare a PCI driver */
344 344
 #define __pci_driver __table_entry ( PCI_DRIVERS, 01 )
345 345
 
346
+/** Declare a fallback PCI driver */
347
+#define __pci_driver_fallback __table_entry ( PCI_DRIVERS, 02 )
348
+
346 349
 #define PCI_BUS( busdevfn )		( ( (busdevfn) >> 8 ) & 0xff )
347 350
 #define PCI_SLOT( busdevfn )		( ( (busdevfn) >> 3 ) & 0x1f )
348 351
 #define PCI_FUNC( busdevfn )		( ( (busdevfn) >> 0 ) & 0x07 )

Notiek ielāde…
Atcelt
Saglabāt