|
iPXE
|
CDC-NCM USB Ethernet driver. More...
#include <stdint.h>#include <ipxe/usb.h>#include <ipxe/cdc.h>#include <byteswap.h>#include "ecm.h"Go to the source code of this file.
Data Structures | |
| struct | ncm_ntb_datagram_parameters |
| NTB datagram parameters. More... | |
| struct | ncm_ntb_parameters |
| NTB parameters. More... | |
| struct | ncm_set_ntb_input_size |
| Set NTB input size. More... | |
| struct | ncm_transfer_header |
| CDC-NCM transfer header (16-bit) More... | |
| struct | ncm_datagram_descriptor |
| CDC-NCM datagram descriptor (16-bit) More... | |
| struct | ncm_datagram_pointer |
| CDC-NCM datagram pointer (16-bit) More... | |
| struct | ncm_ntb_header |
| NTB constructed for transmitted packets (excluding padding) More... | |
| struct | ncm_device |
| A CDC-NCM network device. More... | |
Macros | |
| #define | USB_SUBCLASS_CDC_NCM 0x0d |
| CDC-NCM subclass. More... | |
| #define | NCM_GET_NTB_PARAMETERS |
| Get NTB parameters. More... | |
| #define | NCM_SET_NET_ADDRESS |
| Set MAC address. More... | |
| #define | NCM_SET_NTB_INPUT_SIZE |
| Set NTB input size. More... | |
| #define | NCM_MIN_NTB_INPUT_SIZE 2048 |
| Minimum allowed NTB input size. More... | |
| #define | NCM_MAX_NTB_INPUT_SIZE 65536 |
| Maximum allowed NTB input size (16-bit) More... | |
| #define | NCM_TRANSFER_HEADER_MAGIC 0x484d434eUL |
| CDC-NCM transfer header magic. More... | |
| #define | NCM_DATAGRAM_POINTER_MAGIC 0x304d434eUL |
| CDC-NCM datagram pointer magic. More... | |
| #define | NCM_DATAGRAM_POINTER_MAGIC_CRC 0x01000000UL |
| CDC-NCM datagram pointer CRC present flag. More... | |
| #define | NCM_IN_MIN_COUNT 3 |
| Bulk IN ring minimum buffer count. More... | |
| #define | NCM_IN_MIN_SIZE 16384 |
| Bulk IN ring minimum total buffer size. More... | |
| #define | NCM_IN_MAX_SIZE 131072 |
| Bulk IN ring maximum total buffer size. More... | |
| #define | NCM_INTR_COUNT 2 |
| Interrupt ring buffer count. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
Variables | |
| struct ncm_ntb_datagram_parameters | __attribute__ |
CDC-NCM USB Ethernet driver.
Definition in file ncm.h.
| #define NCM_GET_NTB_PARAMETERS |
Get NTB parameters.
| #define NCM_SET_NET_ADDRESS |
Set MAC address.
| #define NCM_SET_NTB_INPUT_SIZE |
Set NTB input size.
| #define NCM_MIN_NTB_INPUT_SIZE 2048 |
| #define NCM_MAX_NTB_INPUT_SIZE 65536 |
| #define NCM_TRANSFER_HEADER_MAGIC 0x484d434eUL |
| #define NCM_DATAGRAM_POINTER_MAGIC 0x304d434eUL |
| #define NCM_DATAGRAM_POINTER_MAGIC_CRC 0x01000000UL |
| #define NCM_IN_MIN_COUNT 3 |
| #define NCM_IN_MIN_SIZE 16384 |
| #define NCM_IN_MAX_SIZE 131072 |
| #define NCM_INTR_COUNT 2 |
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
1.8.15