KGDB revision 1.16
11.15Sgwr#	$NetBSD: KGDB,v 1.16 1998/01/28 16:40:22 gwr Exp $
21.1Sgwr
31.4Sthorpej# GENERIC_KGDB Sun3 (3/50, 3/60, 3/110, 3/160, 3/260)
41.9Sgwr# like GENERIC but supports gdb on other machine, i.e.:
51.9Sgwr#	% gdb -k netbsd.gdb
61.9Sgwr#	(gdb) set remotebaud 19200
71.9Sgwr#	(gdb) target remote /dev/ttyb
81.1Sgwr
91.3Sjtcinclude "arch/sun3/conf/std.sun3"
101.1Sgwr
111.1Sgwr# Machines to be supported by this kernel
121.1Sgwroptions 	FPU_EMULATE
131.1Sgwroptions 	HAVECACHE		# Sun3/260 VAC
141.1Sgwr
151.1Sgwr# Needs to be set per system.  i.e change these as you see fit
161.1Sgwrmaxusers	4
171.1Sgwr
181.1Sgwr# Standard system options
191.14Sgwroptions 	KTRACE		# system call tracing
201.14Sgwroptions 	SYSVMSG		# System V message queues
211.14Sgwroptions 	SYSVSEM		# System V semaphores
221.14Sgwroptions 	SYSVSHM		# System V shared memory
231.14Sgwr#options 	SHMMAXPGS=1024	# 1024 pages is the default
241.14Sgwr#options 	LKM		# loadable kernel modules
251.14Sgwr#options 	INSECURE	# disable kernel security level
261.14Sgwr#options 	UCONSOLE	# Allow non-root TIOCCONS
271.4Sthorpej
281.14Sgwr# Which kernel debugger?  Uncomment either this:
291.4Sthorpej#options 	DDB
301.9Sgwr# ... or these for KGDB (gdb remote target)
311.14Sgwrmakeoptions DEBUG="-g"		# debugging symbols for gdb
321.1Sgwroptions 	KGDB
331.14Sgwroptions 	KGDBDEV=0x0C01	# ttya=0C00 ttyb=0C01
341.12Slukem
351.12Slukem# Other debugging options
361.12Slukem#options 	DDB_HISTORY_SIZE=100	# enable history editing in DDB
371.14Sgwroptions 	DEBUG		# kernel debugging code
381.14Sgwroptions 	DIAGNOSTIC	# extra kernel sanity checking
391.14Sgwr# Note: KMEMSTATS causes horrible performance!
401.14Sgwr#options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
411.14Sgwroptions 	PMAP_DEBUG
421.14Sgwroptions 	SWAPDEBUG
431.14Sgwr#options 	SCSIDEBUG
441.14Sgwr#options 	SCSIVERBOSE		# Verbose SCSI errors
451.14Sgwr
461.14Sgwr# Compatability options
471.14Sgwroptions 	COMPAT_SUNOS	# can run SunOS 4.1.1 executables
481.14Sgwroptions 	COMPAT_43	# and 4.3BSD and ...
491.14Sgwroptions 	COMPAT_10	# NetBSD 1.0
501.14Sgwroptions 	COMPAT_11	# NetBSD 1.1
511.14Sgwroptions 	COMPAT_12	# NetBSD 1.2
521.14Sgwroptions 	COMPAT_13	# NetBSD 1.3
531.1Sgwr
541.1Sgwr# Filesystem options
551.14Sgwrfile-system	FFS		# Berkeley Fast Filesystem
561.14Sgwrfile-system	NFS		# Sun NFS client support
571.11Slukemfile-system	CD9660		# ISO 9660 + Rock Ridge file system
581.11Slukemfile-system	FDESC		# /dev/fd/*
591.11Slukemfile-system	KERNFS		# /kern
601.11Slukemfile-system	NULLFS		# loopback file system
611.11Slukemfile-system	PROCFS		# /proc
621.11Slukemfile-system	UNION		# union file system
631.11Slukemfile-system	MFS		# memory-based filesystem
641.8Sthorpej
651.14Sgwroptions 	FIFO		# FIFOs; RECOMMENDED
661.4Sthorpejoptions 	NFSSERVER	# nfs server support
671.14Sgwroptions 	QUOTA		# FFS quotas
681.1Sgwr
691.1Sgwr# Networking options
701.4Sthorpejoptions 	INET		# IP prototol stack support
711.14Sgwroptions 	TCP_COMPAT_42	# compatibility with 4.2BSD TCP/IP
721.11Slukem#options 	GATEWAY		# IP packet forwarding
731.14Sgwr#options 	ISO,TPIP	# OSI networking
741.14Sgwr#options 	EON		# OSI tunneling over IP
751.14Sgwr#options 	CCITT,LLC,HDLC	# X.25
761.14Sgwr#options 	PFIL_HOOKS	# pfil(9) packet filter hooks.
771.14Sgwr
781.14Sgwr# Work-around for root on slow servers (insurance...)
791.1Sgwroptions 	NFS_BOOT_RWSIZE=1024
801.16Sgwroptions 	NFS_BOOT_BOOTPARAM
811.1Sgwr
821.8Sthorpejconfig		netbsd root on ? type ?
831.1Sgwr
841.1Sgwr#
851.1Sgwr# Serial ports
861.1Sgwr#
871.11Slukemzstty0	at zsc1 channel 0	# ttya
881.11Slukemzstty1	at zsc1 channel 1	# ttyb
891.1Sgwr
901.11Slukemkbd0	at zsc0 channel 0	# keyboard
911.11Slukemms0	at zsc0 channel 1	# mouse
921.1Sgwr
931.1Sgwr#
941.1Sgwr# Network devices
951.1Sgwr#
961.1Sgwr
971.1Sgwr# Intel Ethernet (onboard, or VME)
981.9Sgwrie0 at obio0 addr   0x0C0000 level 3
991.1Sgwrie1 at vmes0 addr 0xffe88000 level 3 vect 0x75
1001.1Sgwr
1011.1Sgwr# Lance Ethernet (only onboard)
1021.9Sgwrle0 at obio0 addr   0x120000 level 3
1031.1Sgwr
1041.1Sgwr#
1051.1Sgwr# Disk and tape devices
1061.1Sgwr#
1071.1Sgwr
1081.1Sgwr# Sun3 "si" SCSI controller (NCR 5380)
1091.14Sgwr# See GENERIC for the flags description.
1101.15Sgwrsi0 at obio0 addr   0x140000 level 2
1111.15Sgwrsi0 at vmes0 addr 0xff200000 level 2 vect 0x40
1121.15Sgwrsi1 at vmes0 addr 0xff204000 level 2 vect 0x41
1131.1Sgwr
1141.10Sgwr# Xylogics 450/451 controllers
1151.14Sgwrxyc0 at vmes0 addr 0xffffee40 level 2 vect 0x48
1161.14Sgwrxyc1 at vmes0 addr 0xffffee48 level 2 vect 0x49
1171.14Sgwrxy* at xyc? drive ?
1181.10Sgwr
1191.1Sgwr# Xylogics 7053 controllers
1201.14Sgwrxdc0 at vmel0 addr 0xffffee80 level 2 vect 0x44
1211.14Sgwrxdc1 at vmel0 addr 0xffffee90 level 2 vect 0x45
1221.14Sgwrxd* at xdc? drive ?
1231.1Sgwr
1241.1Sgwr# Xylogics 472 tape controllers?
1251.1Sgwr
1261.1Sgwr#
1271.14Sgwr# Sun3/E stuff
1281.14Sgwr#
1291.14Sgwrsebuf0 at vmes0 addr 0xff300000 level 2 vect 0x74
1301.14Sgwrsebuf1 at vmes0 addr 0xff340000 level 2 vect 0x76
1311.14Sgwrsi* at sebuf?
1321.14Sgwrie* at sebuf?
1331.14Sgwr
1341.14Sgwr#
1351.1Sgwr# Frame buffer devices
1361.1Sgwr#
1371.1Sgwr
1381.1Sgwr# The default cgfour address depends on the machine:
1391.1Sgwr# 3/60: obmem 0xFF200000 .. 0xFF9fffff
1401.1Sgwr# 3/110: different? (not tested)
1411.1Sgwrcgfour0 at obmem0 addr ?
1421.1Sgwr
1431.1Sgwr# 3/60 P4 accelerated 8-bit color frame buffer
1441.1Sgwr# cgsix0 at obmem0 addr ?
1451.1Sgwr
1461.1Sgwr# 3/60 P4 24-bit color frame buffer
1471.1Sgwr# cgeight0 at obmem0 addr ?
1481.1Sgwr
1491.1Sgwr# The default bwtwo address depends on the machine:
1501.1Sgwr# 3/50: obmem   0x100000
1511.1Sgwr# else: obmem 0xff000000
1521.1Sgwrbwtwo0 at obmem0 addr ?
1531.1Sgwr# 3/60 P4 color frame buffer overlay plane, or P4 monochrome frame buffer
1541.1Sgwr#bwtwo1 at obmem0 addr 0xff300000
1551.1Sgwr# 3/60 plug-in color frame buffer overlay plane
1561.1Sgwr#bwtwo1 at obmem0 addr 0xff400000
1571.1Sgwr
1581.1Sgwr# Sun-3 color board, or CG5 8-bit VME frame buffer.
1591.1Sgwrcgtwo0 at vmes0 addr 0xff400000 level 4 vect 0xA8
1601.1Sgwr
1611.1Sgwr# Support for the CG9 24-bit VME frame buffer.
1621.1Sgwr# cgnine0 at vmel0 addr 0x08000000
1631.1Sgwr
1641.1Sgwr#
1651.1Sgwr# SCSI infrastructure
1661.1Sgwr#
1671.1Sgwrscsibus* at scsi?
1681.1Sgwr
1691.10Sgwrsd* at scsibus? target ? lun ?		# SCSI disks
1701.10Sgwrst* at scsibus? target ? lun ?		# SCSI tapes
1711.10Sgwrcd* at scsibus? target ? lun ?		# SCSI CD-ROMs
1721.10Sgwrch* at scsibus? target ? lun ?		# SCSI changer devices
1731.10Sgwrss* at scsibus? target ? lun ?		# SCSI scanners
1741.10Sgwruk* at scsibus? target ? lun ?		# unknown SCSI devices
1751.1Sgwr
1761.6Spk# Memory-disk drivers
1771.11Slukempseudo-device	md		2
1781.1Sgwr
1791.1Sgwr# Misc.
1801.11Slukempseudo-device	loop		1	# network loopback
1811.11Slukempseudo-device	bpfilter	8	# packet filter
1821.11Slukempseudo-device	sl		2	# CSLIP
1831.11Slukempseudo-device	ppp		2	# PPP
1841.11Slukempseudo-device	tun		2	# network tunneling over tty
1851.10Sgwr#pseudo-device	ipfilter		# ip filter
1861.14Sgwr# rnd is EXPERIMENTAL
1871.14Sgwr#pseudo-device	rnd			# /dev/random and in-kernel generator
1881.1Sgwr
1891.11Slukempseudo-device	pty		64	# pseudo-terminals
1901.11Slukem#pseudo-device	vnd		4	# paging to files
1911.11Slukem#pseudo-device	ccd		4	# concatenated disks
192