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