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