GENERIC revision 1.178 1 # $NetBSD: GENERIC,v 1.178 2014/11/12 10:47:24 manu Exp $
2 #
3 # GENERIC machine description file
4 #
5 # This machine description file is used to generate the default NetBSD
6 # kernel. The generic kernel does not include all options, subsystems
7 # and device drivers, but should be useful for most applications.
8 #
9 # The machine description file can be customised for your specific
10 # machine to reduce the kernel size and improve its performance.
11 #
12 # For further information on compiling NetBSD kernels, see the config(8)
13 # man page.
14 #
15 # For further information on hardware support for this architecture, see
16 # the intro(4) man page. For further information about kernel options
17 # for this architecture, see the options(4) man page. For an explanation
18 # of each device driver in this file see the section 4 man page for the
19 # device.
20
21 include "arch/x68k/conf/std.x68k"
22
23 options INCLUDE_CONFIG_FILE # embed config file in kernel binary
24
25 #ident "GENERIC-$Revision: 1.178 $"
26
27 makeoptions COPTS="-O2 -fno-reorder-blocks" # see share/mk/sys.mk
28
29 maxusers 8
30
31 ## System kernel configuration. See options(4) for more detail.
32
33
34 ## Options for variants of the m68k MPU
35 ## you must have at least the correct one; REQUIRED
36 options M68030
37 options M68040
38 options M68060
39 ## If you want an optimized kernel for a specific processor, use either:
40 #makeoptions CMACHFLAGS="-m68030"
41 #makeoptions CMACHFLAGS="-m68040 -Wa,-m68030 -Wa,-m68851"
42 #makeoptions CMACHFLAGS="-m68060 -Wa,-m68030 -Wa,-m68851"
43
44
45 #### System options specific to the x68k port
46
47 options EXTENDED_MEMORY # support for >16MB memory
48 options FPU_EMULATE # software fpu emulation for MC68030
49 options FPSP # floating point emulation for MC68040
50 options M060SP # int/fp emulation for MC68060
51 #options JUPITER # support for "Jupiter-X" accelerator
52 #options MAPPEDCOPY # use page mapping for large copyin/copyout
53 #options ZSCONSOLE,ZSCN_SPEED="9600" # use serial console
54
55
56 #### System options that are the same for all ports
57
58 ## Root device configuration: change the ?'s if you are going to use a
59 ## nonstandard root partition (other than where the kernel is booted from)
60 ## and/or nonstandard root type (not ffs or nfs). Normally this can be
61 ## automagically determined at boot time.
62
63 config netbsd root on ? type ?
64 #config netbsd root on sd0 type ffs
65
66 ## RTC is offset from GMT; -540 means JST-9
67 options RTC_OFFSET=-540 # hardware clock is this many mins. west of GMT
68
69 ## System call tracing (see ktrace(1)).
70 options KTRACE
71
72 ## Collect statistics on kernel malloc's and free's. This does have a
73 ## significant performance hit on slower machines, so it is intended for
74 ## diagnostic use only.
75 #options KMEMSTATS
76
77 ## System V compatible IPC subsystem. (msgctl(2), semctl(2), and shmctl(2))
78 options SYSVMSG # System V message queues
79 options SYSVSEM # System V semaphores
80 options SYSVSHM # System V shared memory
81
82 ## Loadable kernel module support
83 options MODULAR # new style module(7) framework
84 options MODULAR_DEFAULT_AUTOLOAD
85
86 options USERCONF # userconf(4) support
87 #options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
88 options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
89
90 # Enable experimental buffer queue strategy for better responsiveness under
91 # high disk I/O load. Use it with caution - it's not proven to be stable yet.
92 #options BUFQ_READPRIO
93 #options BUFQ_PRIOCSCAN
94
95 ## NFS boot options; not supported currently: needs nfsboot program
96 #options NFS_BOOT_BOOTPARAM
97 #options NFS_BOOT_BOOTP
98 options NFS_BOOT_DHCP
99
100 #### Debugging options
101
102 ## The DDB in-kernel debugger runs at panic (unless DDB_ONPANIC=0), or at
103 ## serial console break or keyboard reset, where the PROM would normally
104 ## intercept. DDB_HISTORY_SIZE adds up/down arrow command history.
105 options DDB # kernel dynamic debugger
106 #options DDB_HISTORY_SIZE=100 # enable history editing in DDB
107 #options DDB_ONPANIC=1 # see also sysctl(7): `ddb.onpanic'
108 #options PANICBUTTON # interrupt switch invokes DDB
109
110 ## You may also use gdb, on another computer connected to this machine over
111 ## a serial port. Both KGDB_DEV and KGDB_DEVRATE should be specified;
112 ## KGDB_DEV is a dev_t encoded device number of the serial port to use.
113 ## KGDB is not supported for now.
114 #options KGDB # support for kernel gdb
115 #options KGDB_DEV=0xc00 # kgdb device number
116 #options KGDB_DEVRATE=9600 # baud rate
117
118 ## Compile the kernel with debugging symbols (`netbsd.gdb' is the debug file),
119 ## such that gdb(1) can be used on a kernel coredump.
120
121 #makeoptions DEBUG="-g"
122
123 ## Adds code to the kernel that does internal consistency checks, and will
124 ## cause the kernel to panic if corruption of internal data structures
125 ## is detected.
126 #options DIAGNOSTIC # extra kernel sanity checking
127
128 ## Enable (possibly expensive) debugging code that may also display messages
129 ## on the system console
130 #options DEBUG
131
132 ## These options enable verbose messages for several subsystems.
133 ## Warning, these may compile large string tables into the kernel!
134 #options SCSIVERBOSE # human readable SCSI error messages
135 #options USBVERBOSE # verbose USB device autoconfig messages
136
137 ## `INSECURE' turns off the kernel security level (securelevel = 0 always).
138 ## This allows writing to /dev/mem, loading kernel modules while multi-user,
139 ## and other insecurities good only for development work. Do not use this
140 ## option on a production machine.
141 #options INSECURE
142
143 ## `FDSCRIPTS' allows non-readable but executable scripts by providing a
144 ## pre-opened opaque file to the script interpreter. `SETUIDSCRIPTS',
145 ## which implies FDSCRIPTS, allows scripts to be set-user-id using the same
146 ## opaque file mechanism. Perl calls this "secure setuid scripts."
147
148 #options FDSCRIPTS
149 #options SETUIDSCRIPTS
150
151 ## Options for compatibility with previous releases foreign system binaries.
152
153 options COMPAT_43 # 4.3BSD system interfaces
154 options COMPAT_09 # NetBSD 0.9,
155 options COMPAT_10 # NetBSD 1.0,
156 options COMPAT_11 # NetBSD 1.1,
157 options COMPAT_12 # NetBSD 1.2,
158 options COMPAT_13 # NetBSD 1.3,
159 options COMPAT_14 # NetBSD 1.4,
160 options COMPAT_15 # NetBSD 1.5,
161 options COMPAT_16 # NetBSD 1.6,
162 options COMPAT_20 # NetBSD 2.0,
163 options COMPAT_30 # NetBSD 3.0,
164 options COMPAT_40 # NetBSD 4.0,
165 options COMPAT_50 # NetBSD 5.0,
166 options COMPAT_60 # NetBSD 6.0, and
167 options COMPAT_70 # NetBSD 7.0 binary compatibility.
168 options COMPAT_AOUT_M68K # compatibility with NetBSD/m68k a.out
169 #options COMPAT_M68K4K # NetBSD/m68k4k binaries
170 #options COMPAT_SUNOS # SunOS 4.x binary compatibility; broken
171 #options COMPAT_SVR4 # SVR4 binary compatibility; broken
172 #options COMPAT_LINUX # Linux/m68k binary compatibility
173 #options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended.
174 options COMPAT_BSDPTY # /dev/[pt]ty?? ptys.
175
176 ## File systems.
177 file-system FFS # Berkeley Fast Filesystem
178 file-system NFS # Sun NFS-compatible filesystem client
179 file-system KERNFS # kernel data-structure filesystem
180 file-system NULLFS # NULL layered filesystem
181 #file-system OVERLAY # overlay file system
182 file-system MFS # memory-based filesystem
183 #file-system FDESC # user file descriptor filesystem
184 #file-system UMAPFS # uid/gid remapping filesystem
185 #file-system LFS # Log-structured filesystem (experimental)
186 file-system PROCFS # /proc
187 file-system CD9660 # ISO 9660 + Rock Ridge file system
188 #file-system UNION # union file system (a little buggy)
189 file-system MSDOSFS # MS-DOS FAT filesystem(s).
190 #file-system ADOSFS # AmigaDOS filesystem
191 file-system PTYFS # /dev/pts/N support
192 file-system TMPFS # Efficient memory file-system
193 #file-system UDF # experimental - OSTA UDF CD/DVD file-system
194
195 ## File system options.
196 options NFSSERVER # Sun NFS-compatible filesystem server
197 #options QUOTA # legacy UFS quotas
198 #options QUOTA2 # new, in-filesystem UFS quotas
199 #options FFS_EI # FFS Endian Independent support
200 options WAPBL # File system journaling support
201 #options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
202 options FFS_NO_SNAPSHOT # No FFS snapshot support
203 #options UFS_EXTATTR # Extended attribute support for UFS1
204 #options UFS_EXTATTR_AUTOSTART
205 #options UFS_EXTATTR_AUTOCREATE=1024
206
207 ## Network protocol support. In most environments, INET is required.
208 options INET # IP (Internet Protocol) v4
209 options INET6 # IPV6
210 #options IPSEC # IP security
211 #options IPSEC_DEBUG # debug for IP security
212 #options GATEWAY # packet forwarding ("router switch")
213 #options MROUTING # packet forwarding of multicast packets
214 #options PIM # Protocol Independent Multicast
215 #options DIRECTED_BROADCAST # allow broadcasts through routers
216 #options NETATALK # AppleTalk (over Ethernet) protocol
217 #options NTP # Network Time Protocol in-kernel support
218 #options PPS_SYNC # Add serial line synchronization for NTP
219 #options IPFILTER_LOG # Add ipmon(8) logging for ipfilter device
220 #options IPFILTER_LOOKUP # ippool(8) support
221 #options IPFILTER_DEFAULT_BLOCK # block all packets by default
222 #options PPP_BSDCOMP # Add BSD compression to ppp device
223 #options PPP_DEFLATE # Add deflate (libz) compression to ppp device
224 #options PPP_FILTER # Add active filters for ppp (via bpf)
225 #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
226
227 #options ALTQ # Manipulate network interfaces' output queues
228 #options ALTQ_BLUE # Stochastic Fair Blue
229 #options ALTQ_CBQ # Class-Based Queueing
230 #options ALTQ_CDNR # Diffserv Traffic Conditioner
231 #options ALTQ_FIFOQ # First-In First-Out Queue
232 #options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box)
233 #options ALTQ_HFSC # Hierarchical Fair Service Curve
234 #options ALTQ_LOCALQ # Local queueing discipline
235 #options ALTQ_PRIQ # Priority Queueing
236 #options ALTQ_RED # Random Early Detection
237 #options ALTQ_RIO # RED with IN/OUT
238 #options ALTQ_WFQ # Weighted Fair Queueing
239
240
241 #### Device configurations
242
243 ## Fundamental devices; see also std.x68k
244 dmac0 at intio0 addr 0xe84000 # DMA controller
245 xel0 at intio0
246 opm0 at intio0 addr 0xe90000 # OPM: required for fdc
247
248 ## Display devices and console
249 grfbus0 at mainbus0 # bitmapped displays
250 grf0 at grfbus0 addr 0 # multiplane graphics
251 grf1 at grfbus0 addr 1 # flexible graphics
252
253 kbd0 at mfp0 # standard keyboard
254 ite0 at grf0 grfaddr 0 # internal terminal emulator
255 options ITE_KERNEL_ATTR=4 # bold for kernel messages
256 # see /sys/arch/x68k/dev/itevar.h
257
258 ## floppy disks
259 fdc0 at intio0 addr 0xe94000 intr 96 dma 0 dmaintr 100 # floppy controller
260 fd* at fdc0 unit ? # builtin floppy drives
261
262 ## SCSI devices
263 scsirom0 at intio0 addr 0xfc0000 # Built-in SCSI BIOS
264 scsirom1 at intio0 addr 0xea0020 # External SCSI BIOS
265 spc0 at scsirom0 # genuin SCSI
266 spc1 at scsirom1 # genuin SCSI
267 scsibus* at spc?
268 mha0 at scsirom1 # Mankai MK-HA1 (Mach-2)
269 scsibus* at mha0
270
271 sd* at scsibus? target ? lun ? # SCSI disks
272 cd* at scsibus? target ? lun ? # SCSI CD-ROMs
273 #st* at scsibus? target ? lun ? # SCSI tapes
274 #ss* at scsibus? target ? lun ? # SCSI scanners
275 #ch* at scsibus? target ? lun ? # SCSI changer devices
276 #uk* at scsibus? target ? lun ? # SCSI unknown devices
277
278 ## Ports
279 zsc0 at intio0 addr 0xe98000 intr 112
280 zstty0 at zsc0 channel 0 # built-in RS-232C
281 ms0 at zsc0 channel 1 # standard mouse
282 #zsc1 at intio0 addr 0xeafc00 intr 113
283 #zstty2 at zsc1 channel 0
284 #zstty3 at zsc1 channel 1
285 #zsc2 at intio0 addr 0xeafc10 intr 114
286 #zstty4 at zsc2 channel 0
287 #zstty5 at zsc2 channel 1
288 par0 at intio0 addr 0xe8c000 # Builtin printer port
289
290 sram0 at intio0 addr 0xed0000 # battery-backuped static RAM
291 pseudo-device bell # OPM bell
292
293 powsw0 at mfp0 # Front switch
294 #powsw1 at mfp0 # External power switch
295
296 com0 at intio0 addr 0xefff00 intr 240 # PSX16550, port1
297 com1 at intio0 addr 0xefff10 intr 241 # PSX16550, port2
298
299 ## Audio device
300 vs0 at intio0 addr 0xe92000 dma 3 dmaintr 106
301 audio* at vs?
302
303 ## Network interfaces
304 ne* at intio0 addr 0xece300 intr 249 # Nereid Ethernet
305 ne* at intio0 addr 0xeceb00 intr 248 # Nereid Ethernet
306 neptune0 at intio0 addr 0xece000 intr 249 # Neptune-X
307 neptune1 at intio0 addr 0xece400 intr 249 # Neptune-X at alt. addr.
308 ne* at neptune? addr 0x300 # NE2000 or clone
309
310 ## Bank memory disk
311 bmd* at intio0 addr 0xece3f0 # Nereid
312 bmd* at intio0 addr 0xecebf0 # Nereid
313
314 ## MII/PHY support for USB ethernet
315 #acphy* at mii? phy ?
316
317 ## USB Controller and Devices; Experimental
318
319 # Nereid USB controllers
320 #slhci0 at intio0 addr 0xece380 intr 251
321 #slhci1 at intio0 addr 0xeceb80 intr 250
322 #options SLHCI_DEBUG
323
324 # USB bus support
325 #usb* at slhci?
326
327 # USB Hubs
328 #uhub* at usb?
329 #uhub* at uhub? port ?
330
331 # USB HID device
332 #uhidev* at uhub? port ? configuration ? interface ?
333
334 # USB Mice; not supported wscons yet
335 #ums* at uhidev? reportid ?
336 #wsmouse* at ums? mux 0
337
338 # USB Keyboards; not supported wscons yet
339 #ukbd* at uhidev? reportid ?
340 #wskbd* at ukbd? console ? mux 1
341
342 # USB serial adapter
343 #ucycom* at uhidev? reportid ?
344
345 # USB Generic HID devices
346 #uhid* at uhidev? reportid ?
347
348 # USB Printer
349 #ulpt* at uhub? port ? configuration ? interface ?
350
351 # USB Modem
352 #umodem* at uhub? port ? configuration ?
353 #ucom* at umodem?
354
355 # Option N.V. Wireless WAN modems
356 #uhso* at uhub? port ? configuration ?
357
358 # USB Mass Storage; wd not supported
359 #umass* at uhub? port ? configuration ? interface ?
360 #atapibus* at umass?
361 #scsibus* at umass?
362 #wd* at umass?
363
364 # USB audio
365 #uaudio* at uhub? port ? configuration ?
366
367 # USB MIDI
368 #umidi* at uhub? port ? configuration ?
369
370 # USB IrDA
371 # USB-IrDA bridge spec
372 #uirda* at uhub? port ? configuration ? interface ?
373 #irframe* at uirda?
374
375 # SigmaTel STIr4200 USB/IrDA Bridge
376 #ustir* at uhub? port ?
377 #irframe* at ustir?
378
379 # USB Ethernet adapters
380 #aue* at uhub? port ? # ADMtek AN986 Pegasus based adapters
381 #axe* at uhub? port ? # ASIX AX88172 based adapters
382 #cue* at uhub? port ? # CATC USB-EL1201A based adapters
383 #kue* at uhub? port ? # Kawasaki LSI KL5KUSB101B based adapters
384 #url* at uhub? port ? # Realtek RTL8150L based adapters
385 #udav* at uhub? port ? # Davicom DM9601 based adapters
386
387 # Prolific PL2301/PL2302 host-to-host adapter
388 #upl* at uhub? port ?
389
390 # Serial adapters
391 #uftdi* at uhub? port ? # FTDI FT8U100AX serial adapter
392 #ucom* at uftdi? portno ?
393
394 #umct* at uhub? port ? # MCT USB-RS232 serial adapter
395 #ucom* at umct? portno ?
396
397 #uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter
398 #ucom* at uplcom? portno ?
399
400 #uvscom* at uhub? port ? # SUNTAC Slipper U VS-10U serial adapter
401 #ucom* at uvscom? portno ?
402
403 # Diamond Multimedia Rio 500
404 #urio* at uhub? port ?
405
406 # USB Handspring Visor
407 #uvisor* at uhub? port ?
408 #ucom* at uvisor?
409
410 # Kyocera AIR-EDGE PHONE
411 #ukyopon* at uhub? port ?
412 #ucom* at ukyopon? portno ?
413
414 # USB scanners
415 #uscanner* at uhub? port ?
416
417 # USB scanners that use SCSI emulation, e.g., HP5300
418 #usscanner* at uhub? port ?
419 #scsibus* at usscanner? channel ?
420
421 # Y@P firmware loader
422 #uyap* at uhub? port ?
423
424 # D-Link DSB-R100 USB radio
425 #udsbr* at uhub? port ?
426 #radio* at udsbr?
427
428 # USB Generic driver
429 #ugen* at uhub? port ?
430
431
432 #### Pseudo devices
433
434 #
435 # accept filters
436 #pseudo-device accf_data # "dataready" accept filter
437 #pseudo-device accf_http # "httpready" accept filter
438
439 ## A disk-like interface to files. Can be used to create floppy, CD,
440 ## miniroot images, etc.
441
442 pseudo-device vnd
443 #options VND_COMPRESSION # compressed vnd(4)
444
445 ## Concatenated and striped disks; with this, you can create a software-based
446 ## disk array similar to a "RAID 0" setup. See ccd(4).
447
448 #pseudo-device ccd
449
450 ## Cryptographic disk devices. See cgd(4).
451
452 #pseudo-device cgd
453
454 ## RAIDframe disk driver: software RAID driver. See raid(4).
455
456 pseudo-device raid
457 options RAID_AUTOCONFIG # auto-configuration of RAID components
458 # Options to enable various other RAIDframe RAID types.
459 # options RF_INCLUDE_EVENODD=1
460 # options RF_INCLUDE_RAID5_RS=1
461 # options RF_INCLUDE_PARITYLOGGING=1
462 # options RF_INCLUDE_CHAINDECLUSTER=1
463 # options RF_INCLUDE_INTERDECLUSTER=1
464 # options RF_INCLUDE_PARITY_DECLUSTERING=1
465 # options RF_INCLUDE_PARITY_DECLUSTERING_DS=1
466
467
468 ## Memory disk device, used on boot floppies with compressed
469 ## kernel-plus-root-disk images.
470
471 #pseudo-device md
472
473 ## Loopback network interface; required
474 pseudo-device loop
475
476 ## SLIP and CSLIP interfaces, for IP over a serial line.
477 pseudo-device sl
478
479 ## PPP, the successor to SLIP. See pppd(8).
480 pseudo-device ppp
481
482 ## PPP over Ethernet (RFC 2516)
483 pseudo-device pppoe
484
485 ## Network "tunnel" device, allowing protocol stacks to run in the userland.
486 ## This is used by the third-party user-mode "ppp" program, and others.
487 #pseudo-device tun
488 #pseudo-device tap # virtual Ethernet
489
490 ## Generic L3 over IP tunnel
491 #pseudo-device gre # generic L3 over IP tunnel
492
493 ## Berkeley Packet Filter, required to run RARPD. A generic C-language
494 ## interface that allows selective examining of incoming packets.
495 pseudo-device bpfilter
496
497 #pseudo-device carp # Common Address Redundancy Protocol
498
499 ## IP Filter, used in firewall and NAT applications. See ipnat(8) for
500 ## one example of the use of the IP Filter.
501 #pseudo-device ipfilter
502
503 ## for IPv6
504 pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
505 #pseudo-device faith # IPv[46] tcp relay translation i/f
506 pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
507
508 ## IEEE 802.1Q Virtual LAN encapsulation, see vlan(4).
509 pseudo-device vlan
510
511 ## Simple inter-network traffic bridging
512 pseudo-device bridge
513 #options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too
514 pseudo-device agr # IEEE 802.3ad link aggregation
515
516 #### Other device configuration
517
518 ## Pseudo ttys, required for network logins and programs like screen.
519
520 pseudo-device pty # pseudo-terminals
521
522 ## Random device, used to implement /dev/random (a source of random noise),
523 ## and generate randomness for some kernel formulae.
524
525
526 pseudo-device clockctl # user control of clock subsystem
527 pseudo-device ksyms # /dev/ksyms
528 #pseudo-device pf # PF packet filter
529 #pseudo-device pflog # PF log if
530 #pseudo-device fss # file system snapshot device
531
532 # Veriexec
533 #
534 # a pseudo device needed for veriexec
535 #pseudo-device veriexec
536 #
537 # Uncomment the fingerprint methods below that are desired. Note that
538 # removing fingerprint methods will have almost no impact on the kernel
539 # code size.
540 #
541 #options VERIFIED_EXEC_FP_RMD160
542 #options VERIFIED_EXEC_FP_SHA256
543 #options VERIFIED_EXEC_FP_SHA384
544 #options VERIFIED_EXEC_FP_SHA512
545 #options VERIFIED_EXEC_FP_SHA1
546 #options VERIFIED_EXEC_FP_MD5
547