]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[bofm] Report {slot,port} to {bus:dev.fn,mport} mapping on newer BOFM builds
authorMichael Brown <mcb30@ipxe.org>
Wed, 4 May 2011 11:04:14 +0000 (12:04 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 4 May 2011 11:14:37 +0000 (12:14 +0100)
commitbfd8b3bff9b187850ca8b1e436b2eedbb45b5971
treedbf3ccbb607b71f94a861dc297a3bee5f80868eb
parent7fc1a0a1c5cdfa9966514cdb391ae6b346ec895a
[bofm] Report {slot,port} to {bus:dev.fn,mport} mapping on newer BOFM builds

Newer BOFM builds provide support for mapping multiple physical ports
to a single PCI bus:dev.fn via PCI VPD descriptions.  These builds
will also leave the {slot,port} field intact, and will populate the
mport field with a meaningful value.

Older BOFM builds will zero out the {slot,port} field.  A zero value
in this field may indicate either a genuine zero value (i.e. slot 0
first port) or an older build.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/bofm/bofm.c