GENERIC revision 1.186 1 # $NetBSD: GENERIC,v 1.186 2018/08/01 20:04:13 maxv 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/prep/conf/std.prep"
22
23 options INCLUDE_CONFIG_FILE # embed config file in kernel binary
24
25 #ident "GENERIC-$Revision: 1.186 $"
26
27 maxusers 32
28
29 # Platform support
30
31 options PIC_OPENPIC # OpenPIC support (7043-140)
32 options PIC_PREPIVR
33
34 # Standard system options
35
36 options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
37 options NTP # NTP phase/frequency locked loop
38
39 options KTRACE # system call tracing via ktrace(1)
40
41 options SYSVMSG # System V-like message queues
42 options SYSVSEM # System V-like semaphores
43 options SYSVSHM # System V-like memory sharing
44
45 options USERCONF # userconf(4) support
46 #options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
47 options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
48
49 # Alternate buffer queue strategies for better responsiveness under high
50 # disk I/O load.
51 #options BUFQ_READPRIO
52 #options BUFQ_PRIOCSCAN
53
54 # Diagnostic/debugging support options
55 #options DIAGNOSTIC # cheap kernel consistency checks
56 #options DEBUG # expensive debugging checks/support
57 options DDB # in-kernel debugger
58 #options DDB_HISTORY_SIZE=100 # Enable history editing in DDB
59 #makeoptions DEBUG="-g"
60
61 # Compatibility options
62 include "conf/compat_netbsd13.config"
63 #options COMPAT_LINUX # Linux binary compatibility
64
65 # File systems
66 file-system FFS # UFS
67 file-system EXT2FS # second extended file system (linux)
68 #file-system LFS # log-structured file system
69 file-system MFS # memory file system
70 file-system NFS # Network File System client
71 #file-system NTFS # Windows/NT file system (experimental)
72 file-system CD9660 # ISO 9660 + Rock Ridge file system
73 file-system MSDOSFS # MS-DOS file system
74 #file-system FDESC # /dev/fd
75 file-system KERNFS # /kern
76 file-system NULLFS # loopback file system
77 #file-system OVERLAY # overlay file system
78 file-system PROCFS # /proc
79 #file-system UMAPFS # NULLFS + uid and gid remapping
80 file-system UNION # union file system
81 #file-system CODA # Coda File System; also needs vcoda (below)
82 file-system PTYFS # /dev/pts/N support
83 file-system TMPFS # Efficient memory file-system
84 #file-system UDF # experimental - OSTA UDF CD/DVD file-system
85
86 # File system options
87 options QUOTA # legacy UFS quotas
88 options QUOTA2 # new, in-filesystem UFS quotas
89 #options DISKLABEL_EI # disklabel Endian Independent support
90 #options FFS_EI # FFS Endian Independent support
91 options WAPBL # File system journaling support
92 #options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
93 options NFSSERVER # Network File System server
94 #options FFS_NO_SNAPSHOT # No FFS snapshot support
95 options UFS_EXTATTR # Extended attribute support for UFS1
96 #options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
97 # immutable) behave as system flags.
98
99 # Networking options
100 #options GATEWAY # packet forwarding
101 options INET # IP + ICMP + TCP + UDP
102 options INET6 # IPv6
103 #options IPSEC # IP security
104 #options IPSEC_DEBUG # debug for IP security
105 #options MROUTING # IP multicast routing
106 #options PIM # Protocol Independent Multicast
107 #options NETATALK # AppleTalk networking protocols
108 options PPP_BSDCOMP # BSD-Compress compression support for PPP
109 options PPP_DEFLATE # Deflate compression support for PPP
110 options PPP_FILTER # Active filter support for PPP (requires bpf)
111 #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
112
113 #options ALTQ # Manipulate network interfaces' output queues
114 #options ALTQ_BLUE # Stochastic Fair Blue
115 #options ALTQ_CBQ # Class-Based Queueing
116 #options ALTQ_CDNR # Diffserv Traffic Conditioner
117 #options ALTQ_FIFOQ # First-In First-Out Queue
118 #options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box)
119 #options ALTQ_HFSC # Hierarchical Fair Service Curve
120 #options ALTQ_LOCALQ # Local queueing discipline
121 #options ALTQ_PRIQ # Priority Queueing
122 #options ALTQ_RED # Random Early Detection
123 #options ALTQ_RIO # RED with IN/OUT
124 #options ALTQ_WFQ # Weighted Fair Queueing
125
126 # These options enable verbose messages for several subsystems.
127 # Warning, these may compile large string tables into the kernel!
128 #options MIIVERBOSE # verbose PHY autoconfig messages
129 options PCIVERBOSE # verbose PCI device autoconfig messages
130 #options PCI_CONFIG_DUMP # verbosely dump PCI config space
131 #options PCMCIAVERBOSE # verbose PCMCIA configuration messages
132 options SCSIVERBOSE # human readable SCSI error messages
133 #options USBVERBOSE # verbose USB device autoconfig messages
134 #options RESIDUAL_DATA_DUMP # verbosely dump residual data
135 #options NVRAM_DUMP # verbosely dump contents of nvram.
136 # Warning: output may not be ascii!
137
138 #options NFS_BOOT_BOOTP
139 options NFS_BOOT_BOOTPARAM
140 options NFS_BOOT_DHCP
141
142 #
143 # wscons options
144 #
145 # builtin terminal emulations
146 options WSEMUL_VT100 # VT100 / VT220 emulation
147 # different kernel output - see dev/wscons/wsdisplayvar.h
148 options WS_KERNEL_FG=WSCOL_GREEN
149 #options WS_KERNEL_BG=WSCOL_BLACK
150 # compatibility to other console drivers
151 options WSDISPLAY_COMPAT_USL # wsconscfg VT handling
152 options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
153 # see dev/pckbport/wskbdmap_mfii.c for implemented layouts
154 #options PCKBD_LAYOUT="(KB_DE | KB_NODEAD)"
155 # allocate a number of virtual screens at autoconfiguration time
156 #options WSDISPLAY_DEFAULTSCREENS=4
157 # use a large software cursor that doesn't blink
158 options PCDISPLAY_SOFTCURSOR
159
160 # Kernel root file system and dump configuration.
161 config netbsd root on ? type ?
162 #config netbsd root on tlp0 type nfs
163 #config netbsd root on pcn0 type nfs
164
165
166 #
167 # Device configuration
168 #
169
170 mainbus0 at root
171 cpu0 at mainbus0
172
173
174 # Basic Bus Support
175
176 # PCI bus support
177 pci0 at mainbus0 bus ?
178 pci* at pchb? bus ?
179 pci* at ppb? bus ?
180
181 # PCI bridges
182 pchb* at pci? dev ? function ? # PCI-Host bridges
183 ppb* at pci? dev ? function ? # PCI-PCI bridges
184 pcib* at pci? dev ? function ? # PCI-ISA bridges
185 pceb* at pci? dev ? function ? # PCI-EISA bridges
186
187 # EISA bus support
188 eisa* at pceb?
189
190 # ISA bus support
191 isa* at pcib? # ISA on PCI-ISA bridge
192 isa* at pceb?
193
194 # PCMCIA bus support
195 pcmcia* at pcic? controller ? socket ?
196
197 # ISA PCMCIA controllers
198 pcic0 at isa? port 0x3e0 iomem 0xd0000 iosiz 0x10000
199
200 #options PCIC_ISA_INTR_ALLOC_MASK=0x4a00 # free irq 9,11,14
201 #options PCIC_ISA_ALLOC_IOBASE=0x0400
202 #options PCIC_ISA_ALLOC_IOSIZE=0x0100
203
204 # ISA Plug-and-Play bus support
205 #isapnp0 at isa?
206
207 # PnPbus bus support (required)
208 pnpbus0 at mainbus0
209
210 # Console Devices
211
212 # wscons
213 pckbc0 at isa? # pc keyboard controller
214 pckbd* at pckbc? # PC keyboard
215 pms* at pckbc? # PS/2 mouse for wsmouse
216 vga* at pci?
217 wsdisplay* at vga? console ?
218 wskbd* at pckbd? console ?
219 wsmouse* at pms? mux 0
220
221 attimer0 at isa? # AT Timer
222 pcppi0 at isa? # PC prog. periph. interface
223 isabeep0 at pcppi? # "keyboard" beep
224
225 #mcclock0 at isa? port 0x70 # mc146818 and compatible
226 mcclock* at pnpbus? # mc146818 and compatible
227 mkclock* at pnpbus? # mk48t18 and compatible
228
229 nvram* at pnpbus?
230
231 # Cryptographic Devices
232
233 # PCI cryptographic devices
234 #hifn* at pci? dev ? function ? # Hifn 7755/7811/795x
235 #ubsec* at pci? dev ? function ? # Broadcom 5501/5601/580x/582x
236
237
238 # Serial Devices
239
240 # ISA serial interfaces
241 com0 at isa? port 0x3f8 irq 4 # standard PC serial ports
242 com1 at isa? port 0x2f8 irq 3
243
244 # PCMCIA serial interfaces
245 com* at pcmcia? function ? # Modems and serial cards
246
247 #pcmcom* at pcmcia? function ? # PCMCIA multi-port serial cards
248 #com* at pcmcom? slave ? # ...and the slave devices
249
250
251 # Parallel Printer Interfaces
252
253 # ISA parallel printer interfaces
254 lpt0 at isa? port 0x3bc irq 7 # standard PC parallel ports
255
256
257 # SCSI Controllers and Devices
258
259 # PCI SCSI controllers
260 #adw* at pci? dev ? function ? # AdvanSys 9x0UW[D], 3940U[2,3]W SCSI
261 ahc* at pci? dev ? function ? # Adaptec [23]94x, aic78x0 SCSI
262 #iha* at pci? dev ? function ? # Initio INIC-940/950 SCSI
263 #pcscp* at pci? dev ? function ? # AMD 53c974 PCscsi-PCI SCSI
264 siop* at pci? dev ? function ? # Symbios 53c8xx SCSI
265 esiop* at pci? dev ? function ? # Symbios 53c875 SCSI and newer
266
267 # PCMCIA SCSI controllers
268 aic* at pcmcia? function ? # Adaptec APA-1460 SCSI
269 spc* at pcmcia? function ? # Fujitsu MB87030/MB89352 SCSI
270
271 # SCSI bus support
272 #scsibus* at adw?
273 scsibus* at ahc?
274 scsibus* at aic?
275 #scsibus* at iha?
276 #scsibus* at pcscp?
277 scsibus* at siop?
278 scsibus* at spc?
279 scsibus* at esiop?
280
281 # SCSI devices
282 sd* at scsibus? target ? lun ? # SCSI disk drives
283 st* at scsibus? target ? lun ? # SCSI tape drives
284 cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
285 #ch* at scsibus? target ? lun ? # SCSI autochangers
286 #ss* at scsibus? target ? lun ? # SCSI scanners
287 uk* at scsibus? target ? lun ? # SCSI unknown
288
289 # IDE and related devices
290
291 # IDE controller found on most Power Personal machines
292 wdc* at pnpbus?
293
294 # PCI IDE controllers
295 pciide* at pci? dev ? function ? flags 0x0000
296 hptide* at pci? dev ? function ?
297 slide* at pci? dev ? function ?
298
299 fdc0 at pnpbus? # standard ISA floppy controller
300 fd0 at fdc0 drive ?
301
302 # ISA Plug-and-Play IDE controllers
303 #wdc* at isapnp?
304
305 # PCMCIA IDE controllers
306 wdc* at pcmcia? function ?
307
308 # ATA (IDE) bus support
309 atabus* at ata?
310
311 # IDE drives
312 # Flags are used only with controllers that support DMA operations
313 # and mode settings (e.g. some pciide controllers)
314 # The lowest order four bits (rightmost digit) of the flags define the PIO
315 # mode to use, the next set of four bits the DMA mode and the third set the
316 # UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
317 # to use, and the last bit must be 1 for this setting to be used.
318 # For DMA and UDMA, 0xf (1111) means 'disable'.
319 # 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
320 # (0xc=1100, 0xa=1010, 0xf=1111)
321 # 0x0000 means "use whatever the drive claims to support".
322 wd* at atabus? drive ? flags 0x0000
323
324 # ATAPI bus support
325 atapibus* at atapi?
326
327 # ATAPI devices
328 # flags have the same meaning as for IDE drives.
329 cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives
330 sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives
331 uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown
332
333 # Miscellaneous mass storage devices
334
335 # Network Interfaces
336
337 # PCI network interfaces
338 ep* at pci? dev ? function ? # 3Com 3c59x
339 ex* at pci? dev ? function ? # 3Com 3c90x[BC]
340 fxp* at pci? dev ? function ? # Intel EtherExpress PRO 10+/100B
341 ne* at pci? dev ? function ? # NE2000-compatible Ethernet
342 pcn* at pci? dev ? function ? # AMD PCnet-PCI Ethernet
343 rtk* at pci? dev ? function ? # Realtek 8129/8139
344 sip* at pci? dev ? function ? # SiS 900/DP83815 Ethernet
345 tlp* at pci? dev ? function ? # DECchip 21x4x and clones
346 vr* at pci? dev ? function ? # VIA Rhine Fast Ethernet
347
348 # pnpbus network interfaces
349 we* at pnpbus? # WD/SMC Ethernet
350
351 # ISA network interfaces
352 #ep* at isa? port ? irq ? # 3Com 3c509 Ethernet
353 #ne0 at isa? port 0x280 irq 9 # NE2000-compatible Ethernet
354 #ne1 at isa? port 0x300 irq 10
355 #we0 at isa? port 0x280 iomem 0xd0000 irq 9 # WD/SMC Ethernet
356 we1 at isa? port 0x300 iomem 0xe8000 irq 11
357
358 # ISA Plug-and-Play network intefaces
359 #ep* at isapnp? # 3Com 3c509 Ethernet
360 #ne* at isapnp? # NE2000-compatible Ethernet
361
362 # PCMCIA network interfaces
363 ep* at pcmcia? function ? # 3Com 3c589 and 3c562 Ethernet
364 ne* at pcmcia? function ? # NE2000-compatible Ethernet
365
366 # MII/PHY support
367 dmphy* at mii? phy ? # Davicom DM9101 PHYs
368 exphy* at mii? phy ? # 3Com internal PHYs
369 icsphy* at mii? phy ? # Integrated Circuit Systems ICS189x
370 inphy* at mii? phy ? # Intel 82555 PHYs
371 iophy* at mii? phy ? # Intel 82553 PHYs
372 lxtphy* at mii? phy ? # Level One LXT-970 PHYs
373 nsphy* at mii? phy ? # NS83840 PHYs
374 nsphyter* at mii? phy ? # NS83843 PHYs
375 qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs
376 sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs
377 tlphy* at mii? phy ? # ThunderLAN PHYs
378 tqphy* at mii? phy ? # TDK Semiconductor PHYs
379 ukphy* at mii? phy ? # generic unknown PHYs
380
381
382 # USB Controller and Devices
383
384 # PCI USB controllers
385 #uhci* at pci? dev ? function ? # Universal Host Controller (Intel)
386 #ohci* at pci? dev ? function ? # Open Host Controller
387
388 # PCMCIA USB controllers
389 #slhci* at pcmcia? function ? # ScanLogic SL811HS
390
391 # USB bus support
392 #usb* at uhci?
393 #usb* at ohci?
394 #usb* at slhci?
395
396 # USB Hubs
397 #uhub* at usb?
398 #uhub* at uhub? port ?
399
400 # USB HID device
401 #uhidev* at uhub? port ? configuration ? interface ?
402
403 # USB Mice
404 #ums* at uhidev? reportid ?
405 #wsmouse* at ums? mux 0
406
407 # USB Keyboards
408 #ukbd* at uhidev? reportid ?
409 #wskbd* at ukbd? console ? mux 1
410
411 # USB serial adapter
412 #ucycom* at uhidev? reportid ?
413
414 # USB Generic HID devices
415 #uhid* at uhidev? reportid ?
416
417 # USB Printer
418 #ulpt* at uhub? port ? configuration ? interface ?
419
420 # USB Modem
421 #umodem* at uhub? port ? configuration ?
422 #ucom* at umodem?
423
424 # Option N.V. Wireless WAN modems
425 #uhso* at uhub? port ? configuration ?
426
427 # USB Mass Storage
428 #umass* at uhub? port ? configuration ? interface ?
429 #scsibus* at umass? channel ?
430 #atapibus* at umass?
431
432 # USB audio
433 #uaudio* at uhub? port ? configuration ?
434
435 # USB Ethernet adapters
436 #aue* at uhub? port ? # ADMtek AN986 Pegasus based adapters
437 #axe* at uhub? port ? # ASIX AX88172 based adapters
438 #cue* at uhub? port ? # CATC USB-EL1201A based adapters
439 #kue* at uhub? port ? # Kawasaki LSI KL5KUSB101B based adapters
440 #url* at uhub? port ? # Realtek RTL8150L based adapters
441 #udav* at uhub? port ? # Davicom DM9601 based adapters
442
443 # Prolific PL2301/PL2302 host-to-host adapter
444 #upl* at uhub? port ?
445
446 # Serial adapters
447 #uftdi* at uhub? port ? # FTDI FT8U100AX serial adapter
448 #ucom* at uftdi? portno ?
449
450 #umct* at uhub? port ? # MCT USB-RS232 serial adapter
451 #ucom* at umct? portno ?
452
453 #uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter
454 #ucom* at uplcom? portno ?
455
456 #uvscom* at uhub? port ? # SUNTAC Slipper U VS-10U serial adapter
457 #ucom* at uvscom? portno ?
458
459 # Diamond Multimedia Rio 500
460 #urio* at uhub? port ?
461
462 # USB Handspring Visor
463 #uvisor* at uhub? port ?
464 #ucom* at uvisor?
465
466 # Kyocera AIR-EDGE PHONE
467 #ukyopon* at uhub? port ?
468 #ucom* at ukyopon? portno ?
469
470 # Y@P firmware loader
471 #uyap* at uhub? port ?
472
473 # USB Generic driver
474 #ugen* at uhub? port ?
475
476 # USB scanners
477 #uscanner* at uhub? port ?
478
479
480 # Audio device
481
482 # ISA Plug-and-Play audio devices
483 #wss* at isapnp? # CS4232
484 #wss0 at isa? port 0x530 irq 5 drq 1 drq2 0
485
486 # Audio support
487 #audio* at uaudio?
488 #audio* at audiocs?
489
490 # MIDI support
491 #midi* at pcppi? # MIDI interface to the PC speaker
492
493 # The spkr driver provides a simple tone interface to the built in speaker.
494 #spkr* at pcppi? # PC speaker
495 #spkr* at audio? # PC speaker (synthesized)
496
497
498 # Joysticks
499
500 # ISA Plug-and-Play joysticks
501 #joy* at isapnp? # Game ports (usually on audio cards)
502
503 # ISA joysticks. Probe is a little strange; add only if you have one.
504 #joy0 at isa? port 0x201
505
506 # Pull in optional local configuration
507 cinclude "arch/prep/conf/GENERIC.local"
508
509 # Pseudo-Devices
510
511 pseudo-device crypto # /dev/crypto device
512 pseudo-device swcrypto # software crypto implementation
513
514 # disk/mass storage pseudo-devices
515 pseudo-device ccd # concatenated/striped disk devices
516 #pseudo-device cgd # cryptographic disk devices
517 pseudo-device raid # RAIDframe disk driver
518 options RAID_AUTOCONFIG # auto-configuration of RAID components
519 # Options to enable various other RAIDframe RAID types.
520 #options RF_INCLUDE_EVENODD=1
521 #options RF_INCLUDE_RAID5_RS=1
522 #options RF_INCLUDE_PARITYLOGGING=1
523 #options RF_INCLUDE_CHAINDECLUSTER=1
524 #options RF_INCLUDE_INTERDECLUSTER=1
525 #options RF_INCLUDE_PARITY_DECLUSTERING=1
526 #options RF_INCLUDE_PARITY_DECLUSTERING_DS=1
527 pseudo-device fss # file system snapshot device
528 pseudo-device md # memory disk device (ramdisk)
529 pseudo-device vnd # disk-like interface to files
530 #options VND_COMPRESSION # compressed vnd(4)
531
532 # network pseudo-devices
533 pseudo-device loop # network loopback
534 pseudo-device bpfilter # Berkeley packet filter
535 #pseudo-device carp # Common Address Redundancy Protocol
536 pseudo-device npf # NPF packet filter
537 pseudo-device ppp # Point-to-Point Protocol
538 pseudo-device pppoe # PPP over Ethernet (RFC 2516)
539 #pseudo-device sl # Serial Line IP
540 pseudo-device strip # Starmode Radio IP (Metricom)
541 pseudo-device tun # network tunneling over tty
542 pseudo-device tap # virtual Ethernet
543 pseudo-device gre # generic L3 over IP tunnel
544 pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
545 #pseudo-device faith # IPv[46] tcp relay translation i/f
546 pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
547 pseudo-device vlan # IEEE 802.1q encapsulation
548 pseudo-device bridge # simple inter-network bridging
549 #options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too
550 pseudo-device agr # IEEE 802.3ad link aggregation
551
552 #
553 # accept filters
554 pseudo-device accf_data # "dataready" accept filter
555 pseudo-device accf_http # "httpready" accept filter
556
557 # miscellaneous pseudo-devices
558 pseudo-device pty # pseudo-terminals
559 #pseudo-device sequencer # MIDI sequencer
560 #options RND_COM # use "com" randomness as well
561 pseudo-device clockctl # user control of clock subsystem
562 pseudo-device ksyms # /dev/ksyms
563
564 # a pseudo device needed for Coda # also needs CODA (above)
565 #pseudo-device vcoda # coda minicache <-> venus comm.
566
567 # wscons pseudo-devices
568 pseudo-device wsmux # mouse & keyboard multiplexor
569 pseudo-device wsfont
570
571 options FILEASSOC # fileassoc(9) - required for Veriexec
572 # and PAX_SEGVGUARD
573
574 # Veriexec
575 #
576 # a pseudo device needed for veriexec
577 pseudo-device veriexec
578 #
579 # Uncomment the fingerprint methods below that are desired. Note that
580 # removing fingerprint methods will have almost no impact on the kernel
581 # code size.
582 #
583 options VERIFIED_EXEC_FP_SHA256
584 options VERIFIED_EXEC_FP_SHA384
585 options VERIFIED_EXEC_FP_SHA512
586