1# $NetBSD: files.hpcmips,v 1.86 2002/05/30 01:45:00 greg Exp $ 2 3# maxpartitions must be first item in files.${ARCH}. 4maxpartitions 8 5 6maxusers 2 8 64 7 8# 9# Machine-independent I2O drivers. 10# 11 12include "dev/i2o/files.i2o" 13 14# 15# Machine-independent SCSI drivers 16# 17 18include "dev/scsipi/files.scsipi" 19major {sd = 3} 20major {st = 4} 21major {cd = 5} 22 23# 24# Machine-independent ATA drivers 25# 26 27include "dev/ata/files.ata" 28major {wd = 1} 29 30# 31# Bus-independent devices 32# 33device mainbus { [platform = -1] } 34attach mainbus at root 35 36device cpu # not optional 37attach cpu at mainbus 38file arch/hpcmips/hpcmips/cpu.c cpu 39 40# CPU support option headers 41defflag opt_vr41xx.h VR41XX VR4101 VR4102 VR4111 VR4121 VR4122 VR4181 VR4131 42defflag opt_tx39xx.h TX39XX TX3911 TX3912 TX3922 43 44# 45# CPU-dependent files 46# 47file arch/hpcmips/vr/vr.c vr41xx # NEC VR4000 series 48file arch/hpcmips/vr/vr_idle.S vr41xx 49file arch/hpcmips/tx/tx39.c tx39xx # TOSHIBA TX3900 series 50 51file arch/hpcmips/hpcmips/autoconf.c 52file arch/hpcmips/hpcmips/bus_dma.c 53file arch/hpcmips/hpcmips/bus_space.c 54file arch/hpcmips/hpcmips/bus_space_notimpl.c 55file arch/hpcmips/hpcmips/bus_space_through.c 56file arch/hpcmips/hpcmips/conf.c 57file arch/hpcmips/hpcmips/interrupt.c 58file arch/hpcmips/hpcmips/machdep.c 59file arch/hpcmips/hpcmips/mainbus.c 60 61file arch/hpc/hpc/kloader.c kloader 62file arch/hpcmips/hpcmips/kloader_machdep.c kloader 63file arch/hpcmips/hpcmips/kloader_vr41.S vr41xx & kloader 64file arch/hpcmips/hpcmips/kloader_tx39.S tx39xx & kloader 65defflag opt_kloader.h KLOADER 66defflag debug_kloader.h KLOADER_DEBUG 67defparam opt_kloader_kernel_path.h KLOADER_KERNEL_PATH 68 69# 70# H/PC Platform common files. 71# 72include "arch/hpc/conf/files.hpc" 73file arch/hpc/hpc/disksubr.c disk 74include "dev/hpc/files.bicons" 75include "dev/hpc/files.hpcfb" 76include "dev/hpc/files.hpckbd" 77include "dev/hpc/files.hpctp" 78 79# 80# Debug utility 81# 82include "arch/hpc/conf/files.debug" 83 84# Console autoconfiguration code: selects between a framebuffers 85file dev/cons.c 86 87# 88# Workstation Console 89# 90include "dev/wscons/files.wscons" 91 92# 93# power management 94# 95include "arch/hpcmips/dev/apm/files.apm" 96device hpcapm: apmdevif 97attach hpcapm at mainbus 98file arch/hpcmips/dev/hpcapm.c hpcapm 99 100# 101# ISA bus support 102# 103include "dev/pci/files.pci" # XXX some ISA devs are 'at pci' too. 104include "dev/isa/files.isa" 105 106# 107# Vr41xx integrated peripherals 108# 109device vripif { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [unit=-1], [pwctl=-1], [platform = -1] } 110define vrip_common 111file arch/hpcmips/vr/vrip.c vrip_common needs-flag 112device vrip: vripif 113attach vrip at mainbus: vrip_common 114device vr4102ip: vripif 115attach vr4102ip at mainbus: vrip_common 116file arch/hpcmips/vr/vr4102ip.c vr4102ip 117device vr4122ip: vripif 118attach vr4122ip at mainbus: vrip_common 119file arch/hpcmips/vr/vr4122ip.c vr4122ip 120 121device vrbcu 122attach vrbcu at vripif 123file arch/hpcmips/vr/bcu_vrip.c vrbcu needs-flag 124 125device vrrtc 126attach vrrtc at vripif 127file arch/hpcmips/vr/rtc.c vrrtc needs-flag 128 129device vrcmu 130attach vrcmu at vripif 131file arch/hpcmips/vr/cmu.c vrcmu needs-flag 132 133include "dev/hpc/files.hpcio" 134device vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]} # GIU attachment 135 136device vrgiu: vrisabif, hpcioif 137attach vrgiu at vripif 138file arch/hpcmips/vr/vrgiu.c vrgiu 139 140device vrisab: isabus 141attach vrisab at vrisabif 142file arch/hpcmips/isa/isa_machdep.c vrisab 143 144device vrkiu: hpckbdif 145attach vrkiu at vripif 146file arch/hpcmips/vr/vrkiu.c vrkiu needs-flag 147 148device vrpmu 149attach vrpmu at vripif 150file arch/hpcmips/vr/vrpmu.c vrpmu needs-flag 151 152device vrdsu 153attach vrdsu at vripif 154file arch/hpcmips/vr/vrdsu.c vrdsu needs-flag 155 156device vrled 157attach vrled at vripif 158file arch/hpcmips/vr/vrled.c vrled needs-flag 159 160device vrpiu: wsmousedev 161attach vrpiu at vripif: tpcalib 162file arch/hpcmips/vr/vrpiu.c vrpiu 163 164device vrdsiu_mouse: wsmousedev 165attach vrdsiu_mouse at vripif 166file arch/hpcmips/vr/vrdsiu_mouse.c vrdsiu_mouse 167 168attach ohci at vripif with ohci_vrip 169file arch/hpcmips/dev/ohci_vrip.c ohci_vrip 170 171device vrpciu: pcibus 172attach vrpciu at vripif 173file arch/hpcmips/vr/vrpciu.c vrpciu needs-flag 174 175defflag opt_mq200.h MQ200_DEBUG MQ200_USECRT 176device mqvideo: hpcfbif 177attach mqvideo at vripif with mqvideo_vrip 178file arch/hpcmips/vr/mq200_vrip.c mqvideo_vrip 179file arch/hpcmips/dev/mq200.c mqvideo 180file arch/hpcmips/dev/mq200subr.c mqvideo 181file arch/hpcmips/dev/mq200debug.c mqvideo 182file arch/hpcmips/dev/mq200machdep.c mqvideo 183 184attach mqvideo at pci with mqvideo_pci 185file arch/hpcmips/dev/mq200_pci.c mqvideo_pci 186 187device ite8181video: hpcfbif, hpccmap 188attach ite8181video at vripif with ite8181video_vrip 189file arch/hpcmips/vr/ite8181_vrip.c ite8181video_vrip 190file arch/hpcmips/dev/ite8181.c ite8181video 191 192defflag opt_vrc4172pci.h VRC4172PCI_MCR700_SUPPORT 193device vrc4172pci: pcibus 194attach vrc4172pci at vripif 195file arch/hpcmips/vr/vrc4172pci.c vrc4172pci 196 197device vrc4172pwm 198attach vrc4172pwm at vripif 199file arch/hpcmips/vr/vrc4172pwm.c vrc4172pwm needs-flag 200 201device vrc4172gpio: hpcioif, vrisabif 202attach vrc4172gpio at hpcioif 203file arch/hpcmips/vr/vrc4172gpio.c vrc4172gpio 204 205device vrc4173cardu: pcmciabus 206attach vrc4173cardu at pci 207file arch/hpcmips/pci/vrc4173cardu.c vrc4173cardu 208 209device vrc4173bcu: vripif 210attach vrc4173bcu at pci 211file arch/hpcmips/vr/vrc4173bcu.c vrc4173bcu 212 213# 214# TOSHIBA TX3912/3922 215# 216defflag TX39_WATCHDOGTIMER 217defflag TX39ICU_DEBUG 218defflag TX39CLOCK_DEBUG 219defflag TX39BIU_DEBUG 220defflag TX39POWER_DEBUG 221defflag TX39UART_DEBUG 222defflag USE_POLL 223 224device txsim { } 225device txcsbusif {[platform = -1]} 226device txcomif {[slot = -1]} 227device txsibif {[slot = -1]} 228device ucbif { } 229device irif { } 230 231attach txsim at mainbus 232file arch/hpcmips/tx/txsim.c txsim 233file arch/hpcmips/tx/txsnd.c txsim 234 235device tx39biu: txcsbusif 236attach tx39biu at txsim 237file arch/hpcmips/tx/tx39biu.c tx39biu 238 239device 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]} 240attach txcsbus at txcsbusif 241file arch/hpcmips/tx/txcsbus.c txcsbus 242 243device tx39icu 244attach tx39icu at txsim 245file arch/hpcmips/tx/tx39icu.c tx39icu 246 247device tx39power 248attach tx39power at txsim 249file arch/hpcmips/tx/tx39power.c tx39power 250 251device tx39clock 252attach tx39clock at txsim 253file arch/hpcmips/tx/tx39clock.c tx39clock 254 255device tx3912video: hpcfbif 256attach tx3912video at txsim 257file arch/hpcmips/tx/tx3912video.c tx3912video 258 259device tx39io 260attach tx39io at txsim 261file arch/hpcmips/tx/tx39io.c tx39io 262 263device txioman: hpcioif 264attach txioman at txsim 265file arch/hpcmips/tx/txioman.c txioman 266 267device tx39sib: txsibif 268attach tx39sib at txsim 269file arch/hpcmips/tx/tx39sib.c tx39sib 270 271# PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end) 272device ucb: ucbif 273attach ucb at txsibif 274file arch/hpcmips/dev/ucb1200.c ucb 275 276device ucbtp: wsmousedev 277attach ucbtp at ucbif: tpcalib 278file arch/hpcmips/dev/ucbtp.c ucbtp 279 280device ucbsnd 281attach ucbsnd at ucbif 282file arch/hpcmips/dev/ucbsnd.c ucbsnd needs-flag 283 284device ucbio 285attach ucbio at ucbif 286file arch/hpcmips/dev/ucbio.c ucbio 287 288device tx39uart: txcomif 289attach tx39uart at txsim 290file arch/hpcmips/tx/tx39uart.c tx39uart needs-flag 291 292device txcom: irif 293attach txcom at txcomif 294file arch/hpcmips/tx/txcom.c txcom 295 296device tx39ir 297attach tx39ir at irif 298file arch/hpcmips/tx/tx39ir.c tx39ir 299 300# ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA) 301device it8368e: pcmciabus 302attach it8368e at txcsbus 303file arch/hpcmips/dev/it8368.c it8368e 304 305# MITUBISHI M38813 keryboard controller 306device m38813c: hpckbdif 307attach m38813c at txcsbus 308file arch/hpcmips/dev/m38813c.c m38813c needs-flag 309 310# PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard) 311device tc5165buf: hpckbdif 312attach tc5165buf at txcsbus 313file arch/hpcmips/dev/tc5165buf.c tc5165buf needs-flag 314 315# TOSHIBA TC6358E(Plum2) 316device plumif {} 317device plum: plumif 318attach plum at txcsbus 319file arch/hpcmips/dev/plum.c plum 320 321device plumicu 322attach plumicu at plumif 323file arch/hpcmips/dev/plumicu.c plumicu 324 325device plumpower 326attach plumpower at plumif 327file arch/hpcmips/dev/plumpower.c plumpower 328 329device plumvideo: hpcfbif 330attach plumvideo at plumif 331file arch/hpcmips/dev/plumvideo.c plumvideo 332 333device plumpcmcia: pcmciabus 334attach plumpcmcia at plumif 335file arch/hpcmips/dev/plumpcmcia.c plumpcmcia 336 337device plumiobusif {[platform = -1], [slot = -1]} 338device plumiobus: plumiobusif 339attach plumiobus at plumif 340file arch/hpcmips/dev/plumiobus.c plumiobus 341 342device plumisab: isabus 343attach plumisab at plumiobusif 344file arch/hpcmips/isa/plumisa_machdep.c plumisab 345 346# OHCI USB controller 347attach ohci at plumif with plumohci 348file arch/hpcmips/dev/plumohci.c plumohci needs-flag 349 350#device txisab: isabus 351#attach txisab at txcsbus 352#file arch/hpcmips/isa/txisa_machdep.c txisab 353 354file dev/hpc/video_subr.c tx3912video | plumvideo 355 356# 357# Real-time clock (not optional) 358# 359file arch/hpcmips/hpcmips/clock.c 360file dev/clock_subr.c 361 362# Floppy disk controller 363device fdc {drive = -1} 364#attach fdc at isa 365#device fd: disk, isadma 366device fd: disk 367#attach fd at fdc 368file arch/i386/isa/fd.c fdc needs-flag 369major {fd = 2} 370 371# XXXX pcic here because it needs to be late. The catch: pcic needs 372# to be late, so devices which attach to it are attached late. But it 373# needs to be before its isa and pci attachments. This answer is 374# non-optimal, but I don't have a better answer right now. 375 376# PCIC pcmcia contoller 377# XXX this needs to be done very late, so it's done here. This feels 378# like a kludge, but it might be for the best. 379 380defparam PCIC_ISA_ALLOC_IOBASE 381defparam PCIC_ISA_ALLOC_IOSIZE 382defparam PCIC_ISA_INTR_ALLOC_MASK 383 384device pcic: pcmciabus 385file dev/ic/i82365.c pcic 386 387# 388# PCIC pcmcia controller 389# 390attach pcic at isa with pcic_isa 391file dev/isa/i82365_isa.c pcic_isa 392file dev/isa/i82365_isasubr.c pcic_isa 393 394# 395# Machine-independent PCMCIA drivers 396# 397include "dev/pcmcia/files.pcmcia" 398 399# Serial Interface Unit 400attach com at vripif with com_vrip 401file arch/hpcmips/vr/com_vrip.c com_vrip needs-flag 402 403attach com at hpcioif with com_hpcio 404file arch/hpcmips/dev/com_hpcio.c com_hpcio needs-flag 405 406# Memory Disk for boot tape 407file dev/md_root.c memory_disk_hooks 408major {md = 6} 409 410include "dev/usb/files.usb" 411 412# DMA Address Unit 413device vrdmaau 414attach vrdmaau at vripif 415file arch/hpcmips/vr/vrdmaau.c vrdmaau 416 417# DMA Controll Unit 418device vrdcu 419attach vrdcu at vripif 420file arch/hpcmips/vr/vrdcu.c vrdcu 421 422# Audio Interface Unit 423device vraiu: audiobus 424attach vraiu at vripif 425file arch/hpcmips/vr/vraiu.c vraiu 426