# SUN350 machine description file
#
# This will work on a Sun 3/50. Problem is to keep the kernel small
# enough to fit in the first MB of RAM and not disrupt video memory.

# Standard information for Sun3 machines.
machine	sun3 m68k

# Machine type to be supported by this kernel.  Note:
# The SUN3 and SUN3X options are mutually exclusive!
# (Your kernel will only run on one or the other.)
makeoptions	MACHTYPE=sun3
options 	_SUN3_
options 	M68020

# The root node (required)
mainbus0 at root

# Standard defines
options 	EXEC_ELF32, EXEC_SCRIPT

makeoptions	COPTS="-Os"	# Optimise for space. Implies -O2

options 	FPU_EMULATE

# Needs to be set per system.  i.e change these as you see fit
maxusers	2

# Standard system options
options 	SYSVMSG		# System V message queues
options 	SYSVSEM		# System V semaphores
options 	SYSVSHM		# System V shared memory
options 	INSECURE	# disable kernel security level
options		PIPE_SOCKETPAIR	# smaller, but slower pipe(2)

# Filesystem options
file-system	FFS		# Berkeley Fast Filesystem
file-system	NFS		# Sun NFS client support
file-system	KERNFS		# /kern
options 	SOFTDEP		# FFS soft updates support.

# Networking options
options 	INET		# IP prototol stack support

# Work-around for root on slow servers (insurance...)
options 	NFS_BOOT_RWSIZE=1024
options 	NFS_BOOT_BOOTPARAM

config		netbsd root on ? type ?

# On-board I/O space (required)
obio0 at mainbus?

# Required OBIO devices
zsc0	at obio0 addr 0x000000
zsc1	at obio0 addr 0x020000
eeprom0	at obio0 addr 0x040000
clock0	at obio0 addr 0x060000
memerr0	at obio0 addr 0x080000
intreg0	at obio0 addr 0x0A0000

# On-board memory (optional)
# See frame-buffers
obmem0 at mainbus?

# Serial ports
zstty0	at zsc1 channel 0	# ttya

kbd0	at zsc0 channel 0	# keyboard
ms0	at zsc0 channel 1	# mouse

# Network devices
# Lance Ethernet (only onboard)
le0 at obio0 addr 0x120000 ipl 3
# All Sun3 machines with an "le" (3/50, 3/60) should be
# presumed to have the old, buggy LANCE chip. (Rev. C)
options 	LANCE_REVC_BUG

# Disk and tape devices
si0 at obio0 addr 0x140000 ipl 2
bwtwo0 at obmem0 addr 0x00100000 flags 2	# 3/50

# SCSI infrastructure
scsibus* at scsi?
sd* at scsibus? target ? lun ?		# SCSI disks
st* at scsibus? target ? lun ?		# SCSI tapes

# Misc.
pseudo-device	loop		1	# network loopback
pseudo-device	pty			# pseudo-terminals
pseudo-device	clockctl		# user control of clock subsystem
