summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/hermes_dld.h
diff options
context:
space:
mode:
authorDavid Kilroy <kilroyd@gmail.com>2008-08-22 00:27:53 +0200
committerJohn W. Linville <linville@tuxdriver.com>2008-08-23 01:28:05 +0200
commit8f5ae73c5366128d3800cf9765507422bcf1ef96 (patch)
tree5823eb838fe7fb782501171025a61c4c8b0c0423 /drivers/net/wireless/hermes_dld.h
parentorinoco: Make firmware download logic more generic (diff)
downloadlinux-8f5ae73c5366128d3800cf9765507422bcf1ef96.tar.xz
linux-8f5ae73c5366128d3800cf9765507422bcf1ef96.zip
orinoco: Extend hermes_dld routines for Agere firmware
Add programming initialisation and termination functions. Add checks to avoid overrunning the firmware image or PDA areas. Extra algorithm to program PDA values using defaults where necessary. Signed-off-by: David Kilroy <kilroyd@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/hermes_dld.h')
-rw-r--r--drivers/net/wireless/hermes_dld.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/hermes_dld.h b/drivers/net/wireless/hermes_dld.h
index af75c030b11b..6fcb26277999 100644
--- a/drivers/net/wireless/hermes_dld.h
+++ b/drivers/net/wireless/hermes_dld.h
@@ -27,6 +27,8 @@
#include "hermes.h"
+int hermesi_program_init(hermes_t *hw, u32 offset);
+int hermesi_program_end(hermes_t *hw);
int hermes_program(hermes_t *hw, const char *first_block, const char *end);
int hermes_read_pda(hermes_t *hw,
@@ -37,6 +39,9 @@ int hermes_read_pda(hermes_t *hw,
int hermes_apply_pda(hermes_t *hw,
const char *first_pdr,
const __le16 *pda);
+int hermes_apply_pda_with_defaults(hermes_t *hw,
+ const char *first_pdr,
+ const __le16 *pda);
size_t hermes_blocks_length(const char *first_block);