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