diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2008-01-25 17:51:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-31 22:26:58 -0500 |
commit | 7c39e038fc738012ba36ed222bb62545ee59c012 (patch) | |
tree | 89d295e93ffe70fbc6f498fde466eade8c173d8a /drivers/net/usb/usbnet.h | |
parent | 476842b1962c7cf5ccea57dcfad26dc77d16e363 (diff) |
rndis_host: Add early_init function pointer to 'struct rndis_data'.
Function pointer is for 'subminidrivers' that need to do work on device
right after minidriver has initialized hardware.
For example, rndis_wlan setting device specific configuration parameters
with OID_GEN_RNDIS_CONFIG_PARAMETER right after rndis_host has
initialized hardware with RNDIS_INIT.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/usbnet.h')
-rw-r--r-- | drivers/net/usb/usbnet.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/usb/usbnet.h b/drivers/net/usb/usbnet.h index 0b4bf09fc8b1..25b63d3339dc 100644 --- a/drivers/net/usb/usbnet.h +++ b/drivers/net/usb/usbnet.h | |||
@@ -116,6 +116,11 @@ struct driver_info { | |||
116 | struct sk_buff *(*tx_fixup)(struct usbnet *dev, | 116 | struct sk_buff *(*tx_fixup)(struct usbnet *dev, |
117 | struct sk_buff *skb, gfp_t flags); | 117 | struct sk_buff *skb, gfp_t flags); |
118 | 118 | ||
119 | /* early initialization code, can sleep. This is for minidrivers | ||
120 | * having 'subminidrivers' that need to do extra initialization | ||
121 | * right after minidriver have initialized hardware. */ | ||
122 | int (*early_init)(struct usbnet *dev); | ||
123 | |||
119 | /* for new devices, use the descriptor-reading code instead */ | 124 | /* for new devices, use the descriptor-reading code instead */ |
120 | int in; /* rx endpoint */ | 125 | int in; /* rx endpoint */ |
121 | int out; /* tx endpoint */ | 126 | int out; /* tx endpoint */ |