1# $NetBSD: files.hpcmips,v 1.99 2005/12/11 12:17:33 christos 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 txspiif {[slot = -1]} 238device ucbif { } 239device irif { } 240 241attach txsim at mainbus 242file arch/hpcmips/tx/txsim.c txsim 243file arch/hpcmips/tx/txsnd.c txsim 244 245device tx39biu: txcsbusif 246attach tx39biu at txsim 247file arch/hpcmips/tx/tx39biu.c tx39biu 248 249device 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]} 250attach txcsbus at txcsbusif 251file arch/hpcmips/tx/txcsbus.c txcsbus 252 253device tx39icu 254attach tx39icu at txsim 255file arch/hpcmips/tx/tx39icu.c tx39icu 256 257device tx39power 258attach tx39power at txsim 259file arch/hpcmips/tx/tx39power.c tx39power 260 261device tx39clock 262attach tx39clock at txsim 263file arch/hpcmips/tx/tx39clock.c tx39clock 264 265device tx3912video: hpcfbif 266attach tx3912video at txsim 267file arch/hpcmips/tx/tx3912video.c tx3912video 268 269device tx39io 270attach tx39io at txsim 271file arch/hpcmips/tx/tx39io.c tx39io 272 273device txioman: hpcioif 274attach txioman at txsim 275file arch/hpcmips/tx/txioman.c txioman 276 277device tx39sib: txsibif 278attach tx39sib at txsim 279file arch/hpcmips/tx/tx39sib.c tx39sib 280 281device tx39spi: txspiif 282attach tx39spi at txsim 283file arch/hpcmips/tx/tx39spi.c tx39spi 284 285# PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end) 286device ucb: ucbif 287attach ucb at txsibif 288file arch/hpcmips/dev/ucb1200.c ucb 289 290device ucbtp: wsmousedev 291attach ucbtp at ucbif: hpctpanel 292file arch/hpcmips/dev/ucbtp.c ucbtp 293 294device ucbsnd 295attach ucbsnd at ucbif 296file arch/hpcmips/dev/ucbsnd.c ucbsnd needs-flag 297 298device ucbio 299attach ucbio at ucbif 300file arch/hpcmips/dev/ucbio.c ucbio 301 302device tx39uart: txcomif 303attach tx39uart at txsim 304file arch/hpcmips/tx/tx39uart.c tx39uart needs-flag 305 306device txcom: irif 307attach txcom at txcomif 308file arch/hpcmips/tx/txcom.c txcom 309 310device tx39ir 311attach tx39ir at irif 312file arch/hpcmips/tx/tx39ir.c tx39ir 313 314# ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA) 315device it8368e: pcmciabus 316attach it8368e at txcsbus 317file arch/hpcmips/dev/it8368.c it8368e 318 319# MITUBISHI M38813 keryboard controller 320device m38813c: hpckbdif 321attach m38813c at txcsbus 322file arch/hpcmips/dev/m38813c.c m38813c needs-flag 323 324# PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard) 325device tc5165buf: hpckbdif 326attach tc5165buf at txcsbus 327file arch/hpcmips/dev/tc5165buf.c tc5165buf needs-flag 328 329# TOSHIBA TC6358E(Plum2) 330device plumif {} 331device plum: plumif 332attach plum at txcsbus 333file arch/hpcmips/dev/plum.c plum 334 335device plumicu 336attach plumicu at plumif 337file arch/hpcmips/dev/plumicu.c plumicu 338 339device plumpower 340attach plumpower at plumif 341file arch/hpcmips/dev/plumpower.c plumpower 342 343device plumvideo: hpcfbif 344attach plumvideo at plumif 345file arch/hpcmips/dev/plumvideo.c plumvideo 346 347device plumpcmcia: pcmciabus 348attach plumpcmcia at plumif 349file arch/hpcmips/dev/plumpcmcia.c plumpcmcia 350 351device plumiobusif {[platform = -1], [slot = -1]} 352device plumiobus: plumiobusif 353attach plumiobus at plumif 354file arch/hpcmips/dev/plumiobus.c plumiobus 355 356device plumisab: isabus 357attach plumisab at plumiobusif 358file arch/hpcmips/isa/plumisa_machdep.c plumisab 359 360# OHCI USB controller 361attach ohci at plumif with plumohci 362file arch/hpcmips/dev/plumohci.c plumohci needs-flag 363 364#device txisab: isabus 365#attach txisab at txcsbus 366#file arch/hpcmips/isa/txisa_machdep.c txisab 367 368file dev/hpc/video_subr.c tx3912video | plumvideo 369 370# Sharp Telios LCD and battery control driver 371device teliosio 372attach teliosio at txcsbus 373file arch/hpcmips/dev/teliosio.c teliosio 374 375# 376# Real-time clock (not optional) 377# 378file arch/hpcmips/hpcmips/clock.c 379 380# Floppy disk controller 381device fdc {drive = -1} 382#attach fdc at isa 383#device fd: disk, isadma 384device fd: disk 385#attach fd at fdc 386file arch/i386/isa/fd.c fdc needs-flag 387 388# XXXX pcic here because it needs to be late. The catch: pcic needs 389# to be late, so devices which attach to it are attached late. But it 390# needs to be before its isa and pci attachments. This answer is 391# non-optimal, but I don't have a better answer right now. 392 393# PCIC pcmcia contoller 394# XXX this needs to be done very late, so it's done here. This feels 395# like a kludge, but it might be for the best. 396 397defparam PCIC_ISA_ALLOC_IOBASE 398defparam PCIC_ISA_ALLOC_IOSIZE 399defparam PCIC_ISA_INTR_ALLOC_MASK 400 401device pcic: pcmciabus 402file dev/ic/i82365.c pcic 403 404# 405# PCIC pcmcia controller 406# 407attach pcic at isa with pcic_isa 408file dev/isa/i82365_isa.c pcic_isa 409file dev/isa/i82365_isasubr.c pcic_isa 410 411# PCIC pcmcia controller on vrip bus. 412attach pcic at vripif with pcic_vrip 413file arch/hpcmips/vr/vrecu.c pcic_vrip 414 415# 416# Machine-independent PCMCIA drivers 417# 418include "dev/pcmcia/files.pcmcia" 419 420# Serial Interface Unit 421attach com at vripif with com_vrip 422file arch/hpcmips/vr/com_vrip.c com_vrip needs-flag 423 424attach com at hpcioif with com_hpcio 425file arch/hpcmips/dev/com_hpcio.c com_hpcio needs-flag 426 427# Memory Disk for boot tape 428file dev/md_root.c memory_disk_hooks 429 430include "dev/usb/files.usb" 431 432# DMA Address Unit 433device vrdmaau 434attach vrdmaau at vripif 435file arch/hpcmips/vr/vrdmaau.c vrdmaau 436 437# DMA Controll Unit 438device vrdcu 439attach vrdcu at vripif 440file arch/hpcmips/vr/vrdcu.c vrdcu 441 442# Audio Interface Unit 443device vraiu: audiobus 444attach vraiu at vripif 445file arch/hpcmips/vr/vraiu.c vraiu 446 447# VR4181 Audio Interface Unit 448device vr4181aiu 449attach vr4181aiu at vripif 450file arch/hpcmips/vr/vr4181aiu.c vr4181aiu needs-flag 451 452# Flash memory on L-card+ XXX should not be here 453device flash 454attach flash at vripif with flash_vrip 455file arch/hpcmips/vr/flash_vrip.c flash_vrip needs-flag 456 457# OptPoint on Telios HC-AJ2 458device optpoint : wsmousedev 459attach optpoint at txspiif 460file arch/hpcmips/dev/optpoint.c optpoint 461 462include "arch/hpcmips/conf/majors.hpcmips" 463