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