mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 10:32:52 +03:00
Add "name" field to struct device to allow human-readable hardware device
names. Add "dev" pointer in struct net_device to tie network interfaces back to a hardware device. Force natural alignment of data types in __table() macros. This seems to prevent gcc from taking the unilateral decision to occasionally increase their alignment (which screws up the table packing).
This commit is contained in:
@@ -673,7 +673,7 @@ static int velocity_probe(struct pci_device *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, pci->device);
|
||||
pci->driver_name, pci->vendor, pci->device);
|
||||
|
||||
/* point to private storage */
|
||||
vptr = &vptx;
|
||||
@@ -705,9 +705,9 @@ static int velocity_probe(struct pci_device *dev, struct pci_device *pci)
|
||||
for (i = 0; i < 6; i++)
|
||||
nic->node_addr[i] = readb(®s->PAR[i]);
|
||||
|
||||
DBG ( "%s: %s at ioaddr %#hX\n", pci->name, eth_ntoa ( nic->node_addr ), BASE );
|
||||
DBG ( "%s: %s at ioaddr %#hX\n", pci->driver_name, eth_ntoa ( nic->node_addr ), BASE );
|
||||
|
||||
velocity_get_options(&vptr->options, 0, pci->name);
|
||||
velocity_get_options(&vptr->options, 0, pci->driver_name);
|
||||
|
||||
/*
|
||||
* Mask out the options cannot be set to the chip
|
||||
|
||||
Reference in New Issue
Block a user