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