Subject: Re: A device with two attachments?
To: Peter Seebach <>
From: Nathan J. Williams <>
List: tech-kern
Date: 03/19/2006 09:50:35 (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