Update PC-9800 file in 2.5.61-ac1
Subsystems (6)
PATCH 1/1 Update PC-9800 file in 2.5.61-ac1
This patch updates files for PC-9800 in 2.5.61-ac1, to get compatibilty with 2.5.61. Please aplly.
arch/i386/Makefile | 14 arch/i386/boot98/Makefile | 22 arch/i386/boot98/compressed/Makefile | 3 arch/i386/kernel/i8259.c | 2 arch/i386/mach-pc9800/Makefile | 10 arch/i386/mach-pc9800/setup.c | 8 arch/i386/mach-pc9800/topology.c | 68 ++ drivers/block/Kconfig | 8 drivers/block/Makefile | 5 drivers/block/floppy98.c | 102 ++- drivers/char/Kconfig | 6 drivers/char/Makefile | 2 drivers/char/lp_old98.c | 303 ++++------ drivers/char/upd4990a.c | 25 drivers/input/keyboard/Kconfig | 2 drivers/input/mouse/98busmouse.c | 7 drivers/input/mouse/Kconfig | 2 drivers/input/serio/98kbd-io.c | 13 drivers/input/serio/Kconfig | 2 drivers/pci/quirks.c | 2 drivers/video/console/Makefile | 1 drivers/video/console/gdccon.c | 833 +++++++++++++++++++++++++++++ drivers/video/gdccon.c | 834 ------------------------------ include/asm-i386/gdc.h | 144 ++--- include/asm-i386/mach-pc9800/entry_arch.h | 1 include/asm-i386/mach-pc9800/mach_apic.h | 1 include/asm-i386/serial.h | 4 include/asm-i386/upd4990a.h | 6 28 files changed, 1238 insertions(+), 1192 deletions(-)
--
Osamu Tomita
arch/i386/Makefile +11 -3
@@ -65,6 +65,10 @@ mflags-$(CONFIG_X86_NUMAQ) := -Iinclude/asm-i386/mach-numaq mcore-$(CONFIG_X86_NUMAQ) := mach-default +# PC-9800 subarch support +mflags-$(CONFIG_X86_PC9800) := -Iinclude/asm-i386/mach-pc9800 +mcore-$(CONFIG_X86_PC9800) := mach-pc9800 + # BIGSMP subarch support mflags-$(CONFIG_X86_BIGSMP) := -Iinclude/asm-i386/mach-bigsmp mcore-$(CONFIG_X86_BIGSMP) := mach-default
@@ -103,14 +107,18 @@ AFLAGS_vmlinux.lds.o += -DNO_X86_HAL_INCLUDES endif +ifeq ($(CONFIG_X86_PC9800),y) +boot := arch/i386/boot98 +else boot := arch/i386/boot +endif .PHONY: zImage bzImage compressed zlilo bzlilo zdisk bzdisk install all: bzImage -BOOTIMAGE=arch/i386/boot/bzImage -zImage zlilo zdisk: BOOTIMAGE=arch/i386/boot/zImage +BOOTIMAGE=$(boot)/bzImage +zImage zlilo zdisk: BOOTIMAGE=$(boot)/zImage zImage bzImage: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(BOOTIMAGE)
@@ -131,7 +139,7 @@ $(Q)$(MAKE) $(clean)=arch/i386/boot98 define archhelp - echo '* bzImage - Compressed kernel image (arch/$(ARCH)/boot/bzImage)' + echo '* bzImage - Compressed kernel image ($(boot)/bzImage)' echo ' install - Install kernel using' echo ' (your) ~/bin/installkernel or' echo ' (distribution) /sbin/installkernel or'
arch/i386/boot98/Makefile +6 -16
@@ -32,11 +32,9 @@ host-progs := tools/build -# Default - -boot: bzImage - -include $(TOPDIR)/Rules.make +ifdef CONFIG_X86_HAL +AFLAGS += -DNO_X86_HAL_INCLUDES +endif # ---------------------------------------------------------------------------
@@ -53,6 +51,7 @@ $(obj)/zImage $(obj)/bzImage: $(obj)/bootsect $(obj)/setup \ $(obj)/vmlinux.bin $(obj)/tools/build FORCE $(call if_changed,image) + @echo 'Kernel: $@ is ready' $(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE $(call if_changed,objcopy)
@@ -64,9 +63,8 @@ $(call if_changed,ld) $(obj)/compressed/vmlinux: FORCE - +@$(call descend,$(obj)/compressed,IMAGE_OFFSET=$(IMAGE_OFFSET) \ - $(obj)/compressed/vmlinux) - + $(Q)$(MAKE) -f scripts/Makefile.build obj=$(obj)/compressed \ + IMAGE_OFFSET=$(IMAGE_OFFSET) $@ zdisk: $(BOOTIMAGE) dd bs=8192 if=$(BOOTIMAGE) of=/dev/fd0
@@ -80,11 +78,3 @@ install: $(BOOTIMAGE) sh $(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)" - -archhelp: - @echo '* bzImage - Compressed kernel image (arch/$(ARCH)/boot/bzImage)' - @echo ' install - Install kernel using' - @echo ' (your) ~/bin/installkernel or' - @echo ' (distribution) /sbin/installkernel or' - @echo ' install to $$(INSTALL_PATH) and run lilo' -
arch/i386/boot98/compressed/Makefile +1 -2
@@ -7,12 +7,11 @@ EXTRA_TARGETS := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o piggy.o EXTRA_AFLAGS := -traditional -include $(TOPDIR)/Rules.make - LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -e startup_32 $(obj)/vmlinux: $(obj)/head.o $(obj)/misc.o $(obj)/piggy.o FORCE $(call if_changed,ld) + @: $(obj)/vmlinux.bin: vmlinux FORCE $(call if_changed,objcopy)
arch/i386/kernel/i8259.c +1 -1
@@ -328,7 +328,7 @@static void math_error_irq (int cpl,void *dev_id,struct pt_regs *regs) {extern void math_error (void *); -#ifndef CONFIG_PC9800 +#ifndef CONFIG_X86_PC9800 outb (0 ,0xF0 );#endif if (ignore_fpu_irq || !boot_cpu_data.hard_math)
arch/i386/mach-pc9800/Makefile +1 -9
@@ -1,15 +1,7 @@ # # Makefile for the linux kernel. # -# Note! Dependencies are done automagically by 'make dep', which also -# removes any old dependencies. DON'T put your own dependencies here -# unless it's something special (ie not a .c file). -# -# Note 2! The CFLAGS definitions are now in the main makefile... EXTRA_CFLAGS += -I../kernel -export-objs := - -obj-y := setup.o -include $(TOPDIR)/Rules.make +obj-y := setup.o topology.o
arch/i386/mach-pc9800/setup.c +4 -4
@@ -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>
@@ -16,9 +17,6 @@unsigned char table[0 ]; }; -/* Indicates PC-9800 architecture No:0 Yes:1 */ -extern int pc98; -/** * pre_intr_init_hook - initialisation prior to setting up interrupt vectors *
@@ -68,7 +66,9 @@ {SYS_DESC_TABLE .length =0 ; MCA_bus =0 ; - pc98 =1 ; +/* 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 ); }/**
arch/i386/mach-pc9800/topology.c +68 -0
68 lines not on this page · raw message
drivers/block/Kconfig +8 -0
@@ -6,6 +6,7 @@ config BLK_DEV_FD tristate "Normal floppy disk support" + depends on !X86_PC9800 ---help--- If you want to use the floppy disk drive(s) of your PC under Linux, say Y. Information about this driver, especially important for IBM
@@ -27,6 +28,13 @@ tristate "Atari floppy support" depends on ATARI +config BLK_DEV_FD98 + tristate "NEC PC-9800 floppy disk support" + depends on X86_PC9800 + ---help--- + If you want to use the floppy disk drive(s) of NEC PC-9801/PC-9821, + say Y. + config BLK_DEV_SWIM_IOP bool "Macintosh IIfx/Quadra 900/Quadra 950 floppy support (EXPERIMENTAL)" depends on MAC && EXPERIMENTAL
drivers/block/Makefile +1 -4
@@ -11,11 +11,8 @@ obj-y := elevator.o ll_rw_blk.o ioctl.o genhd.o scsi_ioctl.o deadline-iosched.o obj-$(CONFIG_MAC_FLOPPY) += swim3.o -ifneq ($(CONFIG_PC9800),y) obj-$(CONFIG_BLK_DEV_FD) += floppy.o -else -obj-$(CONFIG_BLK_DEV_FD) += floppy98.o -endif +obj-$(CONFIG_BLK_DEV_FD98) += floppy98.o obj-$(CONFIG_AMIGA_FLOPPY) += amiflop.o obj-$(CONFIG_ATARI_FLOPPY) += ataflop.o obj-$(CONFIG_BLK_DEV_SWIM_IOP) += swim_iop.o
drivers/block/floppy98.c +60 -42
223 lines not on this page · raw message
drivers/char/Kconfig +3 -3
@@ -577,7 +577,7 @@ config PC9800_OLDLP tristate "NEC PC-9800 old-style printer port support" - depends on PC9800 && !PARPORT + depends on X86_PC9800 && !PARPORT ---help--- If you intend to attach a printer to the parallel port of NEC PC-9801 /PC-9821 with OLD compatibility mode, Say Y.
@@ -785,7 +785,7 @@ config RTC tristate "Enhanced Real Time Clock Support" - depends on !PPC32 && !PARISC && !IA64 && !PC9800 + depends on !PPC32 && !PARISC && !IA64 && !X86_PC9800 ---help--- If you say Y here and create a character special file /dev/rtc with major number 10 and minor number 135 using mknod ("man mknod"), you
@@ -846,7 +846,7 @@ config RTC98 tristate "NEC PC-9800 Real Time Clock Support" - depends on PC9800 + depends on X86_PC9800 default y ---help--- If you say Y here and create a character special file /dev/rtc with
drivers/char/Makefile +2 -0
@@ -44,6 +44,7 @@ obj-$(CONFIG_PRINTER) += lp.o obj-$(CONFIG_TIPAR) += tipar.o +obj-$(CONFIG_PC9800_OLDLP) += lp_old98.o obj-$(CONFIG_BUSMOUSE) += busmouse.o obj-$(CONFIG_DTLK) += dtlk.o
@@ -51,6 +52,7 @@ obj-$(CONFIG_APPLICOM) += applicom.o obj-$(CONFIG_SONYPI) += sonypi.o obj-$(CONFIG_RTC) += rtc.o +obj-$(CONFIG_RTC98) += upd4990a.o obj-$(CONFIG_GEN_RTC) += genrtc.o obj-$(CONFIG_EFI_RTC) += efirtc.o ifeq ($(CONFIG_PPC),)
drivers/char/lp_old98.c +135 -168
567 lines not on this page · raw message
drivers/char/upd4990a.c +8 -17
@@ -51,8 +51,6 @@static struct timer_list rtc_uie_timer;static u8 old_refclk; -static long long rtc_llseek (struct file *file,loff_t offset,int origin); -static int rtc_ioctl (struct inode *inode,struct file *file,unsigned int cmd,unsigned long arg);
@@ -114,11 +112,6 @@* Now all the various file operations that we export. */ -static long long rtc_llseek (struct file *file,loff_t offset,int origin) -{ -return -ESPIPE ; -} -static ssize_t rtc_read (struct file *file,char *buf,size_t count,loff_t *ppos) {
@@ -335,14 +328,14 @@*/ static struct file_operations rtc_fops = { - owner:THIS_MODULE , - llseek: rtc_llseek, - read: rtc_read, - poll: rtc_poll, - ioctl: rtc_ioctl, - open: rtc_open, - release: rtc_release, - fasync: rtc_fasync, + .owner =THIS_MODULE , + .llseek = no_llseek, + .read = rtc_read, + .poll = rtc_poll, + .ioctl = rtc_ioctl, + .open = rtc_open, + .release = rtc_release, + .fasync = rtc_fasync, }; static struct miscdevice rtc_dev=
@@ -389,8 +382,6 @@module_exit (rtc_exit);#endif -EXPORT_NO_SYMBOLS ; -/* * Info exported via "/proc/driver/rtc". */
drivers/input/keyboard/Kconfig +1 -1
@@ -92,7 +92,7 @@ config KEYBOARD_98KBD tristate "NEC PC-9800 Keyboard support" - depends on PC9800 && INPUT && INPUT_KEYBOARD && SERIO + depends on X86_PC9800 && INPUT && INPUT_KEYBOARD && SERIO help Say Y here if you want to use the NEC PC-9801/PC-9821 keyboard (or compatible) on your system.
drivers/input/mouse/98busmouse.c +4 -3
@@ -31,15 +31,16 @@* */ -#include <asm/io.h> -#include <asm/irq.h> -#include <linux/config.h> #include <linux/module.h> #include <linux/delay.h> #include <linux/ioport.h> #include <linux/init.h> #include <linux/input.h> +#include <linux/interrupt.h> + +#include <asm/io.h> +#include <asm/irq.h> MODULE_AUTHOR ("Osamu Tomita <[email protected]>" );MODULE_DESCRIPTION ("PC-9801 busmouse driver" );
drivers/input/mouse/Kconfig +1 -1
@@ -123,7 +123,7 @@ config MOUSE_PC9800 tristate "NEC PC-9800 busmouse" - depends on PC9800 && INPUT && INPUT_MOUSE && ISA + depends on X86_PC9800 && INPUT && INPUT_MOUSE && ISA help Say Y here if you have NEC PC-9801/PC-9821 computer and want its native mouse supported.
drivers/input/serio/98kbd-io.c +5 -8
@@ -11,16 +11,17 @@* the Free Software Foundation. */ -#include <asm/io.h> - +#include <linux/config.h> #include <linux/delay.h> #include <linux/module.h> +#include <linux/interrupt.h> #include <linux/ioport.h> -#include <linux/config.h> #include <linux/init.h> #include <linux/serio.h> #include <linux/sched.h> +#include <asm/io.h> +MODULE_AUTHOR ("Osamu Tomita <[email protected]>" );MODULE_DESCRIPTION ("NEC PC-9801 keyboard controller driver" );MODULE_LICENSE ("GPL" );
@@ -147,15 +148,11 @@unsigned long flags;unsigned char data; -#ifdef CONFIG_VT - kbd_pt_regs = regs; -#endif -spin_lock_irqsave (&kbd98io_lock, flags); data =inb (KBD98_DATA_REG );spin_unlock_irqrestore (&kbd98io_lock, flags); -serio_interrupt (&kbd98_port, data,0 ); +serio_interrupt (&kbd98_port, data,0 , regs); }
drivers/input/serio/Kconfig +1 -1
@@ -109,7 +109,7 @@ config SERIO_98KBD tristate "NEC PC-9800 keyboard controller" - depends on PC9800 && SERIO + depends on X86_PC9800 && SERIO help Say Y here if you have the NEC PC-9801/PC-9821 and want to use its standard keyboard connected to its keyboard controller.
drivers/pci/quirks.c +2 -0
@@ -560,6 +560,8 @@ { PCI_FIXUP_FINAL, PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C596, quirk_isa_dma_hangs }, { PCI_FIXUP_FINAL, PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371SB_0, quirk_isa_dma_hangs }, { PCI_FIXUP_FINAL, PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_CBUS_1, quirk_isa_dma_hangs }, + { PCI_FIXUP_FINAL, PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_CBUS_2, quirk_isa_dma_hangs }, + { PCI_FIXUP_FINAL, PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_CBUS_3, quirk_isa_dma_hangs }, { PCI_FIXUP_HEADER, PCI_VENDOR_ID_S3, PCI_DEVICE_ID_S3_868, quirk_s3_64M }, { PCI_FIXUP_HEADER, PCI_VENDOR_ID_S3, PCI_DEVICE_ID_S3_968, quirk_s3_64M }, { PCI_FIXUP_FINAL, PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82437, quirk_triton },
drivers/video/console/Makefile +1 -0
@@ -19,6 +19,7 @@ # Each configuration option enables a list of files. obj-$(CONFIG_DUMMY_CONSOLE) += dummycon.o +obj-$(CONFIG_GDC_CONSOLE) += gdccon.o obj-$(CONFIG_SGI_NEWPORT_CONSOLE) += newport_con.o obj-$(CONFIG_PROM_CONSOLE) += promcon.o promcon_tbl.o obj-$(CONFIG_STI_CONSOLE) += sticon.o sticore.o
drivers/video/console/gdccon.c +833 -0
833 lines not on this page · raw message
drivers/video/gdccon.c +0 -834
834 lines not on this page · raw message
include/asm-i386/gdc.h +79 -65
118 lines not on this page · raw message
include/asm-i386/mach-pc9800/entry_arch.h +0 -1
Lines of this file are not shown. View the raw message.
include/asm-i386/mach-pc9800/mach_apic.h +0 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.