Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
usbnet.h File Reference

Go to the source code of this file.

Data Structures

struct  usbnet
 
struct  driver_info
 
struct  cdc_state
 
struct  skb_data
 

Macros

#define EVENT_TX_HALT   0
 
#define EVENT_RX_HALT   1
 
#define EVENT_RX_MEMORY   2
 
#define EVENT_STS_SPLIT   3
 
#define EVENT_LINK_RESET   4
 
#define EVENT_RX_PAUSED   5
 
#define EVENT_DEV_ASLEEP   6
 
#define EVENT_DEV_OPEN   7
 
#define EVENT_DEVICE_REPORT_IDLE   8
 
#define FLAG_FRAMING_NC   0x0001 /* guard against device dropouts */
 
#define FLAG_FRAMING_GL   0x0002 /* genelink batches packets */
 
#define FLAG_FRAMING_Z   0x0004 /* zaurus adds a trailer */
 
#define FLAG_FRAMING_RN   0x0008 /* RNDIS batches, plus huge header */
 
#define FLAG_NO_SETINT   0x0010 /* device can't set_interface() */
 
#define FLAG_ETHER   0x0020 /* maybe use "eth%d" names */
 
#define FLAG_FRAMING_AX   0x0040 /* AX88772/178 packets */
 
#define FLAG_WLAN   0x0080 /* use "wlan%d" names */
 
#define FLAG_AVOID_UNLINK_URBS   0x0100 /* don't unlink urbs at usbnet_stop() */
 
#define FLAG_SEND_ZLP   0x0200 /* hw requires ZLPs are sent */
 
#define FLAG_WWAN   0x0400 /* use "wwan%d" names */
 
#define FLAG_LINK_INTR   0x0800 /* updates link (carrier) status */
 
#define FLAG_POINTTOPOINT   0x1000 /* possibly use "usb%d" names */
 
#define FLAG_MULTI_PACKET   0x2000
 
#define FLAG_RX_ASSEMBLE   0x4000 /* rx packets may span >1 frames */
 
#define DEFAULT_FILTER
 

Enumerations

enum  skb_state {
  illegal = 0, tx_start, tx_done, rx_start,
  rx_done, rx_cleanup, unlink_start
}
 

Functions

int usbnet_probe (struct usb_interface *, const struct usb_device_id *)
 
int usbnet_suspend (struct usb_interface *, pm_message_t)
 
int usbnet_resume (struct usb_interface *)
 
void usbnet_disconnect (struct usb_interface *)
 
void usbnet_device_suggests_idle (struct usbnet *dev)
 
int usbnet_generic_cdc_bind (struct usbnet *, struct usb_interface *)
 
int usbnet_cdc_bind (struct usbnet *, struct usb_interface *)
 
void usbnet_cdc_unbind (struct usbnet *, struct usb_interface *)
 
void usbnet_cdc_status (struct usbnet *, struct urb *)
 
int usbnet_open (struct net_device *net)
 
int usbnet_stop (struct net_device *net)
 
netdev_tx_t usbnet_start_xmit (struct sk_buff *skb, struct net_device *net)
 
void usbnet_tx_timeout (struct net_device *net)
 
int usbnet_change_mtu (struct net_device *net, int new_mtu)
 
int usbnet_get_endpoints (struct usbnet *, struct usb_interface *)
 
int usbnet_get_ethernet_addr (struct usbnet *, int)
 
void usbnet_defer_kevent (struct usbnet *, int)
 
void usbnet_skb_return (struct usbnet *, struct sk_buff *)
 
void usbnet_unlink_rx_urbs (struct usbnet *)
 
void usbnet_pause_rx (struct usbnet *)
 
void usbnet_resume_rx (struct usbnet *)
 
void usbnet_purge_paused_rxq (struct usbnet *)
 
int usbnet_get_settings (struct net_device *net, struct ethtool_cmd *cmd)
 
int usbnet_set_settings (struct net_device *net, struct ethtool_cmd *cmd)
 
u32 usbnet_get_link (struct net_device *net)
 
u32 usbnet_get_msglevel (struct net_device *)
 
void usbnet_set_msglevel (struct net_device *, u32)
 
void usbnet_get_drvinfo (struct net_device *, struct ethtool_drvinfo *)
 
int usbnet_nway_reset (struct net_device *net)
 

Macro Definition Documentation

#define DEFAULT_FILTER
#define EVENT_DEV_ASLEEP   6

Definition at line 69 of file usbnet.h.

#define EVENT_DEV_OPEN   7

Definition at line 70 of file usbnet.h.

#define EVENT_DEVICE_REPORT_IDLE   8

Definition at line 71 of file usbnet.h.

#define EVENT_LINK_RESET   4

Definition at line 67 of file usbnet.h.

#define EVENT_RX_HALT   1

Definition at line 64 of file usbnet.h.

#define EVENT_RX_MEMORY   2

Definition at line 65 of file usbnet.h.

#define EVENT_RX_PAUSED   5

Definition at line 68 of file usbnet.h.

#define EVENT_STS_SPLIT   3

Definition at line 66 of file usbnet.h.

#define EVENT_TX_HALT   0

Definition at line 63 of file usbnet.h.

#define FLAG_AVOID_UNLINK_URBS   0x0100 /* don't unlink urbs at usbnet_stop() */

Definition at line 95 of file usbnet.h.

#define FLAG_ETHER   0x0020 /* maybe use "eth%d" names */

Definition at line 91 of file usbnet.h.

#define FLAG_FRAMING_AX   0x0040 /* AX88772/178 packets */

Definition at line 93 of file usbnet.h.

#define FLAG_FRAMING_GL   0x0002 /* genelink batches packets */

Definition at line 86 of file usbnet.h.

#define FLAG_FRAMING_NC   0x0001 /* guard against device dropouts */

Definition at line 85 of file usbnet.h.

#define FLAG_FRAMING_RN   0x0008 /* RNDIS batches, plus huge header */

Definition at line 88 of file usbnet.h.

#define FLAG_FRAMING_Z   0x0004 /* zaurus adds a trailer */

Definition at line 87 of file usbnet.h.

#define FLAG_LINK_INTR   0x0800 /* updates link (carrier) status */

Definition at line 99 of file usbnet.h.

#define FLAG_MULTI_PACKET   0x2000

Definition at line 107 of file usbnet.h.

#define FLAG_NO_SETINT   0x0010 /* device can't set_interface() */

Definition at line 90 of file usbnet.h.

#define FLAG_POINTTOPOINT   0x1000 /* possibly use "usb%d" names */

Definition at line 101 of file usbnet.h.

#define FLAG_RX_ASSEMBLE   0x4000 /* rx packets may span >1 frames */

Definition at line 108 of file usbnet.h.

#define FLAG_SEND_ZLP   0x0200 /* hw requires ZLPs are sent */

Definition at line 96 of file usbnet.h.

#define FLAG_WLAN   0x0080 /* use "wlan%d" names */

Definition at line 94 of file usbnet.h.

#define FLAG_WWAN   0x0400 /* use "wwan%d" names */

Definition at line 97 of file usbnet.h.

Enumeration Type Documentation

enum skb_state
Enumerator:
illegal 
tx_start 
tx_done 
rx_start 
rx_done 
rx_cleanup 
unlink_start 

Definition at line 192 of file usbnet.h.

Function Documentation

int usbnet_cdc_bind ( struct usbnet ,
struct usb_interface  
)

Definition at line 433 of file cdc_ether.c.

void usbnet_cdc_status ( struct usbnet ,
struct urb  
)

Definition at line 391 of file cdc_ether.c.

void usbnet_cdc_unbind ( struct usbnet ,
struct usb_interface  
)

Definition at line 347 of file cdc_ether.c.

int usbnet_change_mtu ( struct net_device net,
int  new_mtu 
)

Definition at line 293 of file usbnet.c.

void usbnet_defer_kevent ( struct usbnet ,
int   
)

Definition at line 359 of file usbnet.c.

void usbnet_device_suggests_idle ( struct usbnet dev)

Definition at line 1609 of file usbnet.c.

void usbnet_disconnect ( struct usb_interface )

Definition at line 1293 of file usbnet.c.

int usbnet_generic_cdc_bind ( struct usbnet ,
struct usb_interface  
)

Definition at line 78 of file cdc_ether.c.

void usbnet_get_drvinfo ( struct net_device ,
struct ethtool_drvinfo  
)

Definition at line 876 of file usbnet.c.

int usbnet_get_endpoints ( struct usbnet ,
struct usb_interface  
)

Definition at line 97 of file usbnet.c.

int usbnet_get_ethernet_addr ( struct usbnet ,
int   
)

Definition at line 163 of file usbnet.c.

u32 usbnet_get_link ( struct net_device net)

Definition at line 848 of file usbnet.c.

u32 usbnet_get_msglevel ( struct net_device )

Definition at line 888 of file usbnet.c.

int usbnet_get_settings ( struct net_device net,
struct ethtool_cmd cmd 
)

Definition at line 818 of file usbnet.c.

int usbnet_nway_reset ( struct net_device net)

Definition at line 865 of file usbnet.c.

int usbnet_open ( struct net_device net)

Definition at line 737 of file usbnet.c.

void usbnet_pause_rx ( struct usbnet )

Definition at line 558 of file usbnet.c.

int usbnet_probe ( struct usb_interface ,
const struct usb_device_id  
)

Definition at line 1351 of file usbnet.c.

void usbnet_purge_paused_rxq ( struct usbnet )

Definition at line 585 of file usbnet.c.

int usbnet_resume ( struct usb_interface )

Definition at line 1552 of file usbnet.c.

void usbnet_resume_rx ( struct usbnet )

Definition at line 566 of file usbnet.c.

void usbnet_set_msglevel ( struct net_device ,
u32   
)

Definition at line 896 of file usbnet.c.

int usbnet_set_settings ( struct net_device net,
struct ethtool_cmd cmd 
)

Definition at line 829 of file usbnet.c.

void usbnet_skb_return ( struct usbnet ,
struct sk_buff  
)

Definition at line 259 of file usbnet.c.

netdev_tx_t usbnet_start_xmit ( struct sk_buff skb,
struct net_device net 
)

Definition at line 1086 of file usbnet.c.

int usbnet_stop ( struct net_device net)

Definition at line 682 of file usbnet.c.

int usbnet_suspend ( struct usb_interface ,
pm_message_t   
)

Definition at line 1519 of file usbnet.c.

void usbnet_tx_timeout ( struct net_device net)

Definition at line 1073 of file usbnet.c.

void usbnet_unlink_rx_urbs ( struct usbnet )

Definition at line 643 of file usbnet.c.