iPXE
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.
static int nii_supported (EFI_HANDLE device)
 Check to see if driver supports a device.
struct efi_driver snp_driver __efi_driver (EFI_DRIVER_SNP)
 EFI SNP driver.
struct efi_driver nii_driver __efi_driver (EFI_DRIVER_NII)
 EFI NII driver.
 REQUIRING_SYMBOL (snp_driver)
 Drag in MNP driver.
 REQUIRE_SYMBOL (mnp_driver)
 EFI_ROM ("snp", "Simple Network Protocol NIC")

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()

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}
GUID EFI_GUID
128-bit buffer containing a unique identifier value.
EFI_GUID efi_simple_network_protocol_guid
Simple network protocol GUID.
Definition efi_guid.c:341
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:7
A hardware device.
Definition device.h:77

References EFI_HANDLE, efi_simple_network_protocol_guid, protocol, and snpnet_supported().

Referenced by __efi_driver().

◆ nii_supported()

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

References EFI_HANDLE, efi_nii31_protocol_guid, protocol, and snpnet_supported().

Referenced by __efi_driver().

◆ __efi_driver() [1/2]

struct efi_driver snp_driver __efi_driver ( EFI_DRIVER_SNP )

◆ __efi_driver() [2/2]

struct efi_driver nii_driver __efi_driver ( EFI_DRIVER_NII )

◆ REQUIRING_SYMBOL()

REQUIRING_SYMBOL ( snp_driver )

Drag in MNP driver.

◆ REQUIRE_SYMBOL()

REQUIRE_SYMBOL ( mnp_driver )

◆ EFI_ROM()

EFI_ROM ( "snp" ,
"Simple Network Protocol NIC"  )