Extending sys/dev/mii

Adrian Chadd adrian at freebsd.org
Wed Jan 11 01:18:49 UTC 2012


On 8 January 2012 14:27, Stefan Bethke <stb at lassitu.de> wrote:

>> Okay, this is the kind of information I was looking for as coupling
>> devices with newbus that have no close relation in the hierarchy is
>> tedious. However, when not using newbus the question arises how do
>> you intend to associate the device_t of say arge0 with the mdiobus0
>> hanging off somewhere beneath iicbus0?
>
> In my experimental tree, I've hacked together a small function that parses a string for a devclass name and unit number, and looks that up.
>
> I'm also trying a number of other approaches; mainly I'm trying to understand how newbus works, and what kind of driver I want at the various points, ideally auto-attached, or configured by hints, instead of by custom code.  I think I'll need another couple of days to get a good enough understanding of drivers, devclasses and their tree, and the device tree.

Hi guys,

Has there been any further traction on this? I'd like to try and
figure out a way to get all this switchphy stuff into -HEAD as soon as
possible.

Thanks,


Adrian


More information about the freebsd-arch mailing list