via ioctl()s. This was ported from NetBSD and adapted a bit to better match our OpenFirmware support code.