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