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