> My original proposal was to have this code live in genunix. But I'm
> happy to be able to do something like this in probe(9e):
>
> /* check if device is really for us... */
> if (is_an_rtls_8139c) { /* we really should use rge here */
> ddi_rename_node(dip, "SUNW,rge");
> return (DDI_RENAMED);
> }
we have, in the past, on x86, handled ugliness like this with the "PCI
enumerator", which is the source of all the device binding names, which, of
course, usually come from config space contents in a well-documented way, but
every so often there's a device-specific exception.
No reason this couldn't be an exception for x86 node creation, and then the
driver binding happens as normal, in the boring old way. Yes, it means you have
to change misc/pci_autoconfig as well as your driver....but only the once.
Yes, it's ugly, but it's a damn sight easier than uprooting the driver binding
mechanism.
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code