aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/hermes.h
diff options
context:
space:
mode:
authorDavid Kilroy <kilroyd@gmail.com>2008-08-21 18:27:50 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-22 19:28:04 -0400
commitfc5a62d8b7052ea588e4f7750cd78b0c4c47015a (patch)
treecf25f5749da81c0a0a13986315486fdaf42e1fe7 /drivers/net/wireless/hermes.h
parent82a06ee518f570eb8fbb6588e75a4a5d838ac901 (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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/hermes.h b/drivers/net/wireless/hermes.h
index 8e3f0e3edb5..287f5363fda 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);
353int hermes_init(hermes_t *hw); 353int hermes_init(hermes_t *hw);
354int hermes_docmd_wait(hermes_t *hw, u16 cmd, u16 parm0, 354int hermes_docmd_wait(hermes_t *hw, u16 cmd, u16 parm0,
355 struct hermes_response *resp); 355 struct hermes_response *resp);
356int hermes_doicmd_wait(hermes_t *hw, u16 cmd,
357 u16 parm0, u16 parm1, u16 parm2,
358 struct hermes_response *resp);
356int hermes_allocate(hermes_t *hw, u16 size, u16 *fid); 359int hermes_allocate(hermes_t *hw, u16 size, u16 *fid);
357 360
358int hermes_bap_pread(hermes_t *hw, int bap, void *buf, int len, 361int hermes_bap_pread(hermes_t *hw, int bap, void *buf, int len,