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