1# $NetBSD: files.hpcmips,v 1.90 2003/05/01 07:01:58 igy 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_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# H/PC Platform common files. 69# 70include "arch/hpc/conf/files.hpc" 71file arch/hpc/hpc/disksubr.c disk 72include "dev/hpc/files.bicons" 73include "dev/hpc/files.hpcfb" 74include "dev/hpc/files.hpckbd" 75include "dev/hpc/files.hpctp" 76 77# 78# Debug utility 79# 80include "arch/hpc/conf/files.debug" 81 82# Console autoconfiguration code: selects between a framebuffers 83file dev/cons.c 84 85# 86# Workstation Console 87# 88include "dev/wscons/files.wscons" 89 90# 91# power management 92# 93include "arch/hpcmips/dev/apm/files.apm" 94device hpcapm: apmdevif 95attach hpcapm at mainbus 96file arch/hpcmips/dev/hpcapm.c hpcapm 97 98# 99# ISA bus support 100# 101include "dev/pci/files.pci" # XXX some ISA devs are 'at pci' too. 102include "dev/isa/files.isa" 103 104# 105# Vr41xx integrated peripherals 106# 107device vripif { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [unit=-1], [pwctl=-1], [platform = -1] } 108define vrip_common 109file arch/hpcmips/vr/vrip.c vrip_common needs-flag 110device vrip: vripif 111attach vrip at mainbus: vrip_common 112device vr4102ip: vripif 113attach vr4102ip at mainbus: vrip_common 114file arch/hpcmips/vr/vr4102ip.c vr4102ip 115device vr4122ip: vripif 116attach vr4122ip at mainbus: vrip_common 117file arch/hpcmips/vr/vr4122ip.c vr4122ip 118device vr4181ip: vripif 119attach vr4181ip at mainbus: vrip_common 120file arch/hpcmips/vr/vr4181ip.c vr4181ip 121 122device vrbcu 123attach vrbcu at vripif 124file arch/hpcmips/vr/bcu_vrip.c vrbcu needs-flag 125 126device vrrtc 127attach vrrtc at vripif 128file arch/hpcmips/vr/rtc.c vrrtc needs-flag 129 130device vrcmu 131attach vrcmu at vripif 132file arch/hpcmips/vr/cmu.c vrcmu needs-flag 133 134include "dev/hpc/files.hpcio" 135device vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]} # GIU attachment 136 137device vrgiu: vrisabif, hpcioif 138attach vrgiu at vripif 139file arch/hpcmips/vr/vrgiu.c vrgiu 140 141device vr4181giu: vrisabif, hpcioif 142attach vr4181giu at vripif 143file arch/hpcmips/vr/vr4181giu.c vr4181giu 144 145device vrisab: isabus 146attach vrisab at vrisabif 147file arch/hpcmips/isa/isa_machdep.c vrisab 148 149device vrkiu: hpckbdif 150attach vrkiu at vripif 151file arch/hpcmips/vr/vrkiu.c vrkiu needs-flag 152 153device vrpmu 154attach vrpmu at vripif 155file arch/hpcmips/vr/vrpmu.c vrpmu needs-flag 156 157device vrdsu 158attach vrdsu at vripif 159file arch/hpcmips/vr/vrdsu.c vrdsu needs-flag 160 161device vrled 162attach vrled at vripif 163file arch/hpcmips/vr/vrled.c vrled needs-flag 164 165define vrpiu_common 166file arch/hpcmips/vr/vrpiu.c vrpiu_common 167device vrpiu: wsmousedev 168attach vrpiu at vripif: tpcalib, vrpiu_common 169device vrc4173piu: wsmousedev 170attach vrc4173piu at vripif: tpcalib, vrpiu_common 171 172device vrdsiu_mouse: wsmousedev 173attach vrdsiu_mouse at vripif 174file arch/hpcmips/vr/vrdsiu_mouse.c vrdsiu_mouse 175 176attach ohci at vripif with ohci_vrip 177file arch/hpcmips/dev/ohci_vrip.c ohci_vrip 178 179device vrpciu: pcibus 180attach vrpciu at vripif 181file arch/hpcmips/vr/vrpciu.c vrpciu needs-flag 182 183defflag opt_mq200.h MQ200_DEBUG MQ200_USECRT 184device mqvideo: hpcfbif 185attach mqvideo at vripif with mqvideo_vrip 186file arch/hpcmips/vr/mq200_vrip.c mqvideo_vrip 187file arch/hpcmips/dev/mq200.c mqvideo 188file arch/hpcmips/dev/mq200subr.c mqvideo 189file arch/hpcmips/dev/mq200debug.c mqvideo 190file arch/hpcmips/dev/mq200machdep.c mqvideo 191 192attach mqvideo at pci with mqvideo_pci 193file arch/hpcmips/dev/mq200_pci.c mqvideo_pci 194 195device ite8181video: hpcfbif, hpccmap 196attach ite8181video at vripif with ite8181video_vrip 197file arch/hpcmips/vr/ite8181_vrip.c ite8181video_vrip 198file arch/hpcmips/dev/ite8181.c ite8181video 199 200defflag opt_vrc4172pci.h VRC4172PCI_MCR700_SUPPORT 201device vrc4172pci: pcibus 202attach vrc4172pci at vripif 203file arch/hpcmips/vr/vrc4172pci.c vrc4172pci 204 205device vrc4172pwm 206attach vrc4172pwm at vripif 207file arch/hpcmips/vr/vrc4172pwm.c vrc4172pwm needs-flag 208 209device vrc4172gpio: hpcioif, vrisabif 210attach vrc4172gpio at hpcioif 211file arch/hpcmips/vr/vrc4172gpio.c vrc4172gpio 212 213device vrc4173cardu: pcmciabus 214attach vrc4173cardu at pci 215file arch/hpcmips/pci/vrc4173cardu.c vrc4173cardu 216 217device vrc4173bcu: vripif 218attach vrc4173bcu at pci 219file arch/hpcmips/vr/vrc4173bcu.c vrc4173bcu 220 221# 222# TOSHIBA TX3912/3922 223# 224defflag TX39_WATCHDOGTIMER 225defflag TX39ICU_DEBUG 226defflag TX39CLOCK_DEBUG 227defflag TX39BIU_DEBUG 228defflag TX39POWER_DEBUG 229defflag TX39UART_DEBUG 230defflag USE_POLL 231 232device txsim { } 233device txcsbusif {[platform = -1]} 234device txcomif {[slot = -1]} 235device txsibif {[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 279# PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end) 280device ucb: ucbif 281attach ucb at txsibif 282file arch/hpcmips/dev/ucb1200.c ucb 283 284device ucbtp: wsmousedev 285attach ucbtp at ucbif: tpcalib 286file arch/hpcmips/dev/ucbtp.c ucbtp 287 288device ucbsnd 289attach ucbsnd at ucbif 290file arch/hpcmips/dev/ucbsnd.c ucbsnd needs-flag 291 292device ucbio 293attach ucbio at ucbif 294file arch/hpcmips/dev/ucbio.c ucbio 295 296device tx39uart: txcomif 297attach tx39uart at txsim 298file arch/hpcmips/tx/tx39uart.c tx39uart needs-flag 299 300device txcom: irif 301attach txcom at txcomif 302file arch/hpcmips/tx/txcom.c txcom 303 304device tx39ir 305attach tx39ir at irif 306file arch/hpcmips/tx/tx39ir.c tx39ir 307 308# ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA) 309device it8368e: pcmciabus 310attach it8368e at txcsbus 311file arch/hpcmips/dev/it8368.c it8368e 312 313# MITUBISHI M38813 keryboard controller 314device m38813c: hpckbdif 315attach m38813c at txcsbus 316file arch/hpcmips/dev/m38813c.c m38813c needs-flag 317 318# PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard) 319device tc5165buf: hpckbdif 320attach tc5165buf at txcsbus 321file arch/hpcmips/dev/tc5165buf.c tc5165buf needs-flag 322 323# TOSHIBA TC6358E(Plum2) 324device plumif {} 325device plum: plumif 326attach plum at txcsbus 327file arch/hpcmips/dev/plum.c plum 328 329device plumicu 330attach plumicu at plumif 331file arch/hpcmips/dev/plumicu.c plumicu 332 333device plumpower 334attach plumpower at plumif 335file arch/hpcmips/dev/plumpower.c plumpower 336 337device plumvideo: hpcfbif 338attach plumvideo at plumif 339file arch/hpcmips/dev/plumvideo.c plumvideo 340 341device plumpcmcia: pcmciabus 342attach plumpcmcia at plumif 343file arch/hpcmips/dev/plumpcmcia.c plumpcmcia 344 345device plumiobusif {[platform = -1], [slot = -1]} 346device plumiobus: plumiobusif 347attach plumiobus at plumif 348file arch/hpcmips/dev/plumiobus.c plumiobus 349 350device plumisab: isabus 351attach plumisab at plumiobusif 352file arch/hpcmips/isa/plumisa_machdep.c plumisab 353 354# OHCI USB controller 355attach ohci at plumif with plumohci 356file arch/hpcmips/dev/plumohci.c plumohci needs-flag 357 358#device txisab: isabus 359#attach txisab at txcsbus 360#file arch/hpcmips/isa/txisa_machdep.c txisab 361 362file dev/hpc/video_subr.c tx3912video | plumvideo 363 364# 365# Real-time clock (not optional) 366# 367file arch/hpcmips/hpcmips/clock.c 368file dev/clock_subr.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