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