files.hpcmips revision 1.56
1# $NetBSD: files.hpcmips,v 1.56 2001/05/06 14:25:16 takemura Exp $ 2 3# maxpartitions must be first item in files.${ARCH}. 4maxpartitions 8 5 6maxusers 2 8 64 7 8# 9# Machine-independent SCSI drivers 10# 11 12include "dev/scsipi/files.scsipi" 13major {sd = 3} 14major {st = 4} 15major {cd = 5} 16 17# 18# Machine-independent ATA drivers 19# 20 21include "dev/ata/files.ata" 22major {wd = 1} 23 24# 25# Bus-independent devices 26# 27device mainbus { } # no locators 28attach mainbus at root 29 30device cpu # not optional 31attach cpu at mainbus 32file arch/hpcmips/hpcmips/cpu.c cpu 33 34# CPU support option headers 35defopt opt_vr41xx.h VR41XX VR4101 VR4102 VR4111 VR4121 VR4122 VR4181 36defopt opt_tx39xx.h TX39XX TX3911 TX3912 TX3922 37 38# 39# CPU-dependent files 40# 41file arch/hpcmips/vr/vr.c vr41xx # NEC VR4000 series 42file arch/hpcmips/vr/vr_idle.S vr41xx 43file arch/hpcmips/tx/tx39.c tx39xx # TOSHIBA TX3900 series 44 45file arch/mips/mips/fp.S softfloat 46 47file arch/hpcmips/hpcmips/autoconf.c 48file arch/hpcmips/hpcmips/conf.c 49file arch/hpcmips/hpcmips/machdep.c 50file arch/hpcmips/hpcmips/mainbus.c 51file arch/hpcmips/hpcmips/bus_space.c 52file arch/hpcmips/hpcmips/bus_dma.c 53file arch/hpcmips/hpcmips/procfs_machdep.c procfs 54 55# 56# H/PC Platform common files. 57# 58include "arch/hpc/conf/files.hpc" 59file arch/hpc/hpc/disksubr.c disk 60include "dev/hpc/files.bicons" 61include "dev/hpc/files.hpcfb" 62include "dev/hpc/files.hpckbd" 63include "dev/hpc/files.hpctp" 64 65# Console autoconfiguration code: selects between a framebuffers 66file dev/cons.c 67 68# 69# Workstation Console 70# 71include "dev/wscons/files.wscons" 72 73# 74# power management 75# 76include "arch/hpcmips/dev/apm/files.apm" 77device hpcapm: apmdevif 78attach hpcapm at mainbus 79file arch/hpcmips/dev/hpcapm.c hpcapm 80 81# 82# ISA bus support 83# 84include "dev/isa/files.isa" 85 86# 87# Vr41xx integrated peripherals 88# 89device vrip { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [intr=-1], [pwctl=-1], [platform = -1] } 90attach vrip at mainbus 91file arch/hpcmips/vr/vrip.c vrip needs-flag 92 93device vrbcu 94attach vrbcu at vrip 95file arch/hpcmips/vr/bcu_vrip.c vrbcu needs-flag 96 97device vrrtc 98attach vrrtc at vrip 99file arch/hpcmips/vr/rtc.c vrrtc needs-flag 100 101device vrcmu 102attach vrcmu at vrip 103file arch/hpcmips/vr/cmu.c vrcmu needs-flag 104 105include "dev/hpc/files.hpcio" 106device vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]} # GIU attachment 107 108device vrgiu: vrisabif, hpcioif 109attach vrgiu at vrip 110file arch/hpcmips/vr/vrgiu.c vrgiu 111 112device vrisab: isabus 113attach vrisab at vrisabif 114file arch/hpcmips/isa/isa_machdep.c vrisab 115 116device vrkiu: hpckbdif 117attach vrkiu at vrip 118file arch/hpcmips/vr/vrkiu.c vrkiu needs-flag 119 120device vrpmu 121attach vrpmu at vrip 122file arch/hpcmips/vr/vrpmu.c vrpmu needs-flag 123 124device vrdsu 125attach vrdsu at vrip 126file arch/hpcmips/vr/vrdsu.c vrdsu needs-flag 127 128device vrled 129attach vrled at vrip 130file arch/hpcmips/vr/vrled.c vrled needs-flag 131 132device vrpiu: wsmousedev 133attach vrpiu at vrip: tpcalib 134file arch/hpcmips/vr/vrpiu.c vrpiu 135 136attach ohci at vrip with ohci_vrip 137file arch/hpcmips/dev/ohci_vrip.c ohci_vrip 138 139defopt opt_mq200.h MQ200_DEBUG MQ200_USECRT 140device mqvideo: hpcfbif 141attach mqvideo at vrip with mqvideo_vrip 142file arch/hpcmips/vr/mq200_vrip.c mqvideo_vrip 143file arch/hpcmips/dev/mq200.c mqvideo 144file arch/hpcmips/dev/mq200subr.c mqvideo 145file arch/hpcmips/dev/mq200debug.c mqvideo 146file arch/hpcmips/dev/mq200machdep.c mqvideo 147 148device ite8181video: hpcfbif 149attach ite8181video at vrip with ite8181video_vrip 150file arch/hpcmips/vr/ite8181_vrip.c ite8181video_vrip 151file arch/hpcmips/dev/ite8181.c ite8181video 152 153device vrc4172pwm 154attach vrc4172pwm at vrip 155file arch/hpcmips/vr/vrc4172pwm.c vrc4172pwm needs-flag 156 157device vrc4172gpio: hpcioif, vrisabif 158attach vrc4172gpio at hpcioif 159file arch/hpcmips/vr/vrc4172gpio.c vrc4172gpio 160 161# 162# TOSHIBA TX3912/3922 163# 164defopt TX39_DEBUG 165defopt TX39_WATCHDOGTIMER 166defopt TX39ICUDEBUG 167defopt TX39CLKDEBUG 168defopt TX39BIUDEBUG 169defopt TX39POWERDEBUG 170defopt TX39UARTDEBUG 171defopt USE_POLL 172 173device txsim {[platform = -1]} 174device txcsbusif {[platform = -1]} 175device txcomif {[slot = -1]} 176device txsibif {[slot = -1]} 177device ucbif { } 178device irif { } 179device txiomanif {[evtype = -1], [id = -1], [group = -1], [port = -1], [edge = -1], [initial = -1]} 180 181attach txsim at mainbus 182file arch/hpcmips/tx/txsim.c txsim 183file arch/hpcmips/tx/txsnd.c txsim 184 185device tx39biu: txcsbusif 186attach tx39biu at txsim 187file arch/hpcmips/tx/tx39biu.c tx39biu 188 189device 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]} 190attach txcsbus at txcsbusif 191file arch/hpcmips/tx/txcsbus.c txcsbus 192 193device tx39icu 194attach tx39icu at txsim 195file arch/hpcmips/tx/tx39icu.c tx39icu 196 197device tx39power 198attach tx39power at txsim 199file arch/hpcmips/tx/tx39power.c tx39power 200 201device tx39clock 202attach tx39clock at txsim 203file arch/hpcmips/tx/tx39clock.c tx39clock 204 205device tx3912video: hpcfbif 206attach tx3912video at txsim 207file arch/hpcmips/tx/tx3912video.c tx3912video 208 209device tx39io 210attach tx39io at txsim 211file arch/hpcmips/tx/tx39io.c tx39io 212 213device txioman: txiomanif 214attach txioman at txsim 215file arch/hpcmips/tx/txioman.c txioman 216 217device txin 218attach txin at txiomanif 219file arch/hpcmips/tx/txioman_in.c txin 220 221device txout 222attach txout at txiomanif 223file arch/hpcmips/tx/txioman_out.c txout 224 225device tx39sib: txsibif 226attach tx39sib at txsim 227file arch/hpcmips/tx/tx39sib.c tx39sib 228 229# PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end) 230device ucb: ucbif 231attach ucb at txsibif 232file arch/hpcmips/dev/ucb1200.c ucb 233 234device ucbtp: wsmousedev 235attach ucbtp at ucbif: tpcalib 236file arch/hpcmips/dev/ucbtp.c ucbtp 237 238device ucbsnd 239attach ucbsnd at ucbif 240file arch/hpcmips/dev/ucbsnd.c ucbsnd needs-flag 241 242device ucbio 243attach ucbio at ucbif 244file arch/hpcmips/dev/ucbio.c ucbio 245 246device tx39uart: txcomif 247attach tx39uart at txsim 248file arch/hpcmips/tx/tx39uart.c tx39uart needs-flag 249 250device txcom: irif 251attach txcom at txcomif 252file arch/hpcmips/tx/txcom.c txcom 253 254device tx39ir 255attach tx39ir at irif 256file arch/hpcmips/tx/tx39ir.c tx39ir 257 258# ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA) 259device it8368e: pcmciabus 260attach it8368e at txcsbus 261file arch/hpcmips/dev/it8368.c it8368e 262 263# MITUBISHI M38813 keryboard controller 264device m38813c: hpckbdif 265attach m38813c at txcsbus 266file arch/hpcmips/dev/m38813c.c m38813c needs-flag 267 268# PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard) 269device tc5165buf: hpckbdif 270attach tc5165buf at txcsbus 271file arch/hpcmips/dev/tc5165buf.c tc5165buf needs-flag 272 273# TOSHIBA TC6358E(Plum2) 274device plumif {} 275device plum: plumif 276attach plum at txcsbus 277file arch/hpcmips/dev/plum.c plum 278 279device plumicu 280attach plumicu at plumif 281file arch/hpcmips/dev/plumicu.c plumicu 282 283device plumpower 284attach plumpower at plumif 285file arch/hpcmips/dev/plumpower.c plumpower 286 287device plumvideo: hpcfbif 288attach plumvideo at plumif 289file arch/hpcmips/dev/plumvideo.c plumvideo 290 291device plumpcmcia: pcmciabus 292attach plumpcmcia at plumif 293file arch/hpcmips/dev/plumpcmcia.c plumpcmcia 294 295device plumiobusif {[platform = -1], [slot = -1]} 296device plumiobus: plumiobusif 297attach plumiobus at plumif 298file arch/hpcmips/dev/plumiobus.c plumiobus 299 300device plumisab: isabus 301attach plumisab at plumiobusif 302file arch/hpcmips/isa/plumisa_machdep.c plumisab 303 304# OHCI USB controller 305attach ohci at plumif with plumohci 306file arch/hpcmips/dev/plumohci.c plumohci needs-flag 307 308#device txisab: isabus 309#attach txisab at txcsbus 310#file arch/hpcmips/isa/txisa_machdep.c txisab 311 312file dev/hpc/video_subr.c tx3912video | plumvideo 313 314# 315# Real-time clock (not optional) 316# 317file arch/hpcmips/hpcmips/clock.c 318file dev/clock_subr.c 319 320# Floppy disk controller 321device fdc {drive = -1} 322#attach fdc at isa 323#device fd: disk, isadma 324device fd: disk 325#attach fd at fdc 326file arch/i386/isa/fd.c fdc needs-flag 327major {fd = 2} 328 329# network devices MII bus 330include "dev/mii/files.mii" 331 332# XXXX pcic here because it needs to be late. The catch: pcic needs 333# to be late, so devices which attach to it are attached late. But it 334# needs to be before its isa and pci attachments. This answer is 335# non-optimal, but I don't have a better answer right now. 336 337# PCIC pcmcia contoller 338# XXX this needs to be done very late, so it's done here. This feels 339# like a kludge, but it might be for the best. 340 341defopt PCIC_ISA_ALLOC_IOBASE 342defopt PCIC_ISA_ALLOC_IOSIZE 343defopt PCIC_ISA_INTR_ALLOC_MASK 344 345device pcic: pcmciabus 346file dev/ic/i82365.c pcic 347 348# 349# PCIC pcmcia controller 350# 351attach pcic at isa with pcic_isa 352file dev/isa/i82365_isa.c pcic_isa 353file dev/isa/i82365_isasubr.c pcic_isa 354 355# 356# Machine-independent PCMCIA drivers 357# 358include "dev/pcmcia/files.pcmcia" 359 360# Serial Interface Unit 361attach com at vrip with com_vrip 362file arch/hpcmips/vr/com_vrip.c com_vrip 363 364# Memory Disk for boot tape 365file dev/md_root.c memory_disk_hooks 366major {md = 6} 367 368include "dev/usb/files.usb" 369