iPXE
Functions
snp.c File Reference

SNP driver. More...

#include <ipxe/efi/efi.h>
#include <ipxe/efi/efi_driver.h>
#include "snpnet.h"
#include "nii.h"

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
 FILE_SECBOOT (PERMITTED)
 
static int snp_supported (EFI_HANDLE device)
 Check to see if driver supports a device. More...
 
static int nii_supported (EFI_HANDLE device)
 Check to see if driver supports a device. More...
 
struct efi_driver snp_driver __efi_driver (EFI_DRIVER_SNP)
 EFI SNP driver. More...
 
struct efi_driver nii_driver __efi_driver (EFI_DRIVER_NII)
 EFI NII driver. More...
 
 REQUIRING_SYMBOL (snp_driver)
 Drag in MNP driver. More...
 
 REQUIRE_SYMBOL (mnp_driver)
 

Detailed Description

SNP driver.

Definition in file snp.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED  )

◆ snp_supported()

static int snp_supported ( EFI_HANDLE  device)
static

Check to see if driver supports a device.

Parameters
deviceEFI device handle
Return values
rcReturn status code

Definition at line 44 of file snp.c.

44  {
46 
47  return snpnet_supported ( device, protocol, 1 );
48 }
128 bit buffer containing a unique identifier value.
Definition: Base.h:216
EFI_GUID efi_simple_network_protocol_guid
Simple network protocol GUID.
Definition: efi_guid.c:341
A hardware device.
Definition: device.h:77
int snpnet_supported(EFI_HANDLE device, EFI_GUID *protocol, int inhibit_wifi)
Check to see if driver supports a device.
Definition: snpnet.c:511
uint16_t protocol
Protocol ID.
Definition: stp.h:19

References efi_simple_network_protocol_guid, protocol, and snpnet_supported().

◆ nii_supported()

static int nii_supported ( EFI_HANDLE  device)
static

Check to see if driver supports a device.

Parameters
deviceEFI device handle
Return values
rcReturn status code

Definition at line 56 of file snp.c.

56  {
58 
59  return snpnet_supported ( device, protocol, 1 );
60 }
EFI_GUID efi_nii31_protocol_guid
Network interface identifier protocol GUID (new version)
Definition: efi_guid.c:309
128 bit buffer containing a unique identifier value.
Definition: Base.h:216
A hardware device.
Definition: device.h:77
int snpnet_supported(EFI_HANDLE device, EFI_GUID *protocol, int inhibit_wifi)
Check to see if driver supports a device.
Definition: snpnet.c:511
uint16_t protocol
Protocol ID.
Definition: stp.h:19

References efi_nii31_protocol_guid, protocol, and snpnet_supported().

◆ __efi_driver() [1/2]

struct efi_driver snp_driver __efi_driver ( EFI_DRIVER_SNP  )

EFI SNP driver.

◆ __efi_driver() [2/2]

struct efi_driver nii_driver __efi_driver ( EFI_DRIVER_NII  )

EFI NII driver.

◆ REQUIRING_SYMBOL()

REQUIRING_SYMBOL ( snp_driver  )

Drag in MNP driver.

◆ REQUIRE_SYMBOL()

REQUIRE_SYMBOL ( mnp_driver  )