11.192Stsutsui# $NetBSD: GENERIC,v 1.192 2024/01/13 19:31:39 tsutsui Exp $
21.86Sgmcgarry#
31.86Sgmcgarry# GENERIC machine description file
41.86Sgmcgarry# 
51.86Sgmcgarry# This machine description file is used to generate the default NetBSD
61.86Sgmcgarry# kernel.  The generic kernel does not include all options, subsystems
71.86Sgmcgarry# and device drivers, but should be useful for most applications.
81.86Sgmcgarry#
91.86Sgmcgarry# The machine description file can be customised for your specific
101.86Sgmcgarry# machine to reduce the kernel size and improve its performance.
111.86Sgmcgarry#
121.86Sgmcgarry# For further information on compiling NetBSD kernels, see the config(8)
131.86Sgmcgarry# man page.
141.86Sgmcgarry#
151.86Sgmcgarry# For further information on hardware support for this architecture, see
161.86Sgmcgarry# the intro(4) man page.  For further information about kernel options
171.86Sgmcgarry# for this architecture, see the options(4) man page.  For an explanation
181.86Sgmcgarry# of each device driver in this file see the section 4 man page for the
191.86Sgmcgarry# device.
201.9Sgwr
211.86Sgmcgarry# Supports Sun3 (3/50, 3/60, 3/110, 3/160, 3/260, 3/E)
221.21Sgwr# Supports root on: ie0, le0, sd*, ...
231.1Sglass
241.86Sgmcgarryinclude 	"arch/sun3/conf/std.sun3"
251.63Shubertf
261.177Smrg#options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
271.91Satatat
281.192Stsutsui#ident		"GENERIC-$Revision: 1.192 $"
291.143Stsutsui
301.184Srinmakeoptions	COPTS="-Os -fno-unwind-tables -fno-omit-frame-pointer"
311.184Srin	# Bootloader has size limit (~2MB). -fno-omit-frame-pointer is
321.184Srin	# necessary for backtraces in DDB.
331.1Sglass
341.50Sgwr# Machines to be supported by this kernel
351.15Sgwroptions 	FPU_EMULATE
361.21Sgwroptions 	HAVECACHE		# Sun3/260 VAC
371.3Sglass
381.4Sgwr# Needs to be set per system.  i.e change these as you see fit
391.3Sglassmaxusers	4
401.23Sgwr
411.4Sgwr# Standard system options
421.41Sgwroptions 	KTRACE		# system call tracing
431.41Sgwroptions 	SYSVMSG		# System V message queues
441.41Sgwroptions 	SYSVSEM		# System V semaphores
451.41Sgwroptions 	SYSVSHM		# System V shared memory
461.152Stsutsui
471.154Stsutsui#options 	MODULAR		# new style module(7) framework
481.169Sjnemeth#options 	MODULAR_DEFAULT_AUTOLOAD
491.152Stsutsui
501.41Sgwr#options 	INSECURE	# disable kernel security level
511.143Stsutsui#options 	USERCONF	# userconf(4) support
521.177Smrgoptions 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
531.178Smrg#options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
541.96Sjunyoung
551.176Ssevan# Alternate buffer queue strategies for better responsiveness under high
561.176Ssevan# disk I/O load.
571.115Stsutsui#options 	BUFQ_READPRIO
581.115Stsutsui#options 	BUFQ_PRIOCSCAN
591.30Sthorpej
601.41Sgwr# Which kernel debugger?  Uncomment either this:
611.30Sthorpejoptions 	DDB
621.36Sgwr# ... or these for KGDB (gdb remote target)
631.185Srinmakeoptions	DEBUG="-g"	# debugging symbols for gdb
641.30Sthorpej#options 	KGDB
651.83Slukem#options 	KGDB_DEV=0x0C01	# ttya=0C00 ttyb=0C01
661.41Sgwr
671.41Sgwr# Other debugging options
681.151Schsoptions 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
691.41Sgwr#options 	DEBUG		# kernel debugging code
701.41Sgwr#options 	DIAGNOSTIC	# extra kernel sanity checking
711.41Sgwr#options 	PMAP_DEBUG
721.41Sgwr#options 	SCSIDEBUG
731.40Smjacob#options 	SCSIVERBOSE		# Verbose SCSI errors
741.1Sglass
751.78Swiz# Compatibility options
761.177Smrg# Originally in NetBSD 1.0, but limited to 6.0 for size.
771.177Smrg#include 	"conf/compat_netbsd10.config"
781.177Smrginclude 	"conf/compat_netbsd60.config"
791.175Smrg
801.177Smrg#options 	COMPAT_SUNOS	# can run SunOS 4.1.1 executables
811.177Smrg#options 	COMPAT_AOUT_M68K # support for NetBSD a.out executables
821.56Sitohy#options 	COMPAT_LINUX	# can run Linux/m68k executables
831.187Snia#options 	COMPAT_OSSAUDIO	# can run Linux/m68k executables
841.177Smrg#options 	EXEC_AOUT	# support for a.out executables
851.41Sgwr
861.188Ssimonb# File systems
871.41Sgwrfile-system	FFS		# Berkeley Fast Filesystem
881.41Sgwrfile-system	NFS		# Sun NFS client support
891.38Slukemfile-system	CD9660		# ISO 9660 + Rock Ridge file system
901.177Smrg#file-system	FDESC		# /dev/fd/*
911.177Smrg#file-system	KERNFS		# /kern
921.38Slukemfile-system	NULLFS		# loopback file system
931.143Stsutsui#file-system	OVERLAY		# overlay file system
941.38Slukemfile-system	PROCFS		# /proc
951.143Stsutsui#file-system	UNION		# union file system
961.38Slukemfile-system	MFS		# memory-based filesystem
971.122Schristosfile-system	PTYFS		# /dev/pts/N support
981.177Smrg# Disabled as 20KB larger than MFS.
991.177Smrg#file-system	TMPFS		# Efficient memory file-system
1001.128Sreinoud#file-system	UDF		# experimental - OSTA UDF CD/DVD file-system
1011.35Sthorpej
1021.188Ssimonb# File system options
1031.188Ssimonb#options 	FFS_EI		# FFS Endian Independent support
1041.188Ssimonboptions 	FFS_NO_SNAPSHOT	# No FFS snapshot support
1051.155Sbouyer#options 	QUOTA		# legacy UFS quotas
1061.155Sbouyer#options 	QUOTA2		# new, in-filesystem UFS quotas
1071.188Ssimonb#options 	UFS_DIRHASH	# UFS Large Directory Hashing
1081.188Ssimonb#options 	UFS_EXTATTR	# Extended attribute support for UFS1
1091.177Smrg#options 	WAPBL		# File system journaling support
1101.188Ssimonb#options 	NFSSERVER	# Network File System server
1111.61Sitojun
1121.4Sgwr# Networking options
1131.123Sisakioptions 	INET		# IP protocol stack support
1141.177Smrg#options 	INET6		# IPV6
1151.61Sitojun#options 	IPSEC		# IP security
1161.61Sitojun#options 	IPSEC_DEBUG	# debug for IP security
1171.38Slukem#options 	GATEWAY		# IP packet forwarding
1181.80Sabs#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
1191.41Sgwr
1201.105Sabs#options 	ALTQ		# Manipulate network interfaces' output queues
1211.105Sabs#options 	ALTQ_BLUE	# Stochastic Fair Blue
1221.105Sabs#options 	ALTQ_CBQ	# Class-Based Queueing
1231.105Sabs#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
1241.105Sabs#options 	ALTQ_FIFOQ	# First-In First-Out Queue
1251.105Sabs#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
1261.105Sabs#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
1271.105Sabs#options 	ALTQ_LOCALQ	# Local queueing discipline
1281.105Sabs#options 	ALTQ_PRIQ	# Priority Queueing
1291.105Sabs#options 	ALTQ_RED	# Random Early Detection
1301.105Sabs#options 	ALTQ_RIO	# RED with IN/OUT
1311.105Sabs#options 	ALTQ_WFQ	# Weighted Fair Queueing
1321.105Sabs
1331.41Sgwr# Work-around for root on slow servers (insurance...)
1341.12Sgwroptions 	NFS_BOOT_RWSIZE=1024
1351.48Sgwroptions 	NFS_BOOT_BOOTPARAM
1361.3Sglass
1371.35Sthorpejconfig		netbsd root on ? type ?
1381.1Sglass
1391.49Sgwr# On-board I/O space (required)
1401.49Sgwrinclude "arch/sun3/conf/obio.sun3"
1411.49Sgwr
1421.49Sgwr# On-board memory (optional)
1431.49Sgwr# See frame-buffers
1441.49Sgwrobmem0 at mainbus?
1451.49Sgwr
1461.49Sgwr# VME bus support (optional)
1471.49Sgwr# One unit for each address space
1481.49Sgwrvme0 at mainbus? # A16/D16
1491.49Sgwrvme1 at mainbus? # A16/D32
1501.49Sgwrvme2 at mainbus? # A24/D16
1511.49Sgwrvme3 at mainbus? # A24/D32
1521.49Sgwrvme4 at mainbus? # A32/D16
1531.49Sgwrvme5 at mainbus? # A32/D32
1541.49Sgwr
1551.25Sgwr#
1561.27Sgwr# Serial ports
1571.27Sgwr#
1581.38Slukemzstty0	at zsc1 channel 0	# ttya
1591.38Slukemzstty1	at zsc1 channel 1	# ttyb
1601.27Sgwr
1611.38Slukemkbd0	at zsc0 channel 0	# keyboard
1621.38Slukemms0	at zsc0 channel 1	# mouse
1631.27Sgwr
1641.27Sgwr#
1651.25Sgwr# Network devices
1661.25Sgwr#
1671.16Sgwr
1681.25Sgwr# Intel Ethernet (onboard, or VME)
1691.49Sgwrie0 at obio0 addr 0x0C0000 ipl 3
1701.84Slukemie1 at vme2 addr 0xe88000 ipl 3 vect 0x75
1711.4Sgwr
1721.25Sgwr# Lance Ethernet (only onboard)
1731.49Sgwrle0 at obio0 addr 0x120000 ipl 3
1741.49Sgwr
1751.49Sgwr# All Sun3 machines with an "le" (3/50, 3/60) should be
1761.49Sgwr# presumed to have the old, buggy LANCE chip. (Rev. C)
1771.49Sgwroptions 	LANCE_REVC_BUG
1781.12Sgwr
1791.25Sgwr#
1801.25Sgwr# Disk and tape devices
1811.25Sgwr#
1821.25Sgwr
1831.25Sgwr# Sun3 "si" SCSI controller (NCR 5380)
1841.37Sgwr# This driver has several flags which may be enabled using
1851.37Sgwr# the "flags" directive.  Valid flags are:
1861.31Sgwr#
1871.37Sgwr# 0x000ff	Set (1<<target) to disable disconnect/reselect
1881.37Sgwr# 0x0ff00	Set (1<<(target+8)) to disable parity checking
1891.37Sgwr# 0x10000	Set this bit to disable DMA interrupts (poll)
1901.37Sgwr# 0x20000	Set this bit to disable DMA entirely (use PIO)
1911.37Sgwr#
1921.37Sgwr# For example: "flags 0x1000f" would disable DMA interrupts,
1931.37Sgwr# and disable disconnect/reselect for targets 0-3
1941.49Sgwrsi0 at obio0 addr 0x140000 ipl 2
1951.84Slukemsi0 at vme2 addr 0x200000 ipl 2 vect 0x40
1961.84Slukemsi1 at vme2 addr 0x204000 ipl 2 vect 0x41
1971.49Sgwr
1981.49Sgwr# Xylogics 450/451 controllers (VME A16/D16)
1991.49Sgwrxyc0 at vme0 addr 0xee40 ipl 2 vect 0x48
2001.49Sgwrxyc1 at vme0 addr 0xee48 ipl 2 vect 0x49
2011.41Sgwrxy* at xyc? drive ?
2021.37Sgwr
2031.49Sgwr# Xylogics 7053 controllers (VME A16/D32)
2041.49Sgwrxdc0 at vme1 addr 0xee80 ipl 2 vect 0x44
2051.49Sgwrxdc1 at vme1 addr 0xee90 ipl 2 vect 0x45
2061.41Sgwrxd* at xdc? drive ?
2071.25Sgwr
2081.25Sgwr# Xylogics 472 tape controllers?
2091.25Sgwr
2101.49Sgwr# Sun3/E SCSI+Ethernet board (VME A24/D16)
2111.49Sgwr# Note: the board uses vect and vect+1
2121.49Sgwrsebuf0 at vme2 addr 0x300000 ipl 2 vect 0x74 # and 0x75
2131.49Sgwrsebuf1 at vme2 addr 0x340000 ipl 2 vect 0x76 # and 0x77
2141.46Sgwrsi* at sebuf?
2151.46Sgwrie* at sebuf?
2161.46Sgwr
2171.46Sgwr#
2181.25Sgwr# Frame buffer devices
2191.25Sgwr#
2201.10Sgwr
2211.50Sgwrinclude "arch/sun3/conf/bw2.sun3"
2221.50Sgwrinclude "arch/sun3/conf/cg4.sun3"
2231.25Sgwr
2241.25Sgwr# 3/60 P4 accelerated 8-bit color frame buffer
2251.50Sgwr# cgsix0 at obmem0 addr 0xff000000
2261.25Sgwr
2271.25Sgwr# 3/60 P4 24-bit color frame buffer
2281.50Sgwr# cgeight0 at obmem0 addr 0xff300000
2291.25Sgwr
2301.49Sgwr# Sun-3 color board, or CG5 8-bit frame buffer (VME A24/D16).
2311.49Sgwrcgtwo0 at vme2 addr 0x400000 ipl 4 vect 0xA8
2321.25Sgwr
2331.49Sgwr# Support for the CG9 24-bit frame buffer (VME A32/D32).
2341.49Sgwr# cgnine0 at vme5 addr 0x08000000 ipl 4 vect 0xAA
2351.25Sgwr
2361.25Sgwr#
2371.25Sgwr# SCSI infrastructure
2381.25Sgwr#
2391.7Sgwrscsibus* at scsi?
2401.14Sgwr
2411.37Sgwrsd* at scsibus? target ? lun ?		# SCSI disks
2421.37Sgwrst* at scsibus? target ? lun ?		# SCSI tapes
2431.37Sgwrcd* at scsibus? target ? lun ?		# SCSI CD-ROMs
2441.143Stsutsui#ch* at scsibus? target ? lun ?		# SCSI changer devices
2451.143Stsutsui#ss* at scsibus? target ? lun ?		# SCSI scanners
2461.37Sgwruk* at scsibus? target ? lun ?		# unknown SCSI devices
2471.24Sgwr
2481.145Stls#
2491.145Stls# accept filters
2501.177Smrg#pseudo-device   accf_data		# "dataready" accept filter
2511.177Smrg#pseudo-device   accf_http		# "httpready" accept filter
2521.145Stls
2531.33Spk# Memory-disk drivers
2541.153Shannkenpseudo-device	md		
2551.1Sglass
2561.25Sgwr# Misc.
2571.163Schristospseudo-device	loop			# network loopback
2581.129Srpaulopseudo-device	bpfilter		# packet filter
2591.132Sliamjfoy#pseudo-device	carp			# Common Address Redundancy Protocol
2601.130Scubepseudo-device	sl			# CSLIP
2611.192Stsutsui#pseudo-device	ppp			# PPP
2621.143Stsutsui#pseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
2631.143Stsutsui#pseudo-device	tun			# network tunneling over tty
2641.143Stsutsui#pseudo-device	tap			# virtual Ethernet
2651.130Scube#pseudo-device	gre			# generic L3 over IP tunnel
2661.179Smaxv#pseudo-device	npf			# NPF packet filter
2671.143Stsutsui#pseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC1933)
2681.130Scube#pseudo-device	faith			# IPv[46] tcp relay translation i/f
2691.143Stsutsui#pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
2701.192Stsutsui#pseudo-device	vlan			# IEEE 802.1q encapsulation
2711.143Stsutsui#pseudo-device	bridge			# simple inter-network bridging
2721.186Sroy#pseudo-device	vether			# Virtual Ethernet for bridge
2731.143Stsutsui#pseudo-device	agr			# IEEE 802.3ad link aggregation
2741.17Sgwr
2751.73Sjdolecekpseudo-device	pty			# pseudo-terminals
2761.192Stsutsui#pseudo-device	vnd			# paging to files
2771.118Shubertf#options 	VND_COMPRESSION		# compressed vnd(4)
2781.163Schristos#pseudo-device	ccd			# concatenated disks
2791.163Schristos#pseudo-device	cgd			# cryptographic disk devices
2801.164Schristos#pseudo-device	raid			# RAIDframe disk driver
2811.65Ssimonb#options 	RAID_AUTOCONFIG		# auto-configuration of RAID components
2821.88Soster# Options to enable various other RAIDframe RAID types.
2831.139Stsutsui#options 	RF_INCLUDE_EVENODD=1
2841.139Stsutsui#options 	RF_INCLUDE_RAID5_RS=1
2851.139Stsutsui#options 	RF_INCLUDE_PARITYLOGGING=1
2861.139Stsutsui#options 	RF_INCLUDE_CHAINDECLUSTER=1
2871.139Stsutsui#options 	RF_INCLUDE_INTERDECLUSTER=1
2881.139Stsutsui#options 	RF_INCLUDE_PARITY_DECLUSTERING=1
2891.139Stsutsui#options 	RF_INCLUDE_PARITY_DECLUSTERING_DS=1
2901.149Spooka#pseudo-device	fss			# file system snapshot device
2911.92Slukempseudo-device	clockctl		# user control of clock subsystem
2921.100Sraggepseudo-device	ksyms			# /dev/ksyms
2931.192Stsutsui#pseudo-device 	swwdog			# software watchdog timer -- swwdog(4)
2941.127Selad
2951.127Selad# Veriexec
2961.181Ssevan# include "dev/veriexec.config"
2971.188Ssimonb
2981.190Sabs# Pull in optional local configuration - always at end
2991.190Sabscinclude	"arch/sun3/conf/GENERIC.local"
300