int usbnet_open(struct usbnet_device *usbnet)
Open USB network device.
unsigned int comms
Communications interface.
unsigned int data
Data interface.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
struct usb_endpoint intr
Interrupt endpoint.
struct usb_endpoint out
Bulk OUT endpoint.
uint8_t intr
Interrupts enabled.
unsigned int alternate
Alternate setting for data interface.
struct usb_endpoint in
Bulk IN endpoint.
struct usb_device * usb
USB device.
static void usb_endpoint_init(struct usb_endpoint *ep, struct usb_device *usb, struct usb_endpoint_driver_operations *driver)
Initialise USB endpoint.
A USB configuration descriptor.
int usbnet_describe(struct usbnet_device *usbnet, struct usb_configuration_descriptor *config)
Describe USB network device interfaces.
Universal Serial Bus (USB)
static void usbnet_init(struct usbnet_device *usbnet, struct usb_function *func, struct usb_endpoint_driver_operations *intr, struct usb_endpoint_driver_operations *in, struct usb_endpoint_driver_operations *out)
Initialise USB network device.
static int usbnet_has_intr(struct usbnet_device *usbnet)
Check if USB network device has an interrupt endpoint.
struct usb_endpoint_driver_operations * driver
Driver operations.
USB endpoint driver operations.
int usbnet_refill(struct usbnet_device *usbnet)
Refill USB network device bulk IN and interrupt endpoints.
#define NULL
NULL pointer (VOID *)
void usbnet_close(struct usbnet_device *usbnet)
Close USB network device.
struct usb_function * func
USB function.