2 * Definitions for LG USB CDC
5 #define LGUE_CONFIG_NO 1
7 #define LGUE_ALTERNATE_SETTING 1
9 #define LGUE_ENDPT_RX 0x0
10 #define LGUE_ENDPT_TX 0x1
11 #define LGUE_ENDPT_INTR 0x2
12 #define LGUE_ENDPT_MAX 0x3
14 #define LGUE_BUFSZ 1600
17 * Internal queue entry
19 struct lgue_queue_entry {
22 char entry_tx_buf[LGUE_BUFSZ];
24 struct mbuf *entry_mbuf;
25 STAILQ_ENTRY(lgue_queue_entry) entry_next;
30 struct arpcom lgue_arpcom;
31 usbd_device_handle lgue_udev;
32 int lgue_ed[LGUE_ENDPT_MAX];
33 usbd_pipe_handle lgue_ep[LGUE_ENDPT_MAX];
35 int lgue_ctl_iface_no;
36 usbd_interface_handle lgue_ctl_iface; /* control interface */
37 int lgue_data_iface_no;
38 usbd_interface_handle lgue_data_iface; /* data interface */
44 usbd_xfer_handle lgue_tx_xfer;
48 usbd_xfer_handle lgue_rx_xfer;
49 struct timeval lgue_rx_notice;
52 usbd_xfer_handle lgue_intr_xfer;
56 STAILQ_HEAD(, lgue_queue_entry) lgue_tx_queue;