files.mac68k revision 1.131 1 # $NetBSD: files.mac68k,v 1.131 2021/02/26 10:54:12 rin Exp $
2
3 # mac68k-specific configuration info
4
5 # options understood by the mac68k-specific part of the kernel
6 # (note, these are case-sensitive)
7 defflag opt_adb.h ADB_DEBUG MRG_ADB ALTXBUTTONS
8 defflag opt_mac68k.h DISABLE_EXT_CACHE ZS_CONSOLE_ABORT
9 defflag opt_grf_compat.h GRF_COMPAT
10
11 defflag opt_wsdisplay_compat.h WSDISPLAY_COMPAT_ITEFONT
12
13 defparam opt_mac68k.h MAC68K_MEMSIZE
14
15 # maxpartitions must be first item in files.${ARCH}.newconf
16 maxpartitions 8
17
18 maxusers 2 8 64
19
20 device mainbus { } # no locators (yet?)
21 attach mainbus at root
22
23 device obio { [addr = -1] }
24 attach obio at mainbus
25 file arch/mac68k/obio/obio.c obio
26
27 device adb { }
28 attach adb at obio
29 file arch/mac68k/dev/adb.c adb
30 file arch/mac68k/dev/adbsysasm.s
31 file arch/mac68k/dev/adb_direct.c
32 file arch/mac68k/dev/pm_direct.c
33
34 device aed
35 attach aed at adb
36 file arch/mac68k/dev/aed.c aed needs-flag
37
38 device akbd: wskbddev
39 attach akbd at adb
40 file arch/mac68k/dev/akbd.c akbd needs-flag
41
42 device ams: wsmousedev
43 attach ams at adb
44 file arch/mac68k/dev/ams.c ams needs-flag
45
46 device asc
47 attach asc at obio
48 file arch/mac68k/obio/asc.c asc needs-flag
49
50 device nubus { }
51 attach nubus at mainbus
52 file arch/mac68k/nubus/nubus.c nubus
53
54 define grfbus { }
55 file arch/mac68k/dev/grf_subr.c grfbus
56
57 device intvid: grfbus
58 attach intvid at obio
59 file arch/mac68k/obio/grf_obio.c intvid
60
61 device macvid: grfbus
62 attach macvid at nubus
63 file arch/mac68k/nubus/grf_nubus.c macvid
64
65 device macfb: wsemuldisplaydev, wsrasteremulops
66 attach macfb at grfbus
67 file arch/mac68k/dev/macfb.c macfb needs-flag
68
69 attach genfb at grfbus with genfb_grfbus
70 file arch/mac68k/dev/genfb_grfbus.c genfb_grfbus
71
72 file arch/mac68k/dev/maccons.c akbd & (macfb | genfb_grfbus)
73
74 device ae: ifnet, ether, arp, dp8390nic
75 attach ae at nubus with ae_nubus
76 file arch/mac68k/nubus/if_ae_nubus.c ae_nubus
77 file arch/mac68k/dev/if_ae.c ae
78
79 device mc: ifnet, ether, arp
80 attach mc at obio with mc_obio
81 file arch/mac68k/dev/if_mc.c mc
82 file arch/mac68k/obio/if_mc_obio.c mc_obio
83
84 device sn: ifnet, ether, arp
85 file dev/ic/dp83932.c sn
86 file arch/mac68k/dev/if_sn.c sn
87 attach sn at obio with sn_obio
88 file arch/mac68k/obio/if_sn_obio.c sn_obio
89 attach sn at nubus with sn_nubus
90 file arch/mac68k/nubus/if_sn_nubus.c sn_nubus
91
92 attach sm at nubus with sm_nubus
93 file arch/mac68k/nubus/if_sm_nubus.c sm_nubus
94
95 device netdock: ifnet, ether, arp
96 attach netdock at nubus with netdock_nubus
97 file arch/mac68k/nubus/if_netdock_nubus.c netdock_nubus
98
99 # Sony floppy disk controller
100 device iwm { drive = -1 }
101 attach iwm at obio
102
103 device fd: disk
104 attach fd at iwm
105 file arch/mac68k/obio/iwm_fd.c fd needs-flag
106 file arch/mac68k/obio/iwm.s fd needs-flag
107
108 include "dev/scsipi/files.scsipi"
109
110 # Option 1 for ncr5380 support
111 device ncrscsi: scsi
112 attach ncrscsi at obio
113 file arch/mac68k/dev/mac68k5380.c ncrscsi needs-flag
114
115 # Option 2 for ncr5380 support
116 device sbc: scsi, ncr5380sbc
117 attach sbc at obio with sbc_obio
118 file arch/mac68k/dev/sbc.c sbc
119 file arch/mac68k/obio/sbc_obio.c sbc_obio
120
121 attach esp at obio
122 file arch/mac68k/obio/esp.c esp
123
124 #
125 # Machine-independent ATA drivers
126 #
127 include "dev/ata/files.ata"
128
129 attach wdc at obio with wdc_obio
130 file arch/mac68k/obio/wdc_obio.c wdc_obio
131
132 device cpi { }
133 attach cpi at nubus
134 file arch/mac68k/nubus/cpi_nubus.c cpi
135
136 device zsc { channel = -1 }
137 attach zsc at obio
138 file arch/mac68k/dev/zs.c zsc needs-flag
139 file dev/ic/z8530sc.c zsc
140
141 device zstty: tty
142 attach zstty at zsc
143 file dev/ic/z8530tty.c zstty needs-flag
144 file arch/mac68k/dev/zs_kgdb.c kgdb
145
146 # legitimate pseudo-devices
147 defpseudo grf
148 defpseudo ite
149
150 include "arch/m68k/fpe/files.fpe"
151
152 file arch/mac68k/mac68k/autoconf.c
153 file arch/mac68k/mac68k/bus_space.c
154 file arch/mac68k/mac68k/clock.c
155 file arch/mac68k/mac68k/conf.c
156 file arch/mac68k/mac68k/disksubr.c disk
157 file arch/mac68k/mac68k/fpu_machdep.c
158 file arch/mac68k/mac68k/intr.c
159 file arch/mac68k/mac68k/iop.c
160 file arch/mac68k/mac68k/machdep.c
161 file arch/mac68k/mac68k/macrom.c
162 file arch/mac68k/mac68k/macromasm.s
163 file arch/mac68k/mac68k/mainbus.c
164 file arch/mac68k/mac68k/pmap_bootstrap.c compile-with "${NOPROF_C}"
165 file arch/mac68k/mac68k/pram.c
166 file arch/mac68k/mac68k/pramasm.s
167 file arch/mac68k/mac68k/psc.c
168 file arch/mac68k/mac68k/trap.c
169 file arch/mac68k/mac68k/via.c
170 file arch/m68k/m68k/bus_dma.c
171 file arch/m68k/m68k/cacheops.c
172 file arch/m68k/m68k/db_memrw.c ddb | kgdb
173 file arch/m68k/m68k/fpu.c compile-with "${M68K_KERN_FPU}"
174 file arch/m68k/m68k/kgdb_machdep.c kgdb
175 file arch/m68k/m68k/m68k_trap.c
176 file arch/m68k/m68k/pmap_motorola.c
177 file arch/m68k/m68k/procfs_machdep.c procfs
178 file arch/m68k/m68k/sys_machdep.c
179 file arch/m68k/m68k/vm_machdep.c
180
181 file arch/mac68k/dev/grf_compat.c grf needs-flag
182 file arch/mac68k/dev/ite_compat.c ite needs-flag
183
184 file dev/cons.c
185 file dev/cninit.c
186
187 # Memory Disk for installs
188 # These files are out of order
189 file dev/md_root.c memory_disk_hooks
190
191 # Compatibility modules
192
193 # NetBSD m68k a.out Binary Compatibility (COMPAT_AOUT_M68K)
194 include "compat/aoutm68k/files.aoutm68k"
195
196 # SunOS Binary Compatibility (COMPAT_SUNOS)
197 include "compat/sunos/files.sunos"
198 file arch/m68k/m68k/sunos_machdep.c compat_sunos
199
200 # Linux binary compatibility (COMPAT_LINUX)
201 include "compat/linux/files.linux"
202 include "compat/linux/arch/m68k/files.linux_m68k"
203 file arch/m68k/m68k/linux_trap.c compat_linux
204
205 # OSS audio driver compatibility
206 include "compat/ossaudio/files.ossaudio"
207
208 include "arch/mac68k/conf/majors.mac68k"
209