iPXE
|
SNP NIC driver. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER) | |
int | snpnet_supported (EFI_HANDLE device, EFI_GUID *protocol) |
Check to see if driver supports a device. More... | |
int | snpnet_start (struct efi_device *efidev) |
Attach driver to device. More... | |
void | snpnet_stop (struct efi_device *efidev) |
Detach driver from device. More... | |
SNP NIC driver.
Definition in file snpnet.h.
FILE_LICENCE | ( | GPL2_OR_LATER | ) |
int snpnet_supported | ( | EFI_HANDLE | device, |
EFI_GUID * | protocol | ||
) |
Check to see if driver supports a device.
device | EFI device handle |
protocol | Protocol GUID |
rc | Return status code |
Definition at line 495 of file snpnet.c.
References EFI_SYSTEM_TABLE::BootServices, DBGC, DBGC2, DBGCP, EEFI, efi_guid_ntoa(), efi_handle_name(), efi_image_handle, efi_locate_device(), EFI_OPEN_PROTOCOL_TEST_PROTOCOL, efi_systab, ENOTTY, find_snpdev(), NULL, EFI_BOOT_SERVICES::OpenProtocol, protocol, and rc.
Referenced by mnp_supported(), nii_supported(), and snp_supported().
int snpnet_start | ( | struct efi_device * | efidev | ) |
Attach driver to device.
efidev | EFI device |
rc | Return status code |
Definition at line 541 of file snpnet.c.
References alloc_etherdev(), EFI_SYSTEM_TABLE::BootServices, device::children, EFI_BOOT_SERVICES::CloseProtocol, EFI_SIMPLE_NETWORK_MODE::CurrentAddress, DBGC, DBGC_EFI_OPENERS, efi_device::dev, net_device::dev, efi_device::device, EEFI, efi_device_info(), efi_handle_name(), efi_image_handle, EFI_OPEN_PROTOCOL_BY_DRIVER, EFI_OPEN_PROTOCOL_EXCLUSIVE, efi_simple_network_protocol_guid, efi_systab, snp_nic::efidev, efidev_set_drvdata(), EfiSimpleNetworkInitialized, EfiSimpleNetworkStopped, ENOMEM, ENOTSUP, net_device::hw_addr, ll_protocol::hw_addr_len, EFI_SIMPLE_NETWORK_MODE::HwAddressSize, INIT_LIST_HEAD, list_add, list_del, net_device::ll_addr, ll_protocol::ll_addr_len, net_device::ll_protocol, EFI_SIMPLE_NETWORK_MODE::MaxPacketSize, EFI_SIMPLE_NETWORK_MODE::MediaHeaderSize, EFI_SIMPLE_NETWORK_MODE::MediaPresentSupported, memcpy(), _EFI_SIMPLE_NETWORK_PROTOCOL::Mode, net_device::name, netdev, netdev_init(), netdev_link_up(), netdev_nullify(), netdev_put(), EFI_BOOT_SERVICES::OpenProtocol, EFI_SIMPLE_NETWORK_MODE::PermanentAddress, net_device::priv, rc, register_netdev(), _EFI_SIMPLE_NETWORK_PROTOCOL::Shutdown, snp_nic::snp, snpnet_check_link(), snpnet_operations, _EFI_SIMPLE_NETWORK_PROTOCOL::Start, EFI_SIMPLE_NETWORK_MODE::State, strerror(), and unregister_netdev().
void snpnet_stop | ( | struct efi_device * | efidev | ) |
Detach driver from device.
efidev | EFI device |
Definition at line 658 of file snpnet.c.
References EFI_SYSTEM_TABLE::BootServices, EFI_BOOT_SERVICES::CloseProtocol, DBGC, efi_device::device, EEFI, efi_handle_name(), efi_image_handle, efi_shutdown_in_progress, efi_simple_network_protocol_guid, efi_systab, snp_nic::efidev, efidev_get_drvdata(), list_del, netdev, netdev_nullify(), netdev_put(), net_device::priv, rc, snp_nic::snp, _EFI_SIMPLE_NETWORK_PROTOCOL::Stop, strerror(), and unregister_netdev().