GENERIC revision 1.139 1 # $NetBSD: GENERIC,v 1.139 2020/04/18 11:00:42 skrll 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/netwinder/conf/std.netwinder"
22
23 options INCLUDE_CONFIG_FILE # embed config file in kernel binary
24
25 # estimated number of users
26
27 maxusers 32
28
29 # Standard system options
30
31 options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
32 #options NTP # NTP phase/frequency locked loop
33
34 # Alternate buffer queue strategies for better responsiveness under high
35 # disk I/O load.
36 #options BUFQ_READPRIO
37 options BUFQ_PRIOCSCAN
38
39 # CPU options
40
41 # For StrongARM systems
42 options CPU_SA110 # Support the SA110 core
43 makeoptions CPUFLAGS="-march=armv4 -mtune=strongarm"
44
45 # Default console is wscons, if igsfb(4) and pckbc(4) are configured,
46 # or com(4) otherwise. You can force a serial console with these options
47 #options CONSDEVNAME="\"com\"",CONCOMADDR=0x3f8,CONSPEED=115200
48
49
50 # File systems
51
52 file-system FFS # UFS
53 #file-system LFS # log-structured file system
54 file-system MFS # memory file system
55 file-system NFS # Network file system
56 #file-system ADOSFS # AmigaDOS-compatible file system
57 file-system EXT2FS # second extended file system (linux)
58 #file-system CD9660 # ISO 9660 + Rock Ridge file system
59 file-system MSDOSFS # MS-DOS file system
60 file-system FDESC # /dev/fd
61 file-system KERNFS # /kern
62 file-system NULLFS # loopback file system
63 file-system PROCFS # /proc
64 #file-system UMAPFS # NULLFS + uid and gid remapping
65 #file-system UNION # union file system
66 file-system PTYFS # /dev/pts/N support
67 file-system TMPFS # Efficient memory file-system
68 #file-system UDF # experimental - OSTA UDF CD/DVD file-system
69
70 # File system options
71 #options QUOTA # legacy UFS quotas
72 #options QUOTA2 # new, in-filesystem UFS quotas
73 #options FFS_EI # FFS Endian Independent support
74 #options FFS_NO_SNAPSHOT # No FFS snapshot support
75 #options UFS_EXTATTR # Extended attribute support for UFS1
76 options NFSSERVER
77 options WAPBL # File system journaling support
78 #options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
79
80 # Networking options
81
82 #options GATEWAY # packet forwarding
83 options INET # IP + ICMP + TCP + UDP
84 options INET6 # IPV6
85 #options IPSEC # IP security
86 #options IPSEC_DEBUG # debug for IP security
87 #options MROUTING # IP multicast routing
88 #options PIM # Protocol Independent Multicast
89 #options NETATALK # AppleTalk networking
90 #options PPP_BSDCOMP # BSD-Compress compression support for PPP
91 #options PPP_DEFLATE # Deflate compression support for PPP
92 #options PPP_FILTER # Active filter support for PPP (requires bpf)
93 #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
94
95 #options ALTQ # Manipulate network interfaces' output queues
96 #options ALTQ_BLUE # Stochastic Fair Blue
97 #options ALTQ_CBQ # Class-Based Queueing
98 #options ALTQ_CDNR # Diffserv Traffic Conditioner
99 #options ALTQ_FIFOQ # First-In First-Out Queue
100 #options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box)
101 #options ALTQ_HFSC # Hierarchical Fair Service Curve
102 #options ALTQ_LOCALQ # Local queueing discipline
103 #options ALTQ_PRIQ # Priority Queueing
104 #options ALTQ_RED # Random Early Detection
105 #options ALTQ_RIO # RED with IN/OUT
106 #options ALTQ_WFQ # Weighted Fair Queueing
107
108 options NFS_BOOT_BOOTP
109 options NFS_BOOT_DHCP
110 #options NFS_BOOT_BOOTPARAM
111
112 # Compatibility options
113
114 options COMPAT_NETBSD32 # allow running arm (e.g. non-earm) binaries
115 include "conf/compat_netbsd14.config"
116
117 options COMPAT_LINUX # binary compatibility with Linux
118
119 # Shared memory options
120
121 options SYSVMSG # System V-like message queues
122 options SYSVSEM # System V-like semaphores
123 options SYSVSHM # System V-like memory sharing
124
125 # Device options
126
127 #options MEMORY_DISK_HOOKS # boottime setup of ramdisk
128 #options MEMORY_DISK_ROOT_SIZE=3400 # Size in blocks
129 #options MEMORY_DISK_IS_ROOT # use memory disk as root
130
131 # Miscellaneous kernel options
132 options KTRACE # system call tracing, a la ktrace(1)
133 options IRQSTATS # manage IRQ statistics
134 #options SCSIVERBOSE # Verbose SCSI errors
135 options PCIVERBOSE # Verbose PCI descriptions
136 options MIIVERBOSE # Verbose MII autoconfuration messages
137 #options PCI_CONFIG_DUMP # verbosely dump PCI config space
138 #options DDB_KEYCODE=0x40
139 options USERCONF # userconf(4) support
140 #options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
141 options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
142
143 # Development and Debugging options
144
145 #options ARM700BUGTRACK # track the ARM700 swi bug
146 #options PORTMASTER # Enable PortMaster only options
147 #options DIAGNOSTIC # internal consistency checks
148 #options UVMHIST # kernhist for uvm/pmap subsystems
149 options DDB # in-kernel debugger
150 options DDB_HISTORY_SIZE=100 # Enable history editing in DDB
151 makeoptions DEBUG="-g" # compile full symbol table
152 makeoptions COPY_SYMTAB=1
153
154 config netbsd root on ? type ?
155
156 # The main bus device
157 mainbus0 at root
158
159 # The boot CPU
160 cpu0 at mainbus?
161
162 # Core logic
163 footbridge0 at mainbus?
164
165 # footbridge uart
166 #fcom0 at footbridge?
167
168 # system clock via footbridge
169 #clock* at footbridge?
170
171 # PCI bus via footbridge
172 pci0 at footbridge? # PCI bus
173
174 # ISA bus support
175 pcib* at pci? dev ? function ? # ISA bridge
176 isa* at pcib?
177
178
179 # PCI IDE Controllers and Devices
180 # PCI IDE controllers - see pciide(4) for supported hardware.
181 # The 0x0001 flag force the driver to use DMA, even if the driver doesn't know
182 # how to set up DMA modes for this chip. This may work, or may cause
183 # a machine hang with some controllers.
184 #pciide* at pci? dev ? function ? flags 0x0000 # GENERIC pciide driver
185 slide* at pci? dev ? function ? # Symphony Labs IDE controllers
186
187 # ATA (IDE) bus support
188 atabus* at ata?
189
190 # IDE drives
191 # Flags are used only with controllers that support DMA operations
192 # and mode settings (e.g. some pciide controllers)
193 # The lowest order four bits (rightmost digit) of the flags define the PIO
194 # mode to use, the next set of four bits the DMA mode and the third set the
195 # UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
196 # to use, and the last bit must be 1 for this setting to be used.
197 # For DMA and UDMA, 0xf (1111) means 'disable'.
198 # 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
199 # (0xc=1100, 0xa=1010, 0xf=1111)
200 # 0x0000 means "use whatever the drive claims to support".
201 wd* at atabus? drive ? flags 0x0000 # the drives themselves
202
203 # PCI network interfaces
204 ne* at pci? dev ? function ? # NE2000 compat ethernet
205 tlp* at pci? dev ? function ? # DECchip 21x4x (and clones) Ethernet
206 options TLP_MATCH_21142
207
208 # MII/PHY support
209 icsphy* at mii? phy ? # ISC-189x PHYs
210 ukphy* at mii? phy ? # generic unknown PHYs
211
212
213 # WSCONS Support
214 options WSEMUL_VT100 # VT100 / VT220 emulation
215
216 # customization of console and kernel output - see dev/wscons/wsdisplayvar.h
217 options WSDISPLAY_CUSTOM_OUTPUT # color customization from wsconsctl(8)
218 #options WS_DEFAULT_FG=WSCOL_WHITE
219 #options WS_DEFAULT_BG=WSCOL_BLACK
220 #options WS_DEFAULT_COLATTR="(0)"
221 #options WS_DEFAULT_MONOATTR="(0)"
222 options WS_KERNEL_FG=WSCOL_GREEN
223 #options WS_KERNEL_BG=WSCOL_BLACK
224 options WS_KERNEL_COLATTR=WSATTR_HILIT
225 #options WS_KERNEL_MONOATTR="(0)"
226
227 # compatibility to other console drivers
228 options WSDISPLAY_COMPAT_PCVT # emulate some ioctls
229 options WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls
230 options WSDISPLAY_COMPAT_USL # wsconscfg VT handling
231 options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
232
233 options FONT_GALLANT12x22 # Sun PROM font look-alike
234
235 pckbc0 at isa?
236 pckbd* at pckbc?
237 wskbd* at pckbd? console ?
238 pms* at pckbc?
239 wsmouse* at pms? mux 0
240
241 igsfb* at pci? dev ? function ?
242 wsdisplay* at igsfb? console ?
243
244
245 # ISA Devices
246 com0 at isa? port 0x3f8 irq 4
247 lpt0 at isa? port 0x378 irq 7
248
249
250 # Audio Devices
251
252 # ISA audio devices
253 sb0 at isa? port 0x220 irq 3 drq 1 drq2 7 # SoundBlaster
254 opl* at sb?
255 mpu* at sb?
256 midi* at sb? # SB1 MIDI port
257
258 # Audio support
259 audio* at sb?
260
261 spkr* at audio? # PC speaker (synthesized)
262
263 # Pseudo-Devices
264
265 pseudo-device crypto # /dev/crypto device
266 pseudo-device swcrypto # software crypto implementation
267
268 # disk/mass storage pseudo-devices
269 #pseudo-device md # memory disk device (ramdisk)
270 pseudo-device vnd # disk-like interface to files
271 #options VND_COMPRESSION # compressed vnd(4)
272 pseudo-device fss # file system snapshot device
273 #pseudo-device cgd # cryptographic disk devices
274
275 # network pseudo-devices
276 pseudo-device bpfilter # Berkeley packet filter
277 pseudo-device carp # Common Address Redundancy Protocol
278 pseudo-device pppoe # PPP over Ethernet (RFC 2516)
279 pseudo-device bridge # simple inter-network bridging
280 #options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too
281 pseudo-device loop # network loopback
282
283 #
284 # accept filters
285 pseudo-device accf_data # "dataready" accept filter
286 pseudo-device accf_http # "httpready" accept filter
287
288 # miscellaneous pseudo-devices
289 pseudo-device pty # pseudo-terminals
290 pseudo-device clockctl # user control of clock subsystem
291 pseudo-device drvctl # user control of drive subsystem
292 pseudo-device ksyms # /dev/ksyms
293 #pseudo-device npf # NPF packet filter
294
295 # wscons pseudo-devices
296 pseudo-device wsmux # mouse & keyboard multiplexor
297 #pseudo-device wsfont
298
299 include "dev/veriexec.config"
300