GENERIC revision 1.28 1 # $NetBSD: GENERIC,v 1.28 2011/03/06 17:08:26 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/landisk/conf/std.landisk"
22
23 options INCLUDE_CONFIG_FILE # embed config file in kernel binary
24
25 #ident "GENERIC-$Revision: 1.28 $"
26
27 maxusers 16 # estimated number of users
28
29 makeoptions CPUFLAGS="-m4-nofpu" # XXX: move to std.landisk?
30 #makeoptions COPTS="-Os -freorder-blocks" # -O2 is too -falign-* zealous
31
32 # CPU-related options.
33 options PCLOCK=33333333 # 33.33MHz
34 options DONT_INIT_BSC
35 #options DONT_INIT_PCIBSC
36
37 # Cache options.
38 options SH4_CACHE_DISABLE_EMODE
39 #options SH4_CACHE_DISABLE_ICACHE
40 #options SH4_CACHE_DISABLE_DCACHE
41 #options SH4_CACHE_WB_U0_P0_P3
42 #options SH4_CACHE_WB_P1
43
44 # kloader-related
45 #options KLOADER
46 #options KLOADER_KERNEL_PATH="\"/netbsd\""
47 #options KLOADER_DEBUG
48
49 # Standard system options
50
51 options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
52 #options HZ=64 # clock interrupt generates every 1/HZ sec
53 options NTP # NTP phase/frequency locked loop
54
55 options KTRACE # system call tracing via ktrace(1)
56
57 options SYSVMSG # System V-like message queues
58 options SYSVSEM # System V-like semaphores
59 options SYSVSHM # System V-like memory sharing
60 options P1003_1B_SEMAPHORE # p1003.1b semaphore support
61
62 #options MODULAR # new style module(7) framework
63
64 options USERCONF # userconf(4) support
65 #options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
66 options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
67
68 # Enable experimental buffer queue strategy for better responsiveness under
69 # high disk I/O load. Likely stable but not yet the default.
70 #options BUFQ_READPRIO
71 #options BUFQ_PRIOCSCAN
72
73 # Diagnostic/debugging support options
74 #options DIAGNOSTIC # cheap kernel consistency checks
75 #options DEBUG # expensive debugging checks/support
76 #options KMEMSTATS # kernel memory statistics (vmstat -m)
77 options DDB # in-kernel debugger
78 #options DDB_ONPANIC=1 # see also sysctl(8): `ddb.onpanic'
79 options DDB_HISTORY_SIZE=512 # Enable history editing in DDB
80 #makeoptions DEBUG="-g -fno-omit-frame-pointer"
81
82 # Compatibility options
83 options COMPAT_16 # NetBSD 1.6,
84 options COMPAT_20 # NetBSD 2.0,
85 options COMPAT_30 # NetBSD 3.0,
86 options COMPAT_40 # NetBSD 4.0,
87 options COMPAT_50 # NetBSD 5.0 compatibility.
88 options COMPAT_43 # and 4.3BSD
89 #options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended.
90
91 options COMPAT_OSSAUDIO # OSS (Voxware) audio driver compatibility
92 options COMPAT_BSDPTY # /dev/[pt]ty?? ptys.
93
94 # Executable format options
95 options EXEC_COFF # COFF executables
96
97 # File systems
98 file-system FFS # UFS
99 file-system EXT2FS # second extended file system (linux)
100 file-system LFS # log-structured file system
101 file-system MFS # memory file system
102 file-system NFS # Network File System client
103 file-system NTFS # Windows/NT file system (experimental)
104 file-system CD9660 # ISO 9660 + Rock Ridge file system
105 file-system MSDOSFS # MS-DOS file system
106 file-system FDESC # /dev/fd
107 file-system KERNFS # /kern
108 file-system NULLFS # loopback file system
109 file-system OVERLAY # overlay file system
110 file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs)
111 file-system PROCFS # /proc
112 file-system UMAPFS # NULLFS + uid and gid remapping
113 file-system UNION # union file system
114 file-system CODA # Coda File System; also needs vcoda (below)
115 file-system SMBFS # experimental - CIFS; also needs nsmb (below)
116 file-system PTYFS # /dev/pts/N support
117 file-system TMPFS # Efficient memory file-system
118 #file-system UDF # experimental - OSTA UDF CD/DVD file-system
119
120 # File system options
121 options QUOTA # legacy UFS quotas
122 options QUOTA2 # new, in-filesystem UFS quotas
123 #options FFS_EI # FFS Endian Independent support
124 options WAPBL # File system journaling support - Experimental
125 #options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
126 options NFSSERVER # Network File System server
127 #options FFS_NO_SNAPSHOT # ffs snapshots
128 #options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
129 # immutable) behave as system flags.
130
131 # Networking options
132 #options GATEWAY # packet forwarding
133 options INET # IP + ICMP + TCP + UDP
134 options INET6 # IPV6
135 #options IPSEC # IP security
136 #options IPSEC_ESP # IP security (encryption part; define w/IPSEC)
137 #options IPSEC_DEBUG # debug for IP security
138 #options MROUTING # IP multicast routing
139 #options PIM # Protocol Independent Multicast
140 #options ISO,TPIP # OSI
141 #options EON # OSI tunneling over IP
142 #options NETATALK # AppleTalk networking protocols
143 #options PPP_BSDCOMP # BSD-Compress compression support for PPP
144 #options PPP_DEFLATE # Deflate compression support for PPP
145 #options PPP_FILTER # Active filter support for PPP (requires bpf)
146 #options PFIL_HOOKS # pfil(9) packet filter hooks
147 #options IPFILTER_LOG # ipmon(8) log support
148 options IPFILTER_COMPAT # Compat for IP-Filter
149 #options IPFILTER_DEFAULT_BLOCK # block all packets by default
150 #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
151
152 #options ALTQ # Manipulate network interfaces' output queues
153 #options ALTQ_BLUE # Stochastic Fair Blue
154 #options ALTQ_CBQ # Class-Based Queueing
155 #options ALTQ_CDNR # Diffserv Traffic Conditioner
156 #options ALTQ_FIFOQ # First-In First-Out Queue
157 #options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box)
158 #options ALTQ_HFSC # Hierarchical Fair Service Curve
159 #options ALTQ_LOCALQ # Local queueing discipline
160 #options ALTQ_PRIQ # Priority Queueing
161 #options ALTQ_RED # Random Early Detection
162 #options ALTQ_RIO # RED with IN/OUT
163 #options ALTQ_WFQ # Weighted Fair Queueing
164
165 # These options enable verbose messages for several subsystems.
166 # Warning, these may compile large string tables into the kernel!
167 options MIIVERBOSE # verbose PHY autoconfig messages
168 options PCIVERBOSE # verbose PCI device autoconfig messages
169 #options PCI_CONFIG_DUMP # verbosely dump PCI config space
170 options SCSIVERBOSE # human readable SCSI error messages
171 options USBVERBOSE # verbose USB device autoconfig messages
172
173 options NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
174
175
176 # Kernel root file system and dump configuration.
177 #config netbsd root on ? type ?
178 config netbsd root on wd0a type ffs
179 #config netbsd root on ? type nfs
180
181
182 #
183 # Device configuration
184 #
185
186 mainbus0 at root
187
188 cpu* at mainbus?
189
190 # Basic Bus Support
191
192 # PCI bus support
193 options PCI_NETBSD_CONFIGURE
194 shpcic* at mainbus? # SH7751 PCIC
195 pci0 at shpcic? bus ?
196
197 # SH bus
198 shb* at mainbus?
199
200 # ob-board I/O bus
201 obio0 at mainbus?
202
203 # Serial Devices
204
205 options SCIFCONSOLE
206 options SCIFCN_SPEED=9600
207 scif0 at shb?
208
209 rs5c313rtc0 at shb0 # time-of-day clock
210
211 # SCSI Controllers and Devices
212
213 # SCSI devices
214 sd* at scsibus? target ? lun ? # SCSI disk drives
215 st* at scsibus? target ? lun ? # SCSI tape drives
216 cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
217 ch* at scsibus? target ? lun ? # SCSI autochangers
218 ses* at scsibus? target ? lun ? # SCSI Enclosure Services devices
219 ss* at scsibus? target ? lun ? # SCSI scanners
220 uk* at scsibus? target ? lun ? # SCSI unknown
221
222 # IDE and related devices
223 # PCI IDE controllers - see pciide(4) for supported hardware.
224 # The 0x0001 flag force the driver to use DMA, even if the driver doesn't know
225 # how to set up DMA modes for this chip. This may work, or may cause
226 # a machine hang with some controllers.
227 pciide* at pci? dev ? function ? flags 0x0000 # GENERIC pciide driver
228 acardide* at pci? dev ? function ? # Acard IDE controllers
229
230 wdc0 at obio? port 0x14000000 irq 10 # CF
231 #wdc1 at obio? port 0x18000000 irq 9 # iConnect
232
233 # ATA (IDE) bus support
234 atabus* at ata?
235
236 # IDE drives
237 # Flags are used only with controllers that support DMA operations
238 # and mode settings (e.g. some pciide controllers)
239 # The lowest order four bits (rightmost digit) of the flags define the PIO
240 # mode to use, the next set of four bits the DMA mode and the third set the
241 # UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
242 # to use, and the last bit must be 1 for this setting to be used.
243 # For DMA and UDMA, 0xf (1111) means 'disable'.
244 # 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
245 # (0xc=1100, 0xa=1010, 0xf=1111)
246 # 0x0000 means "use whatever the drive claims to support".
247 wd* at atabus? drive ? flags 0x0000
248
249 # ATAPI bus support
250 atapibus* at atapi?
251
252 # ATAPI devices
253 # flags have the same meaning as for IDE drives.
254 cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives
255 sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives
256 uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown
257
258 # Network Interfaces
259
260 # PCI network interfaces
261 re* at pci? dev ? function ? # Realtek 8139C+/8169/8169S/8110S
262 rtk* at pci? dev ? function ? # Realtek 8129/8139
263
264 # MII/PHY support
265 rlphy* at mii? phy ? # Realtek 8139/8201L PHYs
266 urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs
267 ukphy* at mii? phy ? # generic unknown PHYs
268
269
270 # USB Controller and Devices
271
272 # PCI USB controllers
273 ehci* at pci? dev ? function ? # Enhanced Host Controller
274 ohci* at pci? dev ? function ? # Open Host Controller
275
276 # USB bus support
277 usb* at ehci?
278 usb* at ohci?
279
280 # USB Hubs
281 uhub* at usb?
282 uhub* at uhub? port ?
283
284 # USB HID device
285 uhidev* at uhub? port ? configuration ? interface ?
286
287 # USB Mice
288 ums* at uhidev? reportid ?
289 wsmouse* at ums? mux 0
290
291 # USB Keyboards
292 ukbd* at uhidev? reportid ?
293 wskbd* at ukbd? console ? mux 1
294
295 # USB LCDs and USB-VGA adaptors
296 udl* at uhub? port ? # DisplayLink DL-1x0/1x5
297 wsdisplay* at udl?
298
299 # USB serial adpater
300 ucycom* at uhidev? reportid ?
301
302 # USB Generic HID devices
303 uhid* at uhidev? reportid ?
304
305 # USB Printer
306 ulpt* at uhub? port ? configuration ? interface ?
307
308 # USB Modem
309 umodem* at uhub? port ? configuration ?
310 ucom* at umodem?
311
312 # Option N.V. Wireless WAN modems
313 uhso* at uhub? port ? configuration ?
314
315 # USB Mass Storage
316 umass* at uhub? port ? configuration ? interface ?
317 scsibus* at umass?
318 wd* at umass?
319
320 # USB audio
321 uaudio* at uhub? port ? configuration ?
322
323 # USB MIDI
324 umidi* at uhub? port ? configuration ?
325
326 # USB IrDA
327 # USB-IrDA bridge spec
328 uirda* at uhub? port ? configuration ? interface ?
329 irframe* at uirda?
330
331 # SigmaTel STIr4200 USB/IrDA Bridge
332 ustir* at uhub? port ?
333 irframe* at ustir?
334
335 # USB Ethernet adapters
336 aue* at uhub? port ? # ADMtek AN986 Pegasus based adapters
337 axe* at uhub? port ? # ASIX AX88172 based adapters
338 cdce* at uhub? port ? # CDC, Ethernet Networking Control Model
339 cue* at uhub? port ? # CATC USB-EL1201A based adapters
340 kue* at uhub? port ? # Kawasaki LSI KL5KUSB101B based adapters
341 udav* at uhub? port ? # Davicom DM9601 based adapters
342 ral* at uhub? port ? #
343 url* at uhub? port ? # Realtek RTL8150L based adapters
344
345 # USB 802.11b adapters
346 atu* at uhub? port ? # Atmel AT76C50XX based adapters
347
348 # Prolific PL2301/PL2302 host-to-host adapter
349 upl* at uhub? port ?
350
351 # Serial adapters
352 ubsa* at uhub? port ? # Belkin serial adapter
353 ucom* at ubsa? portno ?
354
355 uftdi* at uhub? port ? # FTDI FT8U100AX serial adapter
356 ucom* at uftdi? portno ?
357
358 umct* at uhub? port ? # MCT USB-RS232 serial adapter
359 ucom* at umct? portno ?
360
361 uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter
362 ucom* at uplcom? portno ?
363
364 uvscom* at uhub? port ? # SUNTAC Slipper U VS-10U serial adapter
365 ucom* at uvscom? portno ?
366
367 # Diamond Multimedia Rio 500
368 urio* at uhub? port ?
369
370 # USB Handspring Visor
371 uvisor* at uhub? port ?
372 ucom* at uvisor?
373
374 # Kyocera AIR-EDGE PHONE
375 ukyopon* at uhub? port ?
376 ucom* at ukyopon? portno ?
377
378 # USB scanners
379 uscanner* at uhub? port ?
380
381 # USB scanners that use SCSI emulation, e.g., HP5300
382 usscanner* at uhub? port ?
383
384 # Y@P firmware loader
385 uyap* at uhub? port ?
386
387 # D-Link DSB-R100 USB radio
388 udsbr* at uhub? port ?
389 radio* at udsbr?
390
391 # USB Generic driver
392 ugen* at uhub? port ?
393
394
395 # Audio Devices
396
397 # Audio support
398 audio* at audiobus?
399
400 # MIDI support
401 midi* at midibus?
402
403
404 # Miscellaneous Devices
405
406 # Power switch
407 pwrsw0 at obio?
408
409 # Reset button, USL-5P misc button
410 btn0 at obio?
411
412 # Pull in optional local configuration
413 cinclude "arch/landisk/conf/GENERIC.local"
414
415
416 # Pseudo-Devices
417
418 #
419 # accept filters
420 pseudo-device accf_data # "dataready" accept filter
421 pseudo-device accf_http # "httpready" accept filter
422
423 # disk/mass storage pseudo-devices
424 pseudo-device ccd 4 # concatenated/striped disk devices
425 #pseudo-device cgd 4 # cryptographic disk devices
426 pseudo-device raid 8 # RAIDframe disk driver
427 options RAID_AUTOCONFIG # auto-configuration of RAID components
428 # Options to enable various other RAIDframe RAID types.
429 #options RF_INCLUDE_EVENODD=1
430 #options RF_INCLUDE_RAID5_RS=1
431 #options RF_INCLUDE_PARITYLOGGING=1
432 #options RF_INCLUDE_CHAINDECLUSTER=1
433 #options RF_INCLUDE_INTERDECLUSTER=1
434 #options RF_INCLUDE_PARITY_DECLUSTERING=1
435 #options RF_INCLUDE_PARITY_DECLUSTERING_DS=1
436 pseudo-device fss # file system snapshot device
437
438 pseudo-device md # memory disk device (ramdisk)
439 pseudo-device vnd # disk-like interface to files
440 options VND_COMPRESSION # compressed vnd(4)
441
442 # network pseudo-devices
443 pseudo-device bpfilter # Berkeley packet filter
444 pseudo-device ipfilter # IP filter (firewall) and NAT
445 pseudo-device loop # network loopback
446 pseudo-device ppp # Point-to-Point Protocol
447 pseudo-device pppoe # PPP over Ethernet (RFC 2516)
448 pseudo-device sl # Serial Line IP
449 pseudo-device strip # Starmode Radio IP (Metricom)
450 pseudo-device irframetty # IrDA frame line discipline
451 pseudo-device tap # virtual Ethernet
452 pseudo-device tun # network tunneling over tty
453 pseudo-device gre # generic L3 over IP tunnel
454 pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
455 #pseudo-device faith # IPv[46] tcp relay translation i/f
456 #pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
457 pseudo-device vlan # IEEE 802.1q encapsulation
458 pseudo-device bridge # simple inter-network bridging
459 #options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too
460 pseudo-device agr # IEEE 802.3ad link aggregation
461 #pseudo-device pf # PF packet filter
462 #pseudo-device pflog # PF log if
463
464 # miscellaneous pseudo-devices
465 pseudo-device pty # pseudo-terminals
466 pseudo-device sequencer 1 # MIDI sequencer
467 pseudo-device rnd # /dev/random and in-kernel generator
468 pseudo-device clockctl # user control of clock subsystem
469 pseudo-device ksyms # /dev/ksyms
470 pseudo-device putter # for puffs and pud
471
472 # a pseudo device needed for Coda # also needs CODA (above)
473 pseudo-device vcoda 4 # coda minicache <-> venus comm.
474
475 # a pseudo device needed for SMBFS
476 pseudo-device nsmb # experimental - SMB requester
477
478 # wscons pseudo-devices
479 pseudo-device wsmux # mouse & keyboard multiplexor
480 #pseudo-device wsfont
481