ADC Home > Reference Library > Technical Q&As > Hardware & Drivers > PCI and PC Card >

Determining Open Firmware version


Q: How do I determine the version of Open Firmware in my machine? 

A: The "/openprom" node describes the implementation of Open Firmware in the machine. The "model" property of this node describes the manufacturer and revision level of firmware. Note that this property is a manufacturer-dependant string. See IEEE Std 175-1994, pg. 160, "model" for details.

There are several ways to find out the version of Open Firmware in your machine: 

User visible methods:

  1. When you enter the OFUI (by holding down Command-Option-O-F), the version is displayed at the top of the screen.
  2. In the Open Firmware device-tree the node /openprom describes the implementation of Open Firmware. Type "dev /openprom .properties" at the OFUI command prompt. The model property in this node describes the revision level of firmware. See IEEE Std 1275-1994, section 3.5 "Standard system nodes" for a full description.
  3. In Mac OS run, Display Name Registry and look at the model property in the node Devices:device-tree:openprom.

Programmatically:

  1. In a Mac OS application, you can search the Name Registry for the node named "openprom" using RegistryEntrySearch. Once you find this node, use RegistryPropertyGet to retrieve the value of the model property.
  2. In an FCode driver, you can use find-package to get a phandle for the openprom package. Once you have the phandle you can use get-package-property to get the value of the model property:
" /openprom" find-package
if " model" rot get-package-property
     0= if    \ here we have the value of the model property on the
stack as (addr len)
     else cr ." Can't find model property"
     then
else cr ." Can't find openprom node"
then

[Oct 06 2000]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.