From owner-cvs-all Sat Aug 31 13:29:53 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 01EFC37B400; Sat, 31 Aug 2002 13:29:47 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB8CF43E4A; Sat, 31 Aug 2002 13:29:46 -0700 (PDT) (envelope-from phk@FreeBSD.org) Received: from freefall.freebsd.org (phk@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7VKTkJU010140; Sat, 31 Aug 2002 13:29:46 -0700 (PDT) (envelope-from phk@freefall.freebsd.org) Received: (from phk@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7VKTk53010139; Sat, 31 Aug 2002 13:29:46 -0700 (PDT) Message-Id: <200208312029.g7VKTk53010139@freefall.freebsd.org> From: Poul-Henning Kamp Date: Sat, 31 Aug 2002 13:29:46 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/puc puc.c puc_pccard.c puc_pci.c pucdata.c pucvar.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk 2002/08/31 13:29:46 PDT Modified files: sys/dev/puc puc.c puc_pccard.c puc_pci.c pucdata.c pucvar.h Log: More cleaning up and unhacking: Don't expect all RIDs to be PCI rids. The previous code made at least 1 mistake, even for PCI. Give the card definitions a chance to specify a init function. Use this instead of the gross superio hack. Move the win877 init function to puc_pci.c where it belongs. RIDs can actually be zero, don't set badmuxed if so. Set a less incorrect end for the construct SYS_RES_IOPORT entries, I guess both sio and lpt happen to use 8 IO ports, but that shouldn't really be hardcoded this way. Fixup puc_pccard.c to match. We're getting closer. Revision Changes Path 1.10 +33 -148 src/sys/dev/puc/puc.c 1.2 +7 -3 src/sys/dev/puc/puc_pccard.c 1.3 +126 -0 src/sys/dev/puc/puc_pci.c 1.11 +76 -0 src/sys/dev/puc/pucdata.c 1.4 +7 -1 src/sys/dev/puc/pucvar.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message