Home | History | Annotate | Line # | Download | only in conf
files.hpcmips revision 1.72
      1 #	$NetBSD: files.hpcmips,v 1.72 2002/02/11 07:55:50 takemura 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/mips/mips/fp.S		softfloat
     52 
     53 file	arch/hpcmips/hpcmips/autoconf.c
     54 file	arch/hpcmips/hpcmips/bus_dma.c
     55 file	arch/hpcmips/hpcmips/bus_space.c
     56 file	arch/hpcmips/hpcmips/bus_space_notimpl.c
     57 file	arch/hpcmips/hpcmips/bus_space_through.c
     58 file	arch/hpcmips/hpcmips/conf.c
     59 file	arch/hpcmips/hpcmips/interrupt.c
     60 file	arch/hpcmips/hpcmips/machdep.c
     61 file	arch/hpcmips/hpcmips/mainbus.c
     62 file	arch/hpcmips/hpcmips/procfs_machdep.c	procfs
     63 
     64 file	arch/hpc/hpc/kloader.c
     65 file	arch/hpcmips/hpcmips/kloader_machdep.c
     66 file	arch/hpcmips/hpcmips/kloader_vr41.S	vr41xx
     67 file	arch/hpcmips/hpcmips/kloader_tx39.S	tx39xx
     68 defflag	debug_kloader.h			KLOADER_DEBUG
     69 defparam opt_kloader_kernel_path.h	KLOADER_KERNEL_PATH
     70 
     71 #
     72 # H/PC Platform common files.
     73 #
     74 include "arch/hpc/conf/files.hpc"
     75 file	arch/hpc/hpc/disksubr.c			disk
     76 include "dev/hpc/files.bicons"
     77 include "dev/hpc/files.hpcfb"
     78 include "dev/hpc/files.hpckbd"
     79 include "dev/hpc/files.hpctp"
     80 
     81 #
     82 # Debug utility
     83 #
     84 file	arch/hpc/hpc/debug_subr.c
     85 
     86 # Console autoconfiguration code: selects between a framebuffers
     87 file	dev/cons.c
     88 
     89 #
     90 # Workstation Console
     91 #
     92 include "dev/wscons/files.wscons"
     93 
     94 #
     95 # power management
     96 #
     97 include "arch/hpcmips/dev/apm/files.apm"
     98 device hpcapm: apmdevif
     99 attach hpcapm at mainbus
    100 file	arch/hpcmips/dev/hpcapm.c	hpcapm
    101 
    102 #
    103 # ISA bus support
    104 #
    105 include "dev/pci/files.pci"	# XXX some ISA devs are 'at pci' too.
    106 include "dev/isa/files.isa"
    107 
    108 #
    109 #  Vr41xx integrated peripherals
    110 #
    111 device vripif { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [unit=-1], [pwctl=-1], [platform = -1] }
    112 device vrip: vripif
    113 attach vrip at mainbus
    114 device vr4102ip: vripif
    115 attach vr4102ip at mainbus
    116 file arch/hpcmips/vr/vrip.c		vrip|vr4102ip needs-flag
    117 file arch/hpcmips/vr/vr4102ip.c		vr4102ip
    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 vrisab: isabus
    139 attach vrisab at vrisabif
    140 file arch/hpcmips/isa/isa_machdep.c		vrisab
    141 
    142 device vrkiu: hpckbdif
    143 attach vrkiu at vripif
    144 file arch/hpcmips/vr/vrkiu.c			vrkiu needs-flag
    145 
    146 device vrpmu
    147 attach vrpmu at vripif
    148 file arch/hpcmips/vr/vrpmu.c			vrpmu needs-flag
    149 
    150 device vrdsu
    151 attach vrdsu at vripif
    152 file arch/hpcmips/vr/vrdsu.c			vrdsu needs-flag
    153 
    154 device vrled
    155 attach vrled at vripif
    156 file arch/hpcmips/vr/vrled.c			vrled needs-flag
    157 
    158 device vrpiu: wsmousedev
    159 attach vrpiu at vripif: tpcalib
    160 file arch/hpcmips/vr/vrpiu.c			vrpiu
    161 
    162 attach ohci at vripif with ohci_vrip
    163 file arch/hpcmips/dev/ohci_vrip.c		ohci_vrip
    164 
    165 device vrpciu: pcibus
    166 attach vrpciu at vripif
    167 file arch/hpcmips/vr/vrpciu.c			vrpciu needs-flag
    168 
    169 defflag opt_mq200.h	MQ200_DEBUG MQ200_USECRT
    170 device mqvideo: hpcfbif
    171 attach mqvideo at vripif with mqvideo_vrip
    172 file arch/hpcmips/vr/mq200_vrip.c		mqvideo_vrip
    173 file arch/hpcmips/dev/mq200.c			mqvideo
    174 file arch/hpcmips/dev/mq200subr.c		mqvideo
    175 file arch/hpcmips/dev/mq200debug.c		mqvideo
    176 file arch/hpcmips/dev/mq200machdep.c		mqvideo
    177 
    178 attach mqvideo at pci with mqvideo_pci
    179 file arch/hpcmips/pci/mq200_pci.c		mqvideo_pci
    180 
    181 device ite8181video: hpcfbif
    182 attach ite8181video at vripif with ite8181video_vrip
    183 file arch/hpcmips/vr/ite8181_vrip.c		ite8181video_vrip
    184 file arch/hpcmips/dev/ite8181.c			ite8181video
    185 
    186 device vrc4172pwm
    187 attach vrc4172pwm at vripif
    188 file arch/hpcmips/vr/vrc4172pwm.c		vrc4172pwm needs-flag
    189 
    190 device vrc4172gpio: hpcioif, vrisabif
    191 attach vrc4172gpio at hpcioif
    192 file arch/hpcmips/vr/vrc4172gpio.c		vrc4172gpio
    193 
    194 device vrc4173cardu: pcmciabus
    195 attach vrc4173cardu at pci
    196 file arch/hpcmips/pci/vrc4173cardu.c		vrc4173cardu
    197 
    198 device vrc4173if {}
    199 
    200 device vrc4173bcu: vrc4173if
    201 attach vrc4173bcu at pci
    202 file arch/hpcmips/vr/vrc4173bcu.c		vrc4173bcu
    203 
    204 device vrc4173cmu
    205 attach vrc4173cmu at vrc4173if
    206 file arch/hpcmips/vr/vrc4173cmu.c		vrc4173cmu
    207 
    208 device vrc4173piu
    209 attach vrc4173piu at vrc4173if
    210 file arch/hpcmips/vr/vrc4173piu.c		vrc4173piu
    211 
    212 device vrc4173kiu
    213 attach vrc4173kiu at vrc4173if
    214 file arch/hpcmips/vr/vrc4173kiu.c		vrc4173kiu
    215 
    216 #
    217 #	TOSHIBA TX3912/3922
    218 #
    219 defflag			TX39_WATCHDOGTIMER
    220 defflag			TX39ICU_DEBUG
    221 defflag			TX39CLOCK_DEBUG
    222 defflag			TX39BIU_DEBUG
    223 defflag			TX39POWER_DEBUG
    224 defflag			TX39UART_DEBUG
    225 defflag			USE_POLL
    226 
    227 device txsim { }
    228 device txcsbusif {[platform = -1]}
    229 device txcomif {[slot = -1]}
    230 device txsibif {[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 #	PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end)
    275 device ucb: ucbif
    276 attach ucb at txsibif
    277 file arch/hpcmips/dev/ucb1200.c		ucb
    278 
    279 device ucbtp: wsmousedev
    280 attach ucbtp at ucbif: tpcalib
    281 file arch/hpcmips/dev/ucbtp.c		ucbtp
    282 
    283 device ucbsnd
    284 attach ucbsnd at ucbif
    285 file arch/hpcmips/dev/ucbsnd.c		ucbsnd		needs-flag
    286 
    287 device ucbio
    288 attach ucbio at ucbif
    289 file arch/hpcmips/dev/ucbio.c		ucbio
    290 
    291 device tx39uart: txcomif
    292 attach tx39uart at txsim
    293 file arch/hpcmips/tx/tx39uart.c		tx39uart	needs-flag
    294 
    295 device txcom: irif
    296 attach txcom at txcomif
    297 file arch/hpcmips/tx/txcom.c		txcom
    298 
    299 device tx39ir
    300 attach tx39ir at irif
    301 file arch/hpcmips/tx/tx39ir.c		tx39ir
    302 
    303 #	ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA)
    304 device it8368e: pcmciabus
    305 attach it8368e at txcsbus
    306 file arch/hpcmips/dev/it8368.c		it8368e
    307 
    308 #	MITUBISHI M38813 keryboard controller
    309 device m38813c: hpckbdif
    310 attach m38813c at txcsbus
    311 file arch/hpcmips/dev/m38813c.c		m38813c		needs-flag
    312 
    313 #	PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard)
    314 device tc5165buf: hpckbdif
    315 attach tc5165buf at txcsbus
    316 file arch/hpcmips/dev/tc5165buf.c	tc5165buf	needs-flag
    317 
    318 #	TOSHIBA TC6358E(Plum2)
    319 device plumif {}
    320 device plum: plumif
    321 attach plum at txcsbus
    322 file arch/hpcmips/dev/plum.c		plum
    323 
    324 device plumicu
    325 attach plumicu at plumif
    326 file arch/hpcmips/dev/plumicu.c		plumicu
    327 
    328 device plumpower
    329 attach plumpower at plumif
    330 file arch/hpcmips/dev/plumpower.c	plumpower
    331 
    332 device plumvideo: hpcfbif
    333 attach plumvideo at plumif
    334 file arch/hpcmips/dev/plumvideo.c	plumvideo
    335 
    336 device plumpcmcia: pcmciabus
    337 attach plumpcmcia at plumif
    338 file arch/hpcmips/dev/plumpcmcia.c	plumpcmcia
    339 
    340 device plumiobusif {[platform = -1], [slot = -1]}
    341 device plumiobus: plumiobusif
    342 attach plumiobus at plumif
    343 file arch/hpcmips/dev/plumiobus.c	plumiobus
    344 
    345 device plumisab: isabus
    346 attach plumisab at plumiobusif
    347 file arch/hpcmips/isa/plumisa_machdep.c	plumisab
    348 
    349 # OHCI USB controller
    350 attach	ohci at plumif with plumohci
    351 file	arch/hpcmips/dev/plumohci.c	plumohci	needs-flag
    352 
    353 #device txisab: isabus
    354 #attach txisab at txcsbus
    355 #file arch/hpcmips/isa/txisa_machdep.c	txisab
    356 
    357 file	dev/hpc/video_subr.c		tx3912video | plumvideo
    358 
    359 #
    360 #	Real-time clock (not optional)
    361 #
    362 file	arch/hpcmips/hpcmips/clock.c
    363 file	dev/clock_subr.c
    364 
    365 # Floppy disk controller
    366 device	fdc {drive = -1}
    367 #attach	fdc at isa
    368 #device	fd: disk, isadma
    369 device	fd: disk
    370 #attach	fd at fdc
    371 file	arch/i386/isa/fd.c		fdc needs-flag
    372 major	{fd = 2}
    373 
    374 # network devices MII bus
    375 include "dev/mii/files.mii"
    376 
    377 # XXXX pcic here because it needs to be late.  The catch: pcic needs
    378 # to be late, so devices which attach to it are attached late.  But it
    379 # needs to be before its isa and pci attachments.  This answer is
    380 # non-optimal, but I don't have a better answer right now.
    381 
    382 # PCIC pcmcia contoller
    383 # XXX this needs to be done very late, so it's done here.  This feels
    384 # like a kludge, but it might be for the best.
    385 
    386 defparam		PCIC_ISA_ALLOC_IOBASE
    387 defparam		PCIC_ISA_ALLOC_IOSIZE
    388 defparam		PCIC_ISA_INTR_ALLOC_MASK
    389 
    390 device	pcic: pcmciabus
    391 file	dev/ic/i82365.c			pcic
    392 
    393 #
    394 # PCIC pcmcia controller
    395 #
    396 attach	pcic at isa with pcic_isa
    397 file	dev/isa/i82365_isa.c			pcic_isa
    398 file	dev/isa/i82365_isasubr.c		pcic_isa
    399 
    400 #
    401 # Machine-independent PCMCIA drivers
    402 #
    403 include "dev/pcmcia/files.pcmcia"
    404 
    405 # Serial Interface Unit
    406 attach com at vripif with com_vrip
    407 file	arch/hpcmips/vr/com_vrip.c		com_vrip needs-flag
    408 
    409 attach com at hpcioif with com_hpcio
    410 file arch/hpcmips/dev/com_hpcio.c		com_hpcio needs-flag
    411 
    412 # Memory Disk for boot tape
    413 file dev/md_root.c				memory_disk_hooks
    414 major	{md = 6}
    415 
    416 include "dev/usb/files.usb"
    417 
    418 # DMA Address Unit
    419 device vrdmaau
    420 attach vrdmaau at vripif
    421 file arch/hpcmips/vr/vrdmaau.c	vrdmaau
    422 
    423 # DMA Controll Unit
    424 device vrdcu
    425 attach vrdcu at vripif
    426 file arch/hpcmips/vr/vrdcu.c	vrdcu
    427