The attached patch adds the ability to set the Openfirmware node and device type on a bus. This will be used by the PowerPC nexus bus to replace nexus_set_device_type and nexus_set_node. This patch has been tested on a PowerPC G4 with a patch to call this rather than the nexus_* calls.
Responsible Changed From-To: freebsd-bugs->marius Grab as the author of the ofw_bus subroutines.
The attached patch is a replacement for the ofw_bus_subr.c parts of the first patch. It replaces the union with the __DECONST macro. Andrew