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