Bump the HAL_REGRANGE fields from 16 bit to 32 bit.

The AR9380 and later chips have a 128KiB register window, so the register
read diag api needs changing.

The tools are about to be updated as well.  No, they're not backwards
compatible.
This commit is contained in:
Adrian Chadd 2014-08-09 18:15:28 +00:00
parent 4d33fe39e4
commit fad86101e5
2 changed files with 7 additions and 6 deletions

View File

@ -850,10 +850,11 @@ ath_hal_getregdump(struct ath_hal *ah, const HAL_REGRANGE *regs,
int i;
for (i = 0; space >= 2*sizeof(uint32_t); i++) {
u_int r = regs[i].start;
u_int e = regs[i].end;
*dp++ = (r<<16) | e;
space -= sizeof(uint32_t);
uint32_t r = regs[i].start;
uint32_t e = regs[i].end;
*dp++ = r;
*dp++ = e;
space -= 2*sizeof(uint32_t);
do {
*dp++ = OS_REG_READ(ah, r);
r += sizeof(uint32_t);

View File

@ -50,8 +50,8 @@
#endif
typedef struct {
uint16_t start; /* first register */
uint16_t end; /* ending register or zero */
uint32_t start; /* first register */
uint32_t end; /* ending register or zero */
} HAL_REGRANGE;
typedef struct {