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