busloc
Type | 32-bit unsigned integer |
---|---|
DHCP option number | not applicable |
ISC dhcpd syntax | not applicable |
iPXE> show net0/busloc net0/busloc:uint32 = 0x18
iPXE> show net0/busloc:busdevfn net0/busloc:busdevfn = 00:03.0
echo net0 has IDs ${pci/${net0/busloc}.0.2}:${pci/${net0/busloc}.2.2}
Describes the location on the hardware bus to which the network device is attached. For example, the location of a PCI device will be its bus:dev.fn address.
The bus location is formatted as an opaque 32-bit unsigned integer. If you know the bus type, then you can choose to interpret the bus location in a type-specific way. For example:
iseq ${net0/bustype} PCI && echo ${net0/busloc:busdevfn} || echo ${net0/busloc}
For PCI devices, the bus location can be used to extract information from PCI configuration space. For example, to dump the first 64 bytes of PCI configuration space for interface “net0”:
show pci/${net0/busloc}.0.64