opiQueryDevice function

Calls opiQueryDevice_for_MACHINE as appropriate.