From cbdca6d91a62b14d616af9fb7415cb54da39640e Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 25 Mar 2007 15:16:12 +0000 Subject: [PATCH] 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 --- CHANGES | 4 ++++ prog/dump/isadump.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGES b/CHANGES index f305a791..e7b1780a 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/prog/dump/isadump.c b/prog/dump/isadump.c index 1ed7dcc5..5031e783 100644 --- a/prog/dump/isadump.c +++ b/prog/dump/isadump.c @@ -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);