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