|
iPXE
|
EFI chainloaded-device-only driver. More...
#include <string.h>#include <errno.h>#include <ipxe/init.h>#include <ipxe/efi/efi.h>#include <ipxe/efi/efi_driver.h>#include <ipxe/efi/efi_utils.h>#include <ipxe/efi/mnpnet.h>#include <ipxe/efi/Protocol/SimpleNetwork.h>#include <ipxe/efi/Protocol/NetworkInterfaceIdentifier.h>#include "snpnet.h"#include "nii.h"Go to the source code of this file.
Data Structures | |
| struct | chained_protocol |
| A chainloaded protocol. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static void | chained_locate (struct chained_protocol *chained) |
| Locate chainloaded protocol. More... | |
| static int | chained_supported (EFI_HANDLE device, struct chained_protocol *chained) |
| Check to see if driver supports a device. More... | |
| static int | snponly_supported (EFI_HANDLE device) |
| Check to see if driver supports a device. More... | |
| static int | niionly_supported (EFI_HANDLE device) |
| Check to see if driver supports a device. More... | |
| static int | mnponly_supported (EFI_HANDLE device) |
| Check to see if driver supports a device. More... | |
| struct efi_driver snponly_driver | __efi_driver (EFI_DRIVER_SNP) |
| EFI SNP chainloading-device-only driver. More... | |
| struct efi_driver niionly_driver | __efi_driver (EFI_DRIVER_NII) |
| EFI NII chainloading-device-only driver. More... | |
| struct efi_driver mnponly_driver | __efi_driver (EFI_DRIVER_MNP) |
| EFI MNP chainloading-device-only driver. More... | |
| static void | chained_init (void) |
| Initialise EFI chainloaded-device-only driver. More... | |
| struct init_fn chained_init_fn | __init_fn (INIT_LATE) |
| EFI chainloaded-device-only initialisation function. More... | |
Variables | |
| static struct chained_protocol | chained_snp |
| Chainloaded SNP protocol. More... | |
| static struct chained_protocol | chained_nii |
| Chainloaded NII protocol. More... | |
| static struct chained_protocol | chained_mnp |
| Chainloaded MNP protocol. More... | |
EFI chainloaded-device-only driver.
Definition in file snponly.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Locate chainloaded protocol.
| chained | Chainloaded protocol |
Definition at line 92 of file snponly.c.
References DBGC, chained_protocol::device, EFI_LOADED_IMAGE_PROTOCOL::DeviceHandle, efi_guid_ntoa(), efi_handle_name(), efi_loaded_image, efi_locate_device(), efi_open, handle, NULL, chained_protocol::protocol, rc, and strerror().
Referenced by chained_init().
|
static |
Check to see if driver supports a device.
| device | EFI device handle |
| chained | Chainloaded protocol |
| rc | Return status code |
Definition at line 152 of file snponly.c.
References DBGC, DBGC2, DBGCP, chained_protocol::device, efi_guid_ntoa(), efi_handle_name(), efi_open, efi_test, efi_wifi2_protocol_guid, ENOTTY, chained_protocol::inhibit_wifi, chained_protocol::protocol, and rc.
Referenced by mnponly_supported(), niionly_supported(), and snponly_supported().
|
static |
Check to see if driver supports a device.
| device | EFI device handle |
| rc | Return status code |
Definition at line 196 of file snponly.c.
References chained_snp, and chained_supported().
|
static |
Check to see if driver supports a device.
| device | EFI device handle |
| rc | Return status code |
Definition at line 207 of file snponly.c.
References chained_nii, and chained_supported().
|
static |
Check to see if driver supports a device.
| device | EFI device handle |
| rc | Return status code |
Definition at line 218 of file snponly.c.
References chained_mnp, and chained_supported().
| struct efi_driver snponly_driver __efi_driver | ( | EFI_DRIVER_SNP | ) |
EFI SNP chainloading-device-only driver.
| struct efi_driver niionly_driver __efi_driver | ( | EFI_DRIVER_NII | ) |
EFI NII chainloading-device-only driver.
| struct efi_driver mnponly_driver __efi_driver | ( | EFI_DRIVER_MNP | ) |
EFI MNP chainloading-device-only driver.
|
static |
Initialise EFI chainloaded-device-only driver.
Definition at line 253 of file snponly.c.
References chained_locate(), chained_mnp, chained_nii, and chained_snp.
EFI chainloaded-device-only initialisation function.
|
static |
Chainloaded SNP protocol.
Definition at line 71 of file snponly.c.
Referenced by chained_init(), and snponly_supported().
|
static |
Chainloaded NII protocol.
Definition at line 77 of file snponly.c.
Referenced by chained_init(), and niionly_supported().
|
static |
Chainloaded MNP protocol.
Definition at line 83 of file snponly.c.
Referenced by chained_init(), and mnponly_supported().
1.8.15