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