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