mirror of
https://github.com/ipxe/ipxe
synced 2026-01-15 11:49:45 +03:00
[pci] Use single "busdevfn" field in struct pci_device
Merge the "bus" and "devfn" fields into a single "busdevfn" field, to match the format used by the majority of external code. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -2909,7 +2909,7 @@ static int tg3_get_device_address(struct tg3 *tp)
|
||||
struct nic *nic = tp->nic;
|
||||
uint32_t hi, lo, mac_offset;
|
||||
|
||||
if (PCI_FUNC(tp->pdev->devfn) == 0)
|
||||
if (PCI_FUNC(tp->pdev->busdevfn) == 0)
|
||||
mac_offset = 0x7c;
|
||||
else
|
||||
mac_offset = 0xcc;
|
||||
|
||||
Reference in New Issue
Block a user