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