files.sparc revision 1.63
1# $NetBSD: files.sparc,v 1.63 1998/08/29 20:53:11 pk 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 iommu {} 15attach iommu at mainbus 16file arch/sparc/sparc/iommu.c iommu 17 18device obio { [addr = -1], [level = -1] } 19attach obio at mainbus 20 21include "../../../dev/vme/files.vme" 22attach vme at mainbus with vme_mainbus 23attach vme at iommu with vme_iommu 24 25file arch/sparc/dev/obio.c obio 26file arch/sparc/dev/vme_machdep.c vme 27 28device auxreg 29attach auxreg at mainbus with auxreg_mainbus 30attach auxreg at obio with auxreg_obio 31file arch/sparc/sparc/auxreg.c 32 33device clock 34attach clock at mainbus with clock_mainbus 35attach clock at obio with clock_obio 36 37device oclock 38attach oclock at obio 39 40device timer 41attach timer at mainbus with timer_mainbus 42attach timer at obio with timer_obio 43 44device eeprom 45attach eeprom at obio 46file arch/sparc/sparc/clock.c 47 48device power 49attach power at obio 50file arch/sparc/dev/power.c power needs-flag 51 52device cpu 53attach cpu at mainbus 54file arch/sparc/sparc/cpu.c 55 56device memreg 57attach memreg at mainbus with memreg_mainbus 58attach memreg at obio with memreg_obio 59file arch/sparc/sparc/memreg.c 60 61device zs {channel = -1} 62attach zs at mainbus with zs_mainbus 63attach zs at obio with zs_obio 64file arch/sparc/dev/zs.c zs needs-count 65file dev/ic/z8530sc.c zs 66 67device fdc {} 68attach fdc at mainbus with fdc_mainbus 69attach fdc at obio with fdc_obio 70device fd: disk 71attach fd at fdc 72file arch/sparc/dev/fd.c fdc | fd needs-flag 73file arch/sparc/sparc/bsd_fdintr.s fdc 74 75include "../../../dev/sbus/files.sbus" 76attach sbus at mainbus with sbus_mainbus 77attach sbus at iommu with sbus_iommu 78file arch/sparc/dev/sbus.c sbus 79 80# 81# Console (zs) related stuff 82# 83 84device zstty: tty 85attach zstty at zs 86file dev/ic/z8530tty.c zstty needs-flag 87file arch/sparc/dev/zs_kgdb.c kgdb 88 89define zsevent 90file dev/sun/event.c zsevent 91 92device kbd: zsevent 93attach kbd at zs 94file dev/sun/kbd.c kbd needs-flag 95file dev/sun/kbd_tables.c kbd 96file arch/sparc/dev/kd.c kbd 97 98device ms: zsevent 99attach ms at zs 100file dev/sun/ms.c ms needs-flag 101 102# 103# Machine-independent SCSI drivers 104# 105include "../../../dev/scsipi/files.scsipi" 106 107major { sd = 7 } 108major { vnd = 8 } 109major { cd = 18 } 110major { xd = 10 } 111major { xy = 3 } 112 113attach dma at obio with dma_obio 114file arch/sparc/dev/dma_obio.c dma_obio 115 116attach esp at obio with esp_obio 117file arch/sparc/dev/esp_obio.c esp_obio 118 119attach audioamd at mainbus with audioamd_mainbus 120attach audioamd at sbus with audioamd_sbus 121file arch/sparc/dev/am7930_sparc.c audioamd 122file arch/sparc/sparc/amd7930intr.s audioamd 123 124# Brooktree DAC attribute 125define bt_dac 126 127# Include /dev/fb driver only if a framebuffer card is included 128define fb 129 130device bwtwo: fb 131attach bwtwo at sbus with bwtwo_sbus 132attach bwtwo at obio with bwtwo_obio 133file arch/sparc/dev/bwtwo.c bwtwo needs-flag 134 135device cgtwo: fb 136attach cgtwo at vme 137file arch/sparc/dev/cgtwo.c cgtwo needs-flag 138 139device cgthree: bt_dac, fb 140attach cgthree at sbus with cgthree_sbus 141attach cgthree at obio with cgthree_obio 142file arch/sparc/dev/cgthree.c cgthree needs-flag 143 144device cgfour: bt_dac, fb 145attach cgfour at obio 146file arch/sparc/dev/cgfour.c cgfour needs-flag 147 148device cgsix: bt_dac, fb 149attach cgsix at sbus with cgsix_sbus 150attach cgsix at obio with cgsix_obio 151file arch/sparc/dev/cgsix.c cgsix needs-flag 152file arch/sparc/dev/cgsix_sbus.c cgsix & (sbus | obio) 153file arch/sparc/dev/cgsix_obio.c cgsix & obio 154 155device cgeight: bt_dac, fb 156attach cgeight at obio 157file arch/sparc/dev/cgeight.c cgeight needs-flag 158 159device tcx: bt_dac, fb 160attach tcx at sbus 161file arch/sparc/dev/tcx.c tcx needs-flag 162 163device cgfourteen: fb 164attach cgfourteen at obio 165file arch/sparc/dev/cgfourteen.c cgfourteen needs-flag 166 167file arch/sparc/dev/bt_subr.c bt_dac 168file arch/sparc/dev/fb.c fb needs-flag 169 170# device definition in sys/conf/files 171attach le at obio with le_obio: le24 172file arch/sparc/dev/if_le_obio.c le_obio 173 174attach ie at obio with ie_obio 175file arch/sparc/dev/if_ie_obio.c ie_obio 176 177device si: scsi, ncr5380sbc 178attach si at vme 179device sw: scsi, ncr5380sbc 180attach sw at obio 181file arch/sparc/dev/si.c si | sw 182 183# 184# Generic Sun stuff 185# 186 187file dev/cons.c 188 189file arch/sparc/fpu/fpu.c 190file arch/sparc/fpu/fpu_add.c 191file arch/sparc/fpu/fpu_compare.c 192file arch/sparc/fpu/fpu_div.c 193file arch/sparc/fpu/fpu_explode.c 194file arch/sparc/fpu/fpu_implode.c 195file arch/sparc/fpu/fpu_mul.c 196file arch/sparc/fpu/fpu_sqrt.c 197file arch/sparc/fpu/fpu_subr.c 198 199# N.B.: optimizer breaks pmap.c and/or cache.c somehow -- have not 200# identified the exact problem yet. NOOPT_C suffices for now. 201file arch/sparc/sparc/autoconf.c 202file arch/sparc/sparc/cache.c 203file arch/sparc/sparc/conf.c 204file arch/sparc/sparc/emul.c 205file arch/sparc/sparc/in_cksum.c 206file arch/sparc/sparc/intr.c 207file arch/sparc/sparc/kgdb_machdep.c kgdb 208# sparc/sparc/locore.s is handled specially in the makefile, 209# because it must come first in the "ld" command line. 210file arch/sparc/sparc/locore2.c 211file arch/sparc/sparc/machdep.c 212file arch/sparc/sparc/process_machdep.c 213file arch/sparc/sparc/mem.c 214file arch/sparc/sparc/openprom.c 215file arch/sparc/sparc/pmap.c 216# the following overrides the generic "sys_process.c" 217# commented out by deraadt 218#file arch/sparc/sparc/sys_process.c 219file arch/sparc/sparc/sys_machdep.c 220file arch/sparc/sparc/trap.c 221file arch/sparc/sparc/vm_machdep.c 222file arch/sparc/sparc/disksubr.c 223 224file arch/sparc/sparc/db_interface.c ddb | kgdb 225file arch/sparc/sparc/db_trace.c ddb 226file arch/sparc/sparc/db_disasm.c ddb 227 228# 229# Raster Console 230# 231include "../../../dev/rcons/files.rcons" 232 233# 234# Compatibility modules 235# 236 237# SVR4 Binary Compatibility (COMPAT_SVR4) 238include "../../../compat/svr4/files.svr4" 239file arch/sparc/sparc/svr4_machdep.c compat_svr4 240file arch/sparc/sparc/sunos_machdep.c compat_sunos 241 242# SunOS Binary Compatibility (COMPAT_SUNOS) 243include "../../../compat/sunos/files.sunos" 244 245# Miscellaneous 246file netns/ns_cksum.c ns 247 248major {md = 5} 249file arch/sparc/dev/md_root.c memory_disk_hooks 250