[efi] Allow for non-PCI snpnet devices
authorMichael Brown <mcb30@ipxe.org>
Thu, 4 Sep 2014 15:18:08 +0000 (16:18 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 4 Sep 2014 15:18:08 +0000 (16:18 +0100)
commit0ce3c9709578fa005ba931fc4198cb3b4b0b9d15
treed0d2d83c18f922dc31e4891d6068eb02377281bd
parent3bb910caa8cfb07c8d2858e70065dc2904ecaf99
[efi] Allow for non-PCI snpnet devices

We currently require information about the underlying PCI device to
populate the snpnet device's name and description.  If the underlying
device is not a PCI device, this will fail and prevent the device from
being registered.

Fix by falling back to populating the device description with
information based on the EFI handle, if no PCI device information is
available.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/efi/snpnet.c