|
iPXE
|
IBM BladeCenter Open Fabric Manager (BOFM) EFI interface. More...
#include <string.h>#include <errno.h>#include <ipxe/bofm.h>#include <ipxe/efi/efi.h>#include <ipxe/efi/efi_pci.h>#include <ipxe/efi/efi_driver.h>Go to the source code of this file.
Data Structures | |
| struct | BOFM_EPID_Results_t |
| struct | BOFM_Parameters_t |
| struct | BOFM_Results_t |
| struct | BOFM_DataStructure_t |
| struct | _IBM_BOFM_DRIVER_CONFIGURATION_PROTOCOL |
| struct | _IBM_BOFM_DRIVER_CONFIGURATION_PROTOCOL2 |
Macros | |
| #define | IBM_BOFM_DRIVER_CONFIGURATION_PROTOCOL_GUID |
| #define | IBM_BOFM_DRIVER_CONFIGURATION2_PROTOCOL_GUID |
| #define | IBM_BOFM_TABLE BOFM_DataStructure_t |
Typedefs | |
| typedef struct _IBM_BOFM_DRIVER_CONFIGURATION_PROTOCOL | IBM_BOFM_DRIVER_CONFIGURATION_PROTOCOL |
| typedef struct _IBM_BOFM_DRIVER_CONFIGURATION_PROTOCOL2 | IBM_BOFM_DRIVER_CONFIGURATION_PROTOCOL2 |
| typedef EFI_HANDLE | ControllerHandle |
| typedef EFI_HANDLE UINT8 | SupporttedOptions |
| typedef EFI_HANDLE UINT8 UINT8 | iSCSI_Parameter_Version |
| typedef EFI_HANDLE UINT8 UINT8 UINT8 | BOFM_Parameter_Version |
| typedef EFI_HANDLE BOOLEAN | ResetRequired |
| typedef EFI_HANDLE BOOLEAN UINT8 | BOFMReturnCode |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| typedef | EFI_STATUS (EFIAPI *IBM_BOFM_DRIVER_CONFIGURATION_SUPPORT)(IN IBM_BOFM_DRIVER_CONFIGURATION_PROTOCOL *This |
| static int | efi_bofm_supported (EFI_HANDLE device) |
| Check if device is supported. | |
| static int | efi_bofm_start (struct efi_device *efidev) |
| Attach driver to device. | |
| static void | efi_bofm_stop (struct efi_device *efidev __unused) |
| Detach driver from device. | |
| struct efi_driver efi_bofm_driver | __efi_driver (EFI_DRIVER_EARLY) |
| EFI BOFM driver. | |
Variables | |
| static EFI_GUID | bofm1_protocol_guid |
| BOFM1 protocol GUID. | |
| static EFI_GUID | bofm2_protocol_guid |
| BOFM2 protocol GUID. | |
IBM BladeCenter Open Fabric Manager (BOFM) EFI interface.
Definition in file efi_bofm.c.
| #define IBM_BOFM_DRIVER_CONFIGURATION_PROTOCOL_GUID |
Definition at line 49 of file efi_bofm.c.
| #define IBM_BOFM_DRIVER_CONFIGURATION2_PROTOCOL_GUID |
Definition at line 53 of file efi_bofm.c.
| #define IBM_BOFM_TABLE BOFM_DataStructure_t |
Definition at line 100 of file efi_bofm.c.
Referenced by efi_bofm_start().
Definition at line 103 of file efi_bofm.c.
Definition at line 106 of file efi_bofm.c.
| typedef EFI_HANDLE ControllerHandle |
Definition at line 110 of file efi_bofm.c.
| typedef EFI_HANDLE UINT8 SupporttedOptions |
Definition at line 111 of file efi_bofm.c.
| typedef EFI_HANDLE UINT8 UINT8 iSCSI_Parameter_Version |
Definition at line 112 of file efi_bofm.c.
| typedef EFI_HANDLE UINT8 UINT8 UINT8 BOFM_Parameter_Version |
Definition at line 113 of file efi_bofm.c.
| typedef EFI_HANDLE BOOLEAN ResetRequired |
Definition at line 119 of file efi_bofm.c.
| typedef EFI_HANDLE BOOLEAN UINT8 BOFMReturnCode |
Definition at line 120 of file efi_bofm.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| typedef EFI_STATUS | ( | EFIAPI * | IBM_BOFM_DRIVER_CONFIGURATION_SUPPORT | ) |
|
static |
Check if device is supported.
| device | EFI device handle |
| rc | Return status code |
Definition at line 166 of file efi_bofm.c.
References bofm1_protocol_guid, bofm_find_driver(), DBGC, DBGCP, EEFI, EFI_HANDLE, efi_handle_name(), efi_systab, efipci_info(), pci_device::id, EFI_BOOT_SERVICES::LocateProtocol, pci_device_id::name, NULL, efi_pci_device::pci, rc, and strerror().
Referenced by __efi_driver().
|
static |
Attach driver to device.
| efidev | EFI device |
| rc | Return status code |
Definition at line 218 of file efi_bofm.c.
References assert, bofm(), bofm1_protocol_guid, bofm2_protocol_guid, DBGC, DBGC2, DBGC2_HD, efi_device::device, EAGAIN, EEFI, efi_close_unsafe(), EFI_HANDLE, efi_handle_name(), efi_open_unsafe, efi_pci_io_protocol_guid, efi_systab, efipci_info(), FALSE, IBM_BOFM_TABLE, efi_pci_device::io, EFI_BOOT_SERVICES::LocateProtocol, NULL, efi_pci_device::pci, rc, and strerror().
Referenced by __efi_driver().
|
static |
Detach driver from device.
| device | EFI device |
Definition at line 337 of file efi_bofm.c.
References __unused, and assert.
Referenced by __efi_driver().
| struct efi_driver efi_bofm_driver __efi_driver | ( | EFI_DRIVER_EARLY | ) |
EFI BOFM driver.
References __efi_driver, efi_bofm_start(), efi_bofm_stop(), efi_bofm_supported(), and EFI_DRIVER_EARLY.
|
static |
BOFM1 protocol GUID.
Definition at line 153 of file efi_bofm.c.
Referenced by efi_bofm_start(), and efi_bofm_supported().
|
static |
BOFM2 protocol GUID.
Definition at line 157 of file efi_bofm.c.
Referenced by efi_bofm_start().