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