NetBSD/sys/dev/ofw/files.ofw
thorpej daf40e1b0b Add common OpenFirmware network interface functions. Currently supports
decoding the `supported-network-types' and `chosen-network-type' properties
into ifmedia words.
1998-07-22 22:04:14 +00:00

39 lines
842 B
Plaintext

# $NetBSD: files.ofw,v 1.9 1998/07/22 22:04:14 thorpej Exp $
#
# First cut on Openfirmware interface
#
define ofbus {}
define of_network_dev
file dev/ofw/ofw_subr.c ofbus
file dev/ofw/ofw_network_subr.c of_network_dev
# Generic disk support
device ofdisk: disk
attach ofdisk at ofbus
file dev/ofw/ofdisk.c ofdisk needs-flag
# Generic net support
define ipkdbofn { [ disable = 0 ] }
device ofnet: ether, ifnet, ipkdbofn, arp
attach ofnet at ofbus
file dev/ofw/ofnet.c ofnet | ipkdb_ofn needs-flag
attach ipkdbif at ipkdbofn with ipkdb_ofn
# Generic console support
device ofcons: tty
attach ofcons at ofbus
file dev/ofw/ofcons.c ofcons needs-flag
# Generic RTC support
device ofrtc
attach ofrtc at ofbus
file dev/ofw/ofrtc.c ofrtc needs-flag
# Generic bus support
device ofbus
attach ofbus at ofbus
file dev/ofw/ofbus.c ofbus