>>>>> "Linus" == Linus Torvalds <torvalds@transmeta.com> writes:
Linus> Can't you add the SCSI devices to the device tree, and be
Linus> done with it?
Do you mean the /devices tree or the Open Firmware (OF) device-tree
(as in IEEE Std 1275). I suspect that you mean the former, but...
Linus> [...]
Linus> All fixed at least to _some_ degree by giving the most
Linus> complete address we can, ie something like
Linus> /devices/root/pci0/00:02.0/02:1f.0/03:07.0
That looks similar, but not identical to an Open Firmware node for a
SCSI device:
device-tree/pci@3fff5e09000/pci@b,6/scsi@1,1/sd/...
Why not use the structure of, and a subset of the capabilities of, an
OF device-tree for building /devices? It's a little more verbose, but
it's a standard and it fits the current problem pretty well.
I've been working on some hardware inventory stuff at IBM that uses an
augmented OF device-tree (as a directory tree in userspace) to keep
track of useful stuff...
peace & happiness,
martin
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Jun 23 2002 - 22:00:21 EST