1# 2# First cut on Openfirmware interface 3# 4 5define openfirm {} 6 7# Generic disk support 8device ofdisk: disk 9attach ofdisk at openfirm 10file dev/ofw/ofdisk.c ofdisk needs-flag 11 12# Generic net support 13define ipkdbofn { [ disable = 0 ] } 14device ofnet: ether, ifnet, ipkdbofn 15attach ofnet at openfirm 16file dev/ofw/ofnet.c ofnet | ipkdb_ofn needs-flag 17attach ipkdbif at ipkdbofn with ipkdb_ofn 18 19# Generic console support 20device ofcons: tty 21attach ofcons at openfirm 22file dev/ofw/ofcons.c ofcons needs-flag 23 24# Generic RTC support 25device ofrtc 26attach ofrtc at openfirm 27file dev/ofw/ofrtc.c ofrtc needs-flag 28 29# Generic bus support 30device ofbus: openfirm 31attach ofbus at openfirm 32file dev/ofw/ofbus.c openfirm 33 34device ofroot: openfirm 35attach ofroot at root 36 37