files.hpcmips revision 1.89 1 # $NetBSD: files.hpcmips,v 1.89 2002/12/15 09:24:25 takemura Exp $
2
3 # maxpartitions must be first item in files.${ARCH}.
4 maxpartitions 8
5
6 maxusers 2 8 64
7
8 #
9 # Machine-independent I2O drivers.
10 #
11
12 include "dev/i2o/files.i2o"
13
14 #
15 # Machine-independent SCSI drivers
16 #
17
18 include "dev/scsipi/files.scsipi"
19
20 #
21 # Machine-independent ATA drivers
22 #
23
24 include "dev/ata/files.ata"
25
26 #
27 # Bus-independent devices
28 #
29 device mainbus { [platform = -1] }
30 attach mainbus at root
31
32 device cpu # not optional
33 attach cpu at mainbus
34 file arch/hpcmips/hpcmips/cpu.c cpu
35
36 # CPU support option headers
37 defflag opt_vr41xx.h VR41XX VR4101 VR4102 VR4111 VR4121 VR4122 VR4181 VR4131
38 defflag opt_tx39xx.h TX39XX TX3911 TX3912 TX3922
39
40 #
41 # CPU-dependent files
42 #
43 file arch/hpcmips/vr/vr.c vr41xx # NEC VR4000 series
44 file arch/hpcmips/vr/vr_idle.S vr41xx
45 file arch/hpcmips/tx/tx39.c tx39xx # TOSHIBA TX3900 series
46
47 file arch/hpcmips/hpcmips/autoconf.c
48 file arch/hpcmips/hpcmips/bus_dma.c
49 file arch/hpcmips/hpcmips/bus_space.c
50 file arch/hpcmips/hpcmips/bus_space_notimpl.c
51 file arch/hpcmips/hpcmips/bus_space_through.c
52 file arch/hpcmips/hpcmips/interrupt.c
53 file arch/hpcmips/hpcmips/machdep.c
54 file arch/hpcmips/hpcmips/mainbus.c
55
56 file arch/hpc/hpc/kloader.c kloader
57 file arch/hpcmips/hpcmips/kloader_machdep.c kloader
58 file arch/hpcmips/hpcmips/kloader_vr41.S vr41xx & kloader
59 file arch/hpcmips/hpcmips/kloader_tx39.S tx39xx & kloader
60 defflag opt_kloader.h KLOADER
61 defflag debug_kloader.h KLOADER_DEBUG
62 defparam opt_kloader_kernel_path.h KLOADER_KERNEL_PATH
63
64 #
65 # H/PC Platform common files.
66 #
67 include "arch/hpc/conf/files.hpc"
68 file arch/hpc/hpc/disksubr.c disk
69 include "dev/hpc/files.bicons"
70 include "dev/hpc/files.hpcfb"
71 include "dev/hpc/files.hpckbd"
72 include "dev/hpc/files.hpctp"
73
74 #
75 # Debug utility
76 #
77 include "arch/hpc/conf/files.debug"
78
79 # Console autoconfiguration code: selects between a framebuffers
80 file dev/cons.c
81
82 #
83 # Workstation Console
84 #
85 include "dev/wscons/files.wscons"
86
87 #
88 # power management
89 #
90 include "arch/hpcmips/dev/apm/files.apm"
91 device hpcapm: apmdevif
92 attach hpcapm at mainbus
93 file arch/hpcmips/dev/hpcapm.c hpcapm
94
95 #
96 # ISA bus support
97 #
98 include "dev/pci/files.pci" # XXX some ISA devs are 'at pci' too.
99 include "dev/isa/files.isa"
100
101 #
102 # Vr41xx integrated peripherals
103 #
104 device vripif { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [unit=-1], [pwctl=-1], [platform = -1] }
105 define vrip_common
106 file arch/hpcmips/vr/vrip.c vrip_common needs-flag
107 device vrip: vripif
108 attach vrip at mainbus: vrip_common
109 device vr4102ip: vripif
110 attach vr4102ip at mainbus: vrip_common
111 file arch/hpcmips/vr/vr4102ip.c vr4102ip
112 device vr4122ip: vripif
113 attach vr4122ip at mainbus: vrip_common
114 file arch/hpcmips/vr/vr4122ip.c vr4122ip
115
116 device vrbcu
117 attach vrbcu at vripif
118 file arch/hpcmips/vr/bcu_vrip.c vrbcu needs-flag
119
120 device vrrtc
121 attach vrrtc at vripif
122 file arch/hpcmips/vr/rtc.c vrrtc needs-flag
123
124 device vrcmu
125 attach vrcmu at vripif
126 file arch/hpcmips/vr/cmu.c vrcmu needs-flag
127
128 include "dev/hpc/files.hpcio"
129 device vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]} # GIU attachment
130
131 device vrgiu: vrisabif, hpcioif
132 attach vrgiu at vripif
133 file arch/hpcmips/vr/vrgiu.c vrgiu
134
135 device vrisab: isabus
136 attach vrisab at vrisabif
137 file arch/hpcmips/isa/isa_machdep.c vrisab
138
139 device vrkiu: hpckbdif
140 attach vrkiu at vripif
141 file arch/hpcmips/vr/vrkiu.c vrkiu needs-flag
142
143 device vrpmu
144 attach vrpmu at vripif
145 file arch/hpcmips/vr/vrpmu.c vrpmu needs-flag
146
147 device vrdsu
148 attach vrdsu at vripif
149 file arch/hpcmips/vr/vrdsu.c vrdsu needs-flag
150
151 device vrled
152 attach vrled at vripif
153 file arch/hpcmips/vr/vrled.c vrled needs-flag
154
155 define vrpiu_common
156 file arch/hpcmips/vr/vrpiu.c vrpiu_common
157 device vrpiu: wsmousedev
158 attach vrpiu at vripif: tpcalib, vrpiu_common
159 device vrc4173piu: wsmousedev
160 attach vrc4173piu at vripif: tpcalib, vrpiu_common
161
162 device vrdsiu_mouse: wsmousedev
163 attach vrdsiu_mouse at vripif
164 file arch/hpcmips/vr/vrdsiu_mouse.c vrdsiu_mouse
165
166 attach ohci at vripif with ohci_vrip
167 file arch/hpcmips/dev/ohci_vrip.c ohci_vrip
168
169 device vrpciu: pcibus
170 attach vrpciu at vripif
171 file arch/hpcmips/vr/vrpciu.c vrpciu needs-flag
172
173 defflag opt_mq200.h MQ200_DEBUG MQ200_USECRT
174 device mqvideo: hpcfbif
175 attach mqvideo at vripif with mqvideo_vrip
176 file arch/hpcmips/vr/mq200_vrip.c mqvideo_vrip
177 file arch/hpcmips/dev/mq200.c mqvideo
178 file arch/hpcmips/dev/mq200subr.c mqvideo
179 file arch/hpcmips/dev/mq200debug.c mqvideo
180 file arch/hpcmips/dev/mq200machdep.c mqvideo
181
182 attach mqvideo at pci with mqvideo_pci
183 file arch/hpcmips/dev/mq200_pci.c mqvideo_pci
184
185 device ite8181video: hpcfbif, hpccmap
186 attach ite8181video at vripif with ite8181video_vrip
187 file arch/hpcmips/vr/ite8181_vrip.c ite8181video_vrip
188 file arch/hpcmips/dev/ite8181.c ite8181video
189
190 defflag opt_vrc4172pci.h VRC4172PCI_MCR700_SUPPORT
191 device vrc4172pci: pcibus
192 attach vrc4172pci at vripif
193 file arch/hpcmips/vr/vrc4172pci.c vrc4172pci
194
195 device vrc4172pwm
196 attach vrc4172pwm at vripif
197 file arch/hpcmips/vr/vrc4172pwm.c vrc4172pwm needs-flag
198
199 device vrc4172gpio: hpcioif, vrisabif
200 attach vrc4172gpio at hpcioif
201 file arch/hpcmips/vr/vrc4172gpio.c vrc4172gpio
202
203 device vrc4173cardu: pcmciabus
204 attach vrc4173cardu at pci
205 file arch/hpcmips/pci/vrc4173cardu.c vrc4173cardu
206
207 device vrc4173bcu: vripif
208 attach vrc4173bcu at pci
209 file arch/hpcmips/vr/vrc4173bcu.c vrc4173bcu
210
211 #
212 # TOSHIBA TX3912/3922
213 #
214 defflag TX39_WATCHDOGTIMER
215 defflag TX39ICU_DEBUG
216 defflag TX39CLOCK_DEBUG
217 defflag TX39BIU_DEBUG
218 defflag TX39POWER_DEBUG
219 defflag TX39UART_DEBUG
220 defflag USE_POLL
221
222 device txsim { }
223 device txcsbusif {[platform = -1]}
224 device txcomif {[slot = -1]}
225 device txsibif {[slot = -1]}
226 device ucbif { }
227 device irif { }
228
229 attach txsim at mainbus
230 file arch/hpcmips/tx/txsim.c txsim
231 file arch/hpcmips/tx/txsnd.c txsim
232
233 device tx39biu: txcsbusif
234 attach tx39biu at txsim
235 file arch/hpcmips/tx/tx39biu.c tx39biu
236
237 device txcsbus {[regcs=-1], [regcsbase=0], [regcssize=-1], [regcswidth=-1], [iocs=-1], [iocsbase=0], [iocssize=-1], [iocswidth=-1], [memcs=-1], [memcsbase=0], [memcssize=-1], [memcswidth=-1], [irq1=-1], [irq2=-1], [irq3=-1]}
238 attach txcsbus at txcsbusif
239 file arch/hpcmips/tx/txcsbus.c txcsbus
240
241 device tx39icu
242 attach tx39icu at txsim
243 file arch/hpcmips/tx/tx39icu.c tx39icu
244
245 device tx39power
246 attach tx39power at txsim
247 file arch/hpcmips/tx/tx39power.c tx39power
248
249 device tx39clock
250 attach tx39clock at txsim
251 file arch/hpcmips/tx/tx39clock.c tx39clock
252
253 device tx3912video: hpcfbif
254 attach tx3912video at txsim
255 file arch/hpcmips/tx/tx3912video.c tx3912video
256
257 device tx39io
258 attach tx39io at txsim
259 file arch/hpcmips/tx/tx39io.c tx39io
260
261 device txioman: hpcioif
262 attach txioman at txsim
263 file arch/hpcmips/tx/txioman.c txioman
264
265 device tx39sib: txsibif
266 attach tx39sib at txsim
267 file arch/hpcmips/tx/tx39sib.c tx39sib
268
269 # PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end)
270 device ucb: ucbif
271 attach ucb at txsibif
272 file arch/hpcmips/dev/ucb1200.c ucb
273
274 device ucbtp: wsmousedev
275 attach ucbtp at ucbif: tpcalib
276 file arch/hpcmips/dev/ucbtp.c ucbtp
277
278 device ucbsnd
279 attach ucbsnd at ucbif
280 file arch/hpcmips/dev/ucbsnd.c ucbsnd needs-flag
281
282 device ucbio
283 attach ucbio at ucbif
284 file arch/hpcmips/dev/ucbio.c ucbio
285
286 device tx39uart: txcomif
287 attach tx39uart at txsim
288 file arch/hpcmips/tx/tx39uart.c tx39uart needs-flag
289
290 device txcom: irif
291 attach txcom at txcomif
292 file arch/hpcmips/tx/txcom.c txcom
293
294 device tx39ir
295 attach tx39ir at irif
296 file arch/hpcmips/tx/tx39ir.c tx39ir
297
298 # ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA)
299 device it8368e: pcmciabus
300 attach it8368e at txcsbus
301 file arch/hpcmips/dev/it8368.c it8368e
302
303 # MITUBISHI M38813 keryboard controller
304 device m38813c: hpckbdif
305 attach m38813c at txcsbus
306 file arch/hpcmips/dev/m38813c.c m38813c needs-flag
307
308 # PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard)
309 device tc5165buf: hpckbdif
310 attach tc5165buf at txcsbus
311 file arch/hpcmips/dev/tc5165buf.c tc5165buf needs-flag
312
313 # TOSHIBA TC6358E(Plum2)
314 device plumif {}
315 device plum: plumif
316 attach plum at txcsbus
317 file arch/hpcmips/dev/plum.c plum
318
319 device plumicu
320 attach plumicu at plumif
321 file arch/hpcmips/dev/plumicu.c plumicu
322
323 device plumpower
324 attach plumpower at plumif
325 file arch/hpcmips/dev/plumpower.c plumpower
326
327 device plumvideo: hpcfbif
328 attach plumvideo at plumif
329 file arch/hpcmips/dev/plumvideo.c plumvideo
330
331 device plumpcmcia: pcmciabus
332 attach plumpcmcia at plumif
333 file arch/hpcmips/dev/plumpcmcia.c plumpcmcia
334
335 device plumiobusif {[platform = -1], [slot = -1]}
336 device plumiobus: plumiobusif
337 attach plumiobus at plumif
338 file arch/hpcmips/dev/plumiobus.c plumiobus
339
340 device plumisab: isabus
341 attach plumisab at plumiobusif
342 file arch/hpcmips/isa/plumisa_machdep.c plumisab
343
344 # OHCI USB controller
345 attach ohci at plumif with plumohci
346 file arch/hpcmips/dev/plumohci.c plumohci needs-flag
347
348 #device txisab: isabus
349 #attach txisab at txcsbus
350 #file arch/hpcmips/isa/txisa_machdep.c txisab
351
352 file dev/hpc/video_subr.c tx3912video | plumvideo
353
354 #
355 # Real-time clock (not optional)
356 #
357 file arch/hpcmips/hpcmips/clock.c
358 file dev/clock_subr.c
359
360 # Floppy disk controller
361 device fdc {drive = -1}
362 #attach fdc at isa
363 #device fd: disk, isadma
364 device fd: disk
365 #attach fd at fdc
366 file arch/i386/isa/fd.c fdc needs-flag
367
368 # XXXX pcic here because it needs to be late. The catch: pcic needs
369 # to be late, so devices which attach to it are attached late. But it
370 # needs to be before its isa and pci attachments. This answer is
371 # non-optimal, but I don't have a better answer right now.
372
373 # PCIC pcmcia contoller
374 # XXX this needs to be done very late, so it's done here. This feels
375 # like a kludge, but it might be for the best.
376
377 defparam PCIC_ISA_ALLOC_IOBASE
378 defparam PCIC_ISA_ALLOC_IOSIZE
379 defparam PCIC_ISA_INTR_ALLOC_MASK
380
381 device pcic: pcmciabus
382 file dev/ic/i82365.c pcic
383
384 #
385 # PCIC pcmcia controller
386 #
387 attach pcic at isa with pcic_isa
388 file dev/isa/i82365_isa.c pcic_isa
389 file dev/isa/i82365_isasubr.c pcic_isa
390
391 #
392 # Machine-independent PCMCIA drivers
393 #
394 include "dev/pcmcia/files.pcmcia"
395
396 # Serial Interface Unit
397 attach com at vripif with com_vrip
398 file arch/hpcmips/vr/com_vrip.c com_vrip needs-flag
399
400 attach com at hpcioif with com_hpcio
401 file arch/hpcmips/dev/com_hpcio.c com_hpcio needs-flag
402
403 # Memory Disk for boot tape
404 file dev/md_root.c memory_disk_hooks
405
406 include "dev/usb/files.usb"
407
408 # DMA Address Unit
409 device vrdmaau
410 attach vrdmaau at vripif
411 file arch/hpcmips/vr/vrdmaau.c vrdmaau
412
413 # DMA Controll Unit
414 device vrdcu
415 attach vrdcu at vripif
416 file arch/hpcmips/vr/vrdcu.c vrdcu
417
418 # Audio Interface Unit
419 device vraiu: audiobus
420 attach vraiu at vripif
421 file arch/hpcmips/vr/vraiu.c vraiu
422
423 include "arch/hpcmips/conf/majors.hpcmips"
424