diff options
author | Pavel Roskin <proski@gnu.org> | 2011-07-13 11:19:57 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-15 13:38:31 -0400 |
commit | 933d594313a5928ffc5325d7bbb6e2383d79622e (patch) | |
tree | 08467734948e6969a7839fa066cb5b5fa27262bb /drivers | |
parent | 16c929df0895e6f52f4a0f17683d709f5fef95d8 (diff) |
orinoco: minor fixes for problems found by checkpatch.pl
Eliminate spaces before tabs. Eliminate typedefs. Add spaces around
operators.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
21 files changed, 155 insertions, 154 deletions
diff --git a/drivers/net/wireless/orinoco/airport.c b/drivers/net/wireless/orinoco/airport.c index 4a0a0e5265c9..0ca8b1455cd9 100644 --- a/drivers/net/wireless/orinoco/airport.c +++ b/drivers/net/wireless/orinoco/airport.c | |||
@@ -150,7 +150,7 @@ airport_attach(struct macio_dev *mdev, const struct of_device_id *match) | |||
150 | struct orinoco_private *priv; | 150 | struct orinoco_private *priv; |
151 | struct airport *card; | 151 | struct airport *card; |
152 | unsigned long phys_addr; | 152 | unsigned long phys_addr; |
153 | hermes_t *hw; | 153 | struct hermes *hw; |
154 | 154 | ||
155 | if (macio_resource_count(mdev) < 1 || macio_irq_count(mdev) < 1) { | 155 | if (macio_resource_count(mdev) < 1 || macio_irq_count(mdev) < 1) { |
156 | printk(KERN_ERR PFX "Wrong interrupt/addresses in OF tree\n"); | 156 | printk(KERN_ERR PFX "Wrong interrupt/addresses in OF tree\n"); |
@@ -228,10 +228,9 @@ MODULE_AUTHOR("Benjamin Herrenschmidt <benh@kernel.crashing.org>"); | |||
228 | MODULE_DESCRIPTION("Driver for the Apple Airport wireless card."); | 228 | MODULE_DESCRIPTION("Driver for the Apple Airport wireless card."); |
229 | MODULE_LICENSE("Dual MPL/GPL"); | 229 | MODULE_LICENSE("Dual MPL/GPL"); |
230 | 230 | ||
231 | static struct of_device_id airport_match[] = | 231 | static struct of_device_id airport_match[] = { |
232 | { | ||
233 | { | 232 | { |
234 | .name = "radio", | 233 | .name = "radio", |
235 | }, | 234 | }, |
236 | {}, | 235 | {}, |
237 | }; | 236 | }; |
@@ -240,7 +239,7 @@ MODULE_DEVICE_TABLE(of, airport_match); | |||
240 | 239 | ||
241 | static struct macio_driver airport_driver = { | 240 | static struct macio_driver airport_driver = { |
242 | .driver = { | 241 | .driver = { |
243 | .name = DRIVER_NAME, | 242 | .name = DRIVER_NAME, |
244 | .owner = THIS_MODULE, | 243 | .owner = THIS_MODULE, |
245 | .of_match_table = airport_match, | 244 | .of_match_table = airport_match, |
246 | }, | 245 | }, |
diff --git a/drivers/net/wireless/orinoco/cfg.c b/drivers/net/wireless/orinoco/cfg.c index 736bbb9bd1d0..f7b15b8934fa 100644 --- a/drivers/net/wireless/orinoco/cfg.c +++ b/drivers/net/wireless/orinoco/cfg.c | |||
@@ -59,7 +59,7 @@ int orinoco_wiphy_register(struct wiphy *wiphy) | |||
59 | for (i = 0; i < NUM_CHANNELS; i++) { | 59 | for (i = 0; i < NUM_CHANNELS; i++) { |
60 | if (priv->channel_mask & (1 << i)) { | 60 | if (priv->channel_mask & (1 << i)) { |
61 | priv->channels[i].center_freq = | 61 | priv->channels[i].center_freq = |
62 | ieee80211_dsss_chan_to_freq(i+1); | 62 | ieee80211_dsss_chan_to_freq(i + 1); |
63 | channels++; | 63 | channels++; |
64 | } | 64 | } |
65 | } | 65 | } |
@@ -182,7 +182,7 @@ static int orinoco_set_channel(struct wiphy *wiphy, | |||
182 | channel = ieee80211_freq_to_dsss_chan(chan->center_freq); | 182 | channel = ieee80211_freq_to_dsss_chan(chan->center_freq); |
183 | 183 | ||
184 | if ((channel < 1) || (channel > NUM_CHANNELS) || | 184 | if ((channel < 1) || (channel > NUM_CHANNELS) || |
185 | !(priv->channel_mask & (1 << (channel-1)))) | 185 | !(priv->channel_mask & (1 << (channel - 1)))) |
186 | return -EINVAL; | 186 | return -EINVAL; |
187 | 187 | ||
188 | if (orinoco_lock(priv, &flags) != 0) | 188 | if (orinoco_lock(priv, &flags) != 0) |
@@ -191,7 +191,7 @@ static int orinoco_set_channel(struct wiphy *wiphy, | |||
191 | priv->channel = channel; | 191 | priv->channel = channel; |
192 | if (priv->iw_mode == NL80211_IFTYPE_MONITOR) { | 192 | if (priv->iw_mode == NL80211_IFTYPE_MONITOR) { |
193 | /* Fast channel change - no commit if successful */ | 193 | /* Fast channel change - no commit if successful */ |
194 | hermes_t *hw = &priv->hw; | 194 | struct hermes *hw = &priv->hw; |
195 | err = hw->ops->cmd_wait(hw, HERMES_CMD_TEST | | 195 | err = hw->ops->cmd_wait(hw, HERMES_CMD_TEST | |
196 | HERMES_TEST_SET_CHANNEL, | 196 | HERMES_TEST_SET_CHANNEL, |
197 | channel, NULL); | 197 | channel, NULL); |
diff --git a/drivers/net/wireless/orinoco/fw.c b/drivers/net/wireless/orinoco/fw.c index 259d75853984..527cf5333db5 100644 --- a/drivers/net/wireless/orinoco/fw.c +++ b/drivers/net/wireless/orinoco/fw.c | |||
@@ -100,7 +100,7 @@ orinoco_dl_firmware(struct orinoco_private *priv, | |||
100 | /* Plug Data Area (PDA) */ | 100 | /* Plug Data Area (PDA) */ |
101 | __le16 *pda; | 101 | __le16 *pda; |
102 | 102 | ||
103 | hermes_t *hw = &priv->hw; | 103 | struct hermes *hw = &priv->hw; |
104 | const struct firmware *fw_entry; | 104 | const struct firmware *fw_entry; |
105 | const struct orinoco_fw_header *hdr; | 105 | const struct orinoco_fw_header *hdr; |
106 | const unsigned char *first_block; | 106 | const unsigned char *first_block; |
@@ -205,7 +205,7 @@ symbol_dl_image(struct orinoco_private *priv, const struct fw_info *fw, | |||
205 | const unsigned char *image, const void *end, | 205 | const unsigned char *image, const void *end, |
206 | int secondary) | 206 | int secondary) |
207 | { | 207 | { |
208 | hermes_t *hw = &priv->hw; | 208 | struct hermes *hw = &priv->hw; |
209 | int ret = 0; | 209 | int ret = 0; |
210 | const unsigned char *ptr; | 210 | const unsigned char *ptr; |
211 | const unsigned char *first_block; | 211 | const unsigned char *first_block; |
@@ -322,9 +322,8 @@ symbol_dl_firmware(struct orinoco_private *priv, | |||
322 | fw_entry->data + fw_entry->size, 1); | 322 | fw_entry->data + fw_entry->size, 1); |
323 | if (!orinoco_cached_fw_get(priv, false)) | 323 | if (!orinoco_cached_fw_get(priv, false)) |
324 | release_firmware(fw_entry); | 324 | release_firmware(fw_entry); |
325 | if (ret) { | 325 | if (ret) |
326 | dev_err(dev, "Secondary firmware download failed\n"); | 326 | dev_err(dev, "Secondary firmware download failed\n"); |
327 | } | ||
328 | 327 | ||
329 | return ret; | 328 | return ret; |
330 | } | 329 | } |
diff --git a/drivers/net/wireless/orinoco/fw.h b/drivers/net/wireless/orinoco/fw.h index 89fc26d25b06..aca63e3c4b5b 100644 --- a/drivers/net/wireless/orinoco/fw.h +++ b/drivers/net/wireless/orinoco/fw.h | |||
@@ -14,7 +14,7 @@ int orinoco_download(struct orinoco_private *priv); | |||
14 | void orinoco_cache_fw(struct orinoco_private *priv, int ap); | 14 | void orinoco_cache_fw(struct orinoco_private *priv, int ap); |
15 | void orinoco_uncache_fw(struct orinoco_private *priv); | 15 | void orinoco_uncache_fw(struct orinoco_private *priv); |
16 | #else | 16 | #else |
17 | #define orinoco_cache_fw(priv, ap) do { } while(0) | 17 | #define orinoco_cache_fw(priv, ap) do { } while (0) |
18 | #define orinoco_uncache_fw(priv) do { } while (0) | 18 | #define orinoco_uncache_fw(priv) do { } while (0) |
19 | #endif | 19 | #endif |
20 | 20 | ||
diff --git a/drivers/net/wireless/orinoco/hermes.c b/drivers/net/wireless/orinoco/hermes.c index 6c6a23e08df6..75c15bc7b34c 100644 --- a/drivers/net/wireless/orinoco/hermes.c +++ b/drivers/net/wireless/orinoco/hermes.c | |||
@@ -103,7 +103,7 @@ static const struct hermes_ops hermes_ops_local; | |||
103 | 103 | ||
104 | Callable from any context. | 104 | Callable from any context. |
105 | */ | 105 | */ |
106 | static int hermes_issue_cmd(hermes_t *hw, u16 cmd, u16 param0, | 106 | static int hermes_issue_cmd(struct hermes *hw, u16 cmd, u16 param0, |
107 | u16 param1, u16 param2) | 107 | u16 param1, u16 param2) |
108 | { | 108 | { |
109 | int k = CMD_BUSY_TIMEOUT; | 109 | int k = CMD_BUSY_TIMEOUT; |
@@ -132,7 +132,7 @@ static int hermes_issue_cmd(hermes_t *hw, u16 cmd, u16 param0, | |||
132 | */ | 132 | */ |
133 | 133 | ||
134 | /* For doing cmds that wipe the magic constant in SWSUPPORT0 */ | 134 | /* For doing cmds that wipe the magic constant in SWSUPPORT0 */ |
135 | static int hermes_doicmd_wait(hermes_t *hw, u16 cmd, | 135 | static int hermes_doicmd_wait(struct hermes *hw, u16 cmd, |
136 | u16 parm0, u16 parm1, u16 parm2, | 136 | u16 parm0, u16 parm1, u16 parm2, |
137 | struct hermes_response *resp) | 137 | struct hermes_response *resp) |
138 | { | 138 | { |
@@ -185,7 +185,8 @@ out: | |||
185 | return err; | 185 | return err; |
186 | } | 186 | } |
187 | 187 | ||
188 | void hermes_struct_init(hermes_t *hw, void __iomem *address, int reg_spacing) | 188 | void hermes_struct_init(struct hermes *hw, void __iomem *address, |
189 | int reg_spacing) | ||
189 | { | 190 | { |
190 | hw->iobase = address; | 191 | hw->iobase = address; |
191 | hw->reg_spacing = reg_spacing; | 192 | hw->reg_spacing = reg_spacing; |
@@ -195,7 +196,7 @@ void hermes_struct_init(hermes_t *hw, void __iomem *address, int reg_spacing) | |||
195 | } | 196 | } |
196 | EXPORT_SYMBOL(hermes_struct_init); | 197 | EXPORT_SYMBOL(hermes_struct_init); |
197 | 198 | ||
198 | static int hermes_init(hermes_t *hw) | 199 | static int hermes_init(struct hermes *hw) |
199 | { | 200 | { |
200 | u16 reg; | 201 | u16 reg; |
201 | int err = 0; | 202 | int err = 0; |
@@ -249,7 +250,7 @@ static int hermes_init(hermes_t *hw) | |||
249 | * > 0 on error returned by the firmware | 250 | * > 0 on error returned by the firmware |
250 | * | 251 | * |
251 | * Callable from any context, but locking is your problem. */ | 252 | * Callable from any context, but locking is your problem. */ |
252 | static int hermes_docmd_wait(hermes_t *hw, u16 cmd, u16 parm0, | 253 | static int hermes_docmd_wait(struct hermes *hw, u16 cmd, u16 parm0, |
253 | struct hermes_response *resp) | 254 | struct hermes_response *resp) |
254 | { | 255 | { |
255 | int err; | 256 | int err; |
@@ -313,7 +314,7 @@ static int hermes_docmd_wait(hermes_t *hw, u16 cmd, u16 parm0, | |||
313 | return err; | 314 | return err; |
314 | } | 315 | } |
315 | 316 | ||
316 | static int hermes_allocate(hermes_t *hw, u16 size, u16 *fid) | 317 | static int hermes_allocate(struct hermes *hw, u16 size, u16 *fid) |
317 | { | 318 | { |
318 | int err = 0; | 319 | int err = 0; |
319 | int k; | 320 | int k; |
@@ -363,7 +364,7 @@ static int hermes_allocate(hermes_t *hw, u16 size, u16 *fid) | |||
363 | * from firmware | 364 | * from firmware |
364 | * | 365 | * |
365 | * Callable from any context */ | 366 | * Callable from any context */ |
366 | static int hermes_bap_seek(hermes_t *hw, int bap, u16 id, u16 offset) | 367 | static int hermes_bap_seek(struct hermes *hw, int bap, u16 id, u16 offset) |
367 | { | 368 | { |
368 | int sreg = bap ? HERMES_SELECT1 : HERMES_SELECT0; | 369 | int sreg = bap ? HERMES_SELECT1 : HERMES_SELECT0; |
369 | int oreg = bap ? HERMES_OFFSET1 : HERMES_OFFSET0; | 370 | int oreg = bap ? HERMES_OFFSET1 : HERMES_OFFSET0; |
@@ -422,7 +423,7 @@ static int hermes_bap_seek(hermes_t *hw, int bap, u16 id, u16 offset) | |||
422 | * 0 on success | 423 | * 0 on success |
423 | * > 0 on error from firmware | 424 | * > 0 on error from firmware |
424 | */ | 425 | */ |
425 | static int hermes_bap_pread(hermes_t *hw, int bap, void *buf, int len, | 426 | static int hermes_bap_pread(struct hermes *hw, int bap, void *buf, int len, |
426 | u16 id, u16 offset) | 427 | u16 id, u16 offset) |
427 | { | 428 | { |
428 | int dreg = bap ? HERMES_DATA1 : HERMES_DATA0; | 429 | int dreg = bap ? HERMES_DATA1 : HERMES_DATA0; |
@@ -436,7 +437,7 @@ static int hermes_bap_pread(hermes_t *hw, int bap, void *buf, int len, | |||
436 | goto out; | 437 | goto out; |
437 | 438 | ||
438 | /* Actually do the transfer */ | 439 | /* Actually do the transfer */ |
439 | hermes_read_words(hw, dreg, buf, len/2); | 440 | hermes_read_words(hw, dreg, buf, len / 2); |
440 | 441 | ||
441 | out: | 442 | out: |
442 | return err; | 443 | return err; |
@@ -450,8 +451,8 @@ static int hermes_bap_pread(hermes_t *hw, int bap, void *buf, int len, | |||
450 | * 0 on success | 451 | * 0 on success |
451 | * > 0 on error from firmware | 452 | * > 0 on error from firmware |
452 | */ | 453 | */ |
453 | static int hermes_bap_pwrite(hermes_t *hw, int bap, const void *buf, int len, | 454 | static int hermes_bap_pwrite(struct hermes *hw, int bap, const void *buf, |
454 | u16 id, u16 offset) | 455 | int len, u16 id, u16 offset) |
455 | { | 456 | { |
456 | int dreg = bap ? HERMES_DATA1 : HERMES_DATA0; | 457 | int dreg = bap ? HERMES_DATA1 : HERMES_DATA0; |
457 | int err = 0; | 458 | int err = 0; |
@@ -478,8 +479,8 @@ static int hermes_bap_pwrite(hermes_t *hw, int bap, const void *buf, int len, | |||
478 | * practice. | 479 | * practice. |
479 | * | 480 | * |
480 | * Callable from user or bh context. */ | 481 | * Callable from user or bh context. */ |
481 | static int hermes_read_ltv(hermes_t *hw, int bap, u16 rid, unsigned bufsize, | 482 | static int hermes_read_ltv(struct hermes *hw, int bap, u16 rid, |
482 | u16 *length, void *buf) | 483 | unsigned bufsize, u16 *length, void *buf) |
483 | { | 484 | { |
484 | int err = 0; | 485 | int err = 0; |
485 | int dreg = bap ? HERMES_DATA1 : HERMES_DATA0; | 486 | int dreg = bap ? HERMES_DATA1 : HERMES_DATA0; |
@@ -523,7 +524,7 @@ static int hermes_read_ltv(hermes_t *hw, int bap, u16 rid, unsigned bufsize, | |||
523 | return 0; | 524 | return 0; |
524 | } | 525 | } |
525 | 526 | ||
526 | static int hermes_write_ltv(hermes_t *hw, int bap, u16 rid, | 527 | static int hermes_write_ltv(struct hermes *hw, int bap, u16 rid, |
527 | u16 length, const void *value) | 528 | u16 length, const void *value) |
528 | { | 529 | { |
529 | int dreg = bap ? HERMES_DATA1 : HERMES_DATA0; | 530 | int dreg = bap ? HERMES_DATA1 : HERMES_DATA0; |
@@ -553,14 +554,14 @@ static int hermes_write_ltv(hermes_t *hw, int bap, u16 rid, | |||
553 | /*** Hermes AUX control ***/ | 554 | /*** Hermes AUX control ***/ |
554 | 555 | ||
555 | static inline void | 556 | static inline void |
556 | hermes_aux_setaddr(hermes_t *hw, u32 addr) | 557 | hermes_aux_setaddr(struct hermes *hw, u32 addr) |
557 | { | 558 | { |
558 | hermes_write_reg(hw, HERMES_AUXPAGE, (u16) (addr >> 7)); | 559 | hermes_write_reg(hw, HERMES_AUXPAGE, (u16) (addr >> 7)); |
559 | hermes_write_reg(hw, HERMES_AUXOFFSET, (u16) (addr & 0x7F)); | 560 | hermes_write_reg(hw, HERMES_AUXOFFSET, (u16) (addr & 0x7F)); |
560 | } | 561 | } |
561 | 562 | ||
562 | static inline int | 563 | static inline int |
563 | hermes_aux_control(hermes_t *hw, int enabled) | 564 | hermes_aux_control(struct hermes *hw, int enabled) |
564 | { | 565 | { |
565 | int desired_state = enabled ? HERMES_AUX_ENABLED : HERMES_AUX_DISABLED; | 566 | int desired_state = enabled ? HERMES_AUX_ENABLED : HERMES_AUX_DISABLED; |
566 | int action = enabled ? HERMES_AUX_ENABLE : HERMES_AUX_DISABLE; | 567 | int action = enabled ? HERMES_AUX_ENABLE : HERMES_AUX_DISABLE; |
@@ -594,7 +595,7 @@ hermes_aux_control(hermes_t *hw, int enabled) | |||
594 | * wl_lkm Agere fw does | 595 | * wl_lkm Agere fw does |
595 | * Don't know about intersil | 596 | * Don't know about intersil |
596 | */ | 597 | */ |
597 | static int hermesi_program_init(hermes_t *hw, u32 offset) | 598 | static int hermesi_program_init(struct hermes *hw, u32 offset) |
598 | { | 599 | { |
599 | int err; | 600 | int err; |
600 | 601 | ||
@@ -643,7 +644,7 @@ static int hermesi_program_init(hermes_t *hw, u32 offset) | |||
643 | * wl_lkm Agere fw does | 644 | * wl_lkm Agere fw does |
644 | * Don't know about intersil | 645 | * Don't know about intersil |
645 | */ | 646 | */ |
646 | static int hermesi_program_end(hermes_t *hw) | 647 | static int hermesi_program_end(struct hermes *hw) |
647 | { | 648 | { |
648 | struct hermes_response resp; | 649 | struct hermes_response resp; |
649 | int rc = 0; | 650 | int rc = 0; |
@@ -684,7 +685,8 @@ static int hermes_program_bytes(struct hermes *hw, const char *data, | |||
684 | } | 685 | } |
685 | 686 | ||
686 | /* Read PDA from the adapter */ | 687 | /* Read PDA from the adapter */ |
687 | static int hermes_read_pda(hermes_t *hw, __le16 *pda, u32 pda_addr, u16 pda_len) | 688 | static int hermes_read_pda(struct hermes *hw, __le16 *pda, u32 pda_addr, |
689 | u16 pda_len) | ||
688 | { | 690 | { |
689 | int ret; | 691 | int ret; |
690 | u16 pda_size; | 692 | u16 pda_size; |
diff --git a/drivers/net/wireless/orinoco/hermes.h b/drivers/net/wireless/orinoco/hermes.h index d9f18c11682a..28a42448d329 100644 --- a/drivers/net/wireless/orinoco/hermes.h +++ b/drivers/net/wireless/orinoco/hermes.h | |||
@@ -28,7 +28,7 @@ | |||
28 | * | 28 | * |
29 | * As a module of low level hardware access routines, there is no | 29 | * As a module of low level hardware access routines, there is no |
30 | * locking. Users of this module should ensure that they serialize | 30 | * locking. Users of this module should ensure that they serialize |
31 | * access to the hermes_t structure, and to the hardware | 31 | * access to the hermes structure, and to the hardware |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #include <linux/if_ether.h> | 34 | #include <linux/if_ether.h> |
@@ -43,7 +43,7 @@ | |||
43 | #define HERMES_BAP_DATALEN_MAX (4096) | 43 | #define HERMES_BAP_DATALEN_MAX (4096) |
44 | #define HERMES_BAP_OFFSET_MAX (4096) | 44 | #define HERMES_BAP_OFFSET_MAX (4096) |
45 | #define HERMES_PORTID_MAX (7) | 45 | #define HERMES_PORTID_MAX (7) |
46 | #define HERMES_NUMPORTS_MAX (HERMES_PORTID_MAX+1) | 46 | #define HERMES_NUMPORTS_MAX (HERMES_PORTID_MAX + 1) |
47 | #define HERMES_PDR_LEN_MAX (260) /* in bytes, from EK */ | 47 | #define HERMES_PDR_LEN_MAX (260) /* in bytes, from EK */ |
48 | #define HERMES_PDA_RECS_MAX (200) /* a guess */ | 48 | #define HERMES_PDA_RECS_MAX (200) /* a guess */ |
49 | #define HERMES_PDA_LEN_MAX (1024) /* in bytes, from EK */ | 49 | #define HERMES_PDA_LEN_MAX (1024) /* in bytes, from EK */ |
@@ -148,7 +148,7 @@ | |||
148 | #define HERMES_CMD_WRITEMIF (0x0031) | 148 | #define HERMES_CMD_WRITEMIF (0x0031) |
149 | 149 | ||
150 | /*--- Debugging Commands -----------------------------*/ | 150 | /*--- Debugging Commands -----------------------------*/ |
151 | #define HERMES_CMD_TEST (0x0038) | 151 | #define HERMES_CMD_TEST (0x0038) |
152 | 152 | ||
153 | 153 | ||
154 | /* Test command arguments */ | 154 | /* Test command arguments */ |
@@ -178,8 +178,8 @@ | |||
178 | 178 | ||
179 | #define HERMES_DESCRIPTOR_OFFSET 0 | 179 | #define HERMES_DESCRIPTOR_OFFSET 0 |
180 | #define HERMES_802_11_OFFSET (14) | 180 | #define HERMES_802_11_OFFSET (14) |
181 | #define HERMES_802_3_OFFSET (14+32) | 181 | #define HERMES_802_3_OFFSET (14 + 32) |
182 | #define HERMES_802_2_OFFSET (14+32+14) | 182 | #define HERMES_802_2_OFFSET (14 + 32 + 14) |
183 | #define HERMES_TXCNTL2_OFFSET (HERMES_802_3_OFFSET - 2) | 183 | #define HERMES_TXCNTL2_OFFSET (HERMES_802_3_OFFSET - 2) |
184 | 184 | ||
185 | #define HERMES_RXSTAT_ERR (0x0003) | 185 | #define HERMES_RXSTAT_ERR (0x0003) |
@@ -406,7 +406,7 @@ struct hermes_ops { | |||
406 | }; | 406 | }; |
407 | 407 | ||
408 | /* Basic control structure */ | 408 | /* Basic control structure */ |
409 | typedef struct hermes { | 409 | struct hermes { |
410 | void __iomem *iobase; | 410 | void __iomem *iobase; |
411 | int reg_spacing; | 411 | int reg_spacing; |
412 | #define HERMES_16BIT_REGSPACING 0 | 412 | #define HERMES_16BIT_REGSPACING 0 |
@@ -415,7 +415,7 @@ typedef struct hermes { | |||
415 | bool eeprom_pda; | 415 | bool eeprom_pda; |
416 | const struct hermes_ops *ops; | 416 | const struct hermes_ops *ops; |
417 | void *priv; | 417 | void *priv; |
418 | } hermes_t; | 418 | }; |
419 | 419 | ||
420 | /* Register access convenience macros */ | 420 | /* Register access convenience macros */ |
421 | #define hermes_read_reg(hw, off) \ | 421 | #define hermes_read_reg(hw, off) \ |
@@ -427,28 +427,29 @@ typedef struct hermes { | |||
427 | hermes_write_reg((hw), HERMES_##name, (val)) | 427 | hermes_write_reg((hw), HERMES_##name, (val)) |
428 | 428 | ||
429 | /* Function prototypes */ | 429 | /* Function prototypes */ |
430 | void hermes_struct_init(hermes_t *hw, void __iomem *address, int reg_spacing); | 430 | void hermes_struct_init(struct hermes *hw, void __iomem *address, |
431 | int reg_spacing); | ||
431 | 432 | ||
432 | /* Inline functions */ | 433 | /* Inline functions */ |
433 | 434 | ||
434 | static inline int hermes_present(hermes_t *hw) | 435 | static inline int hermes_present(struct hermes *hw) |
435 | { | 436 | { |
436 | return hermes_read_regn(hw, SWSUPPORT0) == HERMES_MAGIC; | 437 | return hermes_read_regn(hw, SWSUPPORT0) == HERMES_MAGIC; |
437 | } | 438 | } |
438 | 439 | ||
439 | static inline void hermes_set_irqmask(hermes_t *hw, u16 events) | 440 | static inline void hermes_set_irqmask(struct hermes *hw, u16 events) |
440 | { | 441 | { |
441 | hw->inten = events; | 442 | hw->inten = events; |
442 | hermes_write_regn(hw, INTEN, events); | 443 | hermes_write_regn(hw, INTEN, events); |
443 | } | 444 | } |
444 | 445 | ||
445 | static inline int hermes_enable_port(hermes_t *hw, int port) | 446 | static inline int hermes_enable_port(struct hermes *hw, int port) |
446 | { | 447 | { |
447 | return hw->ops->cmd_wait(hw, HERMES_CMD_ENABLE | (port << 8), | 448 | return hw->ops->cmd_wait(hw, HERMES_CMD_ENABLE | (port << 8), |
448 | 0, NULL); | 449 | 0, NULL); |
449 | } | 450 | } |
450 | 451 | ||
451 | static inline int hermes_disable_port(hermes_t *hw, int port) | 452 | static inline int hermes_disable_port(struct hermes *hw, int port) |
452 | { | 453 | { |
453 | return hw->ops->cmd_wait(hw, HERMES_CMD_DISABLE | (port << 8), | 454 | return hw->ops->cmd_wait(hw, HERMES_CMD_DISABLE | (port << 8), |
454 | 0, NULL); | 455 | 0, NULL); |
@@ -456,13 +457,13 @@ static inline int hermes_disable_port(hermes_t *hw, int port) | |||
456 | 457 | ||
457 | /* Initiate an INQUIRE command (tallies or scan). The result will come as an | 458 | /* Initiate an INQUIRE command (tallies or scan). The result will come as an |
458 | * information frame in __orinoco_ev_info() */ | 459 | * information frame in __orinoco_ev_info() */ |
459 | static inline int hermes_inquire(hermes_t *hw, u16 rid) | 460 | static inline int hermes_inquire(struct hermes *hw, u16 rid) |
460 | { | 461 | { |
461 | return hw->ops->cmd_wait(hw, HERMES_CMD_INQUIRE, rid, NULL); | 462 | return hw->ops->cmd_wait(hw, HERMES_CMD_INQUIRE, rid, NULL); |
462 | } | 463 | } |
463 | 464 | ||
464 | #define HERMES_BYTES_TO_RECLEN(n) ((((n)+1)/2) + 1) | 465 | #define HERMES_BYTES_TO_RECLEN(n) ((((n) + 1) / 2) + 1) |
465 | #define HERMES_RECLEN_TO_BYTES(n) (((n)-1) * 2) | 466 | #define HERMES_RECLEN_TO_BYTES(n) (((n) - 1) * 2) |
466 | 467 | ||
467 | /* Note that for the next two, the count is in 16-bit words, not bytes */ | 468 | /* Note that for the next two, the count is in 16-bit words, not bytes */ |
468 | static inline void hermes_read_words(struct hermes *hw, int off, | 469 | static inline void hermes_read_words(struct hermes *hw, int off, |
@@ -498,7 +499,8 @@ static inline void hermes_clear_words(struct hermes *hw, int off, | |||
498 | (hw->ops->write_ltv((hw), (bap), (rid), \ | 499 | (hw->ops->write_ltv((hw), (bap), (rid), \ |
499 | HERMES_BYTES_TO_RECLEN(sizeof(*buf)), (buf))) | 500 | HERMES_BYTES_TO_RECLEN(sizeof(*buf)), (buf))) |
500 | 501 | ||
501 | static inline int hermes_read_wordrec(hermes_t *hw, int bap, u16 rid, u16 *word) | 502 | static inline int hermes_read_wordrec(struct hermes *hw, int bap, u16 rid, |
503 | u16 *word) | ||
502 | { | 504 | { |
503 | __le16 rec; | 505 | __le16 rec; |
504 | int err; | 506 | int err; |
@@ -508,7 +510,8 @@ static inline int hermes_read_wordrec(hermes_t *hw, int bap, u16 rid, u16 *word) | |||
508 | return err; | 510 | return err; |
509 | } | 511 | } |
510 | 512 | ||
511 | static inline int hermes_write_wordrec(hermes_t *hw, int bap, u16 rid, u16 word) | 513 | static inline int hermes_write_wordrec(struct hermes *hw, int bap, u16 rid, |
514 | u16 word) | ||
512 | { | 515 | { |
513 | __le16 rec = cpu_to_le16(word); | 516 | __le16 rec = cpu_to_le16(word); |
514 | return HERMES_WRITE_RECORD(hw, bap, rid, &rec); | 517 | return HERMES_WRITE_RECORD(hw, bap, rid, &rec); |
diff --git a/drivers/net/wireless/orinoco/hermes_dld.c b/drivers/net/wireless/orinoco/hermes_dld.c index 2b2b9a1a979c..4a10b7aca043 100644 --- a/drivers/net/wireless/orinoco/hermes_dld.c +++ b/drivers/net/wireless/orinoco/hermes_dld.c | |||
@@ -193,7 +193,7 @@ hermes_find_pdi(const struct pdi *first_pdi, u32 record_id, const void *end) | |||
193 | 193 | ||
194 | /* Process one Plug Data Item - find corresponding PDR and plug it */ | 194 | /* Process one Plug Data Item - find corresponding PDR and plug it */ |
195 | static int | 195 | static int |
196 | hermes_plug_pdi(hermes_t *hw, const struct pdr *first_pdr, | 196 | hermes_plug_pdi(struct hermes *hw, const struct pdr *first_pdr, |
197 | const struct pdi *pdi, const void *pdr_end) | 197 | const struct pdi *pdi, const void *pdr_end) |
198 | { | 198 | { |
199 | const struct pdr *pdr; | 199 | const struct pdr *pdr; |
@@ -220,7 +220,7 @@ hermes_plug_pdi(hermes_t *hw, const struct pdr *first_pdr, | |||
220 | * Attempt to write every records that is in the specified pda | 220 | * Attempt to write every records that is in the specified pda |
221 | * which also has a valid production data record for the firmware. | 221 | * which also has a valid production data record for the firmware. |
222 | */ | 222 | */ |
223 | int hermes_apply_pda(hermes_t *hw, | 223 | int hermes_apply_pda(struct hermes *hw, |
224 | const char *first_pdr, | 224 | const char *first_pdr, |
225 | const void *pdr_end, | 225 | const void *pdr_end, |
226 | const __le16 *pda, | 226 | const __le16 *pda, |
@@ -274,7 +274,7 @@ hermes_blocks_length(const char *first_block, const void *end) | |||
274 | /*** Hermes programming ***/ | 274 | /*** Hermes programming ***/ |
275 | 275 | ||
276 | /* Program the data blocks */ | 276 | /* Program the data blocks */ |
277 | int hermes_program(hermes_t *hw, const char *first_block, const void *end) | 277 | int hermes_program(struct hermes *hw, const char *first_block, const void *end) |
278 | { | 278 | { |
279 | const struct dblock *blk; | 279 | const struct dblock *blk; |
280 | u32 blkaddr; | 280 | u32 blkaddr; |
@@ -387,7 +387,7 @@ DEFINE_DEFAULT_PDR(0x0161, 256, | |||
387 | * | 387 | * |
388 | * For certain records, use defaults if they are not found in pda. | 388 | * For certain records, use defaults if they are not found in pda. |
389 | */ | 389 | */ |
390 | int hermes_apply_pda_with_defaults(hermes_t *hw, | 390 | int hermes_apply_pda_with_defaults(struct hermes *hw, |
391 | const char *first_pdr, | 391 | const char *first_pdr, |
392 | const void *pdr_end, | 392 | const void *pdr_end, |
393 | const __le16 *pda, | 393 | const __le16 *pda, |
diff --git a/drivers/net/wireless/orinoco/hermes_dld.h b/drivers/net/wireless/orinoco/hermes_dld.h index 583a5bcf9175..b5377e232c63 100644 --- a/drivers/net/wireless/orinoco/hermes_dld.h +++ b/drivers/net/wireless/orinoco/hermes_dld.h | |||
@@ -27,21 +27,21 @@ | |||
27 | 27 | ||
28 | #include "hermes.h" | 28 | #include "hermes.h" |
29 | 29 | ||
30 | int hermesi_program_init(hermes_t *hw, u32 offset); | 30 | int hermesi_program_init(struct hermes *hw, u32 offset); |
31 | int hermesi_program_end(hermes_t *hw); | 31 | int hermesi_program_end(struct hermes *hw); |
32 | int hermes_program(hermes_t *hw, const char *first_block, const void *end); | 32 | int hermes_program(struct hermes *hw, const char *first_block, const void *end); |
33 | 33 | ||
34 | int hermes_read_pda(hermes_t *hw, | 34 | int hermes_read_pda(struct hermes *hw, |
35 | __le16 *pda, | 35 | __le16 *pda, |
36 | u32 pda_addr, | 36 | u32 pda_addr, |
37 | u16 pda_len, | 37 | u16 pda_len, |
38 | int use_eeprom); | 38 | int use_eeprom); |
39 | int hermes_apply_pda(hermes_t *hw, | 39 | int hermes_apply_pda(struct hermes *hw, |
40 | const char *first_pdr, | 40 | const char *first_pdr, |
41 | const void *pdr_end, | 41 | const void *pdr_end, |
42 | const __le16 *pda, | 42 | const __le16 *pda, |
43 | const void *pda_end); | 43 | const void *pda_end); |
44 | int hermes_apply_pda_with_defaults(hermes_t *hw, | 44 | int hermes_apply_pda_with_defaults(struct hermes *hw, |
45 | const char *first_pdr, | 45 | const char *first_pdr, |
46 | const void *pdr_end, | 46 | const void *pdr_end, |
47 | const __le16 *pda, | 47 | const __le16 *pda, |
diff --git a/drivers/net/wireless/orinoco/hw.c b/drivers/net/wireless/orinoco/hw.c index 3c7877a7c31c..c09c8437c0b8 100644 --- a/drivers/net/wireless/orinoco/hw.c +++ b/drivers/net/wireless/orinoco/hw.c | |||
@@ -47,7 +47,7 @@ struct comp_id { | |||
47 | u16 id, variant, major, minor; | 47 | u16 id, variant, major, minor; |
48 | } __packed; | 48 | } __packed; |
49 | 49 | ||
50 | static inline fwtype_t determine_firmware_type(struct comp_id *nic_id) | 50 | static inline enum fwtype determine_firmware_type(struct comp_id *nic_id) |
51 | { | 51 | { |
52 | if (nic_id->id < 0x8000) | 52 | if (nic_id->id < 0x8000) |
53 | return FIRMWARE_TYPE_AGERE; | 53 | return FIRMWARE_TYPE_AGERE; |
@@ -71,11 +71,11 @@ int determine_fw_capabilities(struct orinoco_private *priv, | |||
71 | u32 *hw_ver) | 71 | u32 *hw_ver) |
72 | { | 72 | { |
73 | struct device *dev = priv->dev; | 73 | struct device *dev = priv->dev; |
74 | hermes_t *hw = &priv->hw; | 74 | struct hermes *hw = &priv->hw; |
75 | int err; | 75 | int err; |
76 | struct comp_id nic_id, sta_id; | 76 | struct comp_id nic_id, sta_id; |
77 | unsigned int firmver; | 77 | unsigned int firmver; |
78 | char tmp[SYMBOL_MAX_VER_LEN+1] __attribute__((aligned(2))); | 78 | char tmp[SYMBOL_MAX_VER_LEN + 1] __attribute__((aligned(2))); |
79 | 79 | ||
80 | /* Get the hardware version */ | 80 | /* Get the hardware version */ |
81 | err = HERMES_READ_RECORD(hw, USER_BAP, HERMES_RID_NICID, &nic_id); | 81 | err = HERMES_READ_RECORD(hw, USER_BAP, HERMES_RID_NICID, &nic_id); |
@@ -280,7 +280,7 @@ int orinoco_hw_read_card_settings(struct orinoco_private *priv, u8 *dev_addr) | |||
280 | { | 280 | { |
281 | struct device *dev = priv->dev; | 281 | struct device *dev = priv->dev; |
282 | struct hermes_idstring nickbuf; | 282 | struct hermes_idstring nickbuf; |
283 | hermes_t *hw = &priv->hw; | 283 | struct hermes *hw = &priv->hw; |
284 | int len; | 284 | int len; |
285 | int err; | 285 | int err; |
286 | u16 reclen; | 286 | u16 reclen; |
@@ -458,7 +458,7 @@ int orinoco_hw_program_rids(struct orinoco_private *priv) | |||
458 | { | 458 | { |
459 | struct net_device *dev = priv->ndev; | 459 | struct net_device *dev = priv->ndev; |
460 | struct wireless_dev *wdev = netdev_priv(dev); | 460 | struct wireless_dev *wdev = netdev_priv(dev); |
461 | hermes_t *hw = &priv->hw; | 461 | struct hermes *hw = &priv->hw; |
462 | int err; | 462 | int err; |
463 | struct hermes_idstring idbuf; | 463 | struct hermes_idstring idbuf; |
464 | 464 | ||
@@ -529,7 +529,7 @@ int orinoco_hw_program_rids(struct orinoco_private *priv) | |||
529 | memcpy(&idbuf.val, priv->desired_essid, sizeof(idbuf.val)); | 529 | memcpy(&idbuf.val, priv->desired_essid, sizeof(idbuf.val)); |
530 | /* WinXP wants partner to configure OWNSSID even in IBSS mode. (jimc) */ | 530 | /* WinXP wants partner to configure OWNSSID even in IBSS mode. (jimc) */ |
531 | err = hw->ops->write_ltv(hw, USER_BAP, HERMES_RID_CNFOWNSSID, | 531 | err = hw->ops->write_ltv(hw, USER_BAP, HERMES_RID_CNFOWNSSID, |
532 | HERMES_BYTES_TO_RECLEN(strlen(priv->desired_essid)+2), | 532 | HERMES_BYTES_TO_RECLEN(strlen(priv->desired_essid) + 2), |
533 | &idbuf); | 533 | &idbuf); |
534 | if (err) { | 534 | if (err) { |
535 | printk(KERN_ERR "%s: Error %d setting OWNSSID\n", | 535 | printk(KERN_ERR "%s: Error %d setting OWNSSID\n", |
@@ -537,7 +537,7 @@ int orinoco_hw_program_rids(struct orinoco_private *priv) | |||
537 | return err; | 537 | return err; |
538 | } | 538 | } |
539 | err = hw->ops->write_ltv(hw, USER_BAP, HERMES_RID_CNFDESIREDSSID, | 539 | err = hw->ops->write_ltv(hw, USER_BAP, HERMES_RID_CNFDESIREDSSID, |
540 | HERMES_BYTES_TO_RECLEN(strlen(priv->desired_essid)+2), | 540 | HERMES_BYTES_TO_RECLEN(strlen(priv->desired_essid) + 2), |
541 | &idbuf); | 541 | &idbuf); |
542 | if (err) { | 542 | if (err) { |
543 | printk(KERN_ERR "%s: Error %d setting DESIREDSSID\n", | 543 | printk(KERN_ERR "%s: Error %d setting DESIREDSSID\n", |
@@ -549,7 +549,7 @@ int orinoco_hw_program_rids(struct orinoco_private *priv) | |||
549 | idbuf.len = cpu_to_le16(strlen(priv->nick)); | 549 | idbuf.len = cpu_to_le16(strlen(priv->nick)); |
550 | memcpy(&idbuf.val, priv->nick, sizeof(idbuf.val)); | 550 | memcpy(&idbuf.val, priv->nick, sizeof(idbuf.val)); |
551 | err = hw->ops->write_ltv(hw, USER_BAP, HERMES_RID_CNFOWNNAME, | 551 | err = hw->ops->write_ltv(hw, USER_BAP, HERMES_RID_CNFOWNNAME, |
552 | HERMES_BYTES_TO_RECLEN(strlen(priv->nick)+2), | 552 | HERMES_BYTES_TO_RECLEN(strlen(priv->nick) + 2), |
553 | &idbuf); | 553 | &idbuf); |
554 | if (err) { | 554 | if (err) { |
555 | printk(KERN_ERR "%s: Error %d setting nickname\n", | 555 | printk(KERN_ERR "%s: Error %d setting nickname\n", |
@@ -689,7 +689,7 @@ int orinoco_hw_program_rids(struct orinoco_private *priv) | |||
689 | /* Get tsc from the firmware */ | 689 | /* Get tsc from the firmware */ |
690 | int orinoco_hw_get_tkip_iv(struct orinoco_private *priv, int key, u8 *tsc) | 690 | int orinoco_hw_get_tkip_iv(struct orinoco_private *priv, int key, u8 *tsc) |
691 | { | 691 | { |
692 | hermes_t *hw = &priv->hw; | 692 | struct hermes *hw = &priv->hw; |
693 | int err = 0; | 693 | int err = 0; |
694 | u8 tsc_arr[4][ORINOCO_SEQ_LEN]; | 694 | u8 tsc_arr[4][ORINOCO_SEQ_LEN]; |
695 | 695 | ||
@@ -706,7 +706,7 @@ int orinoco_hw_get_tkip_iv(struct orinoco_private *priv, int key, u8 *tsc) | |||
706 | 706 | ||
707 | int __orinoco_hw_set_bitrate(struct orinoco_private *priv) | 707 | int __orinoco_hw_set_bitrate(struct orinoco_private *priv) |
708 | { | 708 | { |
709 | hermes_t *hw = &priv->hw; | 709 | struct hermes *hw = &priv->hw; |
710 | int ratemode = priv->bitratemode; | 710 | int ratemode = priv->bitratemode; |
711 | int err = 0; | 711 | int err = 0; |
712 | 712 | ||
@@ -737,7 +737,7 @@ int __orinoco_hw_set_bitrate(struct orinoco_private *priv) | |||
737 | 737 | ||
738 | int orinoco_hw_get_act_bitrate(struct orinoco_private *priv, int *bitrate) | 738 | int orinoco_hw_get_act_bitrate(struct orinoco_private *priv, int *bitrate) |
739 | { | 739 | { |
740 | hermes_t *hw = &priv->hw; | 740 | struct hermes *hw = &priv->hw; |
741 | int i; | 741 | int i; |
742 | int err = 0; | 742 | int err = 0; |
743 | u16 val; | 743 | u16 val; |
@@ -786,7 +786,7 @@ int __orinoco_hw_set_wap(struct orinoco_private *priv) | |||
786 | { | 786 | { |
787 | int roaming_flag; | 787 | int roaming_flag; |
788 | int err = 0; | 788 | int err = 0; |
789 | hermes_t *hw = &priv->hw; | 789 | struct hermes *hw = &priv->hw; |
790 | 790 | ||
791 | switch (priv->firmware_type) { | 791 | switch (priv->firmware_type) { |
792 | case FIRMWARE_TYPE_AGERE: | 792 | case FIRMWARE_TYPE_AGERE: |
@@ -818,7 +818,7 @@ int __orinoco_hw_set_wap(struct orinoco_private *priv) | |||
818 | * which is needed for 802.1x implementations. */ | 818 | * which is needed for 802.1x implementations. */ |
819 | int __orinoco_hw_setup_wepkeys(struct orinoco_private *priv) | 819 | int __orinoco_hw_setup_wepkeys(struct orinoco_private *priv) |
820 | { | 820 | { |
821 | hermes_t *hw = &priv->hw; | 821 | struct hermes *hw = &priv->hw; |
822 | int err = 0; | 822 | int err = 0; |
823 | int i; | 823 | int i; |
824 | 824 | ||
@@ -902,7 +902,7 @@ int __orinoco_hw_setup_wepkeys(struct orinoco_private *priv) | |||
902 | 902 | ||
903 | int __orinoco_hw_setup_enc(struct orinoco_private *priv) | 903 | int __orinoco_hw_setup_enc(struct orinoco_private *priv) |
904 | { | 904 | { |
905 | hermes_t *hw = &priv->hw; | 905 | struct hermes *hw = &priv->hw; |
906 | int err = 0; | 906 | int err = 0; |
907 | int master_wep_flag; | 907 | int master_wep_flag; |
908 | int auth_flag; | 908 | int auth_flag; |
@@ -999,7 +999,7 @@ int __orinoco_hw_set_tkip_key(struct orinoco_private *priv, int key_idx, | |||
999 | u8 rx_mic[MIC_KEYLEN]; | 999 | u8 rx_mic[MIC_KEYLEN]; |
1000 | u8 tsc[ORINOCO_SEQ_LEN]; | 1000 | u8 tsc[ORINOCO_SEQ_LEN]; |
1001 | } __packed buf; | 1001 | } __packed buf; |
1002 | hermes_t *hw = &priv->hw; | 1002 | struct hermes *hw = &priv->hw; |
1003 | int ret; | 1003 | int ret; |
1004 | int err; | 1004 | int err; |
1005 | int k; | 1005 | int k; |
@@ -1052,7 +1052,7 @@ int __orinoco_hw_set_tkip_key(struct orinoco_private *priv, int key_idx, | |||
1052 | 1052 | ||
1053 | int orinoco_clear_tkip_key(struct orinoco_private *priv, int key_idx) | 1053 | int orinoco_clear_tkip_key(struct orinoco_private *priv, int key_idx) |
1054 | { | 1054 | { |
1055 | hermes_t *hw = &priv->hw; | 1055 | struct hermes *hw = &priv->hw; |
1056 | int err; | 1056 | int err; |
1057 | 1057 | ||
1058 | err = hermes_write_wordrec(hw, USER_BAP, | 1058 | err = hermes_write_wordrec(hw, USER_BAP, |
@@ -1068,7 +1068,7 @@ int __orinoco_hw_set_multicast_list(struct orinoco_private *priv, | |||
1068 | struct net_device *dev, | 1068 | struct net_device *dev, |
1069 | int mc_count, int promisc) | 1069 | int mc_count, int promisc) |
1070 | { | 1070 | { |
1071 | hermes_t *hw = &priv->hw; | 1071 | struct hermes *hw = &priv->hw; |
1072 | int err = 0; | 1072 | int err = 0; |
1073 | 1073 | ||
1074 | if (promisc != priv->promiscuous) { | 1074 | if (promisc != priv->promiscuous) { |
@@ -1111,9 +1111,9 @@ int __orinoco_hw_set_multicast_list(struct orinoco_private *priv, | |||
1111 | 1111 | ||
1112 | /* Return : < 0 -> error code ; >= 0 -> length */ | 1112 | /* Return : < 0 -> error code ; >= 0 -> length */ |
1113 | int orinoco_hw_get_essid(struct orinoco_private *priv, int *active, | 1113 | int orinoco_hw_get_essid(struct orinoco_private *priv, int *active, |
1114 | char buf[IW_ESSID_MAX_SIZE+1]) | 1114 | char buf[IW_ESSID_MAX_SIZE + 1]) |
1115 | { | 1115 | { |
1116 | hermes_t *hw = &priv->hw; | 1116 | struct hermes *hw = &priv->hw; |
1117 | int err = 0; | 1117 | int err = 0; |
1118 | struct hermes_idstring essidbuf; | 1118 | struct hermes_idstring essidbuf; |
1119 | char *p = (char *)(&essidbuf.val); | 1119 | char *p = (char *)(&essidbuf.val); |
@@ -1166,7 +1166,7 @@ int orinoco_hw_get_essid(struct orinoco_private *priv, int *active, | |||
1166 | 1166 | ||
1167 | int orinoco_hw_get_freq(struct orinoco_private *priv) | 1167 | int orinoco_hw_get_freq(struct orinoco_private *priv) |
1168 | { | 1168 | { |
1169 | hermes_t *hw = &priv->hw; | 1169 | struct hermes *hw = &priv->hw; |
1170 | int err = 0; | 1170 | int err = 0; |
1171 | u16 channel; | 1171 | u16 channel; |
1172 | int freq = 0; | 1172 | int freq = 0; |
@@ -1206,7 +1206,7 @@ int orinoco_hw_get_freq(struct orinoco_private *priv) | |||
1206 | int orinoco_hw_get_bitratelist(struct orinoco_private *priv, | 1206 | int orinoco_hw_get_bitratelist(struct orinoco_private *priv, |
1207 | int *numrates, s32 *rates, int max) | 1207 | int *numrates, s32 *rates, int max) |
1208 | { | 1208 | { |
1209 | hermes_t *hw = &priv->hw; | 1209 | struct hermes *hw = &priv->hw; |
1210 | struct hermes_idstring list; | 1210 | struct hermes_idstring list; |
1211 | unsigned char *p = (unsigned char *)&list.val; | 1211 | unsigned char *p = (unsigned char *)&list.val; |
1212 | int err = 0; | 1212 | int err = 0; |
@@ -1238,7 +1238,7 @@ int orinoco_hw_trigger_scan(struct orinoco_private *priv, | |||
1238 | const struct cfg80211_ssid *ssid) | 1238 | const struct cfg80211_ssid *ssid) |
1239 | { | 1239 | { |
1240 | struct net_device *dev = priv->ndev; | 1240 | struct net_device *dev = priv->ndev; |
1241 | hermes_t *hw = &priv->hw; | 1241 | struct hermes *hw = &priv->hw; |
1242 | unsigned long flags; | 1242 | unsigned long flags; |
1243 | int err = 0; | 1243 | int err = 0; |
1244 | 1244 | ||
@@ -1323,7 +1323,7 @@ int orinoco_hw_trigger_scan(struct orinoco_private *priv, | |||
1323 | int orinoco_hw_disassociate(struct orinoco_private *priv, | 1323 | int orinoco_hw_disassociate(struct orinoco_private *priv, |
1324 | u8 *addr, u16 reason_code) | 1324 | u8 *addr, u16 reason_code) |
1325 | { | 1325 | { |
1326 | hermes_t *hw = &priv->hw; | 1326 | struct hermes *hw = &priv->hw; |
1327 | int err; | 1327 | int err; |
1328 | 1328 | ||
1329 | struct { | 1329 | struct { |
@@ -1346,7 +1346,7 @@ int orinoco_hw_disassociate(struct orinoco_private *priv, | |||
1346 | int orinoco_hw_get_current_bssid(struct orinoco_private *priv, | 1346 | int orinoco_hw_get_current_bssid(struct orinoco_private *priv, |
1347 | u8 *addr) | 1347 | u8 *addr) |
1348 | { | 1348 | { |
1349 | hermes_t *hw = &priv->hw; | 1349 | struct hermes *hw = &priv->hw; |
1350 | int err; | 1350 | int err; |
1351 | 1351 | ||
1352 | err = hw->ops->read_ltv(hw, USER_BAP, HERMES_RID_CURRENTBSSID, | 1352 | err = hw->ops->read_ltv(hw, USER_BAP, HERMES_RID_CURRENTBSSID, |
diff --git a/drivers/net/wireless/orinoco/hw.h b/drivers/net/wireless/orinoco/hw.h index 97af71e79950..8f6831f4e328 100644 --- a/drivers/net/wireless/orinoco/hw.h +++ b/drivers/net/wireless/orinoco/hw.h | |||
@@ -45,7 +45,7 @@ int __orinoco_hw_set_multicast_list(struct orinoco_private *priv, | |||
45 | struct net_device *dev, | 45 | struct net_device *dev, |
46 | int mc_count, int promisc); | 46 | int mc_count, int promisc); |
47 | int orinoco_hw_get_essid(struct orinoco_private *priv, int *active, | 47 | int orinoco_hw_get_essid(struct orinoco_private *priv, int *active, |
48 | char buf[IW_ESSID_MAX_SIZE+1]); | 48 | char buf[IW_ESSID_MAX_SIZE + 1]); |
49 | int orinoco_hw_get_freq(struct orinoco_private *priv); | 49 | int orinoco_hw_get_freq(struct orinoco_private *priv); |
50 | int orinoco_hw_get_bitratelist(struct orinoco_private *priv, | 50 | int orinoco_hw_get_bitratelist(struct orinoco_private *priv, |
51 | int *numrates, s32 *rates, int max); | 51 | int *numrates, s32 *rates, int max); |
diff --git a/drivers/net/wireless/orinoco/main.c b/drivers/net/wireless/orinoco/main.c index 62c6b2b37dbe..a822422aba74 100644 --- a/drivers/net/wireless/orinoco/main.c +++ b/drivers/net/wireless/orinoco/main.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * adaptors, with Lucent/Agere, Intersil or Symbol firmware. | 4 | * adaptors, with Lucent/Agere, Intersil or Symbol firmware. |
5 | * | 5 | * |
6 | * Current maintainers (as of 29 September 2003) are: | 6 | * Current maintainers (as of 29 September 2003) are: |
7 | * Pavel Roskin <proski AT gnu.org> | 7 | * Pavel Roskin <proski AT gnu.org> |
8 | * and David Gibson <hermes AT gibson.dropbear.id.au> | 8 | * and David Gibson <hermes AT gibson.dropbear.id.au> |
9 | * | 9 | * |
10 | * (C) Copyright David Gibson, IBM Corporation 2001-2003. | 10 | * (C) Copyright David Gibson, IBM Corporation 2001-2003. |
@@ -146,10 +146,10 @@ static const u8 encaps_hdr[] = {0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00}; | |||
146 | #define ORINOCO_MAX_MTU (IEEE80211_MAX_DATA_LEN - ENCAPS_OVERHEAD) | 146 | #define ORINOCO_MAX_MTU (IEEE80211_MAX_DATA_LEN - ENCAPS_OVERHEAD) |
147 | 147 | ||
148 | #define MAX_IRQLOOPS_PER_IRQ 10 | 148 | #define MAX_IRQLOOPS_PER_IRQ 10 |
149 | #define MAX_IRQLOOPS_PER_JIFFY (20000/HZ) /* Based on a guestimate of | 149 | #define MAX_IRQLOOPS_PER_JIFFY (20000 / HZ) /* Based on a guestimate of |
150 | * how many events the | 150 | * how many events the |
151 | * device could | 151 | * device could |
152 | * legitimately generate */ | 152 | * legitimately generate */ |
153 | 153 | ||
154 | #define DUMMY_FID 0xFFFF | 154 | #define DUMMY_FID 0xFFFF |
155 | 155 | ||
@@ -157,7 +157,7 @@ static const u8 encaps_hdr[] = {0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00}; | |||
157 | HERMES_MAX_MULTICAST : 0)*/ | 157 | HERMES_MAX_MULTICAST : 0)*/ |
158 | #define MAX_MULTICAST(priv) (HERMES_MAX_MULTICAST) | 158 | #define MAX_MULTICAST(priv) (HERMES_MAX_MULTICAST) |
159 | 159 | ||
160 | #define ORINOCO_INTEN (HERMES_EV_RX | HERMES_EV_ALLOC \ | 160 | #define ORINOCO_INTEN (HERMES_EV_RX | HERMES_EV_ALLOC \ |
161 | | HERMES_EV_TX | HERMES_EV_TXEXC \ | 161 | | HERMES_EV_TX | HERMES_EV_TXEXC \ |
162 | | HERMES_EV_WTERR | HERMES_EV_INFO \ | 162 | | HERMES_EV_WTERR | HERMES_EV_INFO \ |
163 | | HERMES_EV_INFDROP) | 163 | | HERMES_EV_INFDROP) |
@@ -437,12 +437,12 @@ static netdev_tx_t orinoco_xmit(struct sk_buff *skb, struct net_device *dev) | |||
437 | { | 437 | { |
438 | struct orinoco_private *priv = ndev_priv(dev); | 438 | struct orinoco_private *priv = ndev_priv(dev); |
439 | struct net_device_stats *stats = &priv->stats; | 439 | struct net_device_stats *stats = &priv->stats; |
440 | hermes_t *hw = &priv->hw; | 440 | struct hermes *hw = &priv->hw; |
441 | int err = 0; | 441 | int err = 0; |
442 | u16 txfid = priv->txfid; | 442 | u16 txfid = priv->txfid; |
443 | int tx_control; | 443 | int tx_control; |
444 | unsigned long flags; | 444 | unsigned long flags; |
445 | u8 mic_buf[MICHAEL_MIC_LEN+1]; | 445 | u8 mic_buf[MICHAEL_MIC_LEN + 1]; |
446 | 446 | ||
447 | if (!netif_running(dev)) { | 447 | if (!netif_running(dev)) { |
448 | printk(KERN_ERR "%s: Tx on stopped device!\n", | 448 | printk(KERN_ERR "%s: Tx on stopped device!\n", |
@@ -579,7 +579,7 @@ static netdev_tx_t orinoco_xmit(struct sk_buff *skb, struct net_device *dev) | |||
579 | return NETDEV_TX_BUSY; | 579 | return NETDEV_TX_BUSY; |
580 | } | 580 | } |
581 | 581 | ||
582 | static void __orinoco_ev_alloc(struct net_device *dev, hermes_t *hw) | 582 | static void __orinoco_ev_alloc(struct net_device *dev, struct hermes *hw) |
583 | { | 583 | { |
584 | struct orinoco_private *priv = ndev_priv(dev); | 584 | struct orinoco_private *priv = ndev_priv(dev); |
585 | u16 fid = hermes_read_regn(hw, ALLOCFID); | 585 | u16 fid = hermes_read_regn(hw, ALLOCFID); |
@@ -594,7 +594,7 @@ static void __orinoco_ev_alloc(struct net_device *dev, hermes_t *hw) | |||
594 | hermes_write_regn(hw, ALLOCFID, DUMMY_FID); | 594 | hermes_write_regn(hw, ALLOCFID, DUMMY_FID); |
595 | } | 595 | } |
596 | 596 | ||
597 | static void __orinoco_ev_tx(struct net_device *dev, hermes_t *hw) | 597 | static void __orinoco_ev_tx(struct net_device *dev, struct hermes *hw) |
598 | { | 598 | { |
599 | struct orinoco_private *priv = ndev_priv(dev); | 599 | struct orinoco_private *priv = ndev_priv(dev); |
600 | struct net_device_stats *stats = &priv->stats; | 600 | struct net_device_stats *stats = &priv->stats; |
@@ -606,7 +606,7 @@ static void __orinoco_ev_tx(struct net_device *dev, hermes_t *hw) | |||
606 | hermes_write_regn(hw, TXCOMPLFID, DUMMY_FID); | 606 | hermes_write_regn(hw, TXCOMPLFID, DUMMY_FID); |
607 | } | 607 | } |
608 | 608 | ||
609 | static void __orinoco_ev_txexc(struct net_device *dev, hermes_t *hw) | 609 | static void __orinoco_ev_txexc(struct net_device *dev, struct hermes *hw) |
610 | { | 610 | { |
611 | struct orinoco_private *priv = ndev_priv(dev); | 611 | struct orinoco_private *priv = ndev_priv(dev); |
612 | struct net_device_stats *stats = &priv->stats; | 612 | struct net_device_stats *stats = &priv->stats; |
@@ -753,7 +753,7 @@ static void orinoco_rx_monitor(struct net_device *dev, u16 rxfid, | |||
753 | struct sk_buff *skb; | 753 | struct sk_buff *skb; |
754 | struct orinoco_private *priv = ndev_priv(dev); | 754 | struct orinoco_private *priv = ndev_priv(dev); |
755 | struct net_device_stats *stats = &priv->stats; | 755 | struct net_device_stats *stats = &priv->stats; |
756 | hermes_t *hw = &priv->hw; | 756 | struct hermes *hw = &priv->hw; |
757 | 757 | ||
758 | len = le16_to_cpu(desc->data_len); | 758 | len = le16_to_cpu(desc->data_len); |
759 | 759 | ||
@@ -840,7 +840,7 @@ static void orinoco_rx_monitor(struct net_device *dev, u16 rxfid, | |||
840 | stats->rx_dropped++; | 840 | stats->rx_dropped++; |
841 | } | 841 | } |
842 | 842 | ||
843 | void __orinoco_ev_rx(struct net_device *dev, hermes_t *hw) | 843 | void __orinoco_ev_rx(struct net_device *dev, struct hermes *hw) |
844 | { | 844 | { |
845 | struct orinoco_private *priv = ndev_priv(dev); | 845 | struct orinoco_private *priv = ndev_priv(dev); |
846 | struct net_device_stats *stats = &priv->stats; | 846 | struct net_device_stats *stats = &priv->stats; |
@@ -918,7 +918,7 @@ void __orinoco_ev_rx(struct net_device *dev, hermes_t *hw) | |||
918 | 32bit boundary, plus 1 byte so we can read in odd length | 918 | 32bit boundary, plus 1 byte so we can read in odd length |
919 | packets from the card, which has an IO granularity of 16 | 919 | packets from the card, which has an IO granularity of 16 |
920 | bits */ | 920 | bits */ |
921 | skb = dev_alloc_skb(length+ETH_HLEN+2+1); | 921 | skb = dev_alloc_skb(length + ETH_HLEN + 2 + 1); |
922 | if (!skb) { | 922 | if (!skb) { |
923 | printk(KERN_WARNING "%s: Can't allocate skb for Rx\n", | 923 | printk(KERN_WARNING "%s: Can't allocate skb for Rx\n", |
924 | dev->name); | 924 | dev->name); |
@@ -1402,7 +1402,7 @@ static void orinoco_process_scan_results(struct work_struct *work) | |||
1402 | spin_unlock_irqrestore(&priv->scan_lock, flags); | 1402 | spin_unlock_irqrestore(&priv->scan_lock, flags); |
1403 | } | 1403 | } |
1404 | 1404 | ||
1405 | void __orinoco_ev_info(struct net_device *dev, hermes_t *hw) | 1405 | void __orinoco_ev_info(struct net_device *dev, struct hermes *hw) |
1406 | { | 1406 | { |
1407 | struct orinoco_private *priv = ndev_priv(dev); | 1407 | struct orinoco_private *priv = ndev_priv(dev); |
1408 | u16 infofid; | 1408 | u16 infofid; |
@@ -1620,7 +1620,7 @@ void __orinoco_ev_info(struct net_device *dev, hermes_t *hw) | |||
1620 | } | 1620 | } |
1621 | EXPORT_SYMBOL(__orinoco_ev_info); | 1621 | EXPORT_SYMBOL(__orinoco_ev_info); |
1622 | 1622 | ||
1623 | static void __orinoco_ev_infdrop(struct net_device *dev, hermes_t *hw) | 1623 | static void __orinoco_ev_infdrop(struct net_device *dev, struct hermes *hw) |
1624 | { | 1624 | { |
1625 | if (net_ratelimit()) | 1625 | if (net_ratelimit()) |
1626 | printk(KERN_DEBUG "%s: Information frame lost.\n", dev->name); | 1626 | printk(KERN_DEBUG "%s: Information frame lost.\n", dev->name); |
@@ -1831,7 +1831,7 @@ static int __orinoco_commit(struct orinoco_private *priv) | |||
1831 | int orinoco_commit(struct orinoco_private *priv) | 1831 | int orinoco_commit(struct orinoco_private *priv) |
1832 | { | 1832 | { |
1833 | struct net_device *dev = priv->ndev; | 1833 | struct net_device *dev = priv->ndev; |
1834 | hermes_t *hw = &priv->hw; | 1834 | struct hermes *hw = &priv->hw; |
1835 | int err; | 1835 | int err; |
1836 | 1836 | ||
1837 | if (priv->broken_disableport) { | 1837 | if (priv->broken_disableport) { |
@@ -1874,12 +1874,12 @@ int orinoco_commit(struct orinoco_private *priv) | |||
1874 | /* Interrupt handler */ | 1874 | /* Interrupt handler */ |
1875 | /********************************************************************/ | 1875 | /********************************************************************/ |
1876 | 1876 | ||
1877 | static void __orinoco_ev_tick(struct net_device *dev, hermes_t *hw) | 1877 | static void __orinoco_ev_tick(struct net_device *dev, struct hermes *hw) |
1878 | { | 1878 | { |
1879 | printk(KERN_DEBUG "%s: TICK\n", dev->name); | 1879 | printk(KERN_DEBUG "%s: TICK\n", dev->name); |
1880 | } | 1880 | } |
1881 | 1881 | ||
1882 | static void __orinoco_ev_wterr(struct net_device *dev, hermes_t *hw) | 1882 | static void __orinoco_ev_wterr(struct net_device *dev, struct hermes *hw) |
1883 | { | 1883 | { |
1884 | /* This seems to happen a fair bit under load, but ignoring it | 1884 | /* This seems to happen a fair bit under load, but ignoring it |
1885 | seems to work fine...*/ | 1885 | seems to work fine...*/ |
@@ -1891,7 +1891,7 @@ irqreturn_t orinoco_interrupt(int irq, void *dev_id) | |||
1891 | { | 1891 | { |
1892 | struct orinoco_private *priv = dev_id; | 1892 | struct orinoco_private *priv = dev_id; |
1893 | struct net_device *dev = priv->ndev; | 1893 | struct net_device *dev = priv->ndev; |
1894 | hermes_t *hw = &priv->hw; | 1894 | struct hermes *hw = &priv->hw; |
1895 | int count = MAX_IRQLOOPS_PER_IRQ; | 1895 | int count = MAX_IRQLOOPS_PER_IRQ; |
1896 | u16 evstat, events; | 1896 | u16 evstat, events; |
1897 | /* These are used to detect a runaway interrupt situation. | 1897 | /* These are used to detect a runaway interrupt situation. |
@@ -2017,8 +2017,8 @@ static void orinoco_unregister_pm_notifier(struct orinoco_private *priv) | |||
2017 | unregister_pm_notifier(&priv->pm_notifier); | 2017 | unregister_pm_notifier(&priv->pm_notifier); |
2018 | } | 2018 | } |
2019 | #else /* !PM_SLEEP || HERMES_CACHE_FW_ON_INIT */ | 2019 | #else /* !PM_SLEEP || HERMES_CACHE_FW_ON_INIT */ |
2020 | #define orinoco_register_pm_notifier(priv) do { } while(0) | 2020 | #define orinoco_register_pm_notifier(priv) do { } while (0) |
2021 | #define orinoco_unregister_pm_notifier(priv) do { } while(0) | 2021 | #define orinoco_unregister_pm_notifier(priv) do { } while (0) |
2022 | #endif | 2022 | #endif |
2023 | 2023 | ||
2024 | /********************************************************************/ | 2024 | /********************************************************************/ |
@@ -2029,7 +2029,7 @@ int orinoco_init(struct orinoco_private *priv) | |||
2029 | { | 2029 | { |
2030 | struct device *dev = priv->dev; | 2030 | struct device *dev = priv->dev; |
2031 | struct wiphy *wiphy = priv_to_wiphy(priv); | 2031 | struct wiphy *wiphy = priv_to_wiphy(priv); |
2032 | hermes_t *hw = &priv->hw; | 2032 | struct hermes *hw = &priv->hw; |
2033 | int err = 0; | 2033 | int err = 0; |
2034 | 2034 | ||
2035 | /* No need to lock, the hw_unavailable flag is already set in | 2035 | /* No need to lock, the hw_unavailable flag is already set in |
diff --git a/drivers/net/wireless/orinoco/mic.c b/drivers/net/wireless/orinoco/mic.c index c03e7f54d1b8..fce4a843e656 100644 --- a/drivers/net/wireless/orinoco/mic.c +++ b/drivers/net/wireless/orinoco/mic.c | |||
@@ -59,10 +59,10 @@ int orinoco_mic(struct crypto_hash *tfm_michael, u8 *key, | |||
59 | /* Copy header into buffer. We need the padding on the end zeroed */ | 59 | /* Copy header into buffer. We need the padding on the end zeroed */ |
60 | memcpy(&hdr[0], da, ETH_ALEN); | 60 | memcpy(&hdr[0], da, ETH_ALEN); |
61 | memcpy(&hdr[ETH_ALEN], sa, ETH_ALEN); | 61 | memcpy(&hdr[ETH_ALEN], sa, ETH_ALEN); |
62 | hdr[ETH_ALEN*2] = priority; | 62 | hdr[ETH_ALEN * 2] = priority; |
63 | hdr[ETH_ALEN*2+1] = 0; | 63 | hdr[ETH_ALEN * 2 + 1] = 0; |
64 | hdr[ETH_ALEN*2+2] = 0; | 64 | hdr[ETH_ALEN * 2 + 2] = 0; |
65 | hdr[ETH_ALEN*2+3] = 0; | 65 | hdr[ETH_ALEN * 2 + 3] = 0; |
66 | 66 | ||
67 | /* Use scatter gather to MIC header and data in one go */ | 67 | /* Use scatter gather to MIC header and data in one go */ |
68 | sg_init_table(sg, 2); | 68 | sg_init_table(sg, 2); |
diff --git a/drivers/net/wireless/orinoco/orinoco.h b/drivers/net/wireless/orinoco/orinoco.h index 255710ef082a..3bb936b9558c 100644 --- a/drivers/net/wireless/orinoco/orinoco.h +++ b/drivers/net/wireless/orinoco/orinoco.h | |||
@@ -49,11 +49,11 @@ enum orinoco_alg { | |||
49 | ORINOCO_ALG_TKIP | 49 | ORINOCO_ALG_TKIP |
50 | }; | 50 | }; |
51 | 51 | ||
52 | typedef enum { | 52 | enum fwtype { |
53 | FIRMWARE_TYPE_AGERE, | 53 | FIRMWARE_TYPE_AGERE, |
54 | FIRMWARE_TYPE_INTERSIL, | 54 | FIRMWARE_TYPE_INTERSIL, |
55 | FIRMWARE_TYPE_SYMBOL | 55 | FIRMWARE_TYPE_SYMBOL |
56 | } fwtype_t; | 56 | }; |
57 | 57 | ||
58 | struct firmware; | 58 | struct firmware; |
59 | 59 | ||
@@ -88,11 +88,11 @@ struct orinoco_private { | |||
88 | struct iw_statistics wstats; | 88 | struct iw_statistics wstats; |
89 | 89 | ||
90 | /* Hardware control variables */ | 90 | /* Hardware control variables */ |
91 | hermes_t hw; | 91 | struct hermes hw; |
92 | u16 txfid; | 92 | u16 txfid; |
93 | 93 | ||
94 | /* Capabilities of the hardware/firmware */ | 94 | /* Capabilities of the hardware/firmware */ |
95 | fwtype_t firmware_type; | 95 | enum fwtype firmware_type; |
96 | int ibss_port; | 96 | int ibss_port; |
97 | int nicbuf_size; | 97 | int nicbuf_size; |
98 | u16 channel_mask; | 98 | u16 channel_mask; |
@@ -122,8 +122,8 @@ struct orinoco_private { | |||
122 | struct key_params keys[ORINOCO_MAX_KEYS]; | 122 | struct key_params keys[ORINOCO_MAX_KEYS]; |
123 | 123 | ||
124 | int bitratemode; | 124 | int bitratemode; |
125 | char nick[IW_ESSID_MAX_SIZE+1]; | 125 | char nick[IW_ESSID_MAX_SIZE + 1]; |
126 | char desired_essid[IW_ESSID_MAX_SIZE+1]; | 126 | char desired_essid[IW_ESSID_MAX_SIZE + 1]; |
127 | char desired_bssid[ETH_ALEN]; | 127 | char desired_bssid[ETH_ALEN]; |
128 | int bssid_fixed; | 128 | int bssid_fixed; |
129 | u16 frag_thresh, mwo_robust; | 129 | u16 frag_thresh, mwo_robust; |
@@ -197,8 +197,8 @@ extern int orinoco_up(struct orinoco_private *priv); | |||
197 | extern void orinoco_down(struct orinoco_private *priv); | 197 | extern void orinoco_down(struct orinoco_private *priv); |
198 | extern irqreturn_t orinoco_interrupt(int irq, void *dev_id); | 198 | extern irqreturn_t orinoco_interrupt(int irq, void *dev_id); |
199 | 199 | ||
200 | extern void __orinoco_ev_info(struct net_device *dev, hermes_t *hw); | 200 | extern void __orinoco_ev_info(struct net_device *dev, struct hermes *hw); |
201 | extern void __orinoco_ev_rx(struct net_device *dev, hermes_t *hw); | 201 | extern void __orinoco_ev_rx(struct net_device *dev, struct hermes *hw); |
202 | 202 | ||
203 | int orinoco_process_xmit_skb(struct sk_buff *skb, | 203 | int orinoco_process_xmit_skb(struct sk_buff *skb, |
204 | struct net_device *dev, | 204 | struct net_device *dev, |
diff --git a/drivers/net/wireless/orinoco/orinoco_cs.c b/drivers/net/wireless/orinoco/orinoco_cs.c index 32954c4b243a..d14a2a5cc84e 100644 --- a/drivers/net/wireless/orinoco/orinoco_cs.c +++ b/drivers/net/wireless/orinoco/orinoco_cs.c | |||
@@ -65,7 +65,7 @@ static void orinoco_cs_release(struct pcmcia_device *link); | |||
65 | static void orinoco_cs_detach(struct pcmcia_device *p_dev); | 65 | static void orinoco_cs_detach(struct pcmcia_device *p_dev); |
66 | 66 | ||
67 | /********************************************************************/ | 67 | /********************************************************************/ |
68 | /* Device methods */ | 68 | /* Device methods */ |
69 | /********************************************************************/ | 69 | /********************************************************************/ |
70 | 70 | ||
71 | static int | 71 | static int |
@@ -89,7 +89,7 @@ orinoco_cs_hard_reset(struct orinoco_private *priv) | |||
89 | } | 89 | } |
90 | 90 | ||
91 | /********************************************************************/ | 91 | /********************************************************************/ |
92 | /* PCMCIA stuff */ | 92 | /* PCMCIA stuff */ |
93 | /********************************************************************/ | 93 | /********************************************************************/ |
94 | 94 | ||
95 | static int | 95 | static int |
@@ -134,7 +134,7 @@ static int | |||
134 | orinoco_cs_config(struct pcmcia_device *link) | 134 | orinoco_cs_config(struct pcmcia_device *link) |
135 | { | 135 | { |
136 | struct orinoco_private *priv = link->priv; | 136 | struct orinoco_private *priv = link->priv; |
137 | hermes_t *hw = &priv->hw; | 137 | struct hermes *hw = &priv->hw; |
138 | int ret; | 138 | int ret; |
139 | void __iomem *mem; | 139 | void __iomem *mem; |
140 | 140 | ||
diff --git a/drivers/net/wireless/orinoco/orinoco_nortel.c b/drivers/net/wireless/orinoco/orinoco_nortel.c index bc3ea0b67a4f..326396b313a6 100644 --- a/drivers/net/wireless/orinoco/orinoco_nortel.c +++ b/drivers/net/wireless/orinoco/orinoco_nortel.c | |||
@@ -296,8 +296,7 @@ static struct pci_driver orinoco_nortel_driver = { | |||
296 | static char version[] __initdata = DRIVER_NAME " " DRIVER_VERSION | 296 | static char version[] __initdata = DRIVER_NAME " " DRIVER_VERSION |
297 | " (Tobias Hoffmann & Christoph Jungegger <disdos@traum404.de>)"; | 297 | " (Tobias Hoffmann & Christoph Jungegger <disdos@traum404.de>)"; |
298 | MODULE_AUTHOR("Christoph Jungegger <disdos@traum404.de>"); | 298 | MODULE_AUTHOR("Christoph Jungegger <disdos@traum404.de>"); |
299 | MODULE_DESCRIPTION | 299 | MODULE_DESCRIPTION("Driver for wireless LAN cards using the Nortel PCI bridge"); |
300 | ("Driver for wireless LAN cards using the Nortel PCI bridge"); | ||
301 | MODULE_LICENSE("Dual MPL/GPL"); | 300 | MODULE_LICENSE("Dual MPL/GPL"); |
302 | 301 | ||
303 | static int __init orinoco_nortel_init(void) | 302 | static int __init orinoco_nortel_init(void) |
diff --git a/drivers/net/wireless/orinoco/orinoco_pci.c b/drivers/net/wireless/orinoco/orinoco_pci.c index 468197f86673..6058c66b844e 100644 --- a/drivers/net/wireless/orinoco/orinoco_pci.c +++ b/drivers/net/wireless/orinoco/orinoco_pci.c | |||
@@ -6,7 +6,7 @@ | |||
6 | * hermes registers, as well as the COR register. | 6 | * hermes registers, as well as the COR register. |
7 | * | 7 | * |
8 | * Current maintainers are: | 8 | * Current maintainers are: |
9 | * Pavel Roskin <proski AT gnu.org> | 9 | * Pavel Roskin <proski AT gnu.org> |
10 | * and David Gibson <hermes AT gibson.dropbear.id.au> | 10 | * and David Gibson <hermes AT gibson.dropbear.id.au> |
11 | * | 11 | * |
12 | * Some of this code is borrowed from orinoco_plx.c | 12 | * Some of this code is borrowed from orinoco_plx.c |
@@ -81,7 +81,7 @@ | |||
81 | */ | 81 | */ |
82 | static int orinoco_pci_cor_reset(struct orinoco_private *priv) | 82 | static int orinoco_pci_cor_reset(struct orinoco_private *priv) |
83 | { | 83 | { |
84 | hermes_t *hw = &priv->hw; | 84 | struct hermes *hw = &priv->hw; |
85 | unsigned long timeout; | 85 | unsigned long timeout; |
86 | u16 reg; | 86 | u16 reg; |
87 | 87 | ||
diff --git a/drivers/net/wireless/orinoco/orinoco_plx.c b/drivers/net/wireless/orinoco/orinoco_plx.c index 9358f4d2307b..2bac8248a991 100644 --- a/drivers/net/wireless/orinoco/orinoco_plx.c +++ b/drivers/net/wireless/orinoco/orinoco_plx.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * but are connected to the PCI bus by a PLX9052. | 4 | * but are connected to the PCI bus by a PLX9052. |
5 | * | 5 | * |
6 | * Current maintainers are: | 6 | * Current maintainers are: |
7 | * Pavel Roskin <proski AT gnu.org> | 7 | * Pavel Roskin <proski AT gnu.org> |
8 | * and David Gibson <hermes AT gibson.dropbear.id.au> | 8 | * and David Gibson <hermes AT gibson.dropbear.id.au> |
9 | * | 9 | * |
10 | * (C) Copyright David Gibson, IBM Corp. 2001-2003. | 10 | * (C) Copyright David Gibson, IBM Corp. 2001-2003. |
@@ -102,14 +102,14 @@ | |||
102 | #define PLX_RESET_TIME (500) /* milliseconds */ | 102 | #define PLX_RESET_TIME (500) /* milliseconds */ |
103 | 103 | ||
104 | #define PLX_INTCSR 0x4c /* Interrupt Control & Status Register */ | 104 | #define PLX_INTCSR 0x4c /* Interrupt Control & Status Register */ |
105 | #define PLX_INTCSR_INTEN (1<<6) /* Interrupt Enable bit */ | 105 | #define PLX_INTCSR_INTEN (1 << 6) /* Interrupt Enable bit */ |
106 | 106 | ||
107 | /* | 107 | /* |
108 | * Do a soft reset of the card using the Configuration Option Register | 108 | * Do a soft reset of the card using the Configuration Option Register |
109 | */ | 109 | */ |
110 | static int orinoco_plx_cor_reset(struct orinoco_private *priv) | 110 | static int orinoco_plx_cor_reset(struct orinoco_private *priv) |
111 | { | 111 | { |
112 | hermes_t *hw = &priv->hw; | 112 | struct hermes *hw = &priv->hw; |
113 | struct orinoco_pci_card *card = priv->card; | 113 | struct orinoco_pci_card *card = priv->card; |
114 | unsigned long timeout; | 114 | unsigned long timeout; |
115 | u16 reg; | 115 | u16 reg; |
diff --git a/drivers/net/wireless/orinoco/orinoco_tmd.c b/drivers/net/wireless/orinoco/orinoco_tmd.c index 784605f0af15..93159d68ec93 100644 --- a/drivers/net/wireless/orinoco/orinoco_tmd.c +++ b/drivers/net/wireless/orinoco/orinoco_tmd.c | |||
@@ -59,7 +59,7 @@ | |||
59 | */ | 59 | */ |
60 | static int orinoco_tmd_cor_reset(struct orinoco_private *priv) | 60 | static int orinoco_tmd_cor_reset(struct orinoco_private *priv) |
61 | { | 61 | { |
62 | hermes_t *hw = &priv->hw; | 62 | struct hermes *hw = &priv->hw; |
63 | struct orinoco_pci_card *card = priv->card; | 63 | struct orinoco_pci_card *card = priv->card; |
64 | unsigned long timeout; | 64 | unsigned long timeout; |
65 | u16 reg; | 65 | u16 reg; |
diff --git a/drivers/net/wireless/orinoco/orinoco_usb.c b/drivers/net/wireless/orinoco/orinoco_usb.c index b9aedf18a046..811e87f8a349 100644 --- a/drivers/net/wireless/orinoco/orinoco_usb.c +++ b/drivers/net/wireless/orinoco/orinoco_usb.c | |||
@@ -199,7 +199,7 @@ MODULE_FIRMWARE("orinoco_ezusb_fw"); | |||
199 | #define EZUSB_FRAME_DATA 1 | 199 | #define EZUSB_FRAME_DATA 1 |
200 | #define EZUSB_FRAME_CONTROL 2 | 200 | #define EZUSB_FRAME_CONTROL 2 |
201 | 201 | ||
202 | #define DEF_TIMEOUT (3*HZ) | 202 | #define DEF_TIMEOUT (3 * HZ) |
203 | 203 | ||
204 | #define BULK_BUF_SIZE 2048 | 204 | #define BULK_BUF_SIZE 2048 |
205 | 205 | ||
@@ -959,7 +959,7 @@ static int ezusb_access_ltv(struct ezusb_priv *upriv, | |||
959 | return retval; | 959 | return retval; |
960 | } | 960 | } |
961 | 961 | ||
962 | static int ezusb_write_ltv(hermes_t *hw, int bap, u16 rid, | 962 | static int ezusb_write_ltv(struct hermes *hw, int bap, u16 rid, |
963 | u16 length, const void *data) | 963 | u16 length, const void *data) |
964 | { | 964 | { |
965 | struct ezusb_priv *upriv = hw->priv; | 965 | struct ezusb_priv *upriv = hw->priv; |
@@ -989,7 +989,7 @@ static int ezusb_write_ltv(hermes_t *hw, int bap, u16 rid, | |||
989 | NULL, 0, NULL); | 989 | NULL, 0, NULL); |
990 | } | 990 | } |
991 | 991 | ||
992 | static int ezusb_read_ltv(hermes_t *hw, int bap, u16 rid, | 992 | static int ezusb_read_ltv(struct hermes *hw, int bap, u16 rid, |
993 | unsigned bufsize, u16 *length, void *buf) | 993 | unsigned bufsize, u16 *length, void *buf) |
994 | { | 994 | { |
995 | struct ezusb_priv *upriv = hw->priv; | 995 | struct ezusb_priv *upriv = hw->priv; |
@@ -1006,7 +1006,7 @@ static int ezusb_read_ltv(hermes_t *hw, int bap, u16 rid, | |||
1006 | buf, bufsize, length); | 1006 | buf, bufsize, length); |
1007 | } | 1007 | } |
1008 | 1008 | ||
1009 | static int ezusb_doicmd_wait(hermes_t *hw, u16 cmd, u16 parm0, u16 parm1, | 1009 | static int ezusb_doicmd_wait(struct hermes *hw, u16 cmd, u16 parm0, u16 parm1, |
1010 | u16 parm2, struct hermes_response *resp) | 1010 | u16 parm2, struct hermes_response *resp) |
1011 | { | 1011 | { |
1012 | struct ezusb_priv *upriv = hw->priv; | 1012 | struct ezusb_priv *upriv = hw->priv; |
@@ -1028,7 +1028,7 @@ static int ezusb_doicmd_wait(hermes_t *hw, u16 cmd, u16 parm0, u16 parm1, | |||
1028 | EZUSB_FRAME_CONTROL, NULL, 0, NULL); | 1028 | EZUSB_FRAME_CONTROL, NULL, 0, NULL); |
1029 | } | 1029 | } |
1030 | 1030 | ||
1031 | static int ezusb_docmd_wait(hermes_t *hw, u16 cmd, u16 parm0, | 1031 | static int ezusb_docmd_wait(struct hermes *hw, u16 cmd, u16 parm0, |
1032 | struct hermes_response *resp) | 1032 | struct hermes_response *resp) |
1033 | { | 1033 | { |
1034 | struct ezusb_priv *upriv = hw->priv; | 1034 | struct ezusb_priv *upriv = hw->priv; |
@@ -1196,7 +1196,7 @@ static netdev_tx_t ezusb_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1196 | struct orinoco_private *priv = ndev_priv(dev); | 1196 | struct orinoco_private *priv = ndev_priv(dev); |
1197 | struct net_device_stats *stats = &priv->stats; | 1197 | struct net_device_stats *stats = &priv->stats; |
1198 | struct ezusb_priv *upriv = priv->card; | 1198 | struct ezusb_priv *upriv = priv->card; |
1199 | u8 mic[MICHAEL_MIC_LEN+1]; | 1199 | u8 mic[MICHAEL_MIC_LEN + 1]; |
1200 | int err = 0; | 1200 | int err = 0; |
1201 | int tx_control; | 1201 | int tx_control; |
1202 | unsigned long flags; | 1202 | unsigned long flags; |
@@ -1356,7 +1356,7 @@ static int ezusb_hard_reset(struct orinoco_private *priv) | |||
1356 | } | 1356 | } |
1357 | 1357 | ||
1358 | 1358 | ||
1359 | static int ezusb_init(hermes_t *hw) | 1359 | static int ezusb_init(struct hermes *hw) |
1360 | { | 1360 | { |
1361 | struct ezusb_priv *upriv = hw->priv; | 1361 | struct ezusb_priv *upriv = hw->priv; |
1362 | int retval; | 1362 | int retval; |
@@ -1438,7 +1438,7 @@ static void ezusb_bulk_in_callback(struct urb *urb) | |||
1438 | } else if (upriv->dev) { | 1438 | } else if (upriv->dev) { |
1439 | struct net_device *dev = upriv->dev; | 1439 | struct net_device *dev = upriv->dev; |
1440 | struct orinoco_private *priv = ndev_priv(dev); | 1440 | struct orinoco_private *priv = ndev_priv(dev); |
1441 | hermes_t *hw = &priv->hw; | 1441 | struct hermes *hw = &priv->hw; |
1442 | 1442 | ||
1443 | if (hermes_rid == EZUSB_RID_RX) { | 1443 | if (hermes_rid == EZUSB_RID_RX) { |
1444 | __orinoco_ev_rx(dev, hw); | 1444 | __orinoco_ev_rx(dev, hw); |
@@ -1575,7 +1575,7 @@ static int ezusb_probe(struct usb_interface *interface, | |||
1575 | { | 1575 | { |
1576 | struct usb_device *udev = interface_to_usbdev(interface); | 1576 | struct usb_device *udev = interface_to_usbdev(interface); |
1577 | struct orinoco_private *priv; | 1577 | struct orinoco_private *priv; |
1578 | hermes_t *hw; | 1578 | struct hermes *hw; |
1579 | struct ezusb_priv *upriv = NULL; | 1579 | struct ezusb_priv *upriv = NULL; |
1580 | struct usb_interface_descriptor *iface_desc; | 1580 | struct usb_interface_descriptor *iface_desc; |
1581 | struct usb_endpoint_descriptor *ep; | 1581 | struct usb_endpoint_descriptor *ep; |
@@ -1757,7 +1757,7 @@ static struct usb_driver orinoco_driver = { | |||
1757 | /* Can't be declared "const" or the whole __initdata section will | 1757 | /* Can't be declared "const" or the whole __initdata section will |
1758 | * become const */ | 1758 | * become const */ |
1759 | static char version[] __initdata = DRIVER_NAME " " DRIVER_VERSION | 1759 | static char version[] __initdata = DRIVER_NAME " " DRIVER_VERSION |
1760 | " (Manuel Estrada Sainz)"; | 1760 | " (Manuel Estrada Sainz)"; |
1761 | 1761 | ||
1762 | static int __init ezusb_module_init(void) | 1762 | static int __init ezusb_module_init(void) |
1763 | { | 1763 | { |
@@ -1787,6 +1787,5 @@ module_init(ezusb_module_init); | |||
1787 | module_exit(ezusb_module_exit); | 1787 | module_exit(ezusb_module_exit); |
1788 | 1788 | ||
1789 | MODULE_AUTHOR("Manuel Estrada Sainz"); | 1789 | MODULE_AUTHOR("Manuel Estrada Sainz"); |
1790 | MODULE_DESCRIPTION | 1790 | MODULE_DESCRIPTION("Driver for Orinoco wireless LAN cards using EZUSB bridge"); |
1791 | ("Driver for Orinoco wireless LAN cards using EZUSB bridge"); | ||
1792 | MODULE_LICENSE("Dual MPL/GPL"); | 1791 | MODULE_LICENSE("Dual MPL/GPL"); |
diff --git a/drivers/net/wireless/orinoco/spectrum_cs.c b/drivers/net/wireless/orinoco/spectrum_cs.c index db34c282e59b..c178170c6ce7 100644 --- a/drivers/net/wireless/orinoco/spectrum_cs.c +++ b/drivers/net/wireless/orinoco/spectrum_cs.c | |||
@@ -11,9 +11,9 @@ | |||
11 | * | 11 | * |
12 | * Copyright (C) 2002-2005 Pavel Roskin <proski@gnu.org> | 12 | * Copyright (C) 2002-2005 Pavel Roskin <proski@gnu.org> |
13 | * Portions based on orinoco_cs.c: | 13 | * Portions based on orinoco_cs.c: |
14 | * Copyright (C) David Gibson, Linuxcare Australia | 14 | * Copyright (C) David Gibson, Linuxcare Australia |
15 | * Portions based on Spectrum24tDnld.c from original spectrum24 driver: | 15 | * Portions based on Spectrum24tDnld.c from original spectrum24 driver: |
16 | * Copyright (C) Symbol Technologies. | 16 | * Copyright (C) Symbol Technologies. |
17 | * | 17 | * |
18 | * See copyright notice in file main.c. | 18 | * See copyright notice in file main.c. |
19 | */ | 19 | */ |
@@ -125,7 +125,7 @@ failed: | |||
125 | } | 125 | } |
126 | 126 | ||
127 | /********************************************************************/ | 127 | /********************************************************************/ |
128 | /* Device methods */ | 128 | /* Device methods */ |
129 | /********************************************************************/ | 129 | /********************************************************************/ |
130 | 130 | ||
131 | static int | 131 | static int |
@@ -150,7 +150,7 @@ spectrum_cs_stop_firmware(struct orinoco_private *priv, int idle) | |||
150 | } | 150 | } |
151 | 151 | ||
152 | /********************************************************************/ | 152 | /********************************************************************/ |
153 | /* PCMCIA stuff */ | 153 | /* PCMCIA stuff */ |
154 | /********************************************************************/ | 154 | /********************************************************************/ |
155 | 155 | ||
156 | static int | 156 | static int |
@@ -197,7 +197,7 @@ static int | |||
197 | spectrum_cs_config(struct pcmcia_device *link) | 197 | spectrum_cs_config(struct pcmcia_device *link) |
198 | { | 198 | { |
199 | struct orinoco_private *priv = link->priv; | 199 | struct orinoco_private *priv = link->priv; |
200 | hermes_t *hw = &priv->hw; | 200 | struct hermes *hw = &priv->hw; |
201 | int ret; | 201 | int ret; |
202 | void __iomem *mem; | 202 | void __iomem *mem; |
203 | 203 | ||
diff --git a/drivers/net/wireless/orinoco/wext.c b/drivers/net/wireless/orinoco/wext.c index e793679e2e19..bbb9beb206b1 100644 --- a/drivers/net/wireless/orinoco/wext.c +++ b/drivers/net/wireless/orinoco/wext.c | |||
@@ -87,7 +87,7 @@ nomem: | |||
87 | static struct iw_statistics *orinoco_get_wireless_stats(struct net_device *dev) | 87 | static struct iw_statistics *orinoco_get_wireless_stats(struct net_device *dev) |
88 | { | 88 | { |
89 | struct orinoco_private *priv = ndev_priv(dev); | 89 | struct orinoco_private *priv = ndev_priv(dev); |
90 | hermes_t *hw = &priv->hw; | 90 | struct hermes *hw = &priv->hw; |
91 | struct iw_statistics *wstats = &priv->wstats; | 91 | struct iw_statistics *wstats = &priv->wstats; |
92 | int err; | 92 | int err; |
93 | unsigned long flags; | 93 | unsigned long flags; |
@@ -448,7 +448,7 @@ static int orinoco_ioctl_setfreq(struct net_device *dev, | |||
448 | } | 448 | } |
449 | 449 | ||
450 | if ((chan < 1) || (chan > NUM_CHANNELS) || | 450 | if ((chan < 1) || (chan > NUM_CHANNELS) || |
451 | !(priv->channel_mask & (1 << (chan-1)))) | 451 | !(priv->channel_mask & (1 << (chan - 1)))) |
452 | return -EINVAL; | 452 | return -EINVAL; |
453 | 453 | ||
454 | if (orinoco_lock(priv, &flags) != 0) | 454 | if (orinoco_lock(priv, &flags) != 0) |
@@ -457,7 +457,7 @@ static int orinoco_ioctl_setfreq(struct net_device *dev, | |||
457 | priv->channel = chan; | 457 | priv->channel = chan; |
458 | if (priv->iw_mode == NL80211_IFTYPE_MONITOR) { | 458 | if (priv->iw_mode == NL80211_IFTYPE_MONITOR) { |
459 | /* Fast channel change - no commit if successful */ | 459 | /* Fast channel change - no commit if successful */ |
460 | hermes_t *hw = &priv->hw; | 460 | struct hermes *hw = &priv->hw; |
461 | err = hw->ops->cmd_wait(hw, HERMES_CMD_TEST | | 461 | err = hw->ops->cmd_wait(hw, HERMES_CMD_TEST | |
462 | HERMES_TEST_SET_CHANNEL, | 462 | HERMES_TEST_SET_CHANNEL, |
463 | chan, NULL); | 463 | chan, NULL); |
@@ -492,7 +492,7 @@ static int orinoco_ioctl_getsens(struct net_device *dev, | |||
492 | char *extra) | 492 | char *extra) |
493 | { | 493 | { |
494 | struct orinoco_private *priv = ndev_priv(dev); | 494 | struct orinoco_private *priv = ndev_priv(dev); |
495 | hermes_t *hw = &priv->hw; | 495 | struct hermes *hw = &priv->hw; |
496 | u16 val; | 496 | u16 val; |
497 | int err; | 497 | int err; |
498 | unsigned long flags; | 498 | unsigned long flags; |
@@ -668,7 +668,7 @@ static int orinoco_ioctl_getpower(struct net_device *dev, | |||
668 | char *extra) | 668 | char *extra) |
669 | { | 669 | { |
670 | struct orinoco_private *priv = ndev_priv(dev); | 670 | struct orinoco_private *priv = ndev_priv(dev); |
671 | hermes_t *hw = &priv->hw; | 671 | struct hermes *hw = &priv->hw; |
672 | int err = 0; | 672 | int err = 0; |
673 | u16 enable, period, timeout, mcast; | 673 | u16 enable, period, timeout, mcast; |
674 | unsigned long flags; | 674 | unsigned long flags; |
@@ -873,7 +873,7 @@ static int orinoco_ioctl_set_auth(struct net_device *dev, | |||
873 | union iwreq_data *wrqu, char *extra) | 873 | union iwreq_data *wrqu, char *extra) |
874 | { | 874 | { |
875 | struct orinoco_private *priv = ndev_priv(dev); | 875 | struct orinoco_private *priv = ndev_priv(dev); |
876 | hermes_t *hw = &priv->hw; | 876 | struct hermes *hw = &priv->hw; |
877 | struct iw_param *param = &wrqu->param; | 877 | struct iw_param *param = &wrqu->param; |
878 | unsigned long flags; | 878 | unsigned long flags; |
879 | int ret = -EINPROGRESS; | 879 | int ret = -EINPROGRESS; |
@@ -1269,7 +1269,7 @@ static int orinoco_ioctl_getrid(struct net_device *dev, | |||
1269 | char *extra) | 1269 | char *extra) |
1270 | { | 1270 | { |
1271 | struct orinoco_private *priv = ndev_priv(dev); | 1271 | struct orinoco_private *priv = ndev_priv(dev); |
1272 | hermes_t *hw = &priv->hw; | 1272 | struct hermes *hw = &priv->hw; |
1273 | int rid = data->flags; | 1273 | int rid = data->flags; |
1274 | u16 length; | 1274 | u16 length; |
1275 | int err; | 1275 | int err; |