From owner-freebsd-hackers Thu Sep 5 12:22:33 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B41AA37B400; Thu, 5 Sep 2002 12:22:30 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC8FD43E3B; Thu, 5 Sep 2002 12:22:29 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.3/8.12.2) with ESMTP id g85JMBAg002077; Thu, 5 Sep 2002 21:22:20 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Bruce M Simpson Cc: freebsd-hackers@FreeBSD.ORG, imp@FreeBSD.ORG Subject: Re: PCMCIA questions: mapping attribute and common memory? In-Reply-To: Your message of "Thu, 05 Sep 2002 20:15:46 BST." <20020905191546.GF15218@spc.org> Date: Thu, 05 Sep 2002 21:22:11 +0200 Message-ID: <2076.1031253731@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20020905191546.GF15218@spc.org>, Bruce M Simpson writes: >Hey there, > >I have a few questions regarding a PCMCIA driver I'm writing. > >How do I map in attribute and common memory blocks from a PCMCIA card? >Is this done on my behalf by the pcic(4) driver? >Does it scan the CIS tuples for me and perform the appropriate allocations? >If so, how do I get at the resource? >If not, how would I go about doing this myself in the driver? >And what would I want to put in my driver's xxx_probe() routine? Suggest you look at the sys/dev/sio/sio_pccard.c file... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message