Bus location setting

Name

  busloc

Details

Type 32-bit unsigned integer
DHCP option number not applicable
ISC dhcpd syntax not applicable

Examples

Display the bus location of interface "net0"

  iPXE> show net0/busloc
  net0/busloc:uint32 = 0x18

Display the bus location of interface "net0" as a PCI bus:dev.fn address

  iPXE> show net0/busloc:busdevfn
  net0/busloc:busdevfn = 00:03.0

Retrieve the PCI vendor and device IDs of interface "net0"

  echo net0 has IDs ${pci/${net0/busloc}.0.2}:${pci/${net0/busloc}.2.2}

Description

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.

See also

Notes

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
 
cfg/busloc.txt · Last modified: 2013/07/17 13:25 by mcb30
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
All uses of this content must include an attribution to the iPXE project and the URL http://ipxe.org
References to "iPXE" may not be altered or removed.