[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: (Semi-random) thoughts on device tree structure and devfs
>> have pseudo0 attach at mainbus0 [...]
>> I did this because I needed a struct device
> That's what attach_pseudo does...
I probably could have done it that way, but it looked easier to do it
as a pseudo-bus, and for the purposes at the time, the method didn't
matter all that much.
> I think it makes sense to have some way to create a device hierarchy
> without pretending that it is connected to the platform's physical
> main bus.
mainbus0 does not necessarily correspond to any physical bus. There is
other precedent for things in the autoconf tree that do not correspond
to anything physical, such as wsdisplay. (Or, more precisely,
corresponds to the same physical thing as something else.)
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents-montreal.org@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Main Index |
Thread Index |