From 02d30b1c2de5969cf6f48dc4f2af08ffa960e105 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathieu=20B=C3=A9rard?= Date: Sat, 16 Sep 2006 22:35:49 +0000 Subject: [PATCH] * ATI chipset fix --- nbsmi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nbsmi.c b/nbsmi.c index 36b22ac..d9cf2a3 100644 --- a/nbsmi.c +++ b/nbsmi.c @@ -41,7 +41,12 @@ #define BUFFER_SIZE 0x20 #define INTEL_OFFSET 0x60 #define INTEL_SMI_PORT 0xb2 /* APM_CNT port in INTEL ICH specs */ -#define ATI_OFFSET 0xef +/* + * Toshiba Specs state 0xef here but: + * -this would overflow (ef + 19 > ff) + * -code from Toshiba use e0, which make much more sense + */ +#define ATI_OFFSET 0xe0 #define ATI_SMI_PORT 0xb0 #define EC_INDEX_PORT 0x300 -- 2.43.5