Subject: Re: Quick question about autoconf and the emuxki driver
To: Mark Kirby <email@example.com>
From: Valeriy E. Ushakov <firstname.lastname@example.org>
Date: 11/10/2004 14:44:31
On Wed, Nov 10, 2004 at 10:13:33 +0000, Mark Kirby wrote:
> On Wednesday 10 November 2004 09:47, Valeriy E. Ushakov wrote:
> > These "not configured" messages are printed by the parent bus driver,
> > pci in this case. pci driver tries to attach its children. emuxki
> > claims (match/attach) device/function 11/0, but no driver claims 11/1
> > and 11/2.
> Ok i understand what you are saying, but how does the pci bus driver
> know that the card has these functions, does it somehow ask the card
> what functions it has?
pci bus can enumerate its children, see pci_enumerate_bus() in
> I'm sorry these questions are elementary, the document by Jochen
> Kunz "Writing drivers for NetBSD" does not cover devices with
> multiple functions. I shall go through it again with a fine tooth
> comb later and see if i cant get my head around things.
Just think about them as being completely different and unrelated
devices as far as drivers are concerned.
E.g. you don't want emuxki(4) (that handles function 0 of this PCI
device) to handle, or even be aware of the firewire (function 2) :).
email@example.com | Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen