The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/netif/lgue/if_lgue.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * Definitions for LG USB CDC
    3  */
    4 
    5 #define LGUE_CONFIG_NO          1
    6 
    7 #define LGUE_ALTERNATE_SETTING  1
    8 
    9 #define LGUE_ENDPT_RX           0x0
   10 #define LGUE_ENDPT_TX           0x1
   11 #define LGUE_ENDPT_INTR         0x2
   12 #define LGUE_ENDPT_MAX          0x3
   13 
   14 #define LGUE_BUFSZ              1600
   15 
   16 /*
   17  * Internal queue entry
   18  */
   19 struct lgue_queue_entry {
   20         /*
   21         int entry_len;
   22         char entry_tx_buf[LGUE_BUFSZ];
   23         */
   24         struct mbuf *entry_mbuf;
   25         STAILQ_ENTRY(lgue_queue_entry) entry_next;
   26 };
   27 
   28 
   29 struct lgue_softc {
   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];
   34 
   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 */
   39 
   40         char lgue_dying;
   41         int lgue_if_flags;
   42 
   43         int lgue_tx_cnt;
   44         usbd_xfer_handle lgue_tx_xfer;
   45         char *lgue_tx_buf;
   46 
   47         int lgue_rx_cnt;
   48         usbd_xfer_handle lgue_rx_xfer;
   49         struct timeval lgue_rx_notice;
   50         char *lgue_rx_buf;
   51 
   52         usbd_xfer_handle lgue_intr_xfer;
   53         char *lgue_intr_buf;
   54 
   55         /* Internal queue */
   56         STAILQ_HEAD(, lgue_queue_entry) lgue_tx_queue;
   57 };

Cache object: 02d1676ed588d8d0ba6fc08c69eafa8d


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.