GENERIC_SCSI3 revision 1.32
11.32Smrg# 	$NetBSD: GENERIC_SCSI3,v 1.32 1996/10/02 07:11:47 mrg Exp $
21.1Sderaadt
31.24Sthorpej# Machine architecture; required by config(8)
41.1Sderaadtmachine		sparc
51.1Sderaadt
61.32Smrginclude "arch/sparc/conf/std.sparc"
71.32Smrg
81.24Sthorpej# Options for variants of the Sun SPARC architecure.
91.24Sthorpej# At least one is required.
101.24Sthorpejoptions		SUN4		# sun4/100, sun4/200, sun4/300
111.24Sthorpejoptions		SUN4C		# sun4c - SS1, 1+, 2, ELC, SLC, IPC, IPX, etc.
121.24Sthorpejoptions		SUN4M		# sun4m - SS10, SS20, Classic, etc.
131.24Sthorpej
141.24Sthorpej#options	MMU_3L		# 3-level MMU on sun4/400
151.24Sthorpej
161.24Sthorpej# obsolete timezone spec; optional
171.24Sthorpej#options	TIMEZONE=0, DST=0
181.1Sderaadt
191.1Sderaadt# Standard system options
201.24Sthorpejoptions		SWAPPAGER	# swap and anonymous memory; required
211.24Sthorpejoptions		VNODEPAGER	# mapped files; required
221.24Sthorpejoptions		DEVPAGER	# mapped devices; required
231.24Sthorpejoptions		KTRACE		# system call tracing
241.24Sthorpejoptions		SYSVMSG		# System V message queues
251.24Sthorpejoptions		SYSVSEM		# System V semaphores
261.24Sthorpejoptions		SYSVSHM		# System V shared memory
271.24Sthorpej#options	SHMMAXPGS=1024	# 1024 pages is the default
281.24Sthorpejoptions		LKM		# loadable kernel modules
291.24Sthorpej#options	INSECURE	# disable kernel security level
301.28Spk#options	UCONSOLE	# allow anyone to steal the virtual console
311.24Sthorpej
321.24Sthorpej# Debugging options
331.24Sthorpej#options	DDB		# kernel dynamic debugger
341.24Sthorpej#options	DEBUG		# kernel debugging code
351.24Sthorpej#options	DIAGNOSTIC	# extra kernel sanity checking
361.24Sthorpej#options	KGDB		# support for kernel gdb
371.24Sthorpej#options	KGDBDEV=0xc01	# kgdb device number (dev_t)
381.24Sthorpej#options	KGDBRATE=38400	# baud rate
391.24Sthorpej
401.24Sthorpej# Compatibility options
411.24Sthorpejoptions		COMPAT_43	# 4.3BSD system interfaces
421.24Sthorpejoptions		COMPAT_10	# NetBSD 1.0 binary compatibility
431.24Sthorpejoptions		COMPAT_11	# NetBSD 1.1 binary compatibility
441.24Sthorpejoptions		COMPAT_SUNOS	# SunOS 4.x binary compatibility
451.24Sthorpejoptions		COMPAT_SVR4	# SunOS 5.x binary compatibility
461.32Smrgoptions		EXEC_ELF32	# Exec module for SunOS 5.x binaries.
471.1Sderaadt
481.1Sderaadt# Filesystem options
491.24Sthorpejoptions		FFS		# Berkeley Fast Filesystem
501.24Sthorpejoptions		QUOTA		# FFS quotas
511.24Sthorpejoptions		NFSSERVER	# Sun NFS-compatible filesystem server
521.24Sthorpejoptions		NFSCLIENT	# Sun NFS-compatible filesystem client
531.1Sderaadtoptions		KERNFS		# kernel data-structure filesystem
541.24Sthorpejoptions		NULLFS		# NULL layered filesystem
551.6Spkoptions		MFS		# memory-based filesystem
561.6Spkoptions		FDESC		# user file descriptor filesystem
571.6Spkoptions		UMAPFS		# uid/gid remapping filesystem
581.6Spkoptions		LFS		# Log-based filesystem (still experimental)
591.6Spkoptions		PORTAL		# portal filesystem (still experimental)
601.6Spkoptions		PROCFS		# /proc
611.5Spkoptions		CD9660		# ISO 9660 + Rock Ridge file system
621.8Spkoptions		UNION		# union file system
631.24Sthorpejoptions		FIFO		# POSIX fifo support (in all filesystems)
641.1Sderaadt
651.1Sderaadt# Networking options
661.24Sthorpejoptions		INET		# IP stack
671.1Sderaadtoptions		TCP_COMPAT_42	# compatibility with 4.2BSD TCP/IP
681.1Sderaadt#options	GATEWAY		# IP packet forwarding
691.24Sthorpej#options	ISO,TPIP	# OSI networking
701.24Sthorpej#options	EON		# OSI tunneling over IP
711.24Sthorpej#options	CCITT,LLC,HDLC	# X.25
721.1Sderaadt
731.1Sderaadt# Options for SPARCstation hardware
741.24Sthorpejoptions		RASTERCONSOLE	# fast rasterop console
751.1Sderaadt
761.24Sthorpej# Generic swap; second partition of root disk or network.
771.5Spkconfig		netbsd	swap generic
781.1Sderaadt
791.24Sthorpej# Main bus and CPU .. all systems.
801.1Sderaadtmainbus0 at root
811.1Sderaadtcpu0	at mainbus0
821.1Sderaadt
831.24Sthorpej# Bus types found on SPARC systems.
841.24Sthorpejsbus0	at mainbus0				# sun4c
851.24Sthorpejobio0	at mainbus0				# sun4 and sun4m
861.24Sthorpejvmes0	at mainbus0				# sun4
871.24Sthorpejvmel0	at mainbus0				# sun4
881.23Spkiommu0	at mainbus0				# sun4m
891.23Spksbus0	at iommu0				# sun4m
901.1Sderaadt
911.24Sthorpejaudio0	at mainbus0				# sun4c
921.23Spkaudio0	at obio0				# sun4m
931.24Sthorpej
941.24Sthorpejauxreg0	at mainbus0				# sun4c
951.23Spkauxreg0	at obio0				# sun4m
961.27Sabrown
971.27Sabrown# Power status and control register found on Sun4m systems
981.27Sabrownpower0	at obio0
991.24Sthorpej
1001.24Sthorpej# Mostek clock found on 4/300, sun4c, and sun4m systems.
1011.24Sthorpej# The Mostek clock NVRAM is the "eeprom" on sun4/300 systems.
1021.24Sthorpejclock0	at mainbus0				# sun4c
1031.23Spkclock0	at obio0				# sun4m
1041.24Sthorpejclock0	at obio0 addr 0xf2000000		# sun4/300
1051.24Sthorpej
1061.24Sthorpej# Intersil clock found on 4/100 and 4/200 systems.
1071.24Sthorpejoclock0	at obio0 addr 0xf3000000		# sun4/200
1081.24Sthorpejoclock0	at obio0 addr 0x03000000		# sun4/100
1091.24Sthorpej
1101.24Sthorpej# Memory error registers.
1111.24Sthorpejmemreg0	at mainbus0				# sun4c
1121.23Spkmemreg0	at obio0				# sun4m
1131.24Sthorpejmemreg0	at obio0 addr 0xf4000000		# sun4/200 and sun4/300
1141.24Sthorpejmemreg0	at obio0 addr 0x04000000		# sun4/100
1151.24Sthorpej
1161.24Sthorpej# Timer chip found on 4/300, sun4c, and sun4m systems.
1171.24Sthorpejtimer0	at mainbus0				# sun4c
1181.23Spktimer0	at obio0				# sun4m
1191.24Sthorpejtimer0	at obio0 addr 0xef000000		# sun4/300
1201.24Sthorpej
1211.24Sthorpej# EEPROM found on 4/100 and 4/200 systems.  Note that the 4/300
1221.24Sthorpej# doesn't use this driver; the `EEPROM' is in the NVRAM on the
1231.24Sthorpej# Mostek clock chip on 4/300 systems.
1241.24Sthorpejeeprom0	at obio0 addr 0xf2000000		# sun4/200
1251.24Sthorpejeeprom0	at obio0 addr 0x02000000		# sun4/100
1261.24Sthorpej
1271.24Sthorpej# Zilog 8530 serial chips.  Each has two-channels.
1281.24Sthorpej# zs0 is ttya and ttyb.  zs1 is the keyboard and mouse.
1291.24Sthorpejzs0	at mainbus0					# sun4c
1301.24Sthorpejzs0	at obio0					# sun4m
1311.24Sthorpejzs0	at obio0 addr 0xf1000000 level 12 flags 0x103	# sun4/200 and sun4/300
1321.24Sthorpejzs0	at obio0 addr 0x01000000 level 12 flags 0x103	# sun4/100
1331.24Sthorpejzs1	at mainbus0					# sun4c
1341.24Sthorpejzs1	at obio0					# sun4m
1351.24Sthorpejzs1	at obio0 addr 0xf0000000 level 12 flags 0x103	# sun4/200 and sun4/300
1361.24Sthorpejzs1	at obio0 addr 0x00000000 level 12 flags 0x103	# sun4/100
1371.24Sthorpejzs2	at obio0 addr 0xe0000000 level 12 flags 0x103	# sun4/300
1381.24Sthorpej
1391.26Spk#
1401.26Spk# Note the flags on the esp entries below, that work around
1411.26Spk# deficiencies in the current driver:
1421.26Spk#	bits 0-7:  disable disconnect/reselect for the corresponding target
1431.28Spk#	bits 8-15: disable synch negotiation for target [bit-8]
1441.30Spk#	Note: targets 4-7 have disconnect/reselect enabled on the premise
1451.30Spk#	      that tape devices normally have one of these targets. Tape
1461.30Spk#	      devices should be allowed to disconnect for the SCSI bus
1471.30Spk#	      to operate acceptably.
1481.26Spk#
1491.26Spk
1501.25Spk# sun4/300 SCSI - an NCR53c94 or equivalent behind
1511.24Sthorpej# an LSI Logic DMA controller
1521.24Sthorpejdma0	at obio0 addr 0xfa001000 level 4		# sun4/300
1531.30Spkesp0	at obio0 addr 0xfa000000 level 4 flags 0xff0f	#
1541.1Sderaadt
1551.28Spk# sun4c or sun4m SCSI - an NCR53c94 or equivalent behind
1561.28Spk# specialized DMA glue
1571.28Spkdma0	at sbus0 slot ? offset ?			# on-board SCSI
1581.30Spkesp0	at sbus0 slot ? offset ? flags 0xff0f		# sun4c
1591.30Spkesp0	at dma0 flags 0xff0f				# sun4m
1601.24Sthorpej
1611.28Spk# FSBE/S SCSI - an NCR53c94 or equivalent behind
1621.25Spkdma*	at sbus? slot ? offset ?			# SBus SCSI
1631.30Spkesp*	at sbus? slot ? offset ? flags 0xff0f		# two flavours
1641.30Spkesp*	at dma? flags 0xff0f				# depending on model
1651.24Sthorpej
1661.24Sthorpej# sun4m Ethernet - an AMD 7990 LANCE behind
1671.24Sthorpej# specialized DMA glue
1681.24Sthorpejledma0	at sbus0 slot ? offset ?			# sun4m on-board
1691.25Spkle0	at ledma0					#
1701.25Spk
1711.25Spk# Additional SBus LANCE devices - glued on by lebuffer (not yet implemented)
1721.25Spk#lebuffer*	at sbus0 slot ? offset ?		# sun4m SBus
1731.25Spk#le*	at lebuffer?					#
1741.24Sthorpej
1751.24Sthorpej# sun4/300 and sun4c Ethernet - an AMD 7990 LANCE
1761.24Sthorpejle0	at sbus0 slot ? offset ?			# sun4c on-board
1771.1Sderaadtle*	at sbus? slot ? offset ?
1781.1Sderaadt
1791.24Sthorpejle0	at obio0 addr 0xf9000000 level 6		# sun4/300
1801.24Sthorpej
1811.24Sthorpej# sun4/100 and sun4/200 Ethernet - an Intel 82586 on-board
1821.24Sthorpej# or on a Multibus/VME card.
1831.24Sthorpejie0	at obio0 addr 0xf6000000 level 6		# sun4/200 on-board
1841.24Sthorpejie0	at obio0 addr 0x06000000 level 6		# sun4/100 on-board
1851.23Spk
1861.3Sderaadtie1	at vmes0 addr 0xffe88000 level 5 vect 0x75
1871.3Sderaadtie2	at vmes0 addr 0xff31ff02 level 5 vect 0x76
1881.3Sderaadtie3	at vmes0 addr 0xff35ff02 level 5 vect 0x77
1891.3Sderaadtie4	at vmes0 addr 0xff2dff02 level 5 vect 0x7c
1901.9Spk
1911.24Sthorpej# Xylogics 753 or 7053 VME SMD disk controllers and disks, found
1921.24Sthorpej# on sun4 systems.
1931.9Spkxdc0	at vmel0 addr 0xffffee80 level 3 vect 0x44
1941.9Spkxdc1	at vmel0 addr 0xffffee90 level 3 vect 0x45
1951.9Spkxdc2	at vmel0 addr 0xffffeea0 level 3 vect 0x46
1961.9Spkxdc3	at vmel0 addr 0xffffeeb0 level 3 vect 0x47
1971.9Spkxd*	at xdc? drive ?
1981.16Schuck
1991.24Sthorpej# Xylogics 451 or 451 VME SMD disk controllers and disks, found
2001.24Sthorpej# on sun4 systems.
2011.16Schuckxyc0	at vmes0 addr 0xffffee40 level 3 vect 0x48
2021.16Schuckxyc1	at vmes0 addr 0xffffee48 level 3 vect 0x49
2031.16Schuckxy*	at xyc? drive ?
2041.10Spk
2051.24Sthorpej# NCR5380-based "Sun SCSI 3" VME SCSI controller.
2061.24Sthorpej# This driver has several flags which may be enabled by OR'ing
2071.24Sthorpej# the values and using the "flags" directive.
2081.24Sthorpej# Valid flags are:
2091.24Sthorpej#
2101.24Sthorpej#	0x01		Use DMA (may be polled)
2111.24Sthorpej#	0x02		Use DMA completion interrupts
2121.24Sthorpej#	0x04		Allow disconnect/reselect
2131.24Sthorpej#
2141.24Sthorpej# E.g. the following would enable DMA, interrupts, and reselect:
2151.24Sthorpej# si0	at vmes0 addr 0xff200000 level 3 vect 0x40 flags 0x07
2161.24Sthorpej#
2171.24Sthorpej# By default, DMA is enabled in the driver.
2181.20Sthorpejsi0	at vmes0 addr 0xff200000 level 3 vect 0x40
2191.24Sthorpej
2201.24Sthorpej# NCR5380-based "SCSI Weird" on-board SCSI interface found
2211.24Sthorpej# on sun4/100 systems.  The flags are the same as the "si"
2221.24Sthorpej# controller.  Note, while DMA is enabled by default, only
2231.24Sthorpej# polled DMA works at this time, and reselects do not work
2241.24Sthorpej# on this particular controller.
2251.20Sthorpejsw0	at obio0 addr 0x0a000000 level 3
2261.1Sderaadt
2271.24Sthorpej# Sun "bwtwo" black and white framebuffer, found on sun4, sun4c, and sun4m
2281.24Sthorpej# systems.  If your sun4 system has a cgfour installed in the P4 slot,
2291.24Sthorpej# the P4 entries for "bwtwo" will attach to the overlay plane of the
2301.24Sthorpej# "cgfour".
2311.24Sthorpejbwtwo0	at sbus0 slot ? offset ?		# sun4c on-board
2321.24Sthorpejbwtwo*	at sbus? slot ? offset ?		# sun4c and sun4m
2331.24Sthorpejbwtwo0	at obio0 addr 0xfd000000 level 4	# sun4/200
2341.24Sthorpejbwtwo0	at obio0 addr 0xfb300000 level 4	# sun4/300 in P4 slot
2351.24Sthorpejbwtwo0	at obio0 addr 0x0b300000 level 4	# sun4/100 in P4 slot
2361.21Sthorpej
2371.24Sthorpej# Sun "cgtwo" VME color framebuffer
2381.17Spkcgtwo0	at vmes0 addr 0xff400000 level 4 vect 0xa8
2391.21Sthorpej
2401.24Sthorpej# Sun "cgthree" Sbus color framebuffer
2411.1Sderaadtcgthree0 at sbus? slot ? offset ?
2421.1Sderaadtcgthree* at sbus? slot ? offset ?
2431.23Spk#cgthree0 at obio? slot ? offset ?		# sun4m
2441.23Spk#cgthree* at obio? slot ? offset ?		# sun4m
2451.21Sthorpej
2461.24Sthorpej# Sun "cgfour" color framebuffer with overlay plane.  See above comment
2471.24Sthorpej# regarding overlay plane.
2481.24Sthorpejcgfour0	at obio0 addr 0xfb300000 level 4	# sun4/300 P4
2491.24Sthorpejcgfour0	at obio0 addr 0x0b300000 level 4	# sun4/100 P4
2501.21Sthorpej
2511.24Sthorpej# Sun "cgsix" accelerated color framebuffer.
2521.21Sthorpejcgsix0	at sbus? slot ? offset ?
2531.21Sthorpejcgsix*	at sbus? slot ? offset ?
2541.24Sthorpejcgsix0	at obio0 addr 0xfb000000 level 4	# sun4/300 P4
2551.24Sthorpejcgsix0	at obio0 addr 0x0b000000 level 4	# sun4/100 P4
2561.21Sthorpej
2571.24Sthorpej# Sun "cgeight" 24-bit framebuffer
2581.24Sthorpejcgeight0 at obio0 addr 0xfb300000 level 4	# sun4/300 P4
2591.24Sthorpejcgeight0 at obio0 addr 0x0b300000 level 4	# sun4/100 P4
2601.29Spk
2611.29Spk# Sun "tcx" accelerated color framebuffer.
2621.29Spktcx0	at sbus? slot ? offset ?
2631.29Spktcx*	at sbus? slot ? offset ?
2641.1Sderaadt
2651.24Sthorpej# SCSI bus layer.  SCSI devices attach to the SCSI bus, which attaches
2661.24Sthorpej# to the underlying hardware controller.
2671.1Sderaadtscsibus* at esp?
2681.13Spkscsibus* at si?
2691.13Spkscsibus* at sw?
2701.1Sderaadt
2711.24Sthorpej# These entries find devices on all SCSI busses and assign
2721.24Sthorpej# unit numers dynamically.
2731.31Smrg# Map the SCSI disk at targets 3120 to units 0123, a'la SunOS.
2741.31Smrgsd0	at scsibus? target 3 lun ?		# first SCSI disk
2751.31Smrgsd1	at scsibus? target 1 lun ?		# second SCSI disk
2761.31Smrgsd2	at scsibus? target 2 lun ?		# third SCSI disk
2771.31Smrgsd3	at scsibus? target 0 lun ?		# fourth SCSI disk
2781.31Smrgsd*	at scsibus? target ? lun ?		# more SCSI disks
2791.24Sthorpejst*	at scsibus? target ? lun ?		# SCSI tapes
2801.24Sthorpejcd*	at scsibus? target ? lun ?		# SCSI CD-ROMs
2811.24Sthorpejch*	at scsibus? target ? lun ?		# SCSI changer devices
2821.24Sthorpej
2831.24Sthorpej# Floppy controller and drive found on SPARCstations.
2841.24Sthorpejfdc0	at mainbus0				# sun4c controller
2851.24Sthorpejfdc0	at obio0				# sun4m controller
2861.24Sthorpejfd*	at fdc0					# the drive itself
2871.24Sthorpej
2881.24Sthorpejpseudo-device	loop		# loopback interface; required
2891.24Sthorpejpseudo-device	pty	32	# pseudo-ttys (for network, etc.)
2901.24Sthorpejpseudo-device	sl	2	# SLIP interfaces
2911.24Sthorpejpseudo-device	kbd		# Sun keyboard
2921.24Sthorpejpseudo-device	ppp	2	# PPP interfaces
2931.24Sthorpejpseudo-device	tun	4	# Network "tunnel" device
2941.24Sthorpejpseudo-device	bpfilter 16	# Berkeley Packet Filter
2951.24Sthorpejpseudo-device	vnd	4	# disk-like interface to files
2961.24Sthorpejpseudo-device	ccd	4	# concatenated and striped disks
2971.28Spk#pseudo-device	strip	1	# radio clock
298