From a747a8f16d912f4b321c10f3706b044eac2b2b32 Mon Sep 17 00:00:00 2001 From: sekiya Date: Fri, 17 Oct 2003 12:43:08 +0000 Subject: [PATCH] Mouse port offset was incorrect. --- sys/arch/sgimips/dev/pckbc_mace.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/sgimips/dev/pckbc_mace.c b/sys/arch/sgimips/dev/pckbc_mace.c index 1c577d530752..6b7fd585b297 100644 --- a/sys/arch/sgimips/dev/pckbc_mace.c +++ b/sys/arch/sgimips/dev/pckbc_mace.c @@ -1,4 +1,4 @@ -/* $NetBSD: pckbc_mace.c,v 1.7 2003/10/05 15:38:08 tsutsui Exp $ */ +/* $NetBSD: pckbc_mace.c,v 1.8 2003/10/17 12:43:08 sekiya Exp $ */ /* * Copyright (c) 2003 Christopher SEKIYA @@ -34,7 +34,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pckbc_mace.c,v 1.7 2003/10/05 15:38:08 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pckbc_mace.c,v 1.8 2003/10/17 12:43:08 sekiya Exp $"); #include #include @@ -100,9 +100,9 @@ pckbc_mace_attach(parent, self, aux) /* XXX should be bus_space_map() */ if (bus_space_subregion(maa->maa_st, maa->maa_sh, - maa->maa_offset, 1, &ioh_d) || + maa->maa_offset + KBDATAP, 1, &ioh_d) || bus_space_subregion(maa->maa_st, maa->maa_sh, - maa->maa_offset + 0x20, 1, &ioh_c)) + maa->maa_offset + KBCMDP, 1, &ioh_c)) panic("pckbc_attach: couldn't map"); t = malloc(sizeof(struct pckbc_internal), M_DEVBUF, M_WAITOK|M_ZERO);