Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
usb.h File Reference
#include <linux/skbuff.h>

Go to the source code of this file.

Data Structures

struct  rtl_ep_map
 
struct  _trx_info
 
struct  rtl_usb
 
struct  rtl_usb_priv
 

Macros

#define RTL_RX_DESC_SIZE   24
 
#define RTL_USB_DEVICE(vend, prod, cfg)
 
#define USB_HIGH_SPEED_BULK_SIZE   512
 
#define USB_FULL_SPEED_BULK_SIZE   64
 
#define RTL_USB_MAX_TXQ_NUM   4 /* max tx queue */
 
#define RTL_USB_MAX_EP_NUM   6 /* max ep number */
 
#define RTL_USB_MAX_TX_URBS_NUM   8
 
#define IS_USB_STOP(rtlusb_ptr)   (USB_STATE_STOP == (rtlusb_ptr)->state)
 
#define IS_USB_START(rtlusb_ptr)   (USB_STATE_START == (rtlusb_ptr)->state)
 
#define SET_USB_STOP(rtlusb_ptr)
 
#define SET_USB_START(rtlusb_ptr)
 
#define rtl_usbpriv(hw)   (((struct rtl_usb_priv *)(rtl_priv(hw))->priv))
 
#define rtl_usbdev(usbpriv)   (&((usbpriv)->dev))
 

Enumerations

enum  rtl_txq {
  RTL_TXQ_BK, RTL_TXQ_BE, RTL_TXQ_VI, RTL_TXQ_VO,
  RTL_TXQ_BCN, RTL_TXQ_MGT, RTL_TXQ_HI, __RTL_TXQ_NUM
}
 
enum  rtl_usb_state { USB_STATE_STOP = 0, USB_STATE_START = 1 }
 

Functions

int __devinit rtl_usb_probe (struct usb_interface *intf, const struct usb_device_id *id)
 
void rtl_usb_disconnect (struct usb_interface *intf)
 
int rtl_usb_suspend (struct usb_interface *pusb_intf, pm_message_t message)
 
int rtl_usb_resume (struct usb_interface *pusb_intf)
 

Macro Definition Documentation

#define IS_USB_START (   rtlusb_ptr)    (USB_STATE_START == (rtlusb_ptr)->state)

Definition at line 92 of file usb.h.

#define IS_USB_STOP (   rtlusb_ptr)    (USB_STATE_STOP == (rtlusb_ptr)->state)

Definition at line 91 of file usb.h.

#define RTL_RX_DESC_SIZE   24

Definition at line 33 of file usb.h.

#define RTL_USB_DEVICE (   vend,
  prod,
  cfg 
)
Value:
.match_flags = USB_DEVICE_ID_MATCH_DEVICE, \
.idVendor = (vend), \
.idProduct = (prod), \
.driver_info = (kernel_ulong_t)&(cfg)

Definition at line 35 of file usb.h.

#define RTL_USB_MAX_EP_NUM   6 /* max ep number */

Definition at line 46 of file usb.h.

#define RTL_USB_MAX_TX_URBS_NUM   8

Definition at line 47 of file usb.h.

#define RTL_USB_MAX_TXQ_NUM   4 /* max tx queue */

Definition at line 45 of file usb.h.

#define rtl_usbdev (   usbpriv)    (&((usbpriv)->dev))

Definition at line 155 of file usb.h.

#define rtl_usbpriv (   hw)    (((struct rtl_usb_priv *)(rtl_priv(hw))->priv))

Definition at line 154 of file usb.h.

#define SET_USB_START (   rtlusb_ptr)
Value:
do { \
(rtlusb_ptr)->state = USB_STATE_START; \
} while (0)

Definition at line 98 of file usb.h.

#define SET_USB_STOP (   rtlusb_ptr)
Value:
do { \
(rtlusb_ptr)->state = USB_STATE_STOP; \
} while (0)

Definition at line 93 of file usb.h.

#define USB_FULL_SPEED_BULK_SIZE   64

Definition at line 42 of file usb.h.

#define USB_HIGH_SPEED_BULK_SIZE   512

Definition at line 41 of file usb.h.

Enumeration Type Documentation

enum rtl_txq
Enumerator:
RTL_TXQ_BK 
RTL_TXQ_BE 
RTL_TXQ_VI 
RTL_TXQ_VO 
RTL_TXQ_BCN 
RTL_TXQ_MGT 
RTL_TXQ_HI 
__RTL_TXQ_NUM 

Definition at line 49 of file usb.h.

Enumerator:
USB_STATE_STOP 
USB_STATE_START 

Definition at line 86 of file usb.h.

Function Documentation

void rtl_usb_disconnect ( struct usb_interface intf)

Definition at line 1014 of file usb.c.

int __devinit rtl_usb_probe ( struct usb_interface intf,
const struct usb_device_id id 
)

Definition at line 943 of file usb.c.

int rtl_usb_resume ( struct usb_interface pusb_intf)

Definition at line 1054 of file usb.c.

int rtl_usb_suspend ( struct usb_interface pusb_intf,
pm_message_t  message 
)

Definition at line 1048 of file usb.c.