From e5d21141d6453650d1476c8767146e3e93af497c Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 6 Sep 2006 15:51:26 +0000 Subject: [PATCH] Increase max bank (or logical device) number from 15 to 31, as 20 was seen in some chips (PC87427.) git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4151 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/dump/isadump.8 | 4 ++-- prog/dump/isadump.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/prog/dump/isadump.8 b/prog/dump/isadump.8 index 92a419f7..3b3bc989 100644 --- a/prog/dump/isadump.8 +++ b/prog/dump/isadump.8 @@ -53,7 +53,7 @@ register at 0x2F. .PP The \fIbank\fR and \fIbankreg\fR parameters are useful on the Winbond chips as well as on Super-I/O chips. -\fIbank\fR is an integer between 0 and 15, and \fIbankreg\fR is an integer +\fIbank\fR is an integer between 0 and 31, and \fIbankreg\fR is an integer between 0x00 and 0xFF (default value: 0x4E for Winbond chips, 0x07 for Super-I/O chips). The W83781D datasheet has more information on bank selection. @@ -68,7 +68,7 @@ and the address is forcibly aligned on a 256-byte boundary. .PP The \fIbank\fR and \fIbankreg\fR parameters are useful on the National Semiconductor PC87365 and PC87366 Super-I/O chips. -\fIbank\fR is an integer between 0 and 15, and \fIbankreg\fR is an integer +\fIbank\fR is an integer between 0 and 31, and \fIbankreg\fR is an integer between 0x00 and 0xFF (default value: 0x09; must fit in the specified range). See the PC87365 datasheet for more information on bank selection. diff --git a/prog/dump/isadump.c b/prog/dump/isadump.c index b6eb05ad..2a2f5fae 100644 --- a/prog/dump/isadump.c +++ b/prog/dump/isadump.c @@ -200,8 +200,8 @@ int main(int argc, char *argv[]) help(); exit(1); } - if ((bank < 0) || (bank > 15)) { - fprintf(stderr, "Error: bank out of range (0-15)!\n"); + if ((bank < 0) || (bank > 31)) { + fprintf(stderr, "Error: bank out of range (0-31)!\n"); help(); exit(1); }