Re: driverfs support for motherboard devices

Jeff Garzik
2002-02-05T18:36:35Z

Pavel Machek wrote:
>
> Hi!
>
> This patch adds support for motherboard devices, so that you can see
> them in driverfs.
>
> Should ide be presented to driverfs as bus with two devices on it?

This is a tough one... Since there is a typically a single PCI device
for IDE, a PCI or HOST bridge should register an IDE device. The IDE
device would in turn register two IDE controllers, which would in turn
register up to two disks.

> What about "legacy" bus? It is not in this release, and I'm not 100%
> sure who should generate it. Many architectures will need such bus so
> maybe it belongs in drivers/base in order to avoid duplicate code?

I think one should have a conceptual "system bus" as a virtual parent,
when none is present. For example my old 486 has PCI, but the only PCI
device is IDE. There are the standard legacy devices like parallel and
serial, but they do not show up under an ISA bridge device. This 486
system would be a candidate for this system bus.

Jeff

--
Jeff Garzik | "I went through my candy like hot oatmeal
Building 1024 | through an internally-buttered weasel."
MandrakeSoft | - goats.com