mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-04 21:58:18 +00: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 parent
1f4ebca0c9
commit
cbdca6d91a
2 files changed
+8
No files matched your search
@@ -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