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

◆ 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 43 of file snp.c.

43  {
45 
46  return snpnet_supported ( device, protocol, 1 );
47 }
128 bit buffer containing a unique identifier value.
Definition: Base.h:215
EFI_GUID efi_simple_network_protocol_guid
Simple network protocol GUID.
Definition: efi_guid.c:340
A hardware device.
Definition: device.h:76
int snpnet_supported(EFI_HANDLE device, EFI_GUID *protocol, int inhibit_wifi)
Check to see if driver supports a device.
Definition: snpnet.c:510
uint16_t protocol
Protocol ID.
Definition: stp.h:18

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 55 of file snp.c.

55  {
57 
58  return snpnet_supported ( device, protocol, 1 );
59 }
EFI_GUID efi_nii31_protocol_guid
Network interface identifier protocol GUID (new version)
Definition: efi_guid.c:308
128 bit buffer containing a unique identifier value.
Definition: Base.h:215
A hardware device.
Definition: device.h:76
int snpnet_supported(EFI_HANDLE device, EFI_GUID *protocol, int inhibit_wifi)
Check to see if driver supports a device.
Definition: snpnet.c:510
uint16_t protocol
Protocol ID.
Definition: stp.h:18

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  )