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