From owner-cvs-all Sun May 20 20:22:57 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0C76E37B422; Sun, 20 May 2001 20:22:54 -0700 (PDT) (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4L3Mrx22374; Sun, 20 May 2001 20:22:53 -0700 (PDT) (envelope-from imp) Message-Id: <200105210322.f4L3Mrx22374@freefall.freebsd.org> From: Warner Losh Date: Sun, 20 May 2001 20:22:53 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/pccard pcic.c pcic_isa.c pcicvar.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 imp 2001/05/20 20:22:53 PDT Modified files: sys/pccard pcic.c pcic_isa.c pcicvar.h Log: Next step towards pcic_pci: the ability to allocate mapped memory in attach. o Introduce flags word to the softc. This will be used to control various aspects of the driver. Right now there are two bits defined, PCIC_IO_MAPPED and PCIC_MEM_MAPPED. One for ISA cards that are I/O mapped, the other is for PCI cards that are memory mapped. Only the ISA side is implemented with this commit. o Introduce a pcic_dealloc which will cleanly dealloc resources used. Right now it is only supported when called from probe/attach. o Keep track of resources allocated in the pcic_softc. o move pcictimeout_ch to the softc so we can support multiple devices in polling mode. o In ISA probe, set PCIC_IO_MAPPED. o Introduce and compute the slot mask. This will be used later when we expand the number of slots on ISA from 2 to 4. In such a case, we appear to have to use polling mode otherwise we get two different cards trying to drive the same interrupt line. I don't have hardware to test this configuration, so I'll stop here. Revision Changes Path 1.129 +57 -12 src/sys/pccard/pcic.c 1.3 +5 -1 src/sys/pccard/pcic_isa.c 1.4 +13 -1 src/sys/pccard/pcicvar.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message