mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-01 05:52:41 +07:00
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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user