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