iPXE
|
EFI driver interface. More...
Go to the source code of this file.
Data Structures | |
struct | efi_pci_device |
An EFI PCI device. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static EFIAPI uint64_t | LShiftU64 (UINT64 value, UINTN shift) |
int | efipci_open (EFI_HANDLE device, UINT32 attributes, struct efi_pci_device *efipci) |
Open EFI PCI device. More... | |
void | efipci_close (EFI_HANDLE device) |
Close EFI PCI device. More... | |
int | efipci_info (EFI_HANDLE device, struct efi_pci_device *efipci) |
Get EFI PCI device information. More... | |
EFI driver interface.
Definition in file efi_pci.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
int efipci_open | ( | EFI_HANDLE | device, |
UINT32 | attributes, | ||
struct efi_pci_device * | efipci | ||
) |
Open EFI PCI device.
device | EFI device handle |
attributes | Protocol opening attributes |
efipci | EFI PCI device to fill in |
rc | Return status code |
Definition at line 781 of file efi_pci.c.
References EFI_SYSTEM_TABLE::BootServices, busdevfn, EFI_BOOT_SERVICES::CloseProtocol, DBGC, DBGCP, pci_device::dma, dma_init(), EEFI, EEFI_PCI, efi_handle_name(), efi_image_handle, EFI_PCI_IO_ATTRIBUTE_BUS_MASTER, EFI_PCI_IO_ATTRIBUTE_IO, EFI_PCI_IO_ATTRIBUTE_MEMORY, efi_pci_io_protocol_guid, efi_systab, efipci_dma_operations, EfiPciIoAttributeOperationEnable, efi_pci_device::io, NULL, EFI_BOOT_SERVICES::OpenProtocol, efi_pci_device::pci, PCI_ARGS, PCI_BUSDEVFN, PCI_FMT, pci_init(), pci_read_config(), rc, and strerror().
Referenced by efi_bofm_start(), efipci_info(), and efipci_start().
void efipci_close | ( | EFI_HANDLE | device | ) |
Close EFI PCI device.
device | EFI device handle |
Definition at line 858 of file efi_pci.c.
References EFI_SYSTEM_TABLE::BootServices, EFI_BOOT_SERVICES::CloseProtocol, efi_image_handle, efi_pci_io_protocol_guid, and efi_systab.
Referenced by efi_bofm_start(), efipci_info(), efipci_start(), and efipci_stop().
int efipci_info | ( | EFI_HANDLE | device, |
struct efi_pci_device * | efipci | ||
) |
Get EFI PCI device information.
device | EFI device handle |
efipci | EFI PCI device to fill in |
rc | Return status code |
Definition at line 872 of file efi_pci.c.
References EFI_OPEN_PROTOCOL_GET_PROTOCOL, efipci_close(), efipci_open(), and rc.
Referenced by efi_bofm_supported(), efi_pci_info(), and efipci_supported().