diff options
author | David Kilroy <kilroyd@gmail.com> | 2008-08-21 18:27:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-22 19:28:04 -0400 |
commit | fc5a62d8b7052ea588e4f7750cd78b0c4c47015a (patch) | |
tree | cf25f5749da81c0a0a13986315486fdaf42e1fe7 /drivers/net/wireless/hermes.h | |
parent | 82a06ee518f570eb8fbb6588e75a4a5d838ac901 (diff) |
orinoco: Add function to execute Hermes initialisation commands synchronously
The current synchronous execution function doesn't work
for certain Hermes commands which clear the MAGIC number from
SWSUPPORT0. These commands seem to be related to initialisation or
programming, for example HERMES_CMD_INIT.
Replicate hermes_docmd_wait for commands which clear the MAGIC number
from SWSUPPORT0. This version accepts two extra arguments which are
passed straight to the firmware.
Functionality copied out of hermes_init.
Signed-off-by: David Kilroy <kilroyd@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/hermes.h')
-rw-r--r-- | drivers/net/wireless/hermes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/hermes.h b/drivers/net/wireless/hermes.h index 8e3f0e3edb58..287f5363fda2 100644 --- a/drivers/net/wireless/hermes.h +++ b/drivers/net/wireless/hermes.h | |||
@@ -353,6 +353,9 @@ void hermes_struct_init(hermes_t *hw, void __iomem *address, int reg_spacing); | |||
353 | int hermes_init(hermes_t *hw); | 353 | int hermes_init(hermes_t *hw); |
354 | int hermes_docmd_wait(hermes_t *hw, u16 cmd, u16 parm0, | 354 | int hermes_docmd_wait(hermes_t *hw, u16 cmd, u16 parm0, |
355 | struct hermes_response *resp); | 355 | struct hermes_response *resp); |
356 | int hermes_doicmd_wait(hermes_t *hw, u16 cmd, | ||
357 | u16 parm0, u16 parm1, u16 parm2, | ||
358 | struct hermes_response *resp); | ||
356 | int hermes_allocate(hermes_t *hw, u16 size, u16 *fid); | 359 | int hermes_allocate(hermes_t *hw, u16 size, u16 *fid); |
357 | 360 | ||
358 | int hermes_bap_pread(hermes_t *hw, int bap, void *buf, int len, | 361 | int hermes_bap_pread(hermes_t *hw, int bap, void *buf, int len, |