1 # $NetBSD: files.hpcmips,v 1.102 2008/02/20 21:43:34 drochner Exp $
3 # maxpartitions must be first item in files.${ARCH}.
9 # Machine-independent I2O drivers.
12 include "dev/i2o/files.i2o"
15 # Machine-independent SCSI drivers
18 include "dev/scsipi/files.scsipi"
21 # Machine-independent ATA drivers
24 include "dev/ata/files.ata"
30 include "dev/hpc/files.hpcapm"
31 file arch/hpcmips/hpcmips/hpcapm_machdep.c hpcapm
34 # Bus-independent devices
36 device mainbus { [platform = -1] }: hpcapmif
37 attach mainbus at root
39 device cpu # not optional
41 file arch/hpcmips/hpcmips/cpu.c cpu
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
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
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
63 file common/bus_dma/bus_dmamem_common.c
65 file dev/kloader.c kloader
66 file arch/hpcmips/hpcmips/kloader_machdep.c kloader
67 file arch/hpcmips/hpcmips/kloader_vr41.S vr41xx & kloader
68 file arch/hpcmips/hpcmips/kloader_tx39.S tx39xx & kloader
69 defflag opt_no_symbolsz_entry.h NO_SYMBOLSZ_ENTRY
70 defflag opt_kloader.h KLOADER
71 defflag debug_kloader.h KLOADER_DEBUG
72 defparam opt_kloader_kernel_path.h KLOADER_KERNEL_PATH
74 defparam opt_memsize.h MEMSIZE
77 # H/PC Platform common files.
79 include "arch/hpc/conf/files.hpc"
80 file arch/hpc/hpc/disksubr.c disk
81 include "dev/hpc/files.bicons"
82 include "dev/hpc/files.hpcfb"
83 include "dev/hpc/files.hpckbd"
84 include "dev/hpc/files.hpctp"
89 include "arch/hpc/conf/files.debug"
91 # Console autoconfiguration code: selects between a framebuffers
97 include "dev/pci/files.pci" # XXX some ISA devs are 'at pci' too.
98 include "dev/isa/files.isa"
101 # Vr41xx integrated peripherals
103 device vripif { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [unit=-1], [pwctl=-1], [platform = -1] }
105 file arch/hpcmips/vr/vrip.c vrip_common needs-flag
107 attach vrip at mainbus: vrip_common
108 device vr4102ip: vripif
109 attach vr4102ip at mainbus: vrip_common
110 file arch/hpcmips/vr/vr4102ip.c vr4102ip
111 device vr4122ip: vripif
112 attach vr4122ip at mainbus: vrip_common
113 file arch/hpcmips/vr/vr4122ip.c vr4122ip
114 device vr4181ip: vripif
115 attach vr4181ip at mainbus: vrip_common
116 file arch/hpcmips/vr/vr4181ip.c vr4181ip
119 attach vrbcu at vripif
120 file arch/hpcmips/vr/bcu_vrip.c vrbcu needs-flag
123 attach vrrtc at vripif
124 file arch/hpcmips/vr/rtc.c vrrtc needs-flag
127 attach vrcmu at vripif
128 file arch/hpcmips/vr/cmu.c vrcmu needs-flag
130 include "dev/hpc/files.hpcio"
131 device vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]} # GIU attachment
133 device vrgiu: vrisabif, hpcioif
134 attach vrgiu at vripif
135 file arch/hpcmips/vr/vrgiu.c vrgiu
137 device vr4181giu: vrisabif, hpcioif
138 attach vr4181giu at vripif
139 file arch/hpcmips/vr/vr4181giu.c vr4181giu
141 device vrisab: isabus
142 attach vrisab at vrisabif
143 file arch/hpcmips/isa/isa_machdep.c vrisab
145 device vrkiu: hpckbdif
146 attach vrkiu at vripif
147 file arch/hpcmips/vr/vrkiu.c vrkiu needs-flag
150 attach vrpmu at vripif
151 file arch/hpcmips/vr/vrpmu.c vrpmu needs-flag
154 attach vrdsu at vripif
155 file arch/hpcmips/vr/vrdsu.c vrdsu needs-flag
158 attach vrled at vripif
159 file arch/hpcmips/vr/vrled.c vrled needs-flag
162 file arch/hpcmips/vr/vrpiu.c vrpiu_common
163 device vrpiu: wsmousedev
164 attach vrpiu at vripif: hpctpanel, vrpiu_common
165 device vrc4173piu: wsmousedev
166 attach vrc4173piu at vripif: hpctpanel, vrpiu_common
168 device vrdsiu_mouse: wsmousedev
169 attach vrdsiu_mouse at vripif
170 file arch/hpcmips/vr/vrdsiu_mouse.c vrdsiu_mouse
172 attach ohci at vripif with ohci_vrip
173 file arch/hpcmips/dev/ohci_vrip.c ohci_vrip
175 device vrpciu: pcibus
176 attach vrpciu at vripif
177 file arch/hpcmips/vr/vrpciu.c vrpciu needs-flag
179 defflag opt_mq200.h MQ200_DEBUG MQ200_USECRT
180 device mqvideo: hpcfbif
181 attach mqvideo at vripif with mqvideo_vrip
182 file arch/hpcmips/vr/mq200_vrip.c mqvideo_vrip
183 file arch/hpcmips/dev/mq200.c mqvideo
184 file arch/hpcmips/dev/mq200subr.c mqvideo
185 file arch/hpcmips/dev/mq200debug.c mqvideo
186 file arch/hpcmips/dev/mq200machdep.c mqvideo
188 attach mqvideo at pci with mqvideo_pci
189 file arch/hpcmips/dev/mq200_pci.c mqvideo_pci
191 device ite8181video: hpcfbif, hpccmap
192 attach ite8181video at vripif with ite8181video_vrip
193 file arch/hpcmips/vr/ite8181_vrip.c ite8181video_vrip
194 file arch/hpcmips/dev/ite8181.c ite8181video
196 defflag opt_vrc4172pci.h VRC4172PCI_MCR700_SUPPORT
197 device vrc4172pci: pcibus
198 attach vrc4172pci at vripif
199 file arch/hpcmips/vr/vrc4172pci.c vrc4172pci
202 attach vrc4172pwm at vripif
203 file arch/hpcmips/vr/vrc4172pwm.c vrc4172pwm needs-flag
205 device vrc4172gpio: hpcioif, vrisabif
206 attach vrc4172gpio at hpcioif
207 file arch/hpcmips/vr/vrc4172gpio.c vrc4172gpio
209 device vrc4173cardu: pcmciabus
210 attach vrc4173cardu at pci
211 file arch/hpcmips/pci/vrc4173cardu.c vrc4173cardu
213 device vrc4173bcu: vripif
214 attach vrc4173bcu at pci
215 file arch/hpcmips/vr/vrc4173bcu.c vrc4173bcu
218 # TOSHIBA TX3912/3922
220 defflag TX39_WATCHDOGTIMER
221 defflag TX39ICU_DEBUG
222 defflag TX39CLOCK_DEBUG
223 defflag TX39BIU_DEBUG
224 defflag TX39POWER_DEBUG
225 defflag TX39UART_DEBUG
229 device txcsbusif {[platform = -1]}
230 device txcomif {[slot = -1]}
231 device txsibif {[slot = -1]}
232 device txspiif {[slot = -1]}
236 attach txsim at mainbus
237 file arch/hpcmips/tx/txsim.c txsim
238 file arch/hpcmips/tx/txsnd.c txsim
240 device tx39biu: txcsbusif
241 attach tx39biu at txsim
242 file arch/hpcmips/tx/tx39biu.c tx39biu
244 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]}
245 attach txcsbus at txcsbusif
246 file arch/hpcmips/tx/txcsbus.c txcsbus
249 attach tx39icu at txsim
250 file arch/hpcmips/tx/tx39icu.c tx39icu
253 attach tx39power at txsim
254 file arch/hpcmips/tx/tx39power.c tx39power
257 attach tx39clock at txsim
258 file arch/hpcmips/tx/tx39clock.c tx39clock
260 device tx3912video: hpcfbif
261 attach tx3912video at txsim
262 file arch/hpcmips/tx/tx3912video.c tx3912video
265 attach tx39io at txsim
266 file arch/hpcmips/tx/tx39io.c tx39io
268 device txioman: hpcioif
269 attach txioman at txsim
270 file arch/hpcmips/tx/txioman.c txioman
272 device tx39sib: txsibif
273 attach tx39sib at txsim
274 file arch/hpcmips/tx/tx39sib.c tx39sib
276 device tx39spi: txspiif
277 attach tx39spi at txsim
278 file arch/hpcmips/tx/tx39spi.c tx39spi
280 # PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end)
282 attach ucb at txsibif
283 file arch/hpcmips/dev/ucb1200.c ucb
285 device ucbtp: wsmousedev
286 attach ucbtp at ucbif: hpctpanel
287 file arch/hpcmips/dev/ucbtp.c ucbtp
290 attach ucbsnd at ucbif
291 file arch/hpcmips/dev/ucbsnd.c ucbsnd needs-flag
294 attach ucbio at ucbif
295 file arch/hpcmips/dev/ucbio.c ucbio
297 device tx39uart: txcomif
298 attach tx39uart at txsim
299 file arch/hpcmips/tx/tx39uart.c tx39uart needs-flag
302 attach txcom at txcomif
303 file arch/hpcmips/tx/txcom.c txcom
306 attach tx39ir at irif
307 file arch/hpcmips/tx/tx39ir.c tx39ir
309 # ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA)
310 device it8368e: pcmciabus
311 attach it8368e at txcsbus
312 file arch/hpcmips/dev/it8368.c it8368e
314 # MITUBISHI M38813 keryboard controller
315 device m38813c: hpckbdif
316 attach m38813c at txcsbus
317 file arch/hpcmips/dev/m38813c.c m38813c needs-flag
319 # PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard)
320 device tc5165buf: hpckbdif
321 attach tc5165buf at txcsbus
322 file arch/hpcmips/dev/tc5165buf.c tc5165buf needs-flag
324 # TOSHIBA TC6358E(Plum2)
327 attach plum at txcsbus
328 file arch/hpcmips/dev/plum.c plum
331 attach plumicu at plumif
332 file arch/hpcmips/dev/plumicu.c plumicu
335 attach plumpower at plumif
336 file arch/hpcmips/dev/plumpower.c plumpower
338 device plumvideo: hpcfbif
339 attach plumvideo at plumif
340 file arch/hpcmips/dev/plumvideo.c plumvideo
342 device plumpcmcia: pcmciabus
343 attach plumpcmcia at plumif
344 file arch/hpcmips/dev/plumpcmcia.c plumpcmcia
346 device plumiobusif {[platform = -1], [slot = -1]}
347 device plumiobus: plumiobusif
348 attach plumiobus at plumif
349 file arch/hpcmips/dev/plumiobus.c plumiobus
351 device plumisab: isabus
352 attach plumisab at plumiobusif
353 file arch/hpcmips/isa/plumisa_machdep.c plumisab
355 # OHCI USB controller
356 attach ohci at plumif with plumohci
357 file arch/hpcmips/dev/plumohci.c plumohci needs-flag
359 #device txisab: isabus
360 #attach txisab at txcsbus
361 #file arch/hpcmips/isa/txisa_machdep.c txisab
363 file dev/hpc/video_subr.c tx3912video | plumvideo
365 # Sharp Telios LCD and battery control driver
367 attach teliosio at txcsbus
368 file arch/hpcmips/dev/teliosio.c teliosio
371 # Real-time clock (not optional)
373 file arch/hpcmips/hpcmips/clock.c
375 # Floppy disk controller
376 device fdc {drive = -1}
378 #device fd: disk, isadma
381 file arch/i386/isa/fd.c fdc needs-flag
383 # XXXX pcic here because it needs to be late. The catch: pcic needs
384 # to be late, so devices which attach to it are attached late. But it
385 # needs to be before its isa and pci attachments. This answer is
386 # non-optimal, but I don't have a better answer right now.
388 # PCIC pcmcia contoller
389 # XXX this needs to be done very late, so it's done here. This feels
390 # like a kludge, but it might be for the best.
392 defparam PCIC_ISA_ALLOC_IOBASE
393 defparam PCIC_ISA_ALLOC_IOSIZE
394 defparam PCIC_ISA_INTR_ALLOC_MASK
396 device pcic: pcmciabus
397 file dev/ic/i82365.c pcic
400 # PCIC pcmcia controller
402 attach pcic at isa with pcic_isa
403 file dev/isa/i82365_isa.c pcic_isa
404 file dev/isa/i82365_isasubr.c pcic_isa
406 # PCIC pcmcia controller on vrip bus.
407 attach pcic at vripif with pcic_vrip
408 file arch/hpcmips/vr/vrecu.c pcic_vrip
411 # Machine-independent PCMCIA drivers
413 include "dev/pcmcia/files.pcmcia"
415 # Serial Interface Unit
416 attach com at vripif with com_vrip
417 file arch/hpcmips/vr/com_vrip.c com_vrip needs-flag
419 attach com at hpcioif with com_hpcio
420 file arch/hpcmips/dev/com_hpcio.c com_hpcio needs-flag
422 # Memory Disk for boot tape
423 file dev/md_root.c memory_disk_hooks
425 include "dev/usb/files.usb"
429 attach vrdmaau at vripif
430 file arch/hpcmips/vr/vrdmaau.c vrdmaau
434 attach vrdcu at vripif
435 file arch/hpcmips/vr/vrdcu.c vrdcu
437 # Audio Interface Unit
438 device vraiu: audiobus
439 attach vraiu at vripif
440 file arch/hpcmips/vr/vraiu.c vraiu
442 # VR4181 Audio Interface Unit
444 attach vr4181aiu at vripif
445 file arch/hpcmips/vr/vr4181aiu.c vr4181aiu needs-flag
447 # Flash memory on L-card+ XXX should not be here
449 attach flash at vripif with flash_vrip
450 file arch/hpcmips/vr/flash_vrip.c flash_vrip needs-flag
452 # OptPoint on Telios HC-AJ2
453 device optpoint : wsmousedev
454 attach optpoint at txspiif
455 file arch/hpcmips/dev/optpoint.c optpoint
457 include "arch/hpcmips/conf/majors.hpcmips"