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