Subject: Re: A device with two attachments?
To: Peter Seebach <seebs@plethora.net>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: tech-kern
Date: 03/19/2006 09:50:35
seebs@plethora.net (Peter Seebach) writes:
> Do I even try to express this relationship in autoconfig? If so, how? I
> can't see any way to get autoconfig to give me both "parent" devices. The
> next option over is to add an interface to the gpio driver to let me query
> it for its softc so I can call its utility functions directly, and just
> attach my flash device to pbus.
>
> Have I missed the obvious again?
Not really. Your second idea (attach to pbus, have an auxillalry
method for getting at the gpio pins) is probably the best way to do
things. autoconf(9) doesn't really do very well at expressing anything
other than devices that are fully encapsulated within one bus; few
embedded devices have this property.
- Nathan