- /* IDE ports on Macs are numbered from 3.
No. The "ata-3" ports are ATA-3 compatible controllers, etc. The "3" is just part of the name, nothing to do with numbering :-)
Sorry for not telling you earlier.
OK, this does not change the patch only explains the strange naming. Should we document it the comment or the mail archive will do?
I'd say the names are rather obvious, but a comment won't hurt.
OpenBIOS does number ide devices though so to satisfy both we either need to change the whole naming of ide interfaces in OpenBIOS or just number them from 3 and this works for the currently emulated two ports.
You can have multiple devices per controller.
The device tree is a tree, not a linearly numbered array; the usual way to make e.g disk0 and disk1 is via aliases. Maybe you want that?
Segher