17 #define USB_SUBCLASS_CDC_ECM 0x06 20 #define ECM_SET_ETHERNET_PACKET_FILTER \ 21 ( USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE | \ 22 USB_REQUEST_TYPE ( 0x43 ) ) 72 #define ECM_INTR_MAX_FILL 2 78 #define ECM_IN_MAX_FILL 8 84 #define ECM_IN_MTU ( ETH_FRAME_LEN + 4 )
An Ethernet Functional Descriptor.
uint8_t wol
Number of wake-on-LAN filters.
struct usbnet_device usbnet
USB network device.
uint64_t desc
Microcode descriptor list physical address.
int ecm_fetch_mac(struct usb_function *func, struct ecm_ethernet_descriptor *desc, struct net_device *netdev)
Get hardware MAC address.
uint16_t mcast
Multicast filter configuration.
uint32_t statistics
Ethernet statistics bitmap.
uint8_t subtype
Descriptor subtype.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
Specified multicast packets.
A USB interface descriptor.
static struct net_device * netdev
struct usb_device * usb
USB device.
struct usb_descriptor_header header
Descriptor header.
ecm_ethernet_packet_filter
Ethernet packet types.
struct usb_bus * bus
USB bus.
uint8_t mac
MAC address string.
struct ecm_ethernet_descriptor * ecm_ethernet_descriptor(struct usb_configuration_descriptor *config, struct usb_interface_descriptor *interface)
Locate Ethernet functional descriptor.
A CDC-ECM network device.
A USB configuration descriptor.
Universal Serial Bus (USB)
uint16_t mtu
Maximum segment size.
USB Communications Device Class (CDC)
struct net_device * netdev
Network device.