files.hpcmips revision 1.31
1# $NetBSD: files.hpcmips,v 1.31 2000/05/04 08:18:59 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 VR41X1 36defopt TX39XX 37 38# 39# CPU-dependent files 40# 41file arch/hpcmips/vr/vr.c vr41x1 # NEC VR4000 series 42file arch/hpcmips/vr/vr_idle.S vr41x1 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/platid.c 51file arch/hpcmips/hpcmips/platid_mask.c 52file arch/hpcmips/hpcmips/platid_name.c 53file arch/hpcmips/hpcmips/mainbus.c 54file arch/hpcmips/hpcmips/bus_space.c 55file arch/hpcmips/hpcmips/bus_dma.c 56file arch/hpcmips/hpcmips/disksubr.c disk 57file arch/hpcmips/hpcmips/config_hook.c 58 59# Console autoconfiguration code: selects between a framebuffers 60file dev/cons.c 61file arch/hpcmips/dev/bicons.c 62file arch/hpcmips/dev/bifont.c 63 64# Raster operations 65include "dev/rasops/files.rasops" 66include "dev/wsfont/files.wsfont" 67 68# 69# Workstation Console 70# 71include "dev/wscons/files.wscons" 72file dev/pckbc/wskbdmap_mfii.c btnmgr | vrkiu | skbd 73file arch/hpcmips/dev/pckbd_encode.c btnmgr | vrkiu | skbd 74defopt PCKBD_LAYOUT 75 76define hpcfbif {} 77device hpcfb: wsemuldisplaydev, rasops1, rasops2, rasops8, rasops15, rasops16 78attach hpcfb at hpcfbif 79file arch/hpcmips/dev/hpcfb.c hpcfb needs-flag 80 81device bivideo: hpcfbif 82file arch/hpcmips/dev/bivideo.c bivideo needs-flag 83file arch/hpcmips/dev/hpccmap.c bivideo 84attach bivideo at mainbus 85 86device btnmgr: wskbddev 87attach btnmgr at mainbus 88file arch/hpcmips/dev/btnmgr.c btnmgr 89 90# 91# ISA bus support 92# 93include "dev/isa/files.isa" 94 95# 96# pseudo devices 97# 98defpseudo biconsdev 99file arch/hpcmips/dev/biconsdev.c biconsdev needs-count 100 101# 102# Vr41x1 integrated peripherals 103# 104device vrip { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [intr=-1], [pwctl=-1] } 105attach vrip at mainbus 106file arch/hpcmips/vr/vrip.c vrip needs-flag 107 108device vrrtc 109attach vrrtc at vrip 110file arch/hpcmips/vr/rtc.c vrrtc 111 112device vrcmu 113attach vrcmu at vrip 114file arch/hpcmips/vr/cmu.c vrcmu 115 116device vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]} # GIU attachment 117device gpbusif {[platform = -1], [comctrl = -1], [button0 = -1], [button1 = -1], [button2 = -1], [button3 = -1], [button4 = -1], [button5 = -1], [button6 = -1], [button7 = -1], [button8 = -1], [button9 = -1], [button10 = -1], [button11 = -1]} 118device newgpbusif { [platform = -1], [id = -1], [port = -1], [active = 1], [level = -1] } 119 120device vrgiu: vrisabif, gpbusif, newgpbusif 121attach vrgiu at vrip 122file arch/hpcmips/vr/vrgiu.c vrgiu 123 124device gpbus 125attach gpbus at gpbusif 126file arch/hpcmips/vr/gpbus.c gpbus 127 128device vrisab: isabus 129attach vrisab at vrisabif 130file arch/hpcmips/isa/isa_machdep.c vrisab 131 132device pwctl 133attach pwctl at newgpbusif with pwctl_vrgiu 134file arch/hpcmips/vr/pwctl_vrgiu.c pwctl_vrgiu 135 136device button 137attach button at newgpbusif with button_vrgiu 138file arch/hpcmips/vr/button_vrgiu.c button_vrgiu 139 140device vrbcu 141attach vrbcu at vrip 142file arch/hpcmips/vr/bcu_vrip.c vrbcu needs-flag 143 144device vrkiu: wskbddev 145attach vrkiu at vrip 146file arch/hpcmips/vr/vrkiu.c vrkiu needs-flag 147 148device vrpmu 149attach vrpmu at vrip 150file arch/hpcmips/vr/vrpmu.c vrpmu needs-flag 151 152device vrdsu 153attach vrdsu at vrip 154file arch/hpcmips/vr/vrdsu.c vrdsu needs-flag 155 156define tpcalib 157file arch/hpcmips/dev/tpcalib.c tpcalib 158file arch/hpcmips/dev/mra.c tpcalib 159 160device vrpiu: wsmousedev 161attach vrpiu at vrip: tpcalib 162file arch/hpcmips/vr/vrpiu.c vrpiu 163 164# 165# TOSHIBA TX3912/3922 166# 167defopt TX39_DEBUG 168defopt TX39_WATCHDOGTIMER 169defopt TX39ICUDEBUG 170defopt TX39CLKDEBUG 171defopt TX39BIUDEBUG 172defopt TX39IODEBUG 173defopt TX39POWERDEBUG 174defopt TX39UARTDEBUG 175defopt USE_POLL 176 177device txsim { } 178device txcsbusif {[platform = -1]} 179device txcomif {[slot = -1]} 180device txsibif {[slot = -1]} 181device ucbif { } 182device irif { } 183device txiomanif {[platform = -1]} 184 185attach txsim at mainbus 186file arch/hpcmips/tx/txsim.c txsim 187file arch/hpcmips/tx/txsnd.c txsim 188 189device tx39biu: txcsbusif 190attach tx39biu at txsim 191file arch/hpcmips/tx/tx39biu.c tx39biu 192 193device 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]} 194attach txcsbus at txcsbusif 195file arch/hpcmips/tx/txcsbus.c txcsbus 196 197device tx39icu 198attach tx39icu at txsim 199file arch/hpcmips/tx/tx39icu.c tx39icu 200 201device tx39power 202attach tx39power at txsim 203file arch/hpcmips/tx/tx39power.c tx39power 204 205device tx39clock 206attach tx39clock at txsim 207file arch/hpcmips/tx/tx39clock.c tx39clock 208 209device tx3912video: hpcfbif 210attach tx3912video at txsim 211file arch/hpcmips/tx/tx3912video.c tx3912video 212 213device tx39io: txiomanif 214attach tx39io at txsim 215file arch/hpcmips/tx/tx39io.c tx39io 216 217device txioman 218attach txioman at txiomanif 219file arch/hpcmips/tx/txioman.c txioman 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: newgpbusif 239attach ucbio at ucbif 240file arch/hpcmips/dev/ucbio.c ucbio 241 242device ucbioport 243attach ucbioport at newgpbusif 244file arch/hpcmips/dev/ucbioport.c ucbioport 245 246device tx39uart: txcomif 247attach tx39uart at txsim 248file arch/hpcmips/tx/tx39uart.c tx39uart needs-flag 249 250device txcom: irif 251attach txcom at txcomif 252file arch/hpcmips/tx/txcom.c txcom 253 254device tx39ir 255attach tx39ir at irif 256file arch/hpcmips/tx/tx39ir.c tx39ir 257 258# ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA) 259device it8368e: pcmciabus 260attach it8368e at txcsbus 261file arch/hpcmips/dev/it8368.c it8368e 262 263device skbdif {} 264 265# MITUBISHI M38813 keryboard controller 266device m38813c: skbdif 267attach m38813c at txcsbus 268file arch/hpcmips/dev/m38813c.c m38813c needs-flag 269 270# PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard) 271device tc5165buf: skbdif 272attach tc5165buf at txcsbus 273file arch/hpcmips/dev/tc5165buf.c tc5165buf needs-flag 274 275# Simple keyboard interface for wskbd 276device skbd: wskbddev 277attach skbd at skbdif 278file arch/hpcmips/dev/skbd.c skbd 279 280 281# TOSHIBA TC6358E(Plum2) 282device plumif {} 283device plum: plumif 284attach plum at txcsbus 285file arch/hpcmips/dev/plum.c plum 286 287device plumicu 288attach plumicu at plumif 289file arch/hpcmips/dev/plumicu.c plumicu 290 291device plumpower 292attach plumpower at plumif 293file arch/hpcmips/dev/plumpower.c plumpower 294 295device plumvideo: hpcfbif 296attach plumvideo at plumif 297file arch/hpcmips/dev/plumvideo.c plumvideo 298 299device plumpcmcia: pcmciabus 300attach plumpcmcia at plumif 301file arch/hpcmips/dev/plumpcmcia.c plumpcmcia 302 303device plumiobusif {[platform = -1], [slot = -1]} 304device plumiobus: plumiobusif 305attach plumiobus at plumif 306file arch/hpcmips/dev/plumiobus.c plumiobus 307 308device plumisab: isabus 309attach plumisab at plumiobusif 310file arch/hpcmips/isa/plumisa_machdep.c plumisab 311 312# OHCI USB controller 313attach ohci at plumif with plumohci 314file arch/hpcmips/dev/plumohci.c plumohci 315 316#device txisab: isabus 317#attach txisab at txcsbus 318#file arch/hpcmips/isa/txisa_machdep.c txisab 319 320# 321# Real-time clock (not optional) 322# 323file arch/hpcmips/hpcmips/clock.c 324file dev/clock_subr.c 325 326# Floppy disk controller 327device fdc {drive = -1} 328#attach fdc at isa 329#device fd: disk, isadma 330device fd: disk 331#attach fd at fdc 332file arch/i386/isa/fd.c fdc needs-flag 333major {fd = 2} 334 335# network devices MII bus 336include "dev/mii/files.mii" 337 338# XXXX pcic here because it needs to be late. The catch: pcic needs 339# to be late, so devices which attach to it are attached late. But it 340# needs to be before its isa and pci attachments. This answer is 341# non-optimal, but I don't have a better answer right now. 342 343# PCIC pcmcia contoller 344# XXX this needs to be done very late, so it's done here. This feels 345# like a kludge, but it might be for the best. 346 347defopt PCIC_ISA_ALLOC_IOBASE 348defopt PCIC_ISA_ALLOC_IOSIZE 349defopt PCIC_ISA_INTR_ALLOC_MASK 350 351device pcic: pcmciabus 352file dev/ic/i82365.c pcic 353 354# 355# PCIC pcmcia controller 356# 357attach pcic at isa with pcic_isa 358file dev/isa/i82365_isa.c pcic_isa 359file dev/isa/i82365_isasubr.c pcic_isa 360 361# 362# Machine-independent PCMCIA drivers 363# 364include "dev/pcmcia/files.pcmcia" 365 366# Serial Interface Unit 367attach com at vrip with com_vrip 368file arch/hpcmips/vr/com_vrip.c com_vrip 369 370# Memory Disk for boot tape 371file arch/hpcmips/dev/md_root.c memory_disk_hooks 372major {md = 6} 373 374include "dev/usb/files.usb" 375