From 44b76228069829c0df6246d291d7f7c5baff4879 Mon Sep 17 00:00:00 2001 From: shiba Date: Sun, 3 Nov 2002 11:04:35 +0000 Subject: [PATCH] Support internal ADB keyboard of PowerBook 190,190cs. The keyboard works fine now. I don't confirm working internal ADB track pad. But an internal IDE drive is not recognized, and an internal SCSI host controller(sbc driver) don't work yet. --- sys/arch/mac68k/dev/adb_direct.c | 4 +++- sys/arch/mac68k/dev/pm_direct.c | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/arch/mac68k/dev/adb_direct.c b/sys/arch/mac68k/dev/adb_direct.c index ef3e75a74bfe..695b33116f3c 100644 --- a/sys/arch/mac68k/dev/adb_direct.c +++ b/sys/arch/mac68k/dev/adb_direct.c @@ -1,4 +1,4 @@ -/* $NetBSD: adb_direct.c,v 1.47 2002/05/30 21:26:13 thorpej Exp $ */ +/* $NetBSD: adb_direct.c,v 1.48 2002/11/03 11:04:35 shiba Exp $ */ /* From: adb_direct.c 2.02 4/18/97 jpw */ @@ -2533,6 +2533,8 @@ adb_setup_hw_type(void) case MACH_MACPB280: /* PowerBook Duo 280 */ case MACH_MACPB280C: /* PowerBook Duo 280c */ case MACH_MACPB500: /* PowerBook 500 series */ + case MACH_MACPB190: /* PowerBook 190 */ + case MACH_MACPB190CS: /* PowerBook 190cs */ adbHardware = ADB_HW_PB; pm_setup_adb(); #ifdef ADB_DEBUG diff --git a/sys/arch/mac68k/dev/pm_direct.c b/sys/arch/mac68k/dev/pm_direct.c index 6d6f6bf67e6c..8c1bfaf4ac04 100644 --- a/sys/arch/mac68k/dev/pm_direct.c +++ b/sys/arch/mac68k/dev/pm_direct.c @@ -1,4 +1,4 @@ -/* $NetBSD: pm_direct.c,v 1.20 2002/05/30 21:27:41 thorpej Exp $ */ +/* $NetBSD: pm_direct.c,v 1.21 2002/11/03 11:04:36 shiba Exp $ */ /* * Copyright (C) 1997 Takashi Hamada @@ -268,6 +268,8 @@ pm_setup_adb() case MACH_MACPB280: case MACH_MACPB280C: case MACH_MACPB500: + case MACH_MACPB190: + case MACH_MACPB190CS: pmHardware = PM_HW_PB5XX; break; default: @@ -1061,6 +1063,8 @@ pm_adb_op(buffer, compRout, data, command) case MACH_MACPB270: case MACH_MACPB280: case MACH_MACPB280C: + case MACH_MACPB190: + case MACH_MACPB190CS: pm_intr((void *)0); break; default: