david/ipxe
david
/
ipxe
Archived
1
0
Fork 0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/drivers/net/efi
Michael Brown 9ccd8fe569 [efi] Enumerate PCI BARs in same order as SnpDxe
The UEFI specification has an implicit and demonstrably incorrect
requirement (in the Mem_IO() calling convention) that any UNDI network
device has at most one memory BAR and one I/O BAR.

Some UEFI platforms have been observed to report the existence of
non-existent additional I/O BARs, causing iPXE to select the wrong
BAR.  This problem does not affect the SnpDxe driver, since that
driver will always choose the lowest numbered existent BAR of each
type.

Adjust iPXE's behaviour to match that of SnpDxe, i.e. to always select
the lowest numbered BAR(s).

Debugged-by: Andreas Hammarskjöld <junior@2PintSoftware.com>
Debugged-by: Adklei <adklei@realtek.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2017-07-21 15:00:17 +01:00
..
nii.c [efi] Enumerate PCI BARs in same order as SnpDxe 2017-07-21 15:00:17 +01:00
nii.h [legal] Relicense files under GPL2_OR_LATER_OR_UBDL 2015-03-02 14:17:31 +00:00
snp.c [efi] Remove raw EFI_HANDLE values from debug messages 2015-08-27 15:40:44 +01:00
snpnet.c [efi] Guard against GetStatus() failing to return a NULL TX buffer 2016-05-11 23:02:10 +01:00
snpnet.h [efi] Rewrite SNP NIC driver 2014-07-08 14:01:55 +01:00
snponly.c [efi] Remove raw EFI_HANDLE values from debug messages 2015-08-27 15:40:44 +01:00