diff options
author | David Kilroy <kilroyd@gmail.com> | 2008-08-21 18:27:53 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-22 19:28:05 -0400 |
commit | 8f5ae73c5366128d3800cf9765507422bcf1ef96 (patch) | |
tree | 5823eb838fe7fb782501171025a61c4c8b0c0423 /drivers/net/wireless/hermes_dld.h | |
parent | e23341809b7b60981d14a368155cd1f0724fb8d5 (diff) |
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.h | 5 |
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 @@ | |||
27 | 27 | ||
28 | #include "hermes.h" | 28 | #include "hermes.h" |
29 | 29 | ||
30 | int hermesi_program_init(hermes_t *hw, u32 offset); | ||
31 | int hermesi_program_end(hermes_t *hw); | ||
30 | int hermes_program(hermes_t *hw, const char *first_block, const char *end); | 32 | int hermes_program(hermes_t *hw, const char *first_block, const char *end); |
31 | 33 | ||
32 | int hermes_read_pda(hermes_t *hw, | 34 | int hermes_read_pda(hermes_t *hw, |
@@ -37,6 +39,9 @@ int hermes_read_pda(hermes_t *hw, | |||
37 | int hermes_apply_pda(hermes_t *hw, | 39 | int hermes_apply_pda(hermes_t *hw, |
38 | const char *first_pdr, | 40 | const char *first_pdr, |
39 | const __le16 *pda); | 41 | const __le16 *pda); |
42 | int hermes_apply_pda_with_defaults(hermes_t *hw, | ||
43 | const char *first_pdr, | ||
44 | const __le16 *pda); | ||
40 | 45 | ||
41 | size_t hermes_blocks_length(const char *first_block); | 46 | size_t hermes_blocks_length(const char *first_block); |
42 | 47 | ||