Home | History | Annotate | Line # | Download | only in conf
files.hpcmips revision 1.75
      1 #	$NetBSD: files.hpcmips,v 1.75 2002/03/05 16:16:03 simonb 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 major	{sd = 3}
     20 major	{st = 4}
     21 major	{cd = 5}
     22 
     23 #
     24 # Machine-independent ATA drivers
     25 #
     26 
     27 include "dev/ata/files.ata"
     28 major	{wd = 1}
     29 
     30 #
     31 # Bus-independent devices
     32 #
     33 device mainbus { [platform = -1] }
     34 attach mainbus at root
     35 
     36 device cpu				# not optional
     37 attach cpu at mainbus
     38 file arch/hpcmips/hpcmips/cpu.c		cpu
     39 
     40 # CPU support option headers
     41 defflag	opt_vr41xx.h	VR41XX VR4101 VR4102 VR4111 VR4121 VR4122 VR4181 VR4131
     42 defflag	opt_tx39xx.h	TX39XX TX3911 TX3912 TX3922
     43 
     44 #
     45 # CPU-dependent files
     46 #
     47 file	arch/hpcmips/vr/vr.c		vr41xx	# NEC VR4000 series
     48 file	arch/hpcmips/vr/vr_idle.S	vr41xx
     49 file	arch/hpcmips/tx/tx39.c		tx39xx	# TOSHIBA TX3900 series
     50 
     51 file	arch/hpcmips/hpcmips/autoconf.c
     52 file	arch/hpcmips/hpcmips/bus_dma.c
     53 file	arch/hpcmips/hpcmips/bus_space.c
     54 file	arch/hpcmips/hpcmips/bus_space_notimpl.c
     55 file	arch/hpcmips/hpcmips/bus_space_through.c
     56 file	arch/hpcmips/hpcmips/conf.c
     57 file	arch/hpcmips/hpcmips/interrupt.c
     58 file	arch/hpcmips/hpcmips/machdep.c
     59 file	arch/hpcmips/hpcmips/mainbus.c
     60 file	arch/hpcmips/hpcmips/procfs_machdep.c	procfs
     61 
     62 file	arch/hpc/hpc/kloader.c
     63 file	arch/hpcmips/hpcmips/kloader_machdep.c
     64 file	arch/hpcmips/hpcmips/kloader_vr41.S	vr41xx
     65 file	arch/hpcmips/hpcmips/kloader_tx39.S	tx39xx
     66 defflag	debug_kloader.h			KLOADER_DEBUG
     67 defparam opt_kloader_kernel_path.h	KLOADER_KERNEL_PATH
     68 
     69 #
     70 # H/PC Platform common files.
     71 #
     72 include "arch/hpc/conf/files.hpc"
     73 file	arch/hpc/hpc/disksubr.c			disk
     74 include "dev/hpc/files.bicons"
     75 include "dev/hpc/files.hpcfb"
     76 include "dev/hpc/files.hpckbd"
     77 include "dev/hpc/files.hpctp"
     78 
     79 #
     80 # Debug utility
     81 #
     82 include "arch/hpc/conf/files.debug"
     83 
     84 # Console autoconfiguration code: selects between a framebuffers
     85 file	dev/cons.c
     86 
     87 #
     88 # Workstation Console
     89 #
     90 include "dev/wscons/files.wscons"
     91 
     92 #
     93 # power management
     94 #
     95 include "arch/hpcmips/dev/apm/files.apm"
     96 device hpcapm: apmdevif
     97 attach hpcapm at mainbus
     98 file	arch/hpcmips/dev/hpcapm.c	hpcapm
     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 device vrip: vripif
    113 attach vrip at mainbus: vrip_common
    114 device vr4102ip: vripif
    115 attach vr4102ip at mainbus: vrip_common
    116 file arch/hpcmips/vr/vr4102ip.c		vr4102ip
    117 device vr4122ip: vripif
    118 attach vr4122ip at mainbus: vrip_common
    119 file arch/hpcmips/vr/vr4122ip.c		vr4122ip
    120 
    121 device vrbcu
    122 attach vrbcu at vripif
    123 file arch/hpcmips/vr/bcu_vrip.c			vrbcu needs-flag
    124 
    125 device vrrtc
    126 attach vrrtc at vripif
    127 file arch/hpcmips/vr/rtc.c			vrrtc needs-flag
    128 
    129 device vrcmu
    130 attach vrcmu at vripif
    131 file arch/hpcmips/vr/cmu.c			vrcmu needs-flag
    132 
    133 include "dev/hpc/files.hpcio"
    134 device	vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]}		# GIU attachment
    135 
    136 device vrgiu: vrisabif, hpcioif
    137 attach vrgiu at vripif
    138 file arch/hpcmips/vr/vrgiu.c			vrgiu
    139 
    140 device vrisab: isabus
    141 attach vrisab at vrisabif
    142 file arch/hpcmips/isa/isa_machdep.c		vrisab
    143 
    144 device vrkiu: hpckbdif
    145 attach vrkiu at vripif
    146 file arch/hpcmips/vr/vrkiu.c			vrkiu needs-flag
    147 
    148 device vrpmu
    149 attach vrpmu at vripif
    150 file arch/hpcmips/vr/vrpmu.c			vrpmu needs-flag
    151 
    152 device vrdsu
    153 attach vrdsu at vripif
    154 file arch/hpcmips/vr/vrdsu.c			vrdsu needs-flag
    155 
    156 device vrled
    157 attach vrled at vripif
    158 file arch/hpcmips/vr/vrled.c			vrled needs-flag
    159 
    160 device vrpiu: wsmousedev
    161 attach vrpiu at vripif: tpcalib
    162 file arch/hpcmips/vr/vrpiu.c			vrpiu
    163 
    164 attach ohci at vripif with ohci_vrip
    165 file arch/hpcmips/dev/ohci_vrip.c		ohci_vrip
    166 
    167 device vrpciu: pcibus
    168 attach vrpciu at vripif
    169 file arch/hpcmips/vr/vrpciu.c			vrpciu needs-flag
    170 
    171 defflag opt_mq200.h	MQ200_DEBUG MQ200_USECRT
    172 device mqvideo: hpcfbif
    173 attach mqvideo at vripif with mqvideo_vrip
    174 file arch/hpcmips/vr/mq200_vrip.c		mqvideo_vrip
    175 file arch/hpcmips/dev/mq200.c			mqvideo
    176 file arch/hpcmips/dev/mq200subr.c		mqvideo
    177 file arch/hpcmips/dev/mq200debug.c		mqvideo
    178 file arch/hpcmips/dev/mq200machdep.c		mqvideo
    179 
    180 attach mqvideo at pci with mqvideo_pci
    181 file arch/hpcmips/pci/mq200_pci.c		mqvideo_pci
    182 
    183 device ite8181video: hpcfbif
    184 attach ite8181video at vripif with ite8181video_vrip
    185 file arch/hpcmips/vr/ite8181_vrip.c		ite8181video_vrip
    186 file arch/hpcmips/dev/ite8181.c			ite8181video
    187 
    188 device vrc4172pwm
    189 attach vrc4172pwm at vripif
    190 file arch/hpcmips/vr/vrc4172pwm.c		vrc4172pwm needs-flag
    191 
    192 device vrc4172gpio: hpcioif, vrisabif
    193 attach vrc4172gpio at hpcioif
    194 file arch/hpcmips/vr/vrc4172gpio.c		vrc4172gpio
    195 
    196 device vrc4173cardu: pcmciabus
    197 attach vrc4173cardu at pci
    198 file arch/hpcmips/pci/vrc4173cardu.c		vrc4173cardu
    199 
    200 device vrc4173if {}
    201 
    202 device vrc4173bcu: vrc4173if
    203 attach vrc4173bcu at pci
    204 file arch/hpcmips/vr/vrc4173bcu.c		vrc4173bcu
    205 
    206 device vrc4173cmu
    207 attach vrc4173cmu at vrc4173if
    208 file arch/hpcmips/vr/vrc4173cmu.c		vrc4173cmu
    209 
    210 device vrc4173piu
    211 attach vrc4173piu at vrc4173if
    212 file arch/hpcmips/vr/vrc4173piu.c		vrc4173piu
    213 
    214 device vrc4173kiu
    215 attach vrc4173kiu at vrc4173if
    216 file arch/hpcmips/vr/vrc4173kiu.c		vrc4173kiu
    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 ucbif { }
    234 device irif { }
    235 
    236 attach txsim at mainbus
    237 file arch/hpcmips/tx/txsim.c		txsim
    238 file arch/hpcmips/tx/txsnd.c		txsim
    239 
    240 device tx39biu: txcsbusif
    241 attach tx39biu at txsim
    242 file arch/hpcmips/tx/tx39biu.c		tx39biu
    243 
    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
    247 
    248 device tx39icu
    249 attach tx39icu at txsim
    250 file arch/hpcmips/tx/tx39icu.c		tx39icu
    251 
    252 device tx39power
    253 attach tx39power at txsim
    254 file arch/hpcmips/tx/tx39power.c	tx39power
    255 
    256 device tx39clock
    257 attach tx39clock at txsim
    258 file arch/hpcmips/tx/tx39clock.c	tx39clock
    259 
    260 device tx3912video: hpcfbif
    261 attach tx3912video at txsim
    262 file arch/hpcmips/tx/tx3912video.c	tx3912video
    263 
    264 device tx39io
    265 attach tx39io at txsim
    266 file arch/hpcmips/tx/tx39io.c		tx39io
    267 
    268 device txioman: hpcioif
    269 attach txioman at txsim
    270 file arch/hpcmips/tx/txioman.c		txioman
    271 
    272 device tx39sib: txsibif
    273 attach tx39sib at txsim
    274 file arch/hpcmips/tx/tx39sib.c		tx39sib
    275 
    276 #	PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end)
    277 device ucb: ucbif
    278 attach ucb at txsibif
    279 file arch/hpcmips/dev/ucb1200.c		ucb
    280 
    281 device ucbtp: wsmousedev
    282 attach ucbtp at ucbif: tpcalib
    283 file arch/hpcmips/dev/ucbtp.c		ucbtp
    284 
    285 device ucbsnd
    286 attach ucbsnd at ucbif
    287 file arch/hpcmips/dev/ucbsnd.c		ucbsnd		needs-flag
    288 
    289 device ucbio
    290 attach ucbio at ucbif
    291 file arch/hpcmips/dev/ucbio.c		ucbio
    292 
    293 device tx39uart: txcomif
    294 attach tx39uart at txsim
    295 file arch/hpcmips/tx/tx39uart.c		tx39uart	needs-flag
    296 
    297 device txcom: irif
    298 attach txcom at txcomif
    299 file arch/hpcmips/tx/txcom.c		txcom
    300 
    301 device tx39ir
    302 attach tx39ir at irif
    303 file arch/hpcmips/tx/tx39ir.c		tx39ir
    304 
    305 #	ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA)
    306 device it8368e: pcmciabus
    307 attach it8368e at txcsbus
    308 file arch/hpcmips/dev/it8368.c		it8368e
    309 
    310 #	MITUBISHI M38813 keryboard controller
    311 device m38813c: hpckbdif
    312 attach m38813c at txcsbus
    313 file arch/hpcmips/dev/m38813c.c		m38813c		needs-flag
    314 
    315 #	PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard)
    316 device tc5165buf: hpckbdif
    317 attach tc5165buf at txcsbus
    318 file arch/hpcmips/dev/tc5165buf.c	tc5165buf	needs-flag
    319 
    320 #	TOSHIBA TC6358E(Plum2)
    321 device plumif {}
    322 device plum: plumif
    323 attach plum at txcsbus
    324 file arch/hpcmips/dev/plum.c		plum
    325 
    326 device plumicu
    327 attach plumicu at plumif
    328 file arch/hpcmips/dev/plumicu.c		plumicu
    329 
    330 device plumpower
    331 attach plumpower at plumif
    332 file arch/hpcmips/dev/plumpower.c	plumpower
    333 
    334 device plumvideo: hpcfbif
    335 attach plumvideo at plumif
    336 file arch/hpcmips/dev/plumvideo.c	plumvideo
    337 
    338 device plumpcmcia: pcmciabus
    339 attach plumpcmcia at plumif
    340 file arch/hpcmips/dev/plumpcmcia.c	plumpcmcia
    341 
    342 device plumiobusif {[platform = -1], [slot = -1]}
    343 device plumiobus: plumiobusif
    344 attach plumiobus at plumif
    345 file arch/hpcmips/dev/plumiobus.c	plumiobus
    346 
    347 device plumisab: isabus
    348 attach plumisab at plumiobusif
    349 file arch/hpcmips/isa/plumisa_machdep.c	plumisab
    350 
    351 # OHCI USB controller
    352 attach	ohci at plumif with plumohci
    353 file	arch/hpcmips/dev/plumohci.c	plumohci	needs-flag
    354 
    355 #device txisab: isabus
    356 #attach txisab at txcsbus
    357 #file arch/hpcmips/isa/txisa_machdep.c	txisab
    358 
    359 file	dev/hpc/video_subr.c		tx3912video | plumvideo
    360 
    361 #
    362 #	Real-time clock (not optional)
    363 #
    364 file	arch/hpcmips/hpcmips/clock.c
    365 file	dev/clock_subr.c
    366 
    367 # Floppy disk controller
    368 device	fdc {drive = -1}
    369 #attach	fdc at isa
    370 #device	fd: disk, isadma
    371 device	fd: disk
    372 #attach	fd at fdc
    373 file	arch/i386/isa/fd.c		fdc needs-flag
    374 major	{fd = 2}
    375 
    376 # network devices MII bus
    377 include "dev/mii/files.mii"
    378 
    379 # XXXX pcic here because it needs to be late.  The catch: pcic needs
    380 # to be late, so devices which attach to it are attached late.  But it
    381 # needs to be before its isa and pci attachments.  This answer is
    382 # non-optimal, but I don't have a better answer right now.
    383 
    384 # PCIC pcmcia contoller
    385 # XXX this needs to be done very late, so it's done here.  This feels
    386 # like a kludge, but it might be for the best.
    387 
    388 defparam		PCIC_ISA_ALLOC_IOBASE
    389 defparam		PCIC_ISA_ALLOC_IOSIZE
    390 defparam		PCIC_ISA_INTR_ALLOC_MASK
    391 
    392 device	pcic: pcmciabus
    393 file	dev/ic/i82365.c			pcic
    394 
    395 #
    396 # PCIC pcmcia controller
    397 #
    398 attach	pcic at isa with pcic_isa
    399 file	dev/isa/i82365_isa.c			pcic_isa
    400 file	dev/isa/i82365_isasubr.c		pcic_isa
    401 
    402 #
    403 # Machine-independent PCMCIA drivers
    404 #
    405 include "dev/pcmcia/files.pcmcia"
    406 
    407 # Serial Interface Unit
    408 attach com at vripif with com_vrip
    409 file	arch/hpcmips/vr/com_vrip.c		com_vrip needs-flag
    410 
    411 attach com at hpcioif with com_hpcio
    412 file arch/hpcmips/dev/com_hpcio.c		com_hpcio needs-flag
    413 
    414 # Memory Disk for boot tape
    415 file dev/md_root.c				memory_disk_hooks
    416 major	{md = 6}
    417 
    418 include "dev/usb/files.usb"
    419 
    420 # DMA Address Unit
    421 device vrdmaau
    422 attach vrdmaau at vripif
    423 file arch/hpcmips/vr/vrdmaau.c	vrdmaau
    424 
    425 # DMA Controll Unit
    426 device vrdcu
    427 attach vrdcu at vripif
    428 file arch/hpcmips/vr/vrdcu.c	vrdcu
    429