files.hpcmips revision 1.55
1# $NetBSD: files.hpcmips,v 1.55 2001/04/30 11:42:18 takemura Exp $ 2 3# maxpartitions must be first item in files.${ARCH}. 4maxpartitions 8 5 6maxusers 2 8 64 7 8# 9# Machine-independent SCSI drivers 10# 11 12include "dev/scsipi/files.scsipi" 13major {sd = 3} 14major {st = 4} 15major {cd = 5} 16 17# 18# Machine-independent ATA drivers 19# 20 21include "dev/ata/files.ata" 22major {wd = 1} 23 24# 25# Bus-independent devices 26# 27device mainbus { } # no locators 28attach mainbus at root 29 30device cpu # not optional 31attach cpu at mainbus 32file arch/hpcmips/hpcmips/cpu.c cpu 33 34# CPU support option headers 35defopt opt_vr41xx.h VR41XX VR4101 VR4102 VR4111 VR4121 VR4122 VR4181 36defopt opt_tx39xx.h TX39XX TX3911 TX3912 TX3922 37 38# 39# CPU-dependent files 40# 41file arch/hpcmips/vr/vr.c vr41xx # NEC VR4000 series 42file arch/hpcmips/vr/vr_idle.S vr41xx 43file arch/hpcmips/tx/tx39.c tx39xx # TOSHIBA TX3900 series 44 45file arch/mips/mips/fp.S softfloat 46 47file arch/hpcmips/hpcmips/autoconf.c 48file arch/hpcmips/hpcmips/conf.c 49file arch/hpcmips/hpcmips/machdep.c 50file arch/hpcmips/hpcmips/mainbus.c 51file arch/hpcmips/hpcmips/bus_space.c 52file arch/hpcmips/hpcmips/bus_dma.c 53file arch/hpcmips/hpcmips/procfs_machdep.c procfs 54 55# 56# H/PC Platform common files. 57# 58include "arch/hpc/conf/files.hpc" 59file arch/hpc/hpc/disksubr.c disk 60include "dev/hpc/files.bicons" 61include "dev/hpc/files.hpcfb" 62include "dev/hpc/files.hpckbd" 63include "dev/hpc/files.hpctp" 64 65# Console autoconfiguration code: selects between a framebuffers 66file dev/cons.c 67 68# 69# Workstation Console 70# 71include "dev/wscons/files.wscons" 72 73# 74# power management 75# 76include "arch/hpcmips/dev/apm/files.apm" 77device hpcapm: apmdevif 78attach hpcapm at mainbus 79file arch/hpcmips/dev/hpcapm.c hpcapm 80 81# 82# ISA bus support 83# 84include "dev/isa/files.isa" 85 86# 87# Vr41xx integrated peripherals 88# 89device vrip { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [intr=-1], [pwctl=-1], [platform = -1] } 90attach vrip at mainbus 91file arch/hpcmips/vr/vrip.c vrip needs-flag 92 93device vrbcu 94attach vrbcu at vrip 95file arch/hpcmips/vr/bcu_vrip.c vrbcu needs-flag 96 97device vrrtc 98attach vrrtc at vrip 99file arch/hpcmips/vr/rtc.c vrrtc needs-flag 100 101device vrcmu 102attach vrcmu at vrip 103file arch/hpcmips/vr/cmu.c vrcmu needs-flag 104 105include "dev/hpc/files.hpcio" 106device vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]} # GIU attachment 107 108device vrgiu: vrisabif, hpcioif 109attach vrgiu at vrip 110file arch/hpcmips/vr/vrgiu.c vrgiu 111 112device vrisab: isabus 113attach vrisab at vrisabif 114file arch/hpcmips/isa/isa_machdep.c vrisab 115 116device vrkiu: hpckbdif 117attach vrkiu at vrip 118file arch/hpcmips/vr/vrkiu.c vrkiu needs-flag 119 120device vrpmu 121attach vrpmu at vrip 122file arch/hpcmips/vr/vrpmu.c vrpmu needs-flag 123 124device vrdsu 125attach vrdsu at vrip 126file arch/hpcmips/vr/vrdsu.c vrdsu needs-flag 127 128device vrled 129attach vrled at vrip 130file arch/hpcmips/vr/vrled.c vrled needs-flag 131 132device vrpiu: wsmousedev 133attach vrpiu at vrip: tpcalib 134file arch/hpcmips/vr/vrpiu.c vrpiu 135 136attach ohci at vrip with ohci_vrip 137file arch/hpcmips/dev/ohci_vrip.c ohci_vrip 138 139defopt opt_mq200.h MQ200_DEBUG MQ200_USECRT 140device mqvideo: hpcfbif 141attach mqvideo at vrip with mqvideo_vrip 142file arch/hpcmips/vr/mq200_vrip.c mqvideo_vrip 143file arch/hpcmips/dev/mq200.c mqvideo 144file arch/hpcmips/dev/mq200subr.c mqvideo 145file arch/hpcmips/dev/mq200debug.c mqvideo 146file arch/hpcmips/dev/mq200machdep.c mqvideo 147 148device ite8181video: hpcfbif 149attach ite8181video at vrip with ite8181video_vrip 150file arch/hpcmips/vr/ite8181_vrip.c ite8181video_vrip 151file arch/hpcmips/dev/ite8181.c ite8181video 152 153device vrc4172pwm 154attach vrc4172pwm at vrip 155file arch/hpcmips/vr/vrc4172pwm.c vrc4172pwm needs-flag 156 157# 158# TOSHIBA TX3912/3922 159# 160defopt TX39_DEBUG 161defopt TX39_WATCHDOGTIMER 162defopt TX39ICUDEBUG 163defopt TX39CLKDEBUG 164defopt TX39BIUDEBUG 165defopt TX39POWERDEBUG 166defopt TX39UARTDEBUG 167defopt USE_POLL 168 169device txsim {[platform = -1]} 170device txcsbusif {[platform = -1]} 171device txcomif {[slot = -1]} 172device txsibif {[slot = -1]} 173device ucbif { } 174device irif { } 175device txiomanif {[evtype = -1], [id = -1], [group = -1], [port = -1], [edge = -1], [initial = -1]} 176 177attach txsim at mainbus 178file arch/hpcmips/tx/txsim.c txsim 179file arch/hpcmips/tx/txsnd.c txsim 180 181device tx39biu: txcsbusif 182attach tx39biu at txsim 183file arch/hpcmips/tx/tx39biu.c tx39biu 184 185device 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]} 186attach txcsbus at txcsbusif 187file arch/hpcmips/tx/txcsbus.c txcsbus 188 189device tx39icu 190attach tx39icu at txsim 191file arch/hpcmips/tx/tx39icu.c tx39icu 192 193device tx39power 194attach tx39power at txsim 195file arch/hpcmips/tx/tx39power.c tx39power 196 197device tx39clock 198attach tx39clock at txsim 199file arch/hpcmips/tx/tx39clock.c tx39clock 200 201device tx3912video: hpcfbif 202attach tx3912video at txsim 203file arch/hpcmips/tx/tx3912video.c tx3912video 204 205device tx39io 206attach tx39io at txsim 207file arch/hpcmips/tx/tx39io.c tx39io 208 209device txioman: txiomanif 210attach txioman at txsim 211file arch/hpcmips/tx/txioman.c txioman 212 213device txin 214attach txin at txiomanif 215file arch/hpcmips/tx/txioman_in.c txin 216 217device txout 218attach txout at txiomanif 219file arch/hpcmips/tx/txioman_out.c txout 220 221device tx39sib: txsibif 222attach tx39sib at txsim 223file arch/hpcmips/tx/tx39sib.c tx39sib 224 225# PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end) 226device ucb: ucbif 227attach ucb at txsibif 228file arch/hpcmips/dev/ucb1200.c ucb 229 230device ucbtp: wsmousedev 231attach ucbtp at ucbif: tpcalib 232file arch/hpcmips/dev/ucbtp.c ucbtp 233 234device ucbsnd 235attach ucbsnd at ucbif 236file arch/hpcmips/dev/ucbsnd.c ucbsnd needs-flag 237 238device ucbio 239attach ucbio at ucbif 240file arch/hpcmips/dev/ucbio.c ucbio 241 242device tx39uart: txcomif 243attach tx39uart at txsim 244file arch/hpcmips/tx/tx39uart.c tx39uart needs-flag 245 246device txcom: irif 247attach txcom at txcomif 248file arch/hpcmips/tx/txcom.c txcom 249 250device tx39ir 251attach tx39ir at irif 252file arch/hpcmips/tx/tx39ir.c tx39ir 253 254# ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA) 255device it8368e: pcmciabus 256attach it8368e at txcsbus 257file arch/hpcmips/dev/it8368.c it8368e 258 259# MITUBISHI M38813 keryboard controller 260device m38813c: hpckbdif 261attach m38813c at txcsbus 262file arch/hpcmips/dev/m38813c.c m38813c needs-flag 263 264# PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard) 265device tc5165buf: hpckbdif 266attach tc5165buf at txcsbus 267file arch/hpcmips/dev/tc5165buf.c tc5165buf needs-flag 268 269# TOSHIBA TC6358E(Plum2) 270device plumif {} 271device plum: plumif 272attach plum at txcsbus 273file arch/hpcmips/dev/plum.c plum 274 275device plumicu 276attach plumicu at plumif 277file arch/hpcmips/dev/plumicu.c plumicu 278 279device plumpower 280attach plumpower at plumif 281file arch/hpcmips/dev/plumpower.c plumpower 282 283device plumvideo: hpcfbif 284attach plumvideo at plumif 285file arch/hpcmips/dev/plumvideo.c plumvideo 286 287device plumpcmcia: pcmciabus 288attach plumpcmcia at plumif 289file arch/hpcmips/dev/plumpcmcia.c plumpcmcia 290 291device plumiobusif {[platform = -1], [slot = -1]} 292device plumiobus: plumiobusif 293attach plumiobus at plumif 294file arch/hpcmips/dev/plumiobus.c plumiobus 295 296device plumisab: isabus 297attach plumisab at plumiobusif 298file arch/hpcmips/isa/plumisa_machdep.c plumisab 299 300# OHCI USB controller 301attach ohci at plumif with plumohci 302file arch/hpcmips/dev/plumohci.c plumohci needs-flag 303 304#device txisab: isabus 305#attach txisab at txcsbus 306#file arch/hpcmips/isa/txisa_machdep.c txisab 307 308file dev/hpc/video_subr.c tx3912video | plumvideo 309 310# 311# Real-time clock (not optional) 312# 313file arch/hpcmips/hpcmips/clock.c 314file dev/clock_subr.c 315 316# Floppy disk controller 317device fdc {drive = -1} 318#attach fdc at isa 319#device fd: disk, isadma 320device fd: disk 321#attach fd at fdc 322file arch/i386/isa/fd.c fdc needs-flag 323major {fd = 2} 324 325# network devices MII bus 326include "dev/mii/files.mii" 327 328# XXXX pcic here because it needs to be late. The catch: pcic needs 329# to be late, so devices which attach to it are attached late. But it 330# needs to be before its isa and pci attachments. This answer is 331# non-optimal, but I don't have a better answer right now. 332 333# PCIC pcmcia contoller 334# XXX this needs to be done very late, so it's done here. This feels 335# like a kludge, but it might be for the best. 336 337defopt PCIC_ISA_ALLOC_IOBASE 338defopt PCIC_ISA_ALLOC_IOSIZE 339defopt PCIC_ISA_INTR_ALLOC_MASK 340 341device pcic: pcmciabus 342file dev/ic/i82365.c pcic 343 344# 345# PCIC pcmcia controller 346# 347attach pcic at isa with pcic_isa 348file dev/isa/i82365_isa.c pcic_isa 349file dev/isa/i82365_isasubr.c pcic_isa 350 351# 352# Machine-independent PCMCIA drivers 353# 354include "dev/pcmcia/files.pcmcia" 355 356# Serial Interface Unit 357attach com at vrip with com_vrip 358file arch/hpcmips/vr/com_vrip.c com_vrip 359 360# Memory Disk for boot tape 361file dev/md_root.c memory_disk_hooks 362major {md = 6} 363 364include "dev/usb/files.usb" 365