1# $NetBSD: files.sparc,v 1.46 1997/12/23 23:57:20 tv Exp $ 2 3# @(#)files.sparc 8.1 (Berkeley) 7/19/93 4# sparc-specific configuration info 5 6# maxpartitions must be first item in files.${ARCH} 7maxpartitions 8 8 9maxusers 2 8 1024 10 11device mainbus {} 12attach mainbus at root 13 14device obio { [addr = -1], [level = -1] } 15attach obio at mainbus 16 17device iommu {} 18attach iommu at mainbus 19file arch/sparc/sparc/iommu.c iommu 20 21device vme {} 22attach vme at iommu 23 24device vmel { [addr = -1], [level = -1], [vect = -1] } 25attach vmel at mainbus, vme 26device vmes { [addr = -1], [level = -1], [vect = -1] } 27attach vmes at mainbus, vme 28file arch/sparc/dev/obio.c obio | vmel | vmes | vme 29 30device auxreg 31attach auxreg at mainbus, obio 32file arch/sparc/sparc/auxreg.c 33 34device clock 35attach clock at mainbus, obio 36 37device oclock 38attach oclock at obio 39 40device timer 41attach timer at mainbus, obio 42 43device eeprom 44attach eeprom at obio 45file arch/sparc/sparc/clock.c 46 47device power 48attach power at obio 49file arch/sparc/dev/power.c power 50 51device cpu 52attach cpu at mainbus 53file arch/sparc/sparc/cpu.c 54 55device memreg 56attach memreg at mainbus, obio 57file arch/sparc/sparc/memreg.c 58 59device zs {channel = -1} 60attach zs at mainbus, obio 61file arch/sparc/dev/zs.c zs needs-count 62file dev/ic/z8530sc.c zs 63 64device fdc {} 65attach fdc at mainbus, obio 66device fd: disk 67attach fd at fdc 68file arch/sparc/dev/fd.c fdc | fd needs-flag 69file arch/sparc/sparc/bsd_fdintr.s fdc 70 71device sbus { slot = -1, offset = -1 } 72attach sbus at mainbus, iommu 73file arch/sparc/dev/sbus.c sbus 74 75# 76# Console (zs) related stuff 77# 78 79device zstty: tty 80attach zstty at zs 81file dev/ic/z8530tty.c zstty needs-flag 82file arch/sparc/dev/zs_kgdb.c kgdb 83 84define zsevent 85file dev/sun/event.c zsevent 86 87device kbd: zsevent 88attach kbd at zs 89file dev/sun/kbd.c kbd needs-flag 90file dev/sun/kbd_tables.c kbd 91file arch/sparc/dev/kd.c kbd 92 93device ms: zsevent 94attach ms at zs 95file dev/sun/ms.c ms needs-flag 96 97 98# 99# Machine-independent SCSI drivers 100# 101include "../../../dev/scsipi/files.scsipi" 102 103major { sd = 7 } 104major { vnd = 8 } 105major { cd = 18 } 106 107device dma {} 108attach dma at sbus, obio 109device ledma {} 110attach ledma at sbus 111file arch/sparc/dev/dma.c dma | ledma 112device lebuffer {} 113attach lebuffer at sbus 114file arch/sparc/dev/lebuffer.c lebuffer 115 116device esp: scsi, ncr53c9x 117attach esp at sbus, dma, obio 118file arch/sparc/dev/esp.c esp 119 120device audioamd: audio 121attach audioamd at mainbus, obio, sbus 122file arch/sparc/dev/amd7930.c audio 123file arch/sparc/sparc/amd7930intr.s audio 124 125# Brooktree DAC attribute 126define bt_dac 127 128# Include /dev/fb driver only if a framebuffer card is included 129define fb 130 131device bwtwo: fb 132attach bwtwo at sbus, obio, vmes, vmel 133file arch/sparc/dev/bwtwo.c bwtwo needs-flag 134 135device cgtwo: fb 136attach cgtwo at sbus, obio, vmes 137file arch/sparc/dev/cgtwo.c cgtwo needs-flag 138 139device cgthree: bt_dac, fb 140attach cgthree at sbus 141file arch/sparc/dev/cgthree.c cgthree needs-flag 142 143device cgfour: bt_dac, fb 144attach cgfour at obio 145file arch/sparc/dev/cgfour.c cgfour needs-flag 146 147device cgsix: bt_dac, fb 148attach cgsix at sbus, obio 149file arch/sparc/dev/cgsix.c cgsix needs-flag 150 151device cgeight: bt_dac, fb 152attach cgeight at obio 153file arch/sparc/dev/cgeight.c cgeight needs-flag 154 155device tcx: bt_dac, fb 156attach tcx at sbus 157file arch/sparc/dev/tcx.c tcx needs-flag 158 159device cgfourteen: fb 160attach cgfourteen at obio 161file arch/sparc/dev/cgfourteen.c cgfourteen needs-flag 162 163file arch/sparc/dev/bt_subr.c bt_dac 164file arch/sparc/dev/fb.c fb needs-flag 165 166# device definition in sys/conf/files 167attach le at sbus, ledma, lebuffer, obio 168file arch/sparc/dev/if_le.c le 169 170device ie: ifnet, ether, arp 171attach ie at obio, vmes, vmel 172file arch/sparc/dev/if_ie.c ie 173 174device xdc {drive = -1} 175attach xdc at vmel 176device xd: disk 177attach xd at xdc 178file arch/sparc/dev/xd.c xd needs-flag 179major {xd = 10} 180 181device xyc {drive = -1} 182attach xyc at vmes 183device xy: disk 184attach xy at xyc 185file arch/sparc/dev/xy.c xy needs-flag 186major {xy = 3} 187 188device si: scsi, ncr5380sbc 189attach si at vmes 190device sw: scsi, ncr5380sbc 191attach sw at obio 192file arch/sparc/dev/si.c si | sw 193 194# Efficient Networks, Inc. ATM interface 195# device declaration in sys/conf/files 196attach en at sbus with en_sbus 197file arch/sparc/dev/if_en_sbus.c en_sbus 198 199# Qlogic ISP 10x0 (Sbus) family 200# device declaration in sys/conf/files 201attach isp at sbus with isp_sbus 202file arch/sparc/dev/isp_sbus.c isp_sbus 203 204# 205# Generic Sun stuff 206# 207 208file dev/cons.c 209 210file arch/sparc/fpu/fpu.c 211file arch/sparc/fpu/fpu_add.c 212file arch/sparc/fpu/fpu_compare.c 213file arch/sparc/fpu/fpu_div.c 214file arch/sparc/fpu/fpu_explode.c 215file arch/sparc/fpu/fpu_implode.c 216file arch/sparc/fpu/fpu_mul.c 217file arch/sparc/fpu/fpu_sqrt.c 218file arch/sparc/fpu/fpu_subr.c 219 220# N.B.: optimizer breaks pmap.c and/or cache.c somehow -- have not 221# identified the exact problem yet. NOOPT_C suffices for now. 222file arch/sparc/sparc/autoconf.c 223file arch/sparc/sparc/cache.c 224file arch/sparc/sparc/conf.c 225file arch/sparc/sparc/emul.c 226file arch/sparc/sparc/in_cksum.c 227file arch/sparc/sparc/intr.c 228file arch/sparc/sparc/kgdb_machdep.c kgdb 229# sparc/sparc/locore.s is handled specially in the makefile, 230# because it must come first in the "ld" command line. 231file arch/sparc/sparc/locore2.c 232file arch/sparc/sparc/machdep.c 233file arch/sparc/sparc/process_machdep.c 234file arch/sparc/sparc/mem.c 235file arch/sparc/sparc/openprom.c 236file arch/sparc/sparc/pmap.c 237# the following overrides the generic "sys_process.c" 238# commented out by deraadt 239#file arch/sparc/sparc/sys_process.c 240file arch/sparc/sparc/sys_machdep.c 241file arch/sparc/sparc/trap.c 242file arch/sparc/sparc/vm_machdep.c 243file arch/sparc/sparc/disksubr.c 244 245file kludge_for_in_proto.c hy needs-flag 246 247file arch/sparc/sparc/db_interface.c ddb | kgdb 248file arch/sparc/sparc/db_trace.c ddb 249file arch/sparc/sparc/db_disasm.c ddb 250 251# 252# Raster Console 253# 254include "../../../dev/rcons/files.rcons" 255 256# 257# Compatibility modules 258# 259 260# SVR4 Binary Compatibility (COMPAT_SVR4) 261include "../../../compat/svr4/files.svr4" 262file arch/sparc/sparc/svr4_machdep.c compat_svr4 263file arch/sparc/sparc/sunos_machdep.c compat_sunos 264 265# SunOS Binary Compatibility (COMPAT_SUNOS) 266include "../../../compat/sunos/files.sunos" 267 268# Miscellaneous 269file netns/ns_cksum.c ns 270 271major {md = 5} 272file arch/sparc/dev/md_root.c memory_disk_hooks 273