mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 17:42:47 +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:
@@ -457,7 +457,7 @@ static int dmfe_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||
|
||||
BASE = pci->ioaddr;
|
||||
printf("dmfe.c: Found %s Vendor=0x%hX Device=0x%hX\n",
|
||||
pci->name, pci->vendor, pci->device);
|
||||
pci->driver_name, pci->vendor, pci->device);
|
||||
|
||||
/* Read Chip revision */
|
||||
pci_read_config_dword(pci, PCI_REVISION_ID, &dev_rev);
|
||||
@@ -488,7 +488,7 @@ static int dmfe_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||
nic->node_addr[i] = db->srom[20 + i];
|
||||
|
||||
/* Print out some hardware info */
|
||||
DBG ( "%s: %s at ioaddr %4.4lx\n", pci->name, eth_ntoa ( nic->node_addr ), BASE );
|
||||
DBG ( "%s: %s at ioaddr %4.4lx\n", pci->driver_name, eth_ntoa ( nic->node_addr ), BASE );
|
||||
|
||||
/* Set the card as PCI Bus Master */
|
||||
adjust_pci_device(pci);
|
||||
|
||||
Reference in New Issue
Block a user