mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 05:21:49 +03:00
Restructured PCI subsystem to fit the new device model.
Generic PCI code now handles 64-bit BARs correctly when setting "membase"; drivers should need to call pci_bar_start() only if they want to use BARs other than the first memory or I/O BAR. Split rarely-used PCI functions out into pciextra.c. Core PCI code is now 662 bytes (down from 1308 bytes in Etherboot 5.4). 284 bytes of this saving comes from the pci/pciextra split. Cosmetic changes to lots of drivers (e.g. vendor_id->vendor in order to match the names used in Linux).
This commit is contained in:
@@ -676,7 +676,7 @@ static int velocity_probe(struct dev *dev, struct pci_device *pci)
|
||||
struct mac_regs *regs;
|
||||
|
||||
printf("via-velocity.c: Found %s Vendor=0x%hX Device=0x%hX\n",
|
||||
pci->name, pci->vendor_id, pci->device_id);
|
||||
pci->name, pci->vendor, pci->device);
|
||||
|
||||
/* point to private storage */
|
||||
vptr = &vptx;
|
||||
@@ -1930,7 +1930,7 @@ int pci_set_power_state(struct pci_device *dev, int state)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct pci_id velocity_nics[] = {
|
||||
static struct pci_device_id velocity_nics[] = {
|
||||
PCI_ROM(0x1106, 0x3119, "via-velocity", "VIA Networking Velocity Family Gigabit Ethernet Adapter"),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user