GENERIC revision 1.58 1 # $NetBSD: GENERIC,v 1.58 2018/01/23 15:08:12 sevan 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/landisk/conf/std.landisk"
22
23 options INCLUDE_CONFIG_FILE # embed config file in kernel binary
24
25 #ident "GENERIC-$Revision: 1.58 $"
26
27 maxusers 16 # estimated number of users
28
29 makeoptions CPUFLAGS="-m4-nofpu" # XXX: move to std.landisk?
30 #makeoptions COPTS="-Os -freorder-blocks" # -O2 is too -falign-* zealous
31
32 # CPU-related options.
33 options PCLOCK=33333333 # 33.33MHz
34 options DONT_INIT_BSC
35 #options DONT_INIT_PCIBSC
36
37 # Cache options.
38 options SH4_CACHE_DISABLE_EMODE
39 #options SH4_CACHE_DISABLE_ICACHE
40 #options SH4_CACHE_DISABLE_DCACHE
41 #options SH4_CACHE_WB_U0_P0_P3
42 #options SH4_CACHE_WB_P1
43
44 # kloader-related
45 #options KLOADER
46 #options KLOADER_KERNEL_PATH="\"/netbsd\""
47 #options KLOADER_DEBUG
48
49 # Standard system options
50
51 options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
52 #options HZ=64 # clock interrupt generates every 1/HZ sec
53 options NTP # NTP phase/frequency locked loop
54
55 options KTRACE # system call tracing via ktrace(1)
56
57 options SYSVMSG # System V-like message queues
58 options SYSVSEM # System V-like semaphores
59 options SYSVSHM # System V-like memory sharing
60
61 #options MODULAR # new style module(7) framework
62 #options MODULAR_DEFAULT_AUTOLOAD
63
64 options USERCONF # userconf(4) support
65 #options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
66 options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
67
68 # Alternate buffer queue strategies for better responsiveness under high
69 # disk I/O load.
70 #options BUFQ_READPRIO
71 #options BUFQ_PRIOCSCAN
72
73 # Diagnostic/debugging support options
74 #options DIAGNOSTIC # cheap kernel consistency checks
75 #options DEBUG # expensive debugging checks/support
76 options DDB # in-kernel debugger
77 #options DDB_ONPANIC=1 # see also sysctl(7): `ddb.onpanic'
78 options DDB_HISTORY_SIZE=512 # Enable history editing in DDB
79 #makeoptions DEBUG="-g -fno-omit-frame-pointer"
80
81 # Compatibility options
82 include "conf/compat_netbsd16.config"
83 options COMPAT_OSSAUDIO # OSS (Voxware) audio driver compatibility
84
85 # Executable format options
86 options EXEC_COFF # COFF executables
87
88 # File systems
89 file-system FFS # UFS
90 file-system EXT2FS # second extended file system (linux)
91 file-system LFS # log-structured file system
92 file-system MFS # memory file system
93 file-system NFS # Network File System client
94 file-system NTFS # Windows/NT file system (experimental)
95 file-system CD9660 # ISO 9660 + Rock Ridge file system
96 file-system MSDOSFS # MS-DOS file system
97 file-system FDESC # /dev/fd
98 file-system KERNFS # /kern
99 file-system NULLFS # loopback file system
100 file-system OVERLAY # overlay file system
101 file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs)
102 file-system PROCFS # /proc
103 file-system UMAPFS # NULLFS + uid and gid remapping
104 file-system UNION # union file system
105 file-system CODA # Coda File System; also needs vcoda (below)
106 file-system SMBFS # experimental - CIFS; also needs nsmb (below)
107 file-system PTYFS # /dev/pts/N support
108 file-system TMPFS # Efficient memory file-system
109 #file-system UDF # experimental - OSTA UDF CD/DVD file-system
110
111 # File system options
112 options QUOTA # legacy UFS quotas
113 options QUOTA2 # new, in-filesystem UFS quotas
114 #options DISKLABEL_EI # disklabel Endian Independent support
115 #options FFS_EI # FFS Endian Independent support
116 options WAPBL # File system journaling support
117 #options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
118 options NFSSERVER # Network File System server
119 #options FFS_NO_SNAPSHOT # ffs snapshots
120 options UFS_EXTATTR # Extended attribute support for UFS1
121 #options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
122 # immutable) behave as system flags.
123
124 # Networking options
125 #options GATEWAY # packet forwarding
126 options INET # IP + ICMP + TCP + UDP
127 options INET6 # IPV6
128 #options IPSEC # IP security
129 #options IPSEC_DEBUG # debug for IP security
130 #options MROUTING # IP multicast routing
131 #options PIM # Protocol Independent Multicast
132 #options NETATALK # AppleTalk networking protocols
133 #options PPP_BSDCOMP # BSD-Compress compression support for PPP
134 #options PPP_DEFLATE # Deflate compression support for PPP
135 #options PPP_FILTER # Active filter support for PPP (requires bpf)
136 #options IPFILTER_LOG # ipmon(8) log support
137 options IPFILTER_COMPAT # Compat for IP-Filter
138 #options IPFILTER_DEFAULT_BLOCK # block all packets by default
139 #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
140
141 #options ALTQ # Manipulate network interfaces' output queues
142 #options ALTQ_BLUE # Stochastic Fair Blue
143 #options ALTQ_CBQ # Class-Based Queueing
144 #options ALTQ_CDNR # Diffserv Traffic Conditioner
145 #options ALTQ_FIFOQ # First-In First-Out Queue
146 #options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box)
147 #options ALTQ_HFSC # Hierarchical Fair Service Curve
148 #options ALTQ_LOCALQ # Local queueing discipline
149 #options ALTQ_PRIQ # Priority Queueing
150 #options ALTQ_RED # Random Early Detection
151 #options ALTQ_RIO # RED with IN/OUT
152 #options ALTQ_WFQ # Weighted Fair Queueing
153
154 # These options enable verbose messages for several subsystems.
155 # Warning, these may compile large string tables into the kernel!
156 options MIIVERBOSE # verbose PHY autoconfig messages
157 options PCIVERBOSE # verbose PCI device autoconfig messages
158 #options PCI_CONFIG_DUMP # verbosely dump PCI config space
159 options SCSIVERBOSE # human readable SCSI error messages
160 options USBVERBOSE # verbose USB device autoconfig messages
161
162 options NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
163
164
165 # Kernel root file system and dump configuration.
166 #config netbsd root on ? type ?
167 config netbsd root on wd0a type ffs
168 #config netbsd root on ? type nfs
169
170
171 #
172 # Device configuration
173 #
174
175 mainbus0 at root
176
177 cpu* at mainbus?
178
179 # Basic Bus Support
180
181 # PCI bus support
182 options PCI_NETBSD_CONFIGURE
183 shpcic* at mainbus? # SH7751 PCIC
184 pci0 at shpcic? bus ?
185
186 # SH bus
187 shb* at mainbus?
188
189 # ob-board I/O bus
190 obio0 at mainbus?
191
192 # Serial Devices
193
194 options SCIFCONSOLE
195 options SCIFCN_SPEED=9600
196 scif0 at shb?
197
198 rs5c313rtc0 at shb0 # time-of-day clock
199
200 # SCSI Controllers and Devices
201
202 # SCSI devices
203 sd* at scsibus? target ? lun ? # SCSI disk drives
204 st* at scsibus? target ? lun ? # SCSI tape drives
205 cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
206 ch* at scsibus? target ? lun ? # SCSI autochangers
207 ses* at scsibus? target ? lun ? # SCSI Enclosure Services devices
208 ss* at scsibus? target ? lun ? # SCSI scanners
209 uk* at scsibus? target ? lun ? # SCSI unknown
210
211 # IDE and related devices
212 # PCI IDE controllers - see pciide(4) for supported hardware.
213 # The 0x0001 flag force the driver to use DMA, even if the driver doesn't know
214 # how to set up DMA modes for this chip. This may work, or may cause
215 # a machine hang with some controllers.
216 pciide* at pci? dev ? function ? flags 0x0000 # GENERIC pciide driver
217 acardide* at pci? dev ? function ? # Acard IDE controllers
218
219 wdc0 at obio? port 0x14000000 irq 10 # CF
220 #wdc1 at obio? port 0x18000000 irq 9 # iConnect
221
222 # ATA (IDE) bus support
223 atabus* at ata?
224
225 # IDE drives
226 # Flags are used only with controllers that support DMA operations
227 # and mode settings (e.g. some pciide controllers)
228 # The lowest order four bits (rightmost digit) of the flags define the PIO
229 # mode to use, the next set of four bits the DMA mode and the third set the
230 # UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
231 # to use, and the last bit must be 1 for this setting to be used.
232 # For DMA and UDMA, 0xf (1111) means 'disable'.
233 # 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
234 # (0xc=1100, 0xa=1010, 0xf=1111)
235 # 0x0000 means "use whatever the drive claims to support".
236 wd* at atabus? drive ? flags 0x0000
237
238 # ATAPI bus support
239 atapibus* at atapi?
240
241 # ATAPI devices
242 # flags have the same meaning as for IDE drives.
243 cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives
244 sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives
245 uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown
246
247 # Network Interfaces
248
249 # PCI network interfaces
250 re* at pci? dev ? function ? # Realtek 8139C+/8169/8169S/8110S
251 rtk* at pci? dev ? function ? # Realtek 8129/8139
252
253 # MII/PHY support
254 rlphy* at mii? phy ? # Realtek 8139/8201L PHYs
255 urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs
256 ukphy* at mii? phy ? # generic unknown PHYs
257
258
259 # USB Controller and Devices
260
261 # PCI USB controllers
262 ehci* at pci? dev ? function ? # Enhanced Host Controller
263 ohci* at pci? dev ? function ? # Open Host Controller
264
265 # USB bus support
266 usb* at ehci?
267 usb* at ohci?
268
269 # USB Hubs
270 uhub* at usb?
271 uhub* at uhub? port ?
272
273 # USB HID device
274 uhidev* at uhub? port ? configuration ? interface ?
275
276 # USB Mice
277 ums* at uhidev? reportid ?
278 wsmouse* at ums? mux 0
279
280 # USB Keyboards
281 ukbd* at uhidev? reportid ?
282 wskbd* at ukbd? console ? mux 1
283
284 # USB LCDs and USB-VGA adaptors
285 udl* at uhub? port ? # DisplayLink DL-1x0/1x5
286 wsdisplay* at udl?
287
288 # USB serial adpater
289 ucycom* at uhidev? reportid ?
290
291 # USB Generic HID devices
292 uhid* at uhidev? reportid ?
293
294 # USB Printer
295 ulpt* at uhub? port ? configuration ? interface ?
296
297 # USB Modem
298 umodem* at uhub? port ? configuration ?
299 ucom* at umodem?
300
301 # Option N.V. Wireless WAN modems
302 uhso* at uhub? port ? configuration ?
303
304 # USB Mass Storage
305 umass* at uhub? port ? configuration ? interface ?
306 scsibus* at umass?
307 wd* at umass?
308
309 # USB audio
310 uaudio* at uhub? port ? configuration ?
311
312 # USB MIDI
313 umidi* at uhub? port ? configuration ?
314
315 # USB IrDA
316 # USB-IrDA bridge spec
317 uirda* at uhub? port ? configuration ? interface ?
318 irframe* at uirda?
319
320 # SigmaTel STIr4200 USB/IrDA Bridge
321 ustir* at uhub? port ?
322 irframe* at ustir?
323
324 # USB Ethernet adapters
325 aue* at uhub? port ? # ADMtek AN986 Pegasus based adapters
326 axe* at uhub? port ? # ASIX AX88172 based adapters
327 cdce* at uhub? port ? # CDC, Ethernet Networking Control Model
328 cue* at uhub? port ? # CATC USB-EL1201A based adapters
329 kue* at uhub? port ? # Kawasaki LSI KL5KUSB101B based adapters
330 udav* at uhub? port ? # Davicom DM9601 based adapters
331 ural* at uhub? port ? # Ralink Technology RT2500USB 802.11a/b/g
332 url* at uhub? port ? # Realtek RTL8150L based adapters
333
334 # USB 802.11b adapters
335 atu* at uhub? port ? # Atmel AT76C50XX based adapters
336
337 # Prolific PL2301/PL2302 host-to-host adapter
338 upl* at uhub? port ?
339
340 # Serial adapters
341 ubsa* at uhub? port ? # Belkin serial adapter
342 ucom* at ubsa? portno ?
343
344 uftdi* at uhub? port ? # FTDI FT8U100AX serial adapter
345 ucom* at uftdi? portno ?
346
347 umct* at uhub? port ? # MCT USB-RS232 serial adapter
348 ucom* at umct? portno ?
349
350 uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter
351 ucom* at uplcom? portno ?
352
353 uvscom* at uhub? port ? # SUNTAC Slipper U VS-10U serial adapter
354 ucom* at uvscom? portno ?
355
356 # Diamond Multimedia Rio 500
357 urio* at uhub? port ?
358
359 # USB Handspring Visor
360 uvisor* at uhub? port ?
361 ucom* at uvisor?
362
363 # Kyocera AIR-EDGE PHONE
364 ukyopon* at uhub? port ?
365 ucom* at ukyopon? portno ?
366
367 # USB scanners
368 #uscanner* at uhub? port ?
369
370 # USB scanners that use SCSI emulation, e.g., HP5300
371 usscanner* at uhub? port ?
372
373 # Y@P firmware loader
374 uyap* at uhub? port ?
375
376 # D-Link DSB-R100 USB radio
377 udsbr* at uhub? port ?
378 radio* at udsbr?
379
380 # USB Generic driver
381 ugen* at uhub? port ?
382
383
384 # Audio Devices
385
386 # Audio support
387 audio* at audiobus?
388
389 spkr* at audio? # PC speaker (synthesized)
390
391 # MIDI support
392 midi* at midibus?
393
394
395 # Miscellaneous Devices
396
397 # Power switch
398 pwrsw0 at obio?
399
400 # Reset button, USL-5P misc button
401 btn0 at obio?
402
403 # Pull in optional local configuration
404 cinclude "arch/landisk/conf/GENERIC.local"
405
406
407 # Pseudo-Devices
408
409 #
410 # accept filters
411 pseudo-device accf_data # "dataready" accept filter
412 pseudo-device accf_http # "httpready" accept filter
413
414 # disk/mass storage pseudo-devices
415 pseudo-device ccd # concatenated/striped disk devices
416 #pseudo-device cgd # cryptographic disk devices
417 pseudo-device raid # RAIDframe disk driver
418 options RAID_AUTOCONFIG # auto-configuration of RAID components
419 # Options to enable various other RAIDframe RAID types.
420 #options RF_INCLUDE_EVENODD=1
421 #options RF_INCLUDE_RAID5_RS=1
422 #options RF_INCLUDE_PARITYLOGGING=1
423 #options RF_INCLUDE_CHAINDECLUSTER=1
424 #options RF_INCLUDE_INTERDECLUSTER=1
425 #options RF_INCLUDE_PARITY_DECLUSTERING=1
426 #options RF_INCLUDE_PARITY_DECLUSTERING_DS=1
427 pseudo-device fss # file system snapshot device
428
429 pseudo-device md # memory disk device (ramdisk)
430 pseudo-device vnd # disk-like interface to files
431 options VND_COMPRESSION # compressed vnd(4)
432
433 # network pseudo-devices
434 pseudo-device bpfilter # Berkeley packet filter
435 pseudo-device ipfilter # IP filter (firewall) and NAT
436 pseudo-device loop # network loopback
437 pseudo-device ppp # Point-to-Point Protocol
438 pseudo-device pppoe # PPP over Ethernet (RFC 2516)
439 pseudo-device sl # Serial Line IP
440 pseudo-device strip # Starmode Radio IP (Metricom)
441 pseudo-device irframetty # IrDA frame line discipline
442 pseudo-device tap # virtual Ethernet
443 pseudo-device tun # network tunneling over tty
444 pseudo-device gre # generic L3 over IP tunnel
445 pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
446 #pseudo-device faith # IPv[46] tcp relay translation i/f
447 #pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
448 pseudo-device vlan # IEEE 802.1q encapsulation
449 pseudo-device bridge # simple inter-network bridging
450 #options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too
451 pseudo-device agr # IEEE 802.3ad link aggregation
452 #pseudo-device pf # PF packet filter
453 #pseudo-device pflog # PF log if
454
455 # miscellaneous pseudo-devices
456 pseudo-device pty # pseudo-terminals
457 pseudo-device sequencer # MIDI sequencer
458 pseudo-device clockctl # user control of clock subsystem
459 pseudo-device drvctl # user control of drive subsystem
460 pseudo-device ksyms # /dev/ksyms
461 pseudo-device putter # for puffs and pud
462
463 # a pseudo device needed for Coda # also needs CODA (above)
464 pseudo-device vcoda # coda minicache <-> venus comm.
465
466 # a pseudo device needed for SMBFS
467 pseudo-device nsmb # experimental - SMB requester
468
469 # wscons pseudo-devices
470 pseudo-device wsmux # mouse & keyboard multiplexor
471 #pseudo-device wsfont
472
473 options FILEASSOC # fileassoc(9) - required for Veriexec
474 # and PAX_SEGVGUARD
475
476 # Veriexec
477 pseudo-device veriexec
478 #
479 # Uncomment the fingerprint methods below that are desired. Note that
480 # removing fingerprint methods will have almost no impact on the kernel
481 # code size.
482 #
483 options VERIFIED_EXEC_FP_SHA256
484 options VERIFIED_EXEC_FP_SHA384
485 options VERIFIED_EXEC_FP_SHA512
486
487 options PAX_ASLR_DEBUG=1 # PaX ASLR debug
488 options PAX_SEGVGUARD=0 # PaX Segmentation fault guard
489 options PAX_MPROTECT=1 # PaX mprotect(2) restrictions
490 options PAX_MPROTECT_DEBUG=1 # PaX mprotect debug
491 options PAX_ASLR=1 # PaX Address Space Layout Randomization
492