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