From d7736fbb7bbf2116e95742affcaf45c2a7ee5476 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 17 Feb 2011 00:27:51 +0000 Subject: [efi] Allow EFI to control PCI bus enumeration EFI performs its own PCI bus enumeration. Respect this, and start controlling devices only when instructed to do so by EFI. As a side benefit, we should now correctly create multiple SNP instances for multi-port devices. This should also fix the problem of failing to enumerate devices because the PCI bridges have not yet been enabled at the time the iPXE driver is loaded. Signed-off-by: Michael Brown --- src/arch/x86/prefix/efidrvprefix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/arch') diff --git a/src/arch/x86/prefix/efidrvprefix.c b/src/arch/x86/prefix/efidrvprefix.c index 2215104b0..a96c5c439 100644 --- a/src/arch/x86/prefix/efidrvprefix.c +++ b/src/arch/x86/prefix/efidrvprefix.c @@ -41,6 +41,7 @@ EFI_STATUS EFIAPI _efidrv_start ( EFI_HANDLE image_handle, initialise(); startup(); - /* Install SNP driver and return */ - return RC_TO_EFIRC ( efi_snp_install () ); + return 0; } + +REQUIRE_OBJECT ( efi_snp ); -- cgit v1.2.3-55-g7522