GENERIC.in revision 1.106
1#
2#	$NetBSD: GENERIC.in,v 1.106 2014/07/05 09:28:48 tsutsui 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	# Compatibility with NetBSD 1.0
159options 	COMPAT_11	# Compatibility with NetBSD 1.1
160options 	COMPAT_12	# Compatibility with NetBSD 1.2
161options 	COMPAT_13	# Compatibility with NetBSD 1.3
162options 	COMPAT_14	# Compatibility with NetBSD 1.4
163options 	COMPAT_15	# Compatibility with NetBSD 1.5
164#endif /* !SMALL030_KERNEL */
165options 	COMPAT_16	# Compatibility with NetBSD 1.6
166options 	COMPAT_20	# Compatibility with NetBSD 2.0
167options 	COMPAT_30	# NetBSD 3.0 compatibility.
168options 	COMPAT_40	# NetBSD 4.0 compatibility.
169options 	COMPAT_50	# NetBSD 5.0 compatibility.
170options 	COMPAT_60	# NetBSD 6.0 compatibility.
171#if !defined(SMALL030_KERNEL)
172#options 	COMPAT_09	# has no meaning on the atari
173#options 	COMPAT_SUNOS	# Support to run Sun-3 executables
174#options 	COMPAT_SVR4	# Support to run SVR4 executables
175#options 	COMPAT_LINUX	# Support to run Linux/m68k executables
176#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
177options 	COMPAT_AOUT_M68K # Compatibility to a.out executables
178options 	EXEC_AOUT	# a.out format executables
179#endif /* !SMALL030_KERNEL */
180options		COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.
181
182#if !defined(SMALL030_KERNEL)
183#
184# Support for System V IPC facilities.
185#
186options 	SYSVSHM			# System V shared memory
187options 	SYSVMSG			# System V messages
188options 	SYSVSEM			# System V semaphores
189#endif /* !SMALL030_KERNEL */
190
191#if !defined(SMALL030_KERNEL)
192#
193# Support for various kernel options
194#
195options 	KTRACE			# Add kernel tracing system call
196#options 	DIAGNOSTIC		# Add additional error checking code
197options 	USERCONF		# userconf(4) support
198#options	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
199options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
200#else /* SMALL030_KERNEL */
201options		PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
202#endif /* !SMALL030_KERNEL */
203
204# These options enable verbose messages for several subsystems.
205# Warning, these may compile large string tables into the kernel!
206#if !defined(SMALL030_KERNEL)
207options 	SCSIVERBOSE		# human readable SCSI error messages
208#endif /* !SMALL030_KERNEL */
209#if defined(HADES_KERNEL) || defined(MILAN_KERNEL)
210options 	MIIVERBOSE		# verbose PHY autoconfig messages
211#options 	PCIVERBOSE		# verbose PCI device autoconfig messages
212#options 	PCI_CONFIG_DUMP		# verbosely dump PCI config space
213#endif
214
215#
216# Atari specific options
217#
218#options 	KFONT_8x8		# Use 8x8 font instead of 8x16
219options 	ST_POOL_SIZE=24		# smallest that allows TT-HIGH
220#if defined(TT030_KERNEL) || defined(HADES_KERNEL)
221options 	TT_SCSI			# SCSI-support for TT
222options 	TT_VIDEO		# Graphics support for TT
223#options	ET4000_HAS_2MB_MEM	# et4000 with 2 MB video memory
224#endif
225#if defined(FALCON_KERNEL)
226options 	FALCON_SCSI		# SCSI-support for Falcon
227options 	FALCON_VIDEO		# Graphics support for FALCON
228#endif /* FALCON_KERNEL */
229options 	MEMORY_DISK_HOOKS	# Boot RAM-disk
230options 	DISKLABEL_NBDA		# NetBSD disklabels (required)
231options 	DISKLABEL_AHDI		# NetBSD/AHDI disklabels
232#if !defined(SMALL030_KERNEL)
233#if !defined(FALCON_KERNEL)
234#options 	SERCONSOLE		# modem1 console support, breaks Falcon
235#endif /* !FALCON_KERNEL */
236options 	RELOC_KERNEL		# TT/Falcon: relocate kernel to TT-RAM
237options 	MSGBUFSIZE=32768        # size of kernel msg. buffer
238#options 	STATCLOCK	        # Separate {stat,prof}clock
239#endif /* !SMALL030_KERNEL */
240
241#if !defined(SMALL030_KERNEL)
242# Try linked commands on all targets
243options 	TRY_SCSI_LINKED_COMMANDS=0x7f
244#endif /* !SMALL030_KERNEL */
245
246#
247# Build one kernel that can boot from any disk.
248#
249config		netbsd root on ? type ?
250
251pseudo-device	sl			# Slip
252#if !defined(SMALL030_KERNEL)
253pseudo-device	ppp			# ppp
254#endif /* !SMALL030_KERNEL */
255#if !defined(NO_PHYS_NETWORK)
256pseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
257#endif /* NO_PHYS_NETWORK */
258pseudo-device	pty			# pseudo-terminals
259pseudo-device	loop			# Loopback network
260#options 	VND_COMPRESSION		# compressed vnd(4)
261pseudo-device	md			# Boot memory disk
262pseudo-device	putter			# for puffs and pud
263
264#if !defined(SMALL030_KERNEL)
265pseudo-device	vnd			# 3 pseudo disks (see vnconfig)
266pseudo-device	bpfilter		# berkeley packet filters
267#pseudo-device	carp			# Common Address Redundancy Protocol
268pseudo-device	tun			# network tunnel
269pseudo-device	tap			# virtual Ethernet
270#pseudo-device	gre			# generic L3 over IP tunnel
271pseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC1933)
272#pseudo-device	faith			# IPv[46] tcp relay translation i/f
273pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
274#if !defined(NO_PHYS_NETWORK)
275#pseudo-device	vlan			# IEEE 802.1q encapsulation
276#pseudo-device	bridge			# simple inter-network bridging
277#pseudo-device	agr			# IEEE 802.3ad link aggregation
278#endif /* NO_PHYS_NETWORK */
279pseudo-device	ccd			# concatenating disk driver
280#pseudo-device	cgd			# cryptographic disk driver
281#pseudo-device	raid			# RAIDframe disk driver
282#options 	RAID_AUTOCONFIG		# auto-configuration of RAID components
283# Options to enable various other RAIDframe RAID types.
284# options	RF_INCLUDE_EVENODD=1
285# options	RF_INCLUDE_RAID5_RS=1
286# options	RF_INCLUDE_PARITYLOGGING=1
287# options	RF_INCLUDE_CHAINDECLUSTER=1
288# options	RF_INCLUDE_INTERDECLUSTER=1
289# options 	RF_INCLUDE_PARITY_DECLUSTERING=1
290# options	RF_INCLUDE_PARITY_DECLUSTERING_DS=1
291pseudo-device	fss			# file system snapshot device
292pseudo-device	ipfilter		# IP filtering device
293pseudo-device	clockctl		# user control of clock subsystem
294pseudo-device	ksyms			# /dev/ksyms
295#pseudo-device	pf			# PF packet filter
296#pseudo-device	pflog			# PF log if
297#endif /* !SMALL030_KERNEL */
298
299#if defined(HADES_KERNEL) || defined(MILAN_KERNEL)
300
301# MII/PHY support
302exphy*	at mii? phy ?			# 3Com internal PHYs
303inphy*	at mii? phy ?			# Intel 82555 PHYs
304iophy*	at mii? phy ?			# Intel 82553 PHYs
305ukphy*	at mii? phy ?			# generic unknown PHYs
306
307# PCI network interfaces
308# If unsure, check the port-atari page for tested cards.
309ep*	at pci? dev ? function ?	# 3Com 3c59x
310fxp*	at pci? dev ? function ?	# Intel EtherExpress PRO 10+/100B
311
312
313#
314# This is the only tested audio card at the moment.
315#
316eso*	at pci? dev ? function ?	# ESS Solo-1 PCI AudioDrive
317audio*	at eso?
318
319#endif /* defined(HADES_KERNEL) || defined(MILAN_KERNEL) */
320
321#
322# Hardware options for HADES and MILAN are in their machine type specific files
323#
324
325#if defined(TT030_KERNEL) || defined(FALCON_KERNEL)
326
327pseudo-device	view	4	# View (graphics mapping)
328#if !defined (SMALL030_KERNEL)
329pseudo-device	mouse	1	# mouse
330#endif /* ! SMALL030_KERNEL */
331
332#
333# The following sections describe various hardware options.
334#
335ncrscsi0	at mainbus0	# NCR5380 SCSI driver
336zs0		at mainbus0	# Serial support through 8530
337grfbus0 	at mainbus0	# bitmapped display's
338grfcc0		at grfbus0	# graphics driver
339ite0		at grfcc0	# console
340nvr0		at mainbus0	# nvram driver
341
342#if !defined(SMALL030_KERNEL)
343grfcc1		at grfbus0	# 2nd graphics driver
344ite1		at grfcc1	# 2nd tty
345grfcc2		at grfbus0	# 3rd graphics driver
346ite2		at grfcc2	# 3rd tty
347lp0		at mainbus0	# centronics printer
348ser0		at mainbus0	# UART on first 68901 (ttyB0)
349ne0		at mainbus0	# EtherNEC on Atari ROM cartridge slot
350
351#if defined(TT030_KERNEL)
352avmebus0	at mainbus0	# VME bus
353vme0		at avmebus0
354le0		at vme0	irq 5	# Lance ethernet (Riebl/PAM).
355le0		at vme0 irq 4	# Lance ethernet (BVME410).
356we0		at vme0 irq 4	# SMC Elite Ultra with SMC_TT VME-ISA bridge
357et4k0		at vme0		# Crazy Dots II
358#endif /* TT030_KERNEL */
359#endif /* SMALL030_KERNEL */
360
361#if defined(FALCON_KERNEL)
362wdc0		at mainbus0	# IDE-bus
363atabus*		at wdc? channel ?
364wd*		at atabus? drive ?
365
366 # ATAPI bus support
367atapibus*	at atabus?
368
369# ATAPI devices
370cd*		at atapibus? drive ?	# ATAPI CD-ROM drives
371#endif /* FALCON_KERNEL */
372
373# SCSI devices
374scsibus* at scsi?			# SCSI bus
375sd* 	at scsibus? target ? lun ?	# SCSI disk drives
376cd* 	at scsibus? target ? lun ?	# SCSI CD-ROM drives
377#if !defined (SMALL030_KERNEL)
378st* 	at scsibus? target ? lun ?	# SCSI tape drives
379ch* 	at scsibus? target ? lun ?	# SCSI autochangers
380ss* 	at scsibus? target ? lun ?	# SCSI scanners
381se* 	at scsibus? target ? lun ?	# SCSI ethernet
382uk* 	at scsibus? target ? lun ?	# SCSI unknown
383#endif /* ! SMALL030_KERNEL */
384
385#endif /* TT030_KERNEL || FALCON_KERNEL */
386