TADPOLE3GX revision 1.70
11.70Schristos# 	$NetBSD: TADPOLE3GX,v 1.70 2016/12/13 20:42:20 christos Exp $
21.1Smatt
31.1Smattinclude "arch/sparc/conf/std.sparc"
41.14Satatat
51.14Satatat#options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
61.1Smatt
71.27Smacallan# all supported SPARCbooks have V8 CPUs
81.27Smacallanmakeoptions		CCPUOPTS="-mcpu=v8 -mtune=v8"
91.27Smacallan
101.1Smattmaxusers	32
111.1Smatt
121.1Smatt## System kernel configuration.  See options(4) for more detail.
131.1Smatt
141.1Smatt
151.1Smatt# Options for variants of the Sun SPARC architecure.
161.1Smatt# We currently support three architecture types; at least one is required.
171.1Smattoptions 	SUN4M		# sun4m - SS10, SS20, Classic, etc.
181.1Smatt
191.1Smatt## System options specific to the sparc machine type
201.1Smatt
211.1Smatt# Blink the power LED on some machines to indicate the system load.
221.1Smatt#options 	BLINK
231.1Smatt
241.37Smacallan# wsdisplay options
251.57Smacallan#options 	WSEMUL_SUN
261.57Smacallanoptions 	WSEMUL_VT100
271.37Smacallanoptions 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
281.37Smacallanoptions 	WSDISPLAY_CUSTOM_OUTPUT		# wsconsctl(8)
291.37Smacallan
301.37Smacallan# black on white, kernel output in green
311.37Smacallanoptions 	WS_DEFAULT_FG=WSCOL_BLACK
321.37Smacallanoptions 	WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
331.37Smacallanoptions 	WS_KERNEL_FG=WSCOL_GREEN
341.37Smacallanoptions 	WS_KERNEL_BG=WSCOL_LIGHT_WHITE
351.37Smacallan
361.37Smacallanoptions 	WSDISPLAY_COMPAT_PCVT		# emulate some ioctls
371.37Smacallanoptions 	WSDISPLAY_COMPAT_SYSCONS	# emulate some ioctls
381.56Sabsoptions 	WSDISPLAY_COMPAT_USL		# wsconscfg VT handling
391.37Smacallan
401.37Smacallanoptions 	WSDISPLAY_DEFAULTSCREENS=1
411.37Smacallan
421.44Sjdcoptions 	SPARCBOOK_CMD		# enable screen switching with lAlt-Fn
431.1Smatt#options 	FONT_GALLANT12x22	# the console font
441.2Smattoptions 	FONT_BOLD8x16		# a somewhat smaller font
451.1Smatt
461.1Smatt#### System options that are the same for all ports
471.1Smatt
481.1Smatt## Root device configuration: change the ?'s if you are going to use a
491.1Smatt## nonstandard root partition (other than where the kernel is booted from)
501.1Smatt## and/or nonstandard root type (not ffs or nfs).  Normally this can be
511.1Smatt## automagically determined at boot time.
521.1Smatt
531.1Smattconfig		netbsd	root on ? type ?
541.1Smatt
551.1Smatt## System call tracing (see ktrace(1)).
561.1Smattoptions 	KTRACE
571.1Smatt
581.1Smatt## System V compatible IPC subsystem.  (msgctl(2), semctl(2), and shmctl(2))
591.1Smattoptions 	SYSVMSG		# System V message queues
601.1Smattoptions 	SYSVSEM		# System V semaphores
611.1Smattoptions 	SYSVSHM		# System V shared memory
621.1Smatt
631.17Slukemoptions 	USERCONF	# userconf(4) support
641.44Sjdc#options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
651.20Satatat#options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
661.1Smatt
671.15Slukem## NFS boot options; tries DHCP/BOOTP then BOOTPARAM
681.1Smattoptions 	NFS_BOOT_BOOTPARAM
691.1Smatt#options 	NFS_BOOT_BOOTP
701.15Slukemoptions 	NFS_BOOT_DHCP
711.1Smatt
721.1Smatt#### Debugging options
731.1Smatt
741.1Smatt## The DDB in-kernel debugger runs at panic (unless DDB_ONPANIC=0), or at
751.1Smatt## serial console break or keyboard reset, where the PROM would normally
761.1Smatt## intercept.  DDB_HISTORY_SIZE adds up/down arrow command history.
771.47Stsutsuioptions 	DDB			# kernel dynamic debugger
781.66Suebayasipseudo-device	ksyms
791.47Stsutsuioptions 	DDB_HISTORY_SIZE=100	# enable history editing in DDB
801.61Sszptvlfn#options 	DDB_ONPANIC=1		# see also sysctl(7): `ddb.onpanic'
811.1Smatt
821.1Smatt## You may also use gdb, on another computer connected to this machine over
831.10Slukem## a serial port.  Both KGDB_DEV and KGDB_DEVRATE should be specified;
841.10Slukem## KGDB_DEV is a dev_t encoded device number of the serial port to use.
851.1Smatt## (0xc01 = ttya, 0xc02 = ttyb.)
861.10Slukem#options 	KGDB			# support for kernel gdb
871.10Slukem#options 	KGDB_DEV=0xc01		# kgdb device number (this is `ttyb')
881.10Slukem#options 	KGDB_DEVRATE=38400	# baud rate
891.1Smatt
901.1Smatt
911.1Smatt## Compile the kernel with debugging symbols (`netbsd.gdb' is the debug file),
921.1Smatt## such that gdb(1) can be used on a kernel coredump.
931.1Smatt
941.11Slukemmakeoptions	DEBUG="-g"
951.1Smatt
961.1Smatt
971.1Smatt## Adds code to the kernel that does internal consistency checks, and will
981.1Smatt## cause the kernel to panic if corruption of internal data structures
991.1Smatt## is detected.
1001.1Smatt#options 	DIAGNOSTIC	# extra kernel sanity checking
1011.1Smatt
1021.1Smatt## Enable (possibly expensive) debugging code that may also display messages
1031.1Smatt## on the system console
1041.1Smatt#options 	DEBUG
1051.52Sjdc#options 	LOCKDEBUG
1061.52Sjdc#options 	SYSCALL_DEBUG
1071.1Smatt
1081.1Smatt## Make SCSI error messages more verbose when explaining their meanings.
1091.1Smattoptions 	SCSIVERBOSE
1101.1Smatt
1111.1Smatt## `INSECURE' turns off the kernel security level (securelevel = 0 always).
1121.1Smatt## This allows writing to /dev/mem, loading kernel modules while multi-user,
1131.1Smatt## and other insecurities good only for development work.  Do not use this
1141.1Smatt## option on a production machine.
1151.4Smattoptions 	INSECURE
1161.1Smatt
1171.1Smatt## `FDSCRIPTS' allows non-readable but executable scripts by providing a
1181.1Smatt## pre-opened opaque file to the script interpreter.  `SETUIDSCRIPTS',
1191.1Smatt## which implies FDSCRIPTS, allows scripts to be set-user-id using the same
1201.1Smatt## opaque file mechanism.  Perl calls this "secure setuid scripts."
1211.1Smatt
1221.1Smatt#options 	FDSCRIPTS
1231.1Smatt#options 	SETUIDSCRIPTS
1241.1Smatt
1251.1Smatt## Options for compatibility with previous releases foreign system binaries.
1261.1Smatt## In the cases of COMPAT_SUNOS and COMPAT_SVR4, you may need to set up
1271.1Smatt## additional user-level utilities or system configuration files. See
1281.1Smatt## compat_sunos(8) and compat_svr4(8).
1291.1Smatt
1301.1Smattoptions 	COMPAT_43	# 4.3BSD system interfaces
1311.63Sdhollandoptions 	COMPAT_10	# NetBSD 1.0,
1321.63Sdhollandoptions 	COMPAT_11	# NetBSD 1.1,
1331.63Sdhollandoptions 	COMPAT_12	# NetBSD 1.2,
1341.63Sdhollandoptions 	COMPAT_13	# NetBSD 1.3,
1351.63Sdhollandoptions 	COMPAT_14	# NetBSD 1.4,
1361.63Sdhollandoptions 	COMPAT_15	# NetBSD 1.5,
1371.63Sdhollandoptions 	COMPAT_16	# NetBSD 1.6,
1381.63Sdhollandoptions 	COMPAT_20	# NetBSD 2.0,
1391.63Sdhollandoptions 	COMPAT_30	# NetBSD 3.0,
1401.63Sdhollandoptions 	COMPAT_40	# NetBSD 4.0,
1411.63Sdhollandoptions 	COMPAT_50	# NetBSD 5.0,
1421.63Sdhollandoptions 	COMPAT_60	# NetBSD 6.0, and
1431.63Sdhollandoptions 	COMPAT_70	# NetBSD 7.0 binary compatibility.
1441.1Smattoptions 	COMPAT_SUNOS	# SunOS 4.x binary compatibility
1451.1Smattoptions 	COMPAT_SVR4	# SunOS 5.x binary compatibility
1461.9Sabs#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
1471.44Sjdcoptions 	COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.
1481.1Smatt
1491.1Smatt## File systems.  You probably need at least one of FFS or NFS.
1501.1Smattfile-system	FFS		# Berkeley Fast Filesystem
1511.1Smattfile-system	NFS		# Sun NFS-compatible filesystem client
1521.1Smattfile-system	KERNFS		# kernel data-structure filesystem
1531.1Smatt#file-system	NULLFS		# NULL layered filesystem
1541.1Smattfile-system	MFS		# memory-based filesystem
1551.1Smatt#file-system	FDESC		# user file descriptor filesystem
1561.1Smatt#file-system	UMAPFS		# uid/gid remapping filesystem
1571.1Smatt#file-system	LFS		# Log-based filesystem (still experimental)
1581.1Smattfile-system	PROCFS		# /proc
1591.1Smattfile-system	CD9660		# ISO 9660 + Rock Ridge file system
1601.1Smatt#file-system	UNION		# union file system
1611.1Smattfile-system	MSDOSFS		# MS-DOS FAT filesystem(s).
1621.32Schristosfile-system	PTYFS		# /dev/pts/N support
1631.1Smatt
1641.1Smatt## File system options.
1651.1Smattoptions 	NFSSERVER	# Sun NFS-compatible filesystem server
1661.53Sbouyeroptions 	QUOTA		# legacy UFS quotas
1671.53Sbouyeroptions 	QUOTA2		# new, in-filesystem UFS quotas
1681.1Smatt#options 	FFS_EI		# FFS Endian Independent support
1691.34Stsutsui#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
1701.64Smanuoptions 	UFS_EXTATTR	# Extended attribute support for UFS1
1711.1Smatt
1721.1Smatt## Network protocol support.  In most environments, INET is required.
1731.1Smattoptions 	INET		# IP (Internet Protocol) v4
1741.1Smatt#options 	GATEWAY		# packet forwarding ("router switch")
1751.1Smatt#options 	MROUTING	# packet forwarding of multicast packets
1761.21Smanu#options 	PIM		# Protocol Independent Multicast
1771.1Smatt#options 	DIRECTED_BROADCAST	# allow broadcasts through routers
1781.1Smatt#options 	NETATALK	# AppleTalk (over Ethernet) protocol
1791.1Smattoptions 	NTP		# Network Time Protocol in-kernel support
1801.1Smatt#options 	PPS_SYNC	# Add serial line synchronization for NTP
1811.1Smattoptions 	IPFILTER_LOG	# Add ipmon(8) logging for ipfilter device
1821.39Schristosoptions 	IPFILTER_LOOKUP	# ippool(8) support
1831.50Smrgoptions 	IPFILTER_COMPAT # Compat for IP-Filter
1841.50Smrg#options 	IPFILTER_DEFAULT_BLOCK	# block all packets by default
1851.1Smattoptions 	PPP_BSDCOMP	# Add BSD compression to ppp device
1861.1Smattoptions 	PPP_DEFLATE	# Add deflate (libz) compression to ppp device
1871.1Smattoptions 	PPP_FILTER	# Add active filters for ppp (via bpf)
1881.9Sabs#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
1891.1Smatt
1901.1Smatt
1911.1Smatt#### Main bus and CPU .. all systems.
1921.1Smattmainbus0 at root
1931.1Smattcpu0	at mainbus0
1941.1Smatt
1951.1Smatt#### Bus types found on SPARC systems.
1961.1Smatt
1971.1Smattobio0	at mainbus0				# sun4 and sun4m
1981.1Smattiommu0	at mainbus0				# sun4m
1991.1Smattsbus0	at iommu0				# sun4m
2001.1Smatt
2011.1Smatt## SBus to PCMCIA bridge
2021.27Smacallantslot*	at sbus? slot ? offset ?		# PCMCIA bridge (tadpole 3gx)
2031.27Smacallanpcmcia*	at tslot?
2041.1Smatt
2051.1Smatt#### Standard system devices -- all required for a given architecture
2061.1Smatt
2071.1Smatt## Auxiliary system registers on sun4c and sun4m
2081.1Smattauxreg0	at obio0				# sun4m
2091.6Sjdc
2101.6Sjdc## Additional auxiliary system registers on Sparcbook
2111.6Sjdcauxiotwo0	at obio0				# sun4m
2121.1Smatt
2131.37Smacallan## Clock control on SPARCbook - used to put the CPU to sleep when idle
2141.33Smacallanclkctrl0 at obio0
2151.33Smacallan
2161.1Smatt## Mostek clock found on 4/300, sun4c, and sun4m systems.
2171.1Smatt## The Mostek clock NVRAM is the "eeprom" on sun4/300 systems.
2181.1Smattclock0	at obio0				# sun4m
2191.1Smatt
2201.1Smatt## Timer chip found on 4/300, sun4c, and sun4m systems.
2211.1Smatttimer0	at obio0				# sun4m
2221.1Smatt
2231.1Smatt#### Serial port configuration
2241.1Smatt
2251.1Smatt## Zilog 8530 serial chips.  Each has two-channels.
2261.1Smatt## zs0 is ttya and ttyb.  zs1 is the keyboard and mouse.
2271.1Smattzs0	at obio0					# sun4m
2281.1Smattzstty0	at zs0 channel 0	# ttya
2291.1Smattzstty1	at zs0 channel 1	# ttyb
2301.1Smatt
2311.1Smattzs1	at obio0					# sun4m
2321.37Smacallanzstty*	at zs1 channel ?	# mouse/keyboard
2331.37Smacallan
2341.37Smacallankbd0	at zstty?
2351.37Smacallanms0	at zstty?
2361.37Smacallan
2371.37Smacallanwskbd*		at kbd? console ?
2381.37Smacallanwsmouse*	at ms?
2391.1Smatt
2401.1Smatt## Tadpole 3GX/3XL have a builtin modem that emulates a NS16450.
2411.1Smattcom*	at obio0					# sun4m (tadpole)
2421.1Smatt
2431.1Smatt## PCMCIA serial interfaces
2441.27Smacallancom*	at pcmcia?
2451.27Smacallanpcmcom*	at pcmcia?
2461.27Smacallancom*	at pcmcom?
2471.1Smatt
2481.1Smatt#### Disk controllers and disks
2491.1Smatt
2501.1Smatt#
2511.1Smatt
2521.1Smatt## The following flags may be set for the NCR53c94 based esp driver:
2531.1Smatt##	bits 0-7:  disable disconnect/reselect for the corresponding target
2541.1Smatt##	bits 8-15: disable synchronous negotiation for target [bit-8]
2551.1Smatt
2561.1Smatt## sun4/300, sun4c, sun4m on-board SCSI, and FSBE/S SBus SCSI cards.
2571.1Smatt## Both `dma' and `esp' are needed in all cases.
2581.1Smatt## Two kinds of additional SBus SCSI interfaces are available.  One uses
2591.1Smatt## "esp at sbus" like the sun4c on-board; the other uses "esp at dma".
2601.1Smatt
2611.1Smatt## sun4/300 SCSI - an NCR53c94 or equivalent behind
2621.1Smatt## an LSI Logic DMA controller
2631.1Smatt
2641.1Smattdma0	at sbus0 slot ? offset ?			# sun4c/sun4m
2651.1Smattesp0	at dma0 flags 0x0000				# sun4m
2661.1Smatt
2671.1Smattscsibus* at esp?
2681.1Smatt
2691.1Smatt## PCMCIA SCSI controllers
2701.1Smatt#aic*	at pcmcia?
2711.1Smatt#scsibus* at aic?
2721.1Smatt
2731.1Smatt## These entries find devices on all SCSI busses and assign
2741.1Smatt## unit numbers dynamically.
2751.1Smattsd*	at scsibus? target ? lun ?		# SCSI disks
2761.1Smattst*	at scsibus? target ? lun ?		# SCSI tapes
2771.1Smattcd*	at scsibus? target ? lun ?		# SCSI CD-ROMs
2781.1Smattch*	at scsibus? target ? lun ?		# SCSI changer devices
2791.1Smattss*	at scsibus? target ? lun ?		# SCSI scanners
2801.1Smattuk*	at scsibus? target ? lun ?		# unknown SCSI
2811.1Smatt
2821.1Smatt## PCMCIA IDE controllers
2831.27Smacallanwdc*	at pcmcia?
2841.27Smacallan
2851.27Smacallanatabus* at ata?
2861.27Smacallanwd*		at atabus? drive ? flags 0x0000
2871.1Smatt
2881.1Smatt## A disk-like interface to files.  Can be used to create floppy, CD,
2891.1Smatt## miniroot images, etc.
2901.1Smatt
2911.36Scubepseudo-device	vnd	
2921.1Smatt
2931.1Smatt## Memory disk device, used on boot floppies with compressed
2941.1Smatt## kernel-plus-root-disk images.
2951.1Smatt
2961.51Shannken#pseudo-device	md	
2971.1Smatt
2981.1Smatt
2991.1Smatt#### Network interfaces
3001.1Smatt
3011.1Smatt## LANCE Ethernet - an AMD 7990 LANCE behind specialized DMA glue
3021.1Smatt## Three flavors of additional SBus ethernets are available.  One attaches
3031.1Smatt## directly like the sun4c on-board, one uses the ledma device like the
3041.1Smatt## sun4m on-board, and one uses the lebuffer device.
3051.1Smatt
3061.1Smattledma0		at sbus0 slot ? offset ?		# sun4m on-board
3071.1Smattle0		at ledma0				# sun4m on-board
3081.1Smatt
3091.1Smatt# PCMCIA ethernet devices
3101.27Smacallanep*	at pcmcia?
3111.1Smatt#mbe*	at pcmcia?
3121.1Smatt#ne*	at pcmcia?
3131.1Smatt#sm*	at pcmcia?
3141.1Smatt
3151.27Smacallanwi*	at pcmcia?
3161.27Smacallan
3171.1Smatt## Loopback network interface; required
3181.1Smattpseudo-device	loop
3191.1Smatt
3201.1Smatt## PPP, the successor to SLIP.  See pppd(8).
3211.36Scubepseudo-device	ppp		
3221.1Smatt
3231.1Smatt## Network "tunnel" device, allowing protocol stacks to run in the userland.
3241.1Smatt## This is used by the third-party user-mode "ppp" program, and others.
3251.36Scubepseudo-device	tun		
3261.1Smatt
3271.1Smatt## Generic L3 over IP tunnel
3281.36Scube#pseudo-device	gre			# generic L3 over IP tunnel
3291.1Smatt
3301.1Smatt## Berkeley Packet Filter, required to run RARPD.  A generic C-language
3311.1Smatt## interface that allows selective examining of incoming packets.
3321.35Srpaulopseudo-device	bpfilter
3331.1Smatt
3341.1Smatt## IP Filter, used in firewall and NAT applications.  See ipnat(8) for
3351.1Smatt## one example of the use of the IP Filter.
3361.1Smattpseudo-device	ipfilter
3371.1Smatt
3381.1Smatt
3391.1Smatt#### Audio and video devices
3401.1Smatt
3411.28Smacallan## /dev/audio support
3421.28Smacallan
3431.44Sjdc#options 	DBRI_DEBUG	# noisy debug output from the dbri driver
3441.44Sjdcoptions 	DBRI_BIG_BUFFER	# use bigger DMA buffers, for slow CPUs
3451.28Smacallandbri0		at sbus0 slot ? offset ?		# SUNW,DBRI[s3|e]
3461.28Smacallanaudio*		at audiobus?
3471.2Smatt
3481.70Schristosspkr*		at audio?		# PC speaker (synthesized)
3491.68Snat
3501.2Smatt# Tadpole 3GX/3GS (P9100 -- P Nine One Zero Zero -> pnozz)
3511.2Smattpnozz0 at sbus? slot ? offset ?
3521.44Sjdc#options 	PNOZZ_EMUL_CG3		# emulate a CG3 for Xsun instead of 
3531.37Smacallan					# running natively
3541.37Smacallan
3551.37Smacallanwsdisplay* 	at wsemuldisplaydev? console ?
3561.1Smatt
3571.1Smatt#### Other device configuration
3581.3Smatt
3591.3Smatt# Tadpole microcontroller
3601.3Smatttctrl0 at obio0
3611.1Smatt
3621.1Smatt## Pseudo ttys, required for network logins and programs like screen.
3631.1Smatt
3641.8Sjdolecekpseudo-device	pty			# pseudo-ttys (for network, etc.)
3651.1Smatt
3661.1Smatt## Random device, used to implement /dev/random (a source of random noise),
3671.1Smatt## and generate randomness for some kernel formulae.
3681.1Smatt
3691.16Slukem
3701.16Slukempseudo-device	clockctl		# user control of clock subsystem
3711.49Spooka#pseudo-device	fss			# file system snapshot device
3721.37Smacallan
3731.37Smacallanpseudo-device	wsmux			# mouse and keyboard multiplexor
3741.37Smacallanpseudo-device	wsfont
375