files.hpcmips revision 1.33
1# $NetBSD: files.hpcmips,v 1.33 2000/06/11 23:34:31 matt 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 90file arch/hpcmips/dev/video_subr.c tx3912video | plumvideo 91 92# 93# ISA bus support 94# 95include "dev/isa/files.isa" 96 97# 98# pseudo devices 99# 100defpseudo biconsdev 101file arch/hpcmips/dev/biconsdev.c biconsdev needs-count 102 103# 104# Vr41x1 integrated peripherals 105# 106device vrip { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [intr=-1], [pwctl=-1] } 107attach vrip at mainbus 108file arch/hpcmips/vr/vrip.c vrip needs-flag 109 110device vrrtc 111attach vrrtc at vrip 112file arch/hpcmips/vr/rtc.c vrrtc 113 114device vrcmu 115attach vrcmu at vrip 116file arch/hpcmips/vr/cmu.c vrcmu 117 118device vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]} # GIU attachment 119device 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]} 120device newgpbusif { [platform = -1], [id = -1], [port = -1], [active = 1], [level = -1] } 121 122device vrgiu: vrisabif, gpbusif, newgpbusif 123attach vrgiu at vrip 124file arch/hpcmips/vr/vrgiu.c vrgiu 125 126device gpbus 127attach gpbus at gpbusif 128file arch/hpcmips/vr/gpbus.c gpbus 129 130device vrisab: isabus 131attach vrisab at vrisabif 132file arch/hpcmips/isa/isa_machdep.c vrisab 133 134device pwctl 135attach pwctl at newgpbusif with pwctl_vrgiu 136file arch/hpcmips/vr/pwctl_vrgiu.c pwctl_vrgiu 137 138device button 139attach button at newgpbusif with button_vrgiu 140file arch/hpcmips/vr/button_vrgiu.c button_vrgiu 141 142device vrbcu 143attach vrbcu at vrip 144file arch/hpcmips/vr/bcu_vrip.c vrbcu needs-flag 145 146device vrkiu: wskbddev 147attach vrkiu at vrip 148file arch/hpcmips/vr/vrkiu.c vrkiu needs-flag 149 150device vrpmu 151attach vrpmu at vrip 152file arch/hpcmips/vr/vrpmu.c vrpmu needs-flag 153 154device vrdsu 155attach vrdsu at vrip 156file arch/hpcmips/vr/vrdsu.c vrdsu needs-flag 157 158define tpcalib 159file arch/hpcmips/dev/tpcalib.c tpcalib 160file arch/hpcmips/dev/mra.c tpcalib 161 162device vrpiu: wsmousedev 163attach vrpiu at vrip: tpcalib 164file arch/hpcmips/vr/vrpiu.c vrpiu 165 166attach ohci at vrip with ohci_vrip 167file arch/hpcmips/dev/ohci_vrip.c ohci_vrip 168 169# 170# TOSHIBA TX3912/3922 171# 172defopt TX39_DEBUG 173defopt TX39_WATCHDOGTIMER 174defopt TX39ICUDEBUG 175defopt TX39CLKDEBUG 176defopt TX39BIUDEBUG 177defopt TX39IODEBUG 178defopt TX39POWERDEBUG 179defopt TX39UARTDEBUG 180defopt USE_POLL 181 182device txsim { } 183device txcsbusif {[platform = -1]} 184device txcomif {[slot = -1]} 185device txsibif {[slot = -1]} 186device ucbif { } 187device irif { } 188device txiomanif {[platform = -1]} 189 190attach txsim at mainbus 191file arch/hpcmips/tx/txsim.c txsim 192file arch/hpcmips/tx/txsnd.c txsim 193 194device tx39biu: txcsbusif 195attach tx39biu at txsim 196file arch/hpcmips/tx/tx39biu.c tx39biu 197 198device 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]} 199attach txcsbus at txcsbusif 200file arch/hpcmips/tx/txcsbus.c txcsbus 201 202device tx39icu 203attach tx39icu at txsim 204file arch/hpcmips/tx/tx39icu.c tx39icu 205 206device tx39power 207attach tx39power at txsim 208file arch/hpcmips/tx/tx39power.c tx39power 209 210device tx39clock 211attach tx39clock at txsim 212file arch/hpcmips/tx/tx39clock.c tx39clock 213 214device tx3912video: hpcfbif 215attach tx3912video at txsim 216file arch/hpcmips/tx/tx3912video.c tx3912video 217 218device tx39io: txiomanif 219attach tx39io at txsim 220file arch/hpcmips/tx/tx39io.c tx39io 221 222device txioman 223attach txioman at txiomanif 224file arch/hpcmips/tx/txioman.c txioman 225 226device tx39sib: txsibif 227attach tx39sib at txsim 228file arch/hpcmips/tx/tx39sib.c tx39sib 229 230# PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end) 231device ucb: ucbif 232attach ucb at txsibif 233file arch/hpcmips/dev/ucb1200.c ucb 234 235device ucbtp: wsmousedev 236attach ucbtp at ucbif: tpcalib 237file arch/hpcmips/dev/ucbtp.c ucbtp 238 239device ucbsnd 240attach ucbsnd at ucbif 241file arch/hpcmips/dev/ucbsnd.c ucbsnd needs-flag 242 243device ucbio: newgpbusif 244attach ucbio at ucbif 245file arch/hpcmips/dev/ucbio.c ucbio 246 247device ucbioport 248attach ucbioport at newgpbusif 249file arch/hpcmips/dev/ucbioport.c ucbioport 250 251device tx39uart: txcomif 252attach tx39uart at txsim 253file arch/hpcmips/tx/tx39uart.c tx39uart needs-flag 254 255device txcom: irif 256attach txcom at txcomif 257file arch/hpcmips/tx/txcom.c txcom 258 259device tx39ir 260attach tx39ir at irif 261file arch/hpcmips/tx/tx39ir.c tx39ir 262 263# ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA) 264device it8368e: pcmciabus 265attach it8368e at txcsbus 266file arch/hpcmips/dev/it8368.c it8368e 267 268device skbdif {} 269 270# MITUBISHI M38813 keryboard controller 271device m38813c: skbdif 272attach m38813c at txcsbus 273file arch/hpcmips/dev/m38813c.c m38813c needs-flag 274 275# PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard) 276device tc5165buf: skbdif 277attach tc5165buf at txcsbus 278file arch/hpcmips/dev/tc5165buf.c tc5165buf needs-flag 279 280# Simple keyboard interface for wskbd 281device skbd: wskbddev 282attach skbd at skbdif 283file arch/hpcmips/dev/skbd.c skbd 284 285 286# TOSHIBA TC6358E(Plum2) 287device plumif {} 288device plum: plumif 289attach plum at txcsbus 290file arch/hpcmips/dev/plum.c plum 291 292device plumicu 293attach plumicu at plumif 294file arch/hpcmips/dev/plumicu.c plumicu 295 296device plumpower 297attach plumpower at plumif 298file arch/hpcmips/dev/plumpower.c plumpower 299 300device plumvideo: hpcfbif 301attach plumvideo at plumif 302file arch/hpcmips/dev/plumvideo.c plumvideo 303 304device plumpcmcia: pcmciabus 305attach plumpcmcia at plumif 306file arch/hpcmips/dev/plumpcmcia.c plumpcmcia 307 308device plumiobusif {[platform = -1], [slot = -1]} 309device plumiobus: plumiobusif 310attach plumiobus at plumif 311file arch/hpcmips/dev/plumiobus.c plumiobus 312 313device plumisab: isabus 314attach plumisab at plumiobusif 315file arch/hpcmips/isa/plumisa_machdep.c plumisab 316 317# OHCI USB controller 318attach ohci at plumif with plumohci 319file arch/hpcmips/dev/plumohci.c plumohci 320 321#device txisab: isabus 322#attach txisab at txcsbus 323#file arch/hpcmips/isa/txisa_machdep.c txisab 324 325# 326# Real-time clock (not optional) 327# 328file arch/hpcmips/hpcmips/clock.c 329file dev/clock_subr.c 330 331# Floppy disk controller 332device fdc {drive = -1} 333#attach fdc at isa 334#device fd: disk, isadma 335device fd: disk 336#attach fd at fdc 337file arch/i386/isa/fd.c fdc needs-flag 338major {fd = 2} 339 340# network devices MII bus 341include "dev/mii/files.mii" 342 343# XXXX pcic here because it needs to be late. The catch: pcic needs 344# to be late, so devices which attach to it are attached late. But it 345# needs to be before its isa and pci attachments. This answer is 346# non-optimal, but I don't have a better answer right now. 347 348# PCIC pcmcia contoller 349# XXX this needs to be done very late, so it's done here. This feels 350# like a kludge, but it might be for the best. 351 352defopt PCIC_ISA_ALLOC_IOBASE 353defopt PCIC_ISA_ALLOC_IOSIZE 354defopt PCIC_ISA_INTR_ALLOC_MASK 355 356device pcic: pcmciabus 357file dev/ic/i82365.c pcic 358 359# 360# PCIC pcmcia controller 361# 362attach pcic at isa with pcic_isa 363file dev/isa/i82365_isa.c pcic_isa 364file dev/isa/i82365_isasubr.c pcic_isa 365 366# 367# Machine-independent PCMCIA drivers 368# 369include "dev/pcmcia/files.pcmcia" 370 371# Serial Interface Unit 372attach com at vrip with com_vrip 373file arch/hpcmips/vr/com_vrip.c com_vrip 374 375# Memory Disk for boot tape 376file arch/hpcmips/dev/md_root.c memory_disk_hooks 377major {md = 6} 378 379include "dev/usb/files.usb" 380