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