diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2008-01-25 17:51:34 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-31 22:26:59 -0500 |
commit | 5d6ecf6c5d4994198527496fa51ea119030400e0 (patch) | |
tree | 3ac03e596e64e24d70b794f77656f352b69b36f6 /drivers/net/usb/usbnet.h | |
parent | 7c39e038fc738012ba36ed222bb62545ee59c012 (diff) |
rndis_host: Add link_change function pointer to 'struct rndis_data'.
Callback to signal link state changes from minidriver to
'subminidrivers'.
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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/usb/usbnet.h b/drivers/net/usb/usbnet.h index 25b63d3339dc..e0501da3dd11 100644 --- a/drivers/net/usb/usbnet.h +++ b/drivers/net/usb/usbnet.h | |||
@@ -121,6 +121,10 @@ struct driver_info { | |||
121 | * right after minidriver have initialized hardware. */ | 121 | * right after minidriver have initialized hardware. */ |
122 | int (*early_init)(struct usbnet *dev); | 122 | int (*early_init)(struct usbnet *dev); |
123 | 123 | ||
124 | /* called by minidriver when link state changes, state: 0=disconnect, | ||
125 | * 1=connect */ | ||
126 | void (*link_change)(struct usbnet *dev, int state); | ||
127 | |||
124 | /* for new devices, use the descriptor-reading code instead */ | 128 | /* for new devices, use the descriptor-reading code instead */ |
125 | int in; /* rx endpoint */ | 129 | int in; /* rx endpoint */ |
126 | int out; /* tx endpoint */ | 130 | int out; /* tx endpoint */ |