diff options
author | David Kilroy <kilroyd@gmail.com> | 2008-08-21 18:27:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-22 19:28:05 -0400 |
commit | 3994d502017a2239e30152d1231843ad05d04a7b (patch) | |
tree | c4f15d1b95783d035d954173167ff08e65665461 /drivers/net/wireless/orinoco.h | |
parent | 8f5ae73c5366128d3800cf9765507422bcf1ef96 (diff) |
orinoco: Invoke firmware download in main driver
Firmware download is enabled for Agere in orinoco_cs. Symbol firmware
download has been moved out of spectrum_cs into orinoco_cs. Firmware
download is not enabled for Intersil.
Symbol based firmware is restricted to only download on spectrum_cs
based cards.
The firmware names are hardcoded for each firmware type.
Signed-off-by: David Kilroy <kilroyd@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/orinoco.h')
-rw-r--r-- | drivers/net/wireless/orinoco.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/wireless/orinoco.h b/drivers/net/wireless/orinoco.h index c6b1858abde8..e0acb633e9d5 100644 --- a/drivers/net/wireless/orinoco.h +++ b/drivers/net/wireless/orinoco.h | |||
@@ -44,7 +44,9 @@ typedef struct { | |||
44 | 44 | ||
45 | struct orinoco_private { | 45 | struct orinoco_private { |
46 | void *card; /* Pointer to card dependent structure */ | 46 | void *card; /* Pointer to card dependent structure */ |
47 | struct device *dev; | ||
47 | int (*hard_reset)(struct orinoco_private *); | 48 | int (*hard_reset)(struct orinoco_private *); |
49 | int (*stop_fw)(struct orinoco_private *, int); | ||
48 | 50 | ||
49 | /* Synchronisation stuff */ | 51 | /* Synchronisation stuff */ |
50 | spinlock_t lock; | 52 | spinlock_t lock; |
@@ -83,6 +85,7 @@ struct orinoco_private { | |||
83 | unsigned int has_preamble:1; | 85 | unsigned int has_preamble:1; |
84 | unsigned int has_sensitivity:1; | 86 | unsigned int has_sensitivity:1; |
85 | unsigned int has_hostscan:1; | 87 | unsigned int has_hostscan:1; |
88 | unsigned int do_fw_download:1; | ||
86 | unsigned int broken_disableport:1; | 89 | unsigned int broken_disableport:1; |
87 | unsigned int broken_monitor:1; | 90 | unsigned int broken_monitor:1; |
88 | 91 | ||
@@ -130,8 +133,10 @@ extern int orinoco_debug; | |||
130 | /* Exported prototypes */ | 133 | /* Exported prototypes */ |
131 | /********************************************************************/ | 134 | /********************************************************************/ |
132 | 135 | ||
133 | extern struct net_device *alloc_orinocodev(int sizeof_card, | 136 | extern struct net_device *alloc_orinocodev( |
134 | int (*hard_reset)(struct orinoco_private *)); | 137 | int sizeof_card, struct device *device, |
138 | int (*hard_reset)(struct orinoco_private *), | ||
139 | int (*stop_fw)(struct orinoco_private *, int)); | ||
135 | extern void free_orinocodev(struct net_device *dev); | 140 | extern void free_orinocodev(struct net_device *dev); |
136 | extern int __orinoco_up(struct net_device *dev); | 141 | extern int __orinoco_up(struct net_device *dev); |
137 | extern int __orinoco_down(struct net_device *dev); | 142 | extern int __orinoco_down(struct net_device *dev); |