1# $NetBSD: files.sun2,v 1.12 2002/10/27 23:23:48 chs Exp $ 2 3# 4# sun2-specific configuration info 5# 6 7# maxpartitions must be first item in files.${ARCH} 8maxpartitions 8 9 10maxusers 2 8 64 11 12# Standard stuff 13file arch/sun2/sun2/locore2.c 14file arch/sun2/sun2/machdep.c 15file arch/sun2/sun2/pmap.c 16file arch/sun2/sun2/control.c 17file arch/sun2/sun2/mem.c 18file arch/sun2/sun2/db_machdep.c ddb 19file arch/sun2/sun2/db_memrw.c ddb | kgdb 20file arch/sun2/sun2/leds.c 21file arch/sun2/sun2/idprom.c 22file arch/sun2/sun2/promlib.c 23file arch/sun2/sun2/sys_machdep.c 24file arch/sun2/sun2/trap.c 25file arch/m68k/m68k/vm_machdep.c 26 27include "arch/m68k/fpe/files.fpe" 28 29# Console support: 30file arch/sun2/dev/consinit.c 31file dev/cons.c 32 33# 34# Bus types 35# 36 37# mainbus and VME support brought in by arch/sun68k 38 39# On-board I/O space (required). 40device obio {addr = -1, [ipl = -1], [vect = -1]} 41attach obio at mainbus 42file arch/sun2/sun2/obio.c 43 44# On-board MEMory space (required). 45device obmem {addr = -1, [ipl = -1], [vect = -1]} 46attach obmem at mainbus 47file arch/sun2/sun2/obmem.c obmem 48 49# MultiBus MEMory space (optional). 50device mbmem {addr = -1, [ipl = -1], [vect = -1]} 51attach mbmem at mainbus 52file arch/sun2/sun2/mbmem.c mbmem 53 54# MultiBus I/O space (optional). 55device mbio {addr = -1, [ipl = -1], [vect = -1]} 56attach mbio at mainbus 57file arch/sun2/sun2/mbio.c mbio 58 59# 60# Machine-independent SCSI drivers 61# 62include "dev/scsipi/files.scsipi" 63 64# 65# Devices, files, and attributes needed below 66# 67 68include "dev/sun/files.sun" 69 70device zs {channel = -1} 71file arch/sun2/dev/zs.c zs needs-count 72file dev/ic/z8530sc.c zs 73file arch/sun2/dev/zs_kgdb.c kgdb 74 75define zstty {} 76device zstty: tty 77attach zstty at zs 78file dev/ic/z8530tty.c zstty needs-flag 79 80file arch/sun2/dev/zs_any.c zs_obio | zs_obmem | zs_mbmem 81file arch/sun2/dev/bwtwo_any.c bwtwo_obio | bwtwo_obmem 82 83# 84# On-Board I/O (OBIO), in attach order. 85# The following are all required. 86# 87 88# Zilog Serial (ZS) 89attach zs at obio with zs_obio 90 91# AMD timer 92device clock 93attach clock at obio 94file arch/sun2/sun2/clock.c 95file dev/clock_subr.c 96 97# National Semiconductor Time-Of-Day clock 98device tod: mm58167 99attach tod at obio with tod_obio 100attach tod at vme with tod_vme 101file arch/sun2/sun2/tod.c 102 103# These are optional: 104 105# Intel Ethernet 106attach ie at obio with ie_obio 107file arch/sun2/dev/if_ie_obio.c ie_obio 108 109attach bwtwo at obio with bwtwo_obio 110 111# 112# On-Board MEMory (OBMEM) 113# 114 115attach zs at obmem with zs_obmem 116 117attach bwtwo at obmem with bwtwo_obmem 118 119# 120# MultiBus MEMory (MBMEM) 121# 122 123attach zs at mbmem with zs_mbmem 124 125attach ie at mbmem with ie_mbmem 126file arch/sun2/dev/if_ie_mbmem.c ie_mbmem 127 128attach sc at mbmem with sc_mbmem 129file arch/sun2/dev/sc_mbmem.c sc_mbmem 130 131# 3Com Ethernet 132device ec: ifnet, ether, arp 133attach ec at mbmem 134file arch/sun2/dev/if_ec.c ec 135 136# 137# Console (zs) related stuff 138# 139 140device pcons 141attach pcons at mainbus 142file arch/sun2/dev/pcons.c pcons needs-flag 143 144file arch/sun2/dev/kd.c kbd 145 146attach kbd at zstty with kbd_tty 147file dev/sun/kbdsun.c kbd_tty 148file dev/sun/sunkbd.c kbd_tty 149 150attach ms at zstty with ms_tty 151file dev/sun/sunms.c ms_tty 152 153# Memory Disk for boot tape 154file dev/md_root.c memory_disk_hooks 155 156# 157# wscons 158# 159 160include "dev/wscons/files.wscons" 161include "dev/wsfont/files.wsfont" 162 163# Compatibility modules 164 165# NetBSD m68k a.out Binary Compatibility (COMPAT_AOUT_M68K) 166include "compat/aoutm68k/files.aoutm68k" 167 168# SunOS Binary Compatibility (COMPAT_SUNOS) 169include "compat/sunos/files.sunos" 170file arch/m68k/m68k/sunos_machdep.c compat_sunos 171 172# SVR4 Binary Compatibility (COMPAT_SVR4) 173include "compat/svr4/files.svr4" 174 175# Linux binary compatibility (COMPAT_LINUX) 176include "compat/linux/files.linux" 177include "compat/linux/arch/m68k/files.linux_m68k" 178file arch/m68k/m68k/linux_trap.c compat_linux 179 180# OSS audio driver compatibility 181include "compat/ossaudio/files.ossaudio" 182 183include "arch/sun2/conf/majors.sun2" 184