From owner-freebsd-hackers Mon Nov 27 22: 3:39 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from hand.dotat.at (sfo-gw.covalent.net [207.44.198.62]) by hub.freebsd.org (Postfix) with ESMTP id 0F33E37B479 for ; Mon, 27 Nov 2000 22:03:36 -0800 (PST) Received: from fanf by hand.dotat.at with local (Exim 3.15 #3) id 140drC-000FCZ-00 for hackers@FreeBSD.org; Tue, 28 Nov 2000 06:03:10 +0000 Date: Tue, 28 Nov 2000 06:03:10 +0000 From: Tony Finch To: hackers@FreeBSD.org Subject: Re: psm and PNPBIOS Message-ID: <20001128060310.A58294@hand.dotat.at> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: Organization: Covalent Technologies, Inc Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Tony Finch wrote: > >There seems to be some "notyet" code in psm.c which looks relevant, >but enabling it with the patch below doesn't do the trick. I guess >this is because at the time the probe runs the atkbdc hasn't probed >yet so isn't there to attach to. Um. Index: psm.c =================================================================== RCS file: /home/ncvs/src/sys/isa/psm.c,v retrieving revision 1.23.2.4 diff -u -r1.23.2.4 psm.c --- psm.c 2000/08/24 08:50:38 1.23.2.4 +++ psm.c 2000/11/27 22:38:02 @@ -313,13 +313,11 @@ sizeof(struct psm_softc), }; -#if notyet static struct isa_pnp_id psm_ids[] = { { 0x130fd041, "PS/2 mouse port" }, /* PNP0F13 */ { 0x1303d041, "PS/2 port" }, /* PNP0313, XXX */ { 0 } }; -#endif #define CDEV_MAJOR 21 @@ -805,11 +803,9 @@ kbdc_debug(TRUE); #endif -#if notyet /* check PnP IDs */ - if (XXX_PNP_PROBE(device_get_parent(dev), dev, psm_ids) == ENXIO) + if (ISA_PNP_PROBE(device_get_parent(dev), dev, psm_ids) == ENXIO) return ENXIO; -#endif BUS_READ_IVAR(device_get_parent(dev), dev, KBDC_IVAR_IRQ, &irq); BUS_READ_IVAR(device_get_parent(dev), dev, KBDC_IVAR_FLAGS, &flags); Tony. -- f.a.n.finch dot@dotat.at fanf@covalent.net Chad for President! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message