|
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, int inhibit_wifi) |
| Check to see if driver supports a device. More... | |
| int | snpnet_exclude (EFI_HANDLE device) |
| Exclude existing drivers. 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, | ||
| int | inhibit_wifi | ||
| ) |
Check to see if driver supports a device.
| device | EFI device handle |
| protocol | Protocol GUID |
| inhibit_wifi | Inhibit wireless devices |
| rc | Return status code |
Definition at line 510 of file snpnet.c.
References DBGC, DBGC2, DBGCP, efi_guid_ntoa(), efi_handle_name(), efi_locate_device(), efi_test, efi_wifi2_protocol_guid, ENOTTY, find_snpdev(), NULL, protocol, and rc.
Referenced by mnp_supported(), nii_supported(), and snp_supported().
| int snpnet_exclude | ( | EFI_HANDLE | device | ) |
Exclude existing drivers.
| device | EFI device handle |
| rc | Return status code |
Definition at line 692 of file snpnet.c.
References DBGC, efi_driver_exclude(), efi_handle_name(), efi_simple_network_protocol_guid, protocol, rc, snpnet_insomniac_patch(), snpnet_insomniac_restore(), snpnet_is_insomniac(), and strerror().
| int snpnet_start | ( | struct efi_device * | efidev | ) |
Attach driver to device.
| efidev | EFI device |
| rc | Return status code |
Definition at line 727 of file snpnet.c.
References alloc_etherdev(), device::children, DBGC, DBGC_EFI_OPENERS, efi_device::dev, net_device::dev, efi_device::device, EEFI, efi_close_by_driver(), efi_device_info(), efi_handle_name(), efi_open_by_driver, efi_simple_network_protocol_guid, snp_nic::efidev, efidev_set_drvdata(), EfiSimpleNetworkInitialized, EfiSimpleNetworkStopped, ENOMEM, ENOTSUP, net_device::hw_addr, ll_protocol::hw_addr_len, 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(), mode, _EFI_SIMPLE_NETWORK_PROTOCOL::Mode, net_device::name, netdev, netdev_init(), NETDEV_INSOMNIAC, netdev_insomniac(), netdev_link_up(), netdev_nullify(), netdev_put(), net_device::priv, rc, register_netdev(), _EFI_SIMPLE_NETWORK_PROTOCOL::Shutdown, snp_nic::snp, snpnet_check_link(), snpnet_is_insomniac(), snpnet_operations, _EFI_SIMPLE_NETWORK_PROTOCOL::Start, net_device::state, strerror(), and unregister_netdev().
| void snpnet_stop | ( | struct efi_device * | efidev | ) |
Detach driver from device.
| efidev | EFI device |
Definition at line 844 of file snpnet.c.
References DBGC, efi_device::device, EEFI, efi_close_by_driver(), efi_handle_name(), efi_shutdown_in_progress, efi_simple_network_protocol_guid, 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().
1.8.15