From owner-freebsd-current Tue Nov 21 22:28:38 2000 Delivered-To: freebsd-current@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-178-138.dsl.snfc21.pacbell.net [63.202.178.138]) by hub.freebsd.org (Postfix) with ESMTP id B73FA37B479 for ; Tue, 21 Nov 2000 22:28:32 -0800 (PST) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.0/8.11.1) with ESMTP id eAM6ZYF01178; Tue, 21 Nov 2000 22:35:35 -0800 (PST) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200011220635.eAM6ZYF01178@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Justin T. Gibbs" Cc: freebsd-current@FreeBSD.ORG Subject: Re: Getting at cardbus CIS data from inside drivers In-reply-to: Your message of "Tue, 21 Nov 2000 23:23:09 MST." <200011220623.eAM6N9473750@aslan.scsiguy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 21 Nov 2000 22:35:34 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >In message <200011220427.eAM4RYF00772@mass.osd.bsdi.com> Mike Smith writes: > >: No; the CIS parser should know which function it's being called on behalf > >: of, and simply elide the tuples that don't relate to that function. > > > >This isn't always the right thing to do. At least in the 16-bit > >world, there are drivers that want to look at the CIS entries for the > >other function of the card for various reasons (some of them need to > >know what kind of modem is present, iirc, to initalize some things in > >a non-standard way, the example was the NetBSD driver mhz, iirc). I > >don't wish to preclude that. > > The ROM BAR is only implemented for function 0 and the ROM > contains information for all functions of the chip. So, functions > greater than 0 must have the flexibility to activate at least the ROM > BAR on function 0 as well as access that region. Does the driver need the ROM, or the CIS which may be inside the ROM? If the driver needs structured information from inside the ROM, this falls into the same category as the CIS. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message