GENERIC.in revision 1.108
1#
2#	$NetBSD: GENERIC.in,v 1.108 2014/08/23 20:26:56 dholland Exp $
3#
4# Generic atari
5#
6# Note: We have size targets for gzipped kernels:
7# - ATARITT and FALCON - 1.44M floppy
8# - SMALL030 - 720K (or worst case 800K) floppy
9
10#if defined(TT030_KERNEL) || defined(FALCON_KERNEL)
11include "arch/atari/conf/std.atari"
12#elif defined (HADES_KERNEL)
13include "arch/atari/conf/std.hades"
14#elif defined (MILAN_KERNEL)
15include "arch/atari/conf/std.milan"
16#endif /* TT030_KERNEL / FALCON_KERNEL / HADES_KERNEL / MILAN_KERNEL */
17
18#if !defined(SMALL030_KERNEL)
19options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
20#endif /* !SMALL030_KERNEL */
21
22#if !defined(SMALL030_KERNEL)
23makeoptions	COPTS="-O2 -fno-reorder-blocks"	# see share/mk/sys.mk
24#else
25makeoptions	COPTS="-Os"			# optimize for space
26#endif /* !SMALL030_KERNEL */
27
28#if defined(SMALL030_KERNEL) || \
29  (!defined(TT030_KERNEL) && !defined(HADES_KERNEL) && !defined(MILAN_KERNEL))
30#define       NO_PHYS_NETWORK 1
31#endif /* SMALL030_KERNEL || ... */
32
33#
34# Add support for about 16 users. This variable is used to size
35# various kernel structures.
36#
37maxusers	16
38
39options 	HZ=64		# Set the clock-rate (48/64/96)
40
41# Standard system options
42options 	INSECURE	# disable kernel security levels
43#options 	NTP		# NTP phase/frequency locked loop
44
45# Enable experimental buffer queue strategy for better responsiveness under 
46# high disk I/O load. Use it with caution - it's not proven to be stable yet.
47#options 	BUFQ_READPRIO
48#options 	BUFQ_PRIOCSCAN
49
50#
51# (Co)processors this kernel should support
52#
53#if defined(TT030_KERNEL) || defined(FALCON_KERNEL)
54options 	M68030		# support for 030
55#endif /* TT030_KERNEL || FALCON_KERNEL */
56#if defined(FALCON_KERNEL)
57options 	FPU_EMULATE	# Support for MC68881/MC68882 emulator
58#endif /* FALCON_KERNEL */
59#if (defined(FALCON_KERNEL) && !defined(SMALL030_KERNEL)) || \
60	defined(HADES_KERNEL) || defined(MILAN_KERNEL)
61options 	M68040		# support for 040
62options 	M68060		# support for 060
63options 	FPSP		# 68040 Floatingpoint support
64options 	M060SP		# MC68060 software support (Required for 060)
65#endif /* ! FALCON_KERNEL & ! SMALL030_KERNEL ... */
66
67#
68# Networking options
69#
70options 	INET		# IP + ICMP + TCP + UDP
71
72#if !defined(SMALL030_KERNEL)
73options 	INET6		# IPV6
74#options 	IPSEC		# IP security
75#options 	IPSEC_DEBUG	# debug for IP security
76#options 	GATEWAY		# packet forwarding
77#options 	MROUTING	# IP multicast routing
78#options 	PIM		# Protocol Independent Multicast
79#if !defined(NO_PHYS_NETWORK)
80#options 	NETATALK	# AppleTalk networking protocols
81#endif /* NO_PHYS_NETWORK */
82
83options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
84options 	PPP_DEFLATE	# Deflate compression support for PPP
85options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
86
87options 	IPFILTER_LOG	# ipmon(8) log support
88options 	IPFILTER_LOOKUP	# ippool(8) support
89options 	IPFILTER_COMPAT # Compat for IP-Filter
90#options  	IPFILTER_DEFAULT_BLOCK	# block packages by default
91
92#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
93
94#options 	ALTQ		# Manipulate network interfaces' output queues
95#options 	ALTQ_BLUE	# Stochastic Fair Blue
96#options 	ALTQ_CBQ	# Class-Based Queueing
97#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
98#options 	ALTQ_FIFOQ	# First-In First-Out Queue
99#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
100#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
101#options 	ALTQ_LOCALQ	# Local queueing discipline
102#options 	ALTQ_PRIQ	# Priority Queueing
103#options 	ALTQ_RED	# Random Early Detection
104#options 	ALTQ_RIO	# RED with IN/OUT
105#options 	ALTQ_WFQ	# Weighted Fair Queueing
106#endif /* !SMALL030_KERNEL */
107
108# File systems
109file-system 	FFS		# Berkeley fast file system
110file-system 	MFS		# Memory based filesystem
111file-system 	MSDOSFS		# MSDOS filesystem
112file-system 	CD9660		# ISO 9660 filesystem with Rock Ridge
113#file-system	UDF		# experimental - OSTA UDF CD/DVD file-system
114
115#if !defined(SMALL030_KERNEL)
116file-system 	KERNFS		# Kernel parameter filesystem
117file-system 	NFS		# Network File System client side code
118file-system 	PROCFS		# Process filesystem
119file-system 	FDESC		# /dev/fd
120file-system 	NULLFS		# Loopback filesystem
121file-system 	OVERLAY		# overlay filesystem
122file-system 	UNION		# union file system
123file-system 	UMAPFS		# null file system (with uid & gid remapping)
124file-system	PUFFS		# Userspace file systems (e.g. ntfs-3g & sshfs)
125file-system 	EXT2FS		# second extended file system (linux)
126#file-system 	LFS		# log-structured file system
127file-system	PTYFS		# /dev/pts/N support
128file-system	TMPFS		# Efficient memory file-system
129#endif /* !SMALL030_KERNEL */
130
131# File system options
132options 	WAPBL		# File system journaling support
133#if !defined(SMALL030_KERNEL)
134#options 	QUOTA		# legacy UFS quotas
135#options 	QUOTA2		# new, in-filesystem UFS quotas
136#options 	FFS_EI		# FFS Endian Independent support
137#options	UFS_DIRHASH	# UFS Large Directory Hashing - Experimental
138options 	NFSSERVER	# Network File System server side code
139#options 	EXT2FS_SYSTEM_FLAGS	# makes ext2fs file flags (append and
140				# immutable) behave as system flags.
141#endif /* !SMALL030_KERNEL */
142
143#
144# Misc. debugging options
145#
146options 	PANICWAIT	# Require keystroke to dump/reboot
147#if !defined(SMALL030_KERNEL)
148options 	DDB		# Kernel debugger
149options 	DDB_HISTORY_SIZE=100	# Enable history editing in DDB
150#options 	DEBUG		# expensive debugging checks/support
151#endif /* !SMALL030_KERNEL */
152
153#
154# Compatibility options for various existing systems
155#
156#if !defined(SMALL030_KERNEL)
157options 	COMPAT_43	# 4.3 BSD compatible system calls
158options 	COMPAT_10	# NetBSD 1.0,
159options 	COMPAT_11	# NetBSD 1.1,
160options 	COMPAT_12	# NetBSD 1.2,
161options 	COMPAT_13	# NetBSD 1.3,
162options 	COMPAT_14	# NetBSD 1.4,
163options 	COMPAT_15	# NetBSD 1.5,
164#endif /* !SMALL030_KERNEL */
165options 	COMPAT_16	# NetBSD 1.6,
166options 	COMPAT_20	# NetBSD 2.0,
167options 	COMPAT_30	# NetBSD 3.0,
168options 	COMPAT_40	# NetBSD 4.0,
169options 	COMPAT_50	# NetBSD 5.0,
170options 	COMPAT_60	# NetBSD 6.0, and
171options 	COMPAT_70	# NetBSD 7.0 binary compatibility.
172#if !defined(SMALL030_KERNEL)
173#options 	COMPAT_09	# has no meaning on the atari
174#options 	COMPAT_SUNOS	# Support to run Sun-3 executables
175#options 	COMPAT_SVR4	# Support to run SVR4 executables
176#options 	COMPAT_LINUX	# Support to run Linux/m68k executables
177#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
178options 	COMPAT_AOUT_M68K # Compatibility to a.out executables
179options 	EXEC_AOUT	# a.out format executables
180#endif /* !SMALL030_KERNEL */
181options		COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.
182
183#if !defined(SMALL030_KERNEL)
184#
185# Support for System V IPC facilities.
186#
187options 	SYSVSHM			# System V shared memory
188options 	SYSVMSG			# System V messages
189options 	SYSVSEM			# System V semaphores
190#endif /* !SMALL030_KERNEL */
191
192#if !defined(SMALL030_KERNEL)
193#
194# Support for various kernel options
195#
196options 	KTRACE			# Add kernel tracing system call
197#options 	DIAGNOSTIC		# Add additional error checking code
198options 	USERCONF		# userconf(4) support
199#options	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
200options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
201#else /* SMALL030_KERNEL */
202options		PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
203#endif /* !SMALL030_KERNEL */
204
205# These options enable verbose messages for several subsystems.
206# Warning, these may compile large string tables into the kernel!
207#if !defined(SMALL030_KERNEL)
208options 	SCSIVERBOSE		# human readable SCSI error messages
209#endif /* !SMALL030_KERNEL */
210#if defined(HADES_KERNEL) || defined(MILAN_KERNEL)
211options 	MIIVERBOSE		# verbose PHY autoconfig messages
212#options 	PCIVERBOSE		# verbose PCI device autoconfig messages
213#options 	PCI_CONFIG_DUMP		# verbosely dump PCI config space
214#endif
215
216#
217# Atari specific options
218#
219#options 	KFONT_8x8		# Use 8x8 font instead of 8x16
220options 	ST_POOL_SIZE=24		# smallest that allows TT-HIGH
221#if defined(TT030_KERNEL) || defined(HADES_KERNEL)
222options 	TT_SCSI			# SCSI-support for TT
223options 	TT_VIDEO		# Graphics support for TT
224#options	ET4000_HAS_2MB_MEM	# et4000 with 2 MB video memory
225#endif
226#if defined(FALCON_KERNEL)
227options 	FALCON_SCSI		# SCSI-support for Falcon
228options 	FALCON_VIDEO		# Graphics support for FALCON
229#endif /* FALCON_KERNEL */
230options 	MEMORY_DISK_HOOKS	# Boot RAM-disk
231options 	DISKLABEL_NBDA		# NetBSD disklabels (required)
232options 	DISKLABEL_AHDI		# NetBSD/AHDI disklabels
233#if !defined(SMALL030_KERNEL)
234#if !defined(FALCON_KERNEL)
235#options 	SERCONSOLE		# modem1 console support, breaks Falcon
236#endif /* !FALCON_KERNEL */
237options 	RELOC_KERNEL		# TT/Falcon: relocate kernel to TT-RAM
238options 	MSGBUFSIZE=32768        # size of kernel msg. buffer
239#options 	STATCLOCK	        # Separate {stat,prof}clock
240#endif /* !SMALL030_KERNEL */
241
242#if !defined(SMALL030_KERNEL)
243# Try linked commands on all targets
244options 	TRY_SCSI_LINKED_COMMANDS=0x7f
245#endif /* !SMALL030_KERNEL */
246
247#
248# Build one kernel that can boot from any disk.
249#
250config		netbsd root on ? type ?
251
252pseudo-device	sl			# Slip
253#if !defined(SMALL030_KERNEL)
254pseudo-device	ppp			# ppp
255#endif /* !SMALL030_KERNEL */
256#if !defined(NO_PHYS_NETWORK)
257pseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
258#endif /* NO_PHYS_NETWORK */
259pseudo-device	pty			# pseudo-terminals
260pseudo-device	loop			# Loopback network
261#options 	VND_COMPRESSION		# compressed vnd(4)
262pseudo-device	md			# Boot memory disk
263pseudo-device	putter			# for puffs and pud
264
265#if !defined(SMALL030_KERNEL)
266pseudo-device	vnd			# 3 pseudo disks (see vnconfig)
267pseudo-device	bpfilter		# berkeley packet filters
268#pseudo-device	carp			# Common Address Redundancy Protocol
269pseudo-device	tun			# network tunnel
270pseudo-device	tap			# virtual Ethernet
271#pseudo-device	gre			# generic L3 over IP tunnel
272pseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC1933)
273#pseudo-device	faith			# IPv[46] tcp relay translation i/f
274pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
275#if !defined(NO_PHYS_NETWORK)
276#pseudo-device	vlan			# IEEE 802.1q encapsulation
277#pseudo-device	bridge			# simple inter-network bridging
278#pseudo-device	agr			# IEEE 802.3ad link aggregation
279#endif /* NO_PHYS_NETWORK */
280pseudo-device	ccd			# concatenating disk driver
281#pseudo-device	cgd			# cryptographic disk driver
282#pseudo-device	raid			# RAIDframe disk driver
283#options 	RAID_AUTOCONFIG		# auto-configuration of RAID components
284# Options to enable various other RAIDframe RAID types.
285# options	RF_INCLUDE_EVENODD=1
286# options	RF_INCLUDE_RAID5_RS=1
287# options	RF_INCLUDE_PARITYLOGGING=1
288# options	RF_INCLUDE_CHAINDECLUSTER=1
289# options	RF_INCLUDE_INTERDECLUSTER=1
290# options 	RF_INCLUDE_PARITY_DECLUSTERING=1
291# options	RF_INCLUDE_PARITY_DECLUSTERING_DS=1
292pseudo-device	fss			# file system snapshot device
293pseudo-device	ipfilter		# IP filtering device
294pseudo-device	clockctl		# user control of clock subsystem
295pseudo-device	ksyms			# /dev/ksyms
296#pseudo-device	pf			# PF packet filter
297#pseudo-device	pflog			# PF log if
298#endif /* !SMALL030_KERNEL */
299
300#if defined(HADES_KERNEL) || defined(MILAN_KERNEL)
301
302# MII/PHY support
303exphy*	at mii? phy ?			# 3Com internal PHYs
304inphy*	at mii? phy ?			# Intel 82555 PHYs
305iophy*	at mii? phy ?			# Intel 82553 PHYs
306ukphy*	at mii? phy ?			# generic unknown PHYs
307
308# PCI network interfaces
309# If unsure, check the port-atari page for tested cards.
310ep*	at pci? dev ? function ?	# 3Com 3c59x
311fxp*	at pci? dev ? function ?	# Intel EtherExpress PRO 10+/100B
312
313
314#
315# This is the only tested audio card at the moment.
316#
317eso*	at pci? dev ? function ?	# ESS Solo-1 PCI AudioDrive
318audio*	at eso?
319
320#endif /* defined(HADES_KERNEL) || defined(MILAN_KERNEL) */
321
322#
323# Hardware options for HADES and MILAN are in their machine type specific files
324#
325
326#if defined(TT030_KERNEL) || defined(FALCON_KERNEL)
327
328pseudo-device	view	4	# View (graphics mapping)
329#if !defined (SMALL030_KERNEL)
330pseudo-device	mouse	1	# mouse
331#endif /* ! SMALL030_KERNEL */
332
333#
334# The following sections describe various hardware options.
335#
336ncrscsi0	at mainbus0	# NCR5380 SCSI driver
337zs0		at mainbus0	# Serial support through 8530
338grfbus0 	at mainbus0	# bitmapped display's
339grfcc0		at grfbus0	# graphics driver
340ite0		at grfcc0	# console
341nvr0		at mainbus0	# nvram driver
342
343#if !defined(SMALL030_KERNEL)
344grfcc1		at grfbus0	# 2nd graphics driver
345ite1		at grfcc1	# 2nd tty
346grfcc2		at grfbus0	# 3rd graphics driver
347ite2		at grfcc2	# 3rd tty
348lp0		at mainbus0	# centronics printer
349ser0		at mainbus0	# UART on first 68901 (ttyB0)
350ne0		at mainbus0	# EtherNEC on Atari ROM cartridge slot
351
352#if defined(TT030_KERNEL)
353avmebus0	at mainbus0	# VME bus
354vme0		at avmebus0
355le0		at vme0	irq 5	# Lance ethernet (Riebl/PAM).
356le0		at vme0 irq 4	# Lance ethernet (BVME410).
357we0		at vme0 irq 4	# SMC Elite Ultra with SMC_TT VME-ISA bridge
358et4k0		at vme0		# Crazy Dots II
359#endif /* TT030_KERNEL */
360#endif /* SMALL030_KERNEL */
361
362#if defined(FALCON_KERNEL)
363wdc0		at mainbus0	# IDE-bus
364atabus*		at wdc? channel ?
365wd*		at atabus? drive ?
366
367 # ATAPI bus support
368atapibus*	at atabus?
369
370# ATAPI devices
371cd*		at atapibus? drive ?	# ATAPI CD-ROM drives
372#endif /* FALCON_KERNEL */
373
374# SCSI devices
375scsibus* at scsi?			# SCSI bus
376sd* 	at scsibus? target ? lun ?	# SCSI disk drives
377cd* 	at scsibus? target ? lun ?	# SCSI CD-ROM drives
378#if !defined (SMALL030_KERNEL)
379st* 	at scsibus? target ? lun ?	# SCSI tape drives
380ch* 	at scsibus? target ? lun ?	# SCSI autochangers
381ss* 	at scsibus? target ? lun ?	# SCSI scanners
382se* 	at scsibus? target ? lun ?	# SCSI ethernet
383uk* 	at scsibus? target ? lun ?	# SCSI unknown
384#endif /* ! SMALL030_KERNEL */
385
386#endif /* TT030_KERNEL || FALCON_KERNEL */
387