diff options
| author | Takashi Iwai <tiwai@suse.de> | 2009-12-15 04:29:06 -0500 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2009-12-15 04:29:06 -0500 |
| commit | 709334c87dbdb44150ce436b3d13c814db0dcae9 (patch) | |
| tree | 5861a45f70c1f283720337abd864498f5afb3dbe /include/linux/usb/usbnet.h | |
| parent | 0d64b568fcd48b133721c1d322e7c51d85eb12df (diff) | |
| parent | f74890277a196949e4004fe2955e1d4fb3930f98 (diff) | |
Merge branch 'fixes' of git://git.alsa-project.org/alsa-kernel into for-linus
Diffstat (limited to 'include/linux/usb/usbnet.h')
| -rw-r--r-- | include/linux/usb/usbnet.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/usb/usbnet.h b/include/linux/usb/usbnet.h index f81473052059..8ce61359bf73 100644 --- a/include/linux/usb/usbnet.h +++ b/include/linux/usb/usbnet.h | |||
| @@ -55,6 +55,7 @@ struct usbnet { | |||
| 55 | struct sk_buff_head done; | 55 | struct sk_buff_head done; |
| 56 | struct sk_buff_head rxq_pause; | 56 | struct sk_buff_head rxq_pause; |
| 57 | struct urb *interrupt; | 57 | struct urb *interrupt; |
| 58 | struct usb_anchor deferred; | ||
| 58 | struct tasklet_struct bh; | 59 | struct tasklet_struct bh; |
| 59 | 60 | ||
| 60 | struct work_struct kevent; | 61 | struct work_struct kevent; |
| @@ -65,6 +66,8 @@ struct usbnet { | |||
| 65 | # define EVENT_STS_SPLIT 3 | 66 | # define EVENT_STS_SPLIT 3 |
| 66 | # define EVENT_LINK_RESET 4 | 67 | # define EVENT_LINK_RESET 4 |
| 67 | # define EVENT_RX_PAUSED 5 | 68 | # define EVENT_RX_PAUSED 5 |
| 69 | # define EVENT_DEV_WAKING 6 | ||
| 70 | # define EVENT_DEV_ASLEEP 7 | ||
| 68 | }; | 71 | }; |
| 69 | 72 | ||
| 70 | static inline struct usb_driver *driver_of(struct usb_interface *intf) | 73 | static inline struct usb_driver *driver_of(struct usb_interface *intf) |
| @@ -90,7 +93,9 @@ struct driver_info { | |||
| 90 | #define FLAG_WLAN 0x0080 /* use "wlan%d" names */ | 93 | #define FLAG_WLAN 0x0080 /* use "wlan%d" names */ |
| 91 | #define FLAG_AVOID_UNLINK_URBS 0x0100 /* don't unlink urbs at usbnet_stop() */ | 94 | #define FLAG_AVOID_UNLINK_URBS 0x0100 /* don't unlink urbs at usbnet_stop() */ |
| 92 | #define FLAG_SEND_ZLP 0x0200 /* hw requires ZLPs are sent */ | 95 | #define FLAG_SEND_ZLP 0x0200 /* hw requires ZLPs are sent */ |
| 96 | #define FLAG_WWAN 0x0400 /* use "wwan%d" names */ | ||
| 93 | 97 | ||
| 98 | #define FLAG_LINK_INTR 0x0800 /* updates link (carrier) status */ | ||
| 94 | 99 | ||
| 95 | /* init device ... can sleep, or cause probe() failure */ | 100 | /* init device ... can sleep, or cause probe() failure */ |
| 96 | int (*bind)(struct usbnet *, struct usb_interface *); | 101 | int (*bind)(struct usbnet *, struct usb_interface *); |
| @@ -107,6 +112,9 @@ struct driver_info { | |||
| 107 | /* see if peer is connected ... can sleep */ | 112 | /* see if peer is connected ... can sleep */ |
| 108 | int (*check_connect)(struct usbnet *); | 113 | int (*check_connect)(struct usbnet *); |
| 109 | 114 | ||
| 115 | /* (dis)activate runtime power management */ | ||
| 116 | int (*manage_power)(struct usbnet *, int); | ||
| 117 | |||
| 110 | /* for status polling */ | 118 | /* for status polling */ |
| 111 | void (*status)(struct usbnet *, struct urb *); | 119 | void (*status)(struct usbnet *, struct urb *); |
| 112 | 120 | ||
