]> Devoid-pointer.net GitWeb - omnibook.git/commitdiff
* ATI chipset fix
authorMathieu Bérard <mathieu.berard@crans.org>
Sat, 16 Sep 2006 22:35:49 +0000 (22:35 +0000)
committerMathieu Bérard <mathieu.berard@crans.org>
Sat, 16 Sep 2006 22:35:49 +0000 (22:35 +0000)
nbsmi.c

diff --git a/nbsmi.c b/nbsmi.c
index 36b22ac9a46e23ce25ef2eeed49f694a6f29afb2..d9cf2a311ad41c0835cf5caf9b25f36bfed15892 100644 (file)
--- a/nbsmi.c
+++ b/nbsmi.c
 #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