[PATCHSET] PC-9800 addtional for 2.5.50-ac1 (4/21)

From: Osamu Tomita (tomita@cinet.co.jp)
Date: Sun Dec 15 2002 - 06:06:02 EST


NEC PC-9800 subarchitecture support patch for 2.5.50-ac1 (4/21)
This is updates for mach-pc9800/setup.c.
"APM bios version bug fix" moved here from apm.c.

diffstat:
 arch/i386/mach-pc9800/setup.c | 6 ++++++
 1 files changed, 6 insertions(+)

Regards,
Osamu Tomita

diff -Nru linux-2.5.50-ac1/arch/i386/mach-pc9800/setup.c linux98-2.5.50-ac1/arch/i386/mach-pc9800/setup.c
--- linux-2.5.50-ac1/arch/i386/mach-pc9800/setup.c 2002-12-11 13:09:57.000000000 +0900
+++ linux98-2.5.50-ac1/arch/i386/mach-pc9800/setup.c 2002-12-12 22:15:25.000000000 +0900
@@ -8,6 +8,7 @@
 #include <linux/init.h>
 #include <linux/irq.h>
 #include <linux/interrupt.h>
+#include <linux/apm_bios.h>
 #include <asm/setup.h>
 #include <asm/arch_hooks.h>
 
@@ -69,6 +70,11 @@
         SYS_DESC_TABLE.length = 0;
         MCA_bus = 0;
         pc98 = 1;
+#ifdef CONFIG_PC9800
+ /* In PC-9800, APM BIOS version is written in BCD...?? */
+ APM_BIOS_INFO.version = (APM_BIOS_INFO.version & 0xff00)
+ | ((APM_BIOS_INFO.version & 0x00f0) >> 4);
+#endif
 }
 
 /**

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Dec 15 2002 - 22:00:32 EST