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