blob: 2d89595cd0998344e083253947a1d9748893bf55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# $NetBSD: files.ofw,v 1.17 2021/05/12 23:22:33 thorpej Exp $
#
# First cut on Openfirmware interface
#
define ofbus {}
define of_network_dev
define ofw_subr
defpseudo openfirm
file dev/ofw/openfirmio.c openfirm needs-flag
file dev/ofw/ofw_sysctl.c openfirm | ofw_subr
file dev/ofw/ofw_subr.c ofbus | openfirm | ofw_subr
file dev/ofw/ofw_i2c_subr.c ofbus | openfirm | ofw_subr
file dev/ofw/ofw_network_subr.c of_network_dev
file dev/ofw/ofw_spi_subr.c ofbus | openfirm | ofw_subr
# Let individual ports pull this in, as necessary.
#file dev/ofw/ofw_pci_subr.c ofbus | openfirm | ofw_subr
# Generic disk support
device ofdisk: disk
attach ofdisk at ofbus
file dev/ofw/ofdisk.c ofdisk needs-flag
# Generic net support
device ofnet: ether, ifnet, arp
attach ofnet at ofbus
file dev/ofw/ofnet.c ofnet needs-flag
# 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: ofbus
attach ofbus at ofbus
file dev/ofw/ofbus.c ofbus
|