1# $NetBSD: files.hpcmips,v 1.103 2009/08/21 03:56:58 thorpej 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# APM emulation 28# 29 30include "dev/hpc/files.hpcapm" 31file arch/hpcmips/hpcmips/hpcapm_machdep.c hpcapm 32 33# 34# Bus-independent devices 35# 36device mainbus { [platform = -1] }: hpcapmif 37attach mainbus at root 38 39device cpu # not optional 40attach cpu at mainbus 41file arch/hpcmips/hpcmips/cpu.c cpu 42 43# CPU support option headers 44defflag opt_vr41xx.h VR41XX VR4101 VR4102 VR4111 VR4121 VR4122 VR4181 VR4131 45defflag opt_tx39xx.h TX39XX TX3911 TX3912 TX3922 46 47# 48# CPU-dependent files 49# 50file arch/hpcmips/vr/vr.c vr41xx # NEC VR4000 series 51file arch/hpcmips/vr/vr_idle.S vr41xx 52file arch/hpcmips/tx/tx39.c tx39xx # TOSHIBA TX3900 series 53 54file arch/hpcmips/hpcmips/autoconf.c 55file arch/hpcmips/hpcmips/bus_dma.c 56file arch/hpcmips/hpcmips/bus_space.c 57file arch/hpcmips/hpcmips/bus_space_notimpl.c 58file arch/hpcmips/hpcmips/bus_space_through.c 59file arch/hpcmips/hpcmips/interrupt.c 60file arch/hpcmips/hpcmips/machdep.c 61file arch/hpcmips/hpcmips/mainbus.c 62 63file common/bus_dma/bus_dmamem_common.c 64 65file dev/kloader.c kloader 66file arch/hpcmips/hpcmips/kloader_machdep.c kloader 67file arch/hpcmips/hpcmips/kloader_vr41.S vr41xx & kloader 68file arch/hpcmips/hpcmips/kloader_tx39.S tx39xx & kloader 69defflag opt_no_symbolsz_entry.h NO_SYMBOLSZ_ENTRY 70defflag opt_kloader.h KLOADER 71defflag debug_kloader.h KLOADER_DEBUG 72defparam opt_kloader_kernel_path.h KLOADER_KERNEL_PATH 73 74defparam opt_memsize.h MEMSIZE 75 76# 77# H/PC Platform common files. 78# 79include "arch/hpc/conf/files.hpc" 80file arch/hpc/hpc/disksubr.c disk 81include "dev/hpc/files.bicons" 82include "dev/hpc/files.hpcfb" 83include "dev/hpc/files.hpckbd" 84include "dev/hpc/files.hpctp" 85 86# 87# Debug utility 88# 89include "arch/hpc/conf/files.debug" 90 91# Console autoconfiguration code: selects between a framebuffers 92file dev/cons.c 93 94# 95# ISA bus support 96# 97include "dev/pci/files.pci" # XXX some ISA devs are 'at pci' too. 98include "dev/isa/files.isa" 99 100# 101# Vr41xx integrated peripherals 102# 103device vripif { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [unit=-1], [pwctl=-1], [platform = -1] } 104define vrip_common 105file arch/hpcmips/vr/vrip.c vrip_common needs-flag 106device vrip: vripif 107attach vrip at mainbus: vrip_common 108device vr4102ip: vripif 109attach vr4102ip at mainbus: vrip_common 110file arch/hpcmips/vr/vr4102ip.c vr4102ip 111device vr4122ip: vripif 112attach vr4122ip at mainbus: vrip_common 113file arch/hpcmips/vr/vr4122ip.c vr4122ip 114device vr4181ip: vripif 115attach vr4181ip at mainbus: vrip_common 116file arch/hpcmips/vr/vr4181ip.c vr4181ip 117 118device vrbcu 119attach vrbcu at vripif 120file arch/hpcmips/vr/bcu_vrip.c vrbcu needs-flag 121 122device vrrtc 123attach vrrtc at vripif 124file arch/hpcmips/vr/rtc.c vrrtc needs-flag 125 126device vrcmu 127attach vrcmu at vripif 128file arch/hpcmips/vr/cmu.c vrcmu needs-flag 129 130include "dev/hpc/files.hpcio" 131device vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]} # GIU attachment 132 133device vrgiu: vrisabif, hpcioif 134attach vrgiu at vripif 135file arch/hpcmips/vr/vrgiu.c vrgiu 136 137device vr4181giu: vrisabif, hpcioif 138attach vr4181giu at vripif 139file arch/hpcmips/vr/vr4181giu.c vr4181giu 140 141device vrisab: isabus 142attach vrisab at vrisabif 143file arch/hpcmips/isa/isa_machdep.c vrisab 144 145device vrkiu: hpckbdif 146attach vrkiu at vripif 147file arch/hpcmips/vr/vrkiu.c vrkiu needs-flag 148 149device vrpmu 150attach vrpmu at vripif 151file arch/hpcmips/vr/vrpmu.c vrpmu needs-flag 152 153device vrdsu 154attach vrdsu at vripif 155file arch/hpcmips/vr/vrdsu.c vrdsu needs-flag 156 157device vrled 158attach vrled at vripif 159file arch/hpcmips/vr/vrled.c vrled needs-flag 160 161define vrpiu_common 162file arch/hpcmips/vr/vrpiu.c vrpiu_common 163device vrpiu: wsmousedev 164attach vrpiu at vripif: hpctpanel, vrpiu_common 165device vrc4173piu: wsmousedev 166attach vrc4173piu at vripif: hpctpanel, vrpiu_common 167 168device vrdsiu_mouse: wsmousedev 169attach vrdsiu_mouse at vripif 170file arch/hpcmips/vr/vrdsiu_mouse.c vrdsiu_mouse 171 172attach ohci at vripif with ohci_vrip 173file arch/hpcmips/dev/ohci_vrip.c ohci_vrip 174 175device vrpciu: pcibus 176attach vrpciu at vripif 177file arch/hpcmips/vr/vrpciu.c vrpciu needs-flag 178 179defflag opt_mq200.h MQ200_DEBUG MQ200_USECRT 180device mqvideo: hpcfbif 181attach mqvideo at vripif with mqvideo_vrip 182file arch/hpcmips/vr/mq200_vrip.c mqvideo_vrip 183file arch/hpcmips/dev/mq200.c mqvideo 184file arch/hpcmips/dev/mq200subr.c mqvideo 185file arch/hpcmips/dev/mq200debug.c mqvideo 186file arch/hpcmips/dev/mq200machdep.c mqvideo 187 188attach mqvideo at pci with mqvideo_pci 189file arch/hpcmips/dev/mq200_pci.c mqvideo_pci 190 191device ite8181video: hpcfbif, hpccmap 192attach ite8181video at vripif with ite8181video_vrip 193file arch/hpcmips/vr/ite8181_vrip.c ite8181video_vrip 194file arch/hpcmips/dev/ite8181.c ite8181video 195 196defflag opt_vrc4172pci.h VRC4172PCI_MCR700_SUPPORT 197device vrc4172pci: pcibus 198attach vrc4172pci at vripif 199file arch/hpcmips/vr/vrc4172pci.c vrc4172pci 200 201device vrc4172pwm 202attach vrc4172pwm at vripif 203file arch/hpcmips/vr/vrc4172pwm.c vrc4172pwm needs-flag 204 205device vrc4172gpio: hpcioif, vrisabif 206attach vrc4172gpio at hpcioif 207file arch/hpcmips/vr/vrc4172gpio.c vrc4172gpio 208 209device vrc4173cardu: pcmciabus 210attach vrc4173cardu at pci 211file arch/hpcmips/pci/vrc4173cardu.c vrc4173cardu 212 213device vrc4173bcu: vripif 214attach vrc4173bcu at pci 215file arch/hpcmips/vr/vrc4173bcu.c vrc4173bcu 216 217# 218# TOSHIBA TX3912/3922 219# 220defflag TX39_WATCHDOGTIMER 221defflag TX39ICU_DEBUG 222defflag TX39CLOCK_DEBUG 223defflag TX39BIU_DEBUG 224defflag TX39POWER_DEBUG 225defflag TX39UART_DEBUG 226defflag USE_POLL 227 228device txsim { } 229device txcsbusif {[platform = -1]} 230device txcomif {[slot = -1]} 231device txsibif {[slot = -1]} 232device txspiif {[slot = -1]} 233device ucbif { } 234device irif { } 235 236attach txsim at mainbus 237file arch/hpcmips/tx/txsim.c txsim 238file arch/hpcmips/tx/txsnd.c txsim 239 240device tx39biu: txcsbusif 241attach tx39biu at txsim 242file arch/hpcmips/tx/tx39biu.c tx39biu 243 244device 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]} 245attach txcsbus at txcsbusif 246file arch/hpcmips/tx/txcsbus.c txcsbus 247 248device tx39icu 249attach tx39icu at txsim 250file arch/hpcmips/tx/tx39icu.c tx39icu 251 252device tx39power 253attach tx39power at txsim 254file arch/hpcmips/tx/tx39power.c tx39power 255 256device tx39clock 257attach tx39clock at txsim 258file arch/hpcmips/tx/tx39clock.c tx39clock 259 260device tx3912video: hpcfbif 261attach tx3912video at txsim 262file arch/hpcmips/tx/tx3912video.c tx3912video 263 264device tx39io 265attach tx39io at txsim 266file arch/hpcmips/tx/tx39io.c tx39io 267 268device txioman: hpcioif 269attach txioman at txsim 270file arch/hpcmips/tx/txioman.c txioman 271 272device tx39sib: txsibif 273attach tx39sib at txsim 274file arch/hpcmips/tx/tx39sib.c tx39sib 275 276device tx39spi: txspiif 277attach tx39spi at txsim 278file arch/hpcmips/tx/tx39spi.c tx39spi 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# Sharp Telios LCD and battery control driver 366device teliosio 367attach teliosio at txcsbus 368file arch/hpcmips/dev/teliosio.c teliosio 369 370# 371# Real-time clock (not optional) 372# 373file arch/hpcmips/hpcmips/clock.c 374 375# Floppy disk controller 376device fdc {drive = -1} 377#attach fdc at isa 378#device fd: disk, isadma 379device fd: disk 380#attach fd at fdc 381file arch/i386/isa/fd.c fdc needs-flag 382 383# XXXX pcic here because it needs to be late. The catch: pcic needs 384# to be late, so devices which attach to it are attached late. But it 385# needs to be before its isa and pci attachments. This answer is 386# non-optimal, but I don't have a better answer right now. 387 388# PCIC pcmcia contoller 389# XXX this needs to be done very late, so it's done here. This feels 390# like a kludge, but it might be for the best. 391 392defparam PCIC_ISA_ALLOC_IOBASE 393defparam PCIC_ISA_ALLOC_IOSIZE 394defparam PCIC_ISA_INTR_ALLOC_MASK 395 396device pcic: pcmciabus 397file dev/ic/i82365.c pcic 398 399# 400# PCIC pcmcia controller 401# 402attach pcic at isa with pcic_isa 403file dev/isa/i82365_isa.c pcic_isa 404file dev/isa/i82365_isasubr.c pcic_isa 405 406# PCIC pcmcia controller on vrip bus. 407attach pcic at vripif with pcic_vrip 408file arch/hpcmips/vr/vrecu.c pcic_vrip 409 410# 411# Machine-independent PCMCIA drivers 412# 413include "dev/pcmcia/files.pcmcia" 414 415# Serial Interface Unit 416attach com at vripif with com_vrip 417file arch/hpcmips/vr/com_vrip.c com_vrip needs-flag 418 419attach com at hpcioif with com_hpcio 420file arch/hpcmips/dev/com_hpcio.c com_hpcio needs-flag 421 422# Memory Disk for boot tape 423file dev/md_root.c memory_disk_hooks 424 425include "dev/usb/files.usb" 426 427# DMA Address Unit 428device vrdmaau 429attach vrdmaau at vripif 430file arch/hpcmips/vr/vrdmaau.c vrdmaau 431 432# DMA Controll Unit 433device vrdcu 434attach vrdcu at vripif 435file arch/hpcmips/vr/vrdcu.c vrdcu 436 437# Audio Interface Unit 438device vraiu: audiobus 439attach vraiu at vripif 440file arch/hpcmips/vr/vraiu.c vraiu 441 442# VR4181 Audio Interface Unit 443device vr4181aiu 444attach vr4181aiu at vripif 445file arch/hpcmips/vr/vr4181aiu.c vr4181aiu needs-flag 446 447# Flash memory on L-card+ XXX should not be here 448device flash 449attach flash at vripif with flash_vrip 450file arch/hpcmips/vr/flash_vrip.c flash_vrip needs-flag 451 452# OptPoint on Telios HC-AJ2 453device optpoint : wsmousedev 454attach optpoint at txspiif 455file arch/hpcmips/dev/optpoint.c optpoint 456 457include "arch/hpcmips/conf/majors.hpcmips" 458