2008-10-12 02:55:55 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2008 Michael Brown <mbrown@fensystems.co.uk>.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-07-20 20:55:45 +02:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
* 02110-1301, USA.
|
2008-10-12 02:55:55 +02:00
|
|
|
*/
|
|
|
|
|
2009-05-01 16:41:06 +02:00
|
|
|
FILE_LICENCE ( GPL2_OR_LATER );
|
|
|
|
|
2011-02-17 01:27:51 +01:00
|
|
|
#include <stdlib.h>
|
2008-10-12 02:55:55 +02:00
|
|
|
#include <errno.h>
|
2010-04-19 21:16:01 +02:00
|
|
|
#include <ipxe/pci.h>
|
|
|
|
#include <ipxe/efi/efi.h>
|
2011-02-17 01:27:51 +01:00
|
|
|
#include <ipxe/efi/efi_pci.h>
|
|
|
|
#include <ipxe/efi/efi_driver.h>
|
|
|
|
#include <ipxe/efi/Protocol/PciIo.h>
|
2010-04-19 21:16:01 +02:00
|
|
|
#include <ipxe/efi/Protocol/PciRootBridgeIo.h>
|
2008-10-12 02:55:55 +02:00
|
|
|
|
|
|
|
/** @file
|
|
|
|
*
|
2010-04-19 21:16:01 +02:00
|
|
|
* iPXE PCI I/O API for EFI
|
2008-10-12 02:55:55 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2014-06-25 15:47:35 +02:00
|
|
|
/* Disambiguate the various error causes */
|
|
|
|
#define EINFO_EEFI_PCI \
|
|
|
|
__einfo_uniqify ( EINFO_EPLATFORM, 0x01, \
|
2014-07-01 18:58:09 +02:00
|
|
|
"Could not open PCI I/O protocol" )
|
2014-06-25 15:47:35 +02:00
|
|
|
#define EINFO_EEFI_PCI_NOT_PCI \
|
|
|
|
__einfo_platformify ( EINFO_EEFI_PCI, EFI_UNSUPPORTED, \
|
|
|
|
"Not a PCI device" )
|
|
|
|
#define EEFI_PCI_NOT_PCI __einfo_error ( EINFO_EEFI_PCI_NOT_PCI )
|
|
|
|
#define EINFO_EEFI_PCI_IN_USE \
|
|
|
|
__einfo_platformify ( EINFO_EEFI_PCI, EFI_ACCESS_DENIED, \
|
|
|
|
"PCI device already has a driver" )
|
|
|
|
#define EEFI_PCI_IN_USE __einfo_error ( EINFO_EEFI_PCI_IN_USE )
|
|
|
|
#define EEFI_PCI( efirc ) \
|
|
|
|
EPLATFORM ( EINFO_EEFI_PCI, efirc, \
|
|
|
|
EEFI_PCI_NOT_PCI, EEFI_PCI_IN_USE )
|
|
|
|
|
2011-02-17 01:27:51 +01:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* iPXE PCI API
|
|
|
|
*
|
|
|
|
******************************************************************************
|
|
|
|
*/
|
|
|
|
|
2008-10-12 02:55:55 +02:00
|
|
|
/** PCI root bridge I/O protocol */
|
|
|
|
static EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *efipci;
|
|
|
|
EFI_REQUIRE_PROTOCOL ( EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL, &efipci );
|
|
|
|
|
|
|
|
static unsigned long efipci_address ( struct pci_device *pci,
|
|
|
|
unsigned long location ) {
|
2011-02-09 01:32:58 +01:00
|
|
|
return EFI_PCI_ADDRESS ( PCI_BUS ( pci->busdevfn ),
|
|
|
|
PCI_SLOT ( pci->busdevfn ),
|
|
|
|
PCI_FUNC ( pci->busdevfn ),
|
2008-10-12 02:55:55 +02:00
|
|
|
EFIPCI_OFFSET ( location ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
int efipci_read ( struct pci_device *pci, unsigned long location,
|
|
|
|
void *value ) {
|
|
|
|
EFI_STATUS efirc;
|
2013-04-18 22:29:53 +02:00
|
|
|
int rc;
|
2008-10-12 02:55:55 +02:00
|
|
|
|
|
|
|
if ( ( efirc = efipci->Pci.Read ( efipci, EFIPCI_WIDTH ( location ),
|
|
|
|
efipci_address ( pci, location ), 1,
|
|
|
|
value ) ) != 0 ) {
|
2013-04-18 22:29:53 +02:00
|
|
|
rc = -EEFI ( efirc );
|
2011-02-09 01:32:58 +01:00
|
|
|
DBG ( "EFIPCI config read from " PCI_FMT " offset %02lx "
|
|
|
|
"failed: %s\n", PCI_ARGS ( pci ),
|
2013-04-18 22:29:53 +02:00
|
|
|
EFIPCI_OFFSET ( location ), strerror ( rc ) );
|
2008-10-12 02:55:55 +02:00
|
|
|
return -EIO;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int efipci_write ( struct pci_device *pci, unsigned long location,
|
|
|
|
unsigned long value ) {
|
|
|
|
EFI_STATUS efirc;
|
2013-04-18 22:29:53 +02:00
|
|
|
int rc;
|
2008-10-12 02:55:55 +02:00
|
|
|
|
|
|
|
if ( ( efirc = efipci->Pci.Write ( efipci, EFIPCI_WIDTH ( location ),
|
|
|
|
efipci_address ( pci, location ), 1,
|
|
|
|
&value ) ) != 0 ) {
|
2013-04-18 22:29:53 +02:00
|
|
|
rc = -EEFI ( efirc );
|
2011-02-09 01:32:58 +01:00
|
|
|
DBG ( "EFIPCI config write to " PCI_FMT " offset %02lx "
|
|
|
|
"failed: %s\n", PCI_ARGS ( pci ),
|
2013-04-18 22:29:53 +02:00
|
|
|
EFIPCI_OFFSET ( location ), strerror ( rc ) );
|
2008-10-12 02:55:55 +02:00
|
|
|
return -EIO;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2011-02-12 03:08:28 +01:00
|
|
|
PROVIDE_PCIAPI_INLINE ( efi, pci_num_bus );
|
2008-10-12 02:55:55 +02:00
|
|
|
PROVIDE_PCIAPI_INLINE ( efi, pci_read_config_byte );
|
|
|
|
PROVIDE_PCIAPI_INLINE ( efi, pci_read_config_word );
|
|
|
|
PROVIDE_PCIAPI_INLINE ( efi, pci_read_config_dword );
|
|
|
|
PROVIDE_PCIAPI_INLINE ( efi, pci_write_config_byte );
|
|
|
|
PROVIDE_PCIAPI_INLINE ( efi, pci_write_config_word );
|
|
|
|
PROVIDE_PCIAPI_INLINE ( efi, pci_write_config_dword );
|
2011-02-17 01:27:51 +01:00
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* EFI PCI device instantiation
|
|
|
|
*
|
|
|
|
******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** EFI PCI I/O protocol GUID */
|
|
|
|
static EFI_GUID efi_pci_io_protocol_guid
|
|
|
|
= EFI_PCI_IO_PROTOCOL_GUID;
|
|
|
|
|
|
|
|
/**
|
2014-07-01 18:58:09 +02:00
|
|
|
* Open EFI PCI device
|
2011-02-17 01:27:51 +01:00
|
|
|
*
|
2014-07-01 18:58:09 +02:00
|
|
|
* @v device EFI device handle
|
2014-06-25 15:47:35 +02:00
|
|
|
* @v attributes Protocol opening attributes
|
2014-07-01 18:58:09 +02:00
|
|
|
* @v pci PCI device to fill in
|
2014-06-25 15:47:35 +02:00
|
|
|
* @ret rc Return status code
|
2011-02-17 01:27:51 +01:00
|
|
|
*/
|
2014-07-01 18:58:09 +02:00
|
|
|
int efipci_open ( EFI_HANDLE device, UINT32 attributes,
|
|
|
|
struct pci_device *pci ) {
|
2011-02-17 01:27:51 +01:00
|
|
|
EFI_BOOT_SERVICES *bs = efi_systab->BootServices;
|
|
|
|
union {
|
|
|
|
EFI_PCI_IO_PROTOCOL *pci_io;
|
|
|
|
void *interface;
|
|
|
|
} pci_io;
|
|
|
|
UINTN pci_segment, pci_bus, pci_dev, pci_fn;
|
|
|
|
EFI_STATUS efirc;
|
|
|
|
int rc;
|
|
|
|
|
|
|
|
/* See if device is a PCI device */
|
2014-07-01 18:58:09 +02:00
|
|
|
if ( ( efirc = bs->OpenProtocol ( device, &efi_pci_io_protocol_guid,
|
|
|
|
&pci_io.interface, efi_image_handle,
|
2014-06-25 15:47:35 +02:00
|
|
|
device, attributes ) ) != 0 ) {
|
|
|
|
rc = -EEFI_PCI ( efirc );
|
|
|
|
DBGCP ( device, "EFIPCI %p %s cannot open PCI protocols: %s\n",
|
2014-07-31 11:44:25 +02:00
|
|
|
device, efi_handle_name ( device ), strerror ( rc ) );
|
2011-02-17 01:27:51 +01:00
|
|
|
goto err_open_protocol;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Get PCI bus:dev.fn address */
|
2014-07-01 18:58:09 +02:00
|
|
|
if ( ( efirc = pci_io.pci_io->GetLocation ( pci_io.pci_io, &pci_segment,
|
2011-02-17 01:27:51 +01:00
|
|
|
&pci_bus, &pci_dev,
|
|
|
|
&pci_fn ) ) != 0 ) {
|
2013-04-18 22:29:53 +02:00
|
|
|
rc = -EEFI ( efirc );
|
2014-07-01 18:58:09 +02:00
|
|
|
DBGC ( device, "EFIPCI %p %s could not get PCI location: %s\n",
|
2014-07-31 11:44:25 +02:00
|
|
|
device, efi_handle_name ( device ), strerror ( rc ) );
|
2011-02-17 01:27:51 +01:00
|
|
|
goto err_get_location;
|
|
|
|
}
|
2014-07-31 11:44:25 +02:00
|
|
|
DBGC2 ( device, "EFIPCI %p %s is PCI %04lx:%02lx:%02lx.%lx\n", device,
|
|
|
|
efi_handle_name ( device ), ( ( unsigned long ) pci_segment ),
|
|
|
|
( ( unsigned long ) pci_bus ), ( ( unsigned long ) pci_dev ),
|
|
|
|
( ( unsigned long ) pci_fn ) );
|
2011-02-17 01:27:51 +01:00
|
|
|
|
2014-07-01 18:58:09 +02:00
|
|
|
/* Try to enable I/O cycles, memory cycles, and bus mastering.
|
|
|
|
* Some platforms will 'helpfully' report errors if these bits
|
|
|
|
* can't be enabled (for example, if the card doesn't actually
|
|
|
|
* support I/O cycles). Work around any such platforms by
|
|
|
|
* enabling bits individually and simply ignoring any errors.
|
|
|
|
*/
|
|
|
|
pci_io.pci_io->Attributes ( pci_io.pci_io,
|
|
|
|
EfiPciIoAttributeOperationEnable,
|
|
|
|
EFI_PCI_IO_ATTRIBUTE_IO, NULL );
|
|
|
|
pci_io.pci_io->Attributes ( pci_io.pci_io,
|
|
|
|
EfiPciIoAttributeOperationEnable,
|
|
|
|
EFI_PCI_IO_ATTRIBUTE_MEMORY, NULL );
|
|
|
|
pci_io.pci_io->Attributes ( pci_io.pci_io,
|
|
|
|
EfiPciIoAttributeOperationEnable,
|
|
|
|
EFI_PCI_IO_ATTRIBUTE_BUS_MASTER, NULL );
|
|
|
|
|
2011-02-17 01:27:51 +01:00
|
|
|
/* Populate PCI device */
|
2014-07-01 18:58:09 +02:00
|
|
|
pci_init ( pci, PCI_BUSDEVFN ( pci_bus, pci_dev, pci_fn ) );
|
|
|
|
if ( ( rc = pci_read_config ( pci ) ) != 0 ) {
|
2014-06-25 15:47:35 +02:00
|
|
|
DBGC ( device, "EFIPCI %p %s cannot read PCI configuration: "
|
2014-07-31 11:44:25 +02:00
|
|
|
"%s\n", device, efi_handle_name ( device ),
|
2014-06-25 15:47:35 +02:00
|
|
|
strerror ( rc ) );
|
2011-02-17 01:27:51 +01:00
|
|
|
goto err_pci_read_config;
|
|
|
|
}
|
|
|
|
|
2014-06-25 15:47:35 +02:00
|
|
|
return 0;
|
2011-02-17 01:27:51 +01:00
|
|
|
|
|
|
|
err_pci_read_config:
|
|
|
|
err_get_location:
|
|
|
|
bs->CloseProtocol ( device, &efi_pci_io_protocol_guid,
|
2014-06-25 15:47:35 +02:00
|
|
|
efi_image_handle, device );
|
2011-02-17 01:27:51 +01:00
|
|
|
err_open_protocol:
|
2014-06-25 15:47:35 +02:00
|
|
|
return rc;
|
2011-02-17 01:27:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2014-07-01 18:58:09 +02:00
|
|
|
* Close EFI PCI device
|
2011-02-17 01:27:51 +01:00
|
|
|
*
|
2014-07-01 18:58:09 +02:00
|
|
|
* @v device EFI device handle
|
2011-02-17 01:27:51 +01:00
|
|
|
*/
|
2014-07-01 18:58:09 +02:00
|
|
|
void efipci_close ( EFI_HANDLE device ) {
|
|
|
|
EFI_BOOT_SERVICES *bs = efi_systab->BootServices;
|
2011-02-17 01:27:51 +01:00
|
|
|
|
2014-07-01 18:58:09 +02:00
|
|
|
bs->CloseProtocol ( device, &efi_pci_io_protocol_guid,
|
|
|
|
efi_image_handle, device );
|
2011-02-17 01:27:51 +01:00
|
|
|
}
|
|
|
|
|
2011-03-15 17:55:04 +01:00
|
|
|
/**
|
2014-07-01 18:58:09 +02:00
|
|
|
* Get EFI PCI device information
|
2011-03-15 17:55:04 +01:00
|
|
|
*
|
2014-07-01 18:58:09 +02:00
|
|
|
* @v device EFI device handle
|
|
|
|
* @v pci PCI device to fill in
|
|
|
|
* @ret rc Return status code
|
2011-03-15 17:55:04 +01:00
|
|
|
*/
|
2014-07-01 18:58:09 +02:00
|
|
|
int efipci_info ( EFI_HANDLE device, struct pci_device *pci ) {
|
2013-04-18 22:29:53 +02:00
|
|
|
int rc;
|
2011-03-15 17:55:04 +01:00
|
|
|
|
2014-07-01 18:58:09 +02:00
|
|
|
/* Open PCI device, if possible */
|
|
|
|
if ( ( rc = efipci_open ( device, EFI_OPEN_PROTOCOL_GET_PROTOCOL,
|
|
|
|
pci ) ) != 0 )
|
2013-04-18 22:29:53 +02:00
|
|
|
return rc;
|
2011-03-15 17:55:04 +01:00
|
|
|
|
2014-07-01 18:58:09 +02:00
|
|
|
/* Close PCI device */
|
|
|
|
efipci_close ( device );
|
2011-02-17 01:27:51 +01:00
|
|
|
|
2014-07-01 18:58:09 +02:00
|
|
|
return 0;
|
2011-02-17 01:27:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* EFI PCI driver
|
|
|
|
*
|
|
|
|
******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Check to see if driver supports a device
|
|
|
|
*
|
2014-07-01 18:58:09 +02:00
|
|
|
* @v device EFI device handle
|
2014-06-25 15:47:35 +02:00
|
|
|
* @ret rc Return status code
|
2011-02-17 01:27:51 +01:00
|
|
|
*/
|
2014-06-25 15:47:35 +02:00
|
|
|
static int efipci_supported ( EFI_HANDLE device ) {
|
2014-07-01 18:58:09 +02:00
|
|
|
struct pci_device pci;
|
2011-02-17 01:27:51 +01:00
|
|
|
int rc;
|
|
|
|
|
2014-07-01 18:58:09 +02:00
|
|
|
/* Get PCI device information */
|
|
|
|
if ( ( rc = efipci_info ( device, &pci ) ) != 0 )
|
|
|
|
return rc;
|
2011-02-17 01:27:51 +01:00
|
|
|
|
|
|
|
/* Look for a driver */
|
2014-07-01 18:58:09 +02:00
|
|
|
if ( ( rc = pci_find_driver ( &pci ) ) != 0 ) {
|
2014-06-25 15:47:35 +02:00
|
|
|
DBGCP ( device, "EFIPCI %p %s has no driver\n",
|
2014-07-31 11:44:25 +02:00
|
|
|
device, efi_handle_name ( device ) );
|
2014-07-01 18:58:09 +02:00
|
|
|
return rc;
|
2011-02-17 01:27:51 +01:00
|
|
|
}
|
2014-07-01 18:58:09 +02:00
|
|
|
DBGC ( device, "EFIPCI %p %s has driver \"%s\"\n",
|
2014-07-31 11:44:25 +02:00
|
|
|
device, efi_handle_name ( device ), pci.id->name );
|
2011-02-17 01:27:51 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Attach driver to device
|
|
|
|
*
|
2014-07-01 18:58:09 +02:00
|
|
|
* @v efidev EFI device
|
2014-06-25 15:47:35 +02:00
|
|
|
* @ret rc Return status code
|
2011-02-17 01:27:51 +01:00
|
|
|
*/
|
2014-07-01 18:58:09 +02:00
|
|
|
static int efipci_start ( struct efi_device *efidev ) {
|
|
|
|
EFI_HANDLE device = efidev->device;
|
|
|
|
struct pci_device *pci;
|
2011-02-17 01:27:51 +01:00
|
|
|
int rc;
|
|
|
|
|
2014-07-01 18:58:09 +02:00
|
|
|
/* Allocate PCI device */
|
|
|
|
pci = zalloc ( sizeof ( *pci ) );
|
|
|
|
if ( ! pci ) {
|
|
|
|
rc = -ENOMEM;
|
|
|
|
goto err_alloc;
|
2014-06-25 15:47:35 +02:00
|
|
|
}
|
2011-02-17 01:27:51 +01:00
|
|
|
|
2014-07-01 18:58:09 +02:00
|
|
|
/* Open PCI device */
|
|
|
|
if ( ( rc = efipci_open ( device, ( EFI_OPEN_PROTOCOL_BY_DRIVER |
|
|
|
|
EFI_OPEN_PROTOCOL_EXCLUSIVE ),
|
|
|
|
pci ) ) != 0 ) {
|
|
|
|
DBGC ( device, "EFIPCI %p %s could not open PCI device: %s\n",
|
|
|
|
device, efi_devpath_text ( efidev->path ),
|
|
|
|
strerror ( rc ) );
|
|
|
|
goto err_open;
|
|
|
|
}
|
2011-02-17 01:27:51 +01:00
|
|
|
|
|
|
|
/* Find driver */
|
2014-07-01 18:58:09 +02:00
|
|
|
if ( ( rc = pci_find_driver ( pci ) ) != 0 ) {
|
2014-06-25 15:47:35 +02:00
|
|
|
DBGC ( device, "EFIPCI %p %s has no driver\n",
|
2014-07-01 18:58:09 +02:00
|
|
|
device, efi_devpath_text ( efidev->path ) );
|
2011-02-17 01:27:51 +01:00
|
|
|
goto err_find_driver;
|
|
|
|
}
|
|
|
|
|
2014-07-01 18:58:09 +02:00
|
|
|
/* Mark PCI device as a child of the EFI device */
|
|
|
|
pci->dev.parent = &efidev->dev;
|
|
|
|
list_add ( &pci->dev.siblings, &efidev->dev.children );
|
2011-02-17 01:27:51 +01:00
|
|
|
|
|
|
|
/* Probe driver */
|
2014-07-01 18:58:09 +02:00
|
|
|
if ( ( rc = pci_probe ( pci ) ) != 0 ) {
|
2014-06-25 15:47:35 +02:00
|
|
|
DBGC ( device, "EFIPCI %p %s could not probe driver \"%s\": "
|
2014-07-01 18:58:09 +02:00
|
|
|
"%s\n", device, efi_devpath_text ( efidev->path ),
|
|
|
|
pci->id->name, strerror ( rc ) );
|
2011-02-17 01:27:51 +01:00
|
|
|
goto err_probe;
|
|
|
|
}
|
2014-06-25 15:47:35 +02:00
|
|
|
DBGC ( device, "EFIPCI %p %s using driver \"%s\"\n", device,
|
2014-07-01 18:58:09 +02:00
|
|
|
efi_devpath_text ( efidev->path ), pci->id->name );
|
2011-02-17 01:27:51 +01:00
|
|
|
|
2014-07-01 18:58:09 +02:00
|
|
|
efidev_set_drvdata ( efidev, pci );
|
2011-02-17 01:27:51 +01:00
|
|
|
return 0;
|
|
|
|
|
2014-07-01 18:58:09 +02:00
|
|
|
pci_remove ( pci );
|
2011-02-17 01:27:51 +01:00
|
|
|
err_probe:
|
2014-07-01 18:58:09 +02:00
|
|
|
list_del ( &pci->dev.siblings );
|
2011-02-17 01:27:51 +01:00
|
|
|
err_find_driver:
|
2014-07-01 18:58:09 +02:00
|
|
|
efipci_close ( device );
|
|
|
|
err_open:
|
|
|
|
free ( pci );
|
|
|
|
err_alloc:
|
2014-06-25 15:47:35 +02:00
|
|
|
return rc;
|
2011-02-17 01:27:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Detach driver from device
|
|
|
|
*
|
2014-07-01 18:58:09 +02:00
|
|
|
* @v efidev EFI device
|
2014-06-25 15:47:35 +02:00
|
|
|
*/
|
2014-07-01 18:58:09 +02:00
|
|
|
static void efipci_stop ( struct efi_device *efidev ) {
|
|
|
|
struct pci_device *pci = efidev_get_drvdata ( efidev );
|
|
|
|
EFI_HANDLE device = efidev->device;
|
|
|
|
|
|
|
|
pci_remove ( pci );
|
|
|
|
list_del ( &pci->dev.siblings );
|
|
|
|
efipci_close ( device );
|
|
|
|
free ( pci );
|
2011-02-17 01:27:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/** EFI PCI driver */
|
2014-06-25 15:47:35 +02:00
|
|
|
struct efi_driver efipci_driver __efi_driver ( EFI_DRIVER_NORMAL ) = {
|
|
|
|
.name = "PCI",
|
|
|
|
.supported = efipci_supported,
|
|
|
|
.start = efipci_start,
|
|
|
|
.stop = efipci_stop,
|
2011-02-17 01:27:51 +01:00
|
|
|
};
|