isadump: In addr/data-style mode, detect when bit 7 of the address port

is a busy flag, and automatically adjust the range from 256 to 128 bytes
in that case.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4351 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2007-03-25 15:16:12 +00:00
parent 1f4ebca0c9
commit cbdca6d91a
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -1,6 +1,10 @@
lm_sensors CHANGES file
-----------------------
SVN HEAD
Program isadump: Detect when address bit 7 is a busy flag
2.10.3 (20070319)
Library: Do not skip i2c adapters with only a class device and no
physical device. This change is required to survive the
+4
View File
@@ -293,6 +293,10 @@ int main(int argc, char *argv[])
res = inb(addrreg + i + j);
} else {
outb(i+j, addrreg);
if (i+j == 0 && (inb(addrreg) & 0x80)) {
/* Bit 7 appears to be a busy flag */
range = 128;
}
res = inb(datareg);
}
printf("%02x ", res);