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