Update PC-9800 support (1/3) keyboard driver

Update PC-9800 support (1/3) keyboard driver

Post by Osamu Tomit » Tue, 01 Apr 2003 18:20:20



This is the update patch for NEC PC-9800 subarchitecture
against 2.5.66-ac1. (1/3)
Please apply.

Update keyboard driver for PC-98.
Bug fix, CAPS key send scancode like mechanical lock keyboard.

diff -Nru linux-2.5.66-ac1/drivers/input/keyboard/98kbd.c linux98-2.5.66-ac1/drivers/input/keyboard/98kbd.c
--- linux-2.5.66-ac1/drivers/input/keyboard/98kbd.c     2003-03-25 07:00:18.000000000 +0900

                        input_sync(&kbd98->dev);
                        return;

+               case KEY_CAPSLOCK:
+                       input_report_key(&kbd98->dev, keycode, 1);
+                       input_sync(&kbd98->dev);
+                       input_report_key(&kbd98->dev, keycode, 0);
+                       input_sync(&kbd98->dev);
+                       return;
+
                case KBD98_KEY_NULL:
                        return;

Regards,
Osamu Tomita

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Update PC-9800 support (1/3) keyboard driver

Post by Osamu Tomit » Tue, 01 Apr 2003 18:30:17


This is the update patch for NEC PC-9800 subarchitecture
against 2.5.66-ac1. (2/3)
Please apply.

Update ALSA sound driver for PC-98.
Fix DMA initialze failure on some sound cards.

diff -Nru linux-2.5.66-ac1/sound/isa/cs423x/pc98.c linux98-2.5.66-ac1/sound/isa/cs423x/pc98.c
--- linux-2.5.66-ac1/sound/isa/cs423x/pc98.c    2003-03-25 07:00:18.000000000 +0900





  *
  *

                snd_printk(KERN_ERR IDENT ": Bad DMA %d\n", dma2[dev]);
                return -EINVAL;
        }
-       if (dma1[dev] != dma2[dev] && dma2[dev] >= 0)
+
+       outb(dma1[dev], 0x29);          /* dma1 boundary 64KB */
+       if (dma1[dev] != dma2[dev] && dma2[dev] >= 0) {
+               outb(0, 0x5f);          /* wait */
+               outb(dma2[dev], 0x29);  /* dma2 boundary 64KB */
                intr_bits |= 0x04;
+       }

        if (PC9800_SOUND_ID() == PC9800_SOUND_ID_118) {
                /* Set up CanBe control registers. */

Regards,
Osamu Tomita

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Update PC-9800 support (1/3) keyboard driver

Post by Osamu Tomit » Tue, 01 Apr 2003 18:30:24


This is the update patch for NEC PC-9800 subarchitecture
against 2.5.66-ac1. (3/3)
Please apply.

Update floppy driver for PC-98 to syncronize with floppy.c in 2.5.66.

diff -Nru linux-2.5.66-ac1/drivers/block/floppy98.c linux98-2.5.66-ac1/drivers/block/floppy98.c
--- linux-2.5.66-ac1/drivers/block/floppy98.c   2003-03-28 08:40:11.000000000 +0900

                                name = default_drive_params[type].name;
                                allowed_drive_mask |= 1 << drive;
                        }
+                       else
+                               allowed_drive_mask &= ~(1 << drive);
                } else {
                        params = &default_drive_params[0].params;
                        sprintf(temparea, "unknown type %d (usb?)", type);

Regards,
Osamu Tomita

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/