In fact, the sparc64 kernel already does this in order to find the
keyboard and screen devices. Not so sure about how complete or correct
the implementation is. On the other hand, it apparently works.
Yes, it should be rather similar, see [1].
Just a little bit hand harder, because the uspace sysinfo interface is
currently much more primitive that the native kernel OFW interface.
There are so far no functions like ofw_tree_walk_by_device_type() and
ofw_tree_find_child_by_device_type(). But such functions can be
implemented using the data supplied by sysinfo, of course.
[1] kernel/genarch/src/ofw/pci.c
M.D.
_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel