GENERIC revision 1.169 1 # $NetBSD: GENERIC,v 1.169 2023/02/12 14:50:38 abs 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/bebox/conf/std.bebox"
22
23 options INCLUDE_CONFIG_FILE # embed config file in kernel binary
24
25 #ident "GENERIC-$Revision: 1.169 $"
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 options KTRACE # system call tracing via ktrace(1)
35
36 options SYSVMSG # System V-like message queues
37 options SYSVSEM # System V-like semaphores
38 options SYSVSHM # System V-like memory sharing
39
40 options USERCONF # userconf(4) support
41 #options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
42 options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
43
44 # Alternate buffer queue strategies for better responsiveness under high
45 # disk I/O load.
46 #options BUFQ_READPRIO
47 options BUFQ_PRIOCSCAN
48
49 # Diagnostic/debugging support options
50 #options DIAGNOSTIC # cheap kernel consistency checks
51 #options DEBUG # expensive debugging checks/support
52 options DDB # in-kernel debugger
53 options DDB_ONPANIC=1 # see also sysctl(7): `ddb.onpanic'
54 options DDB_HISTORY_SIZE=512 # Enable history editing in DDB
55 #makeoptions DEBUG="-g"
56
57 include "conf/compat_netbsd09.config"
58
59 #options COMPAT_386BSD_MBRPART # recognize old partition ID
60 #options COMPAT_LINUX # Linux binary compatibility
61 #options COMPAT_OSSAUDIO # Linux binary compatibility
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 CD9660 # ISO 9660 + Rock Ridge file system
70 file-system MSDOSFS # MS-DOS file system
71 #file-system FDESC # /dev/fd
72 file-system KERNFS # /kern
73 file-system NULLFS # loopback file system
74 #file-system OVERLAY # overlay file system
75 file-system PROCFS # /proc
76 #file-system UMAPFS # NULLFS + uid and gid remapping
77 file-system UNION # union file system
78 #file-system CODA # Coda File System; also needs vcoda (below)
79 file-system PTYFS # /dev/pts/N support
80 file-system TMPFS # Efficient memory file-system
81 #file-system UDF # experimental - OSTA UDF CD/DVD file-system
82 #file-system HFS # experimental - Apple HFS+ (read-only)
83
84 # File system options
85 #options APPLE_UFS # Apple UFS support in FFS
86 #options FFS_EI # FFS Endian Independent support
87 #options FFS_NO_SNAPSHOT # No FFS snapshot support
88 options QUOTA # legacy UFS quotas
89 options QUOTA2 # new, in-filesystem UFS quotas
90 options UFS_DIRHASH # UFS Large Directory Hashing
91 options UFS_EXTATTR # Extended attribute support for UFS1
92 options WAPBL # File system journaling support
93 #options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
94 # immutable) behave as system flags.
95 #options DISKLABEL_EI # disklabel Endian Independent support
96 #options NFSSERVER # Network File System server
97
98 # Networking options
99 #options GATEWAY # packet forwarding
100 options INET # IP + ICMP + TCP + UDP
101 options INET6 # IPV6
102 #options IPSEC # IP security
103 #options IPSEC_DEBUG # debug for IP security
104 #options MROUTING # IP multicast routing
105 #options PIM # Protocol Independent Multicast
106 #options NETATALK # AppleTalk networking protocols
107 #options PPP_BSDCOMP # BSD-Compress compression support for PPP
108 #options PPP_DEFLATE # Deflate compression support for PPP
109 #options PPP_FILTER # Active filter support for PPP (requires bpf)
110 #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
111
112 #options ALTQ # Manipulate network interfaces' output queues
113 #options ALTQ_BLUE # Stochastic Fair Blue
114 #options ALTQ_CBQ # Class-Based Queueing
115 #options ALTQ_CDNR # Diffserv Traffic Conditioner
116 #options ALTQ_FIFOQ # First-In First-Out Queue
117 #options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box)
118 #options ALTQ_HFSC # Hierarchical Fair Service Curve
119 #options ALTQ_LOCALQ # Local queueing discipline
120 #options ALTQ_PRIQ # Priority Queueing
121 #options ALTQ_RED # Random Early Detection
122 #options ALTQ_RIO # RED with IN/OUT
123 #options ALTQ_WFQ # Weighted Fair Queueing
124
125 # These options enable verbose messages for several subsystems.
126 # Warning, these may compile large string tables into the kernel!
127 options PCIVERBOSE # verbose PCI device autoconfig messages
128 options MIIVERBOSE # verbose PHY autoconfig messages
129 #options PCI_CONFIG_DUMP # verbosely dump PCI config space
130 options SCSIVERBOSE # human readable SCSI error messages
131
132 #options NFS_BOOT_BOOTPARAM,NFS_BOOT_BOOTP
133
134 # wscons options
135 # builtin terminal emulations
136 #options WSEMUL_SUN # sun terminal emulation
137 options WSEMUL_VT100 # VT100 / VT220 emulation
138 options WS_DEFAULT_FG=WSCOL_LIGHT_WHITE
139 # compatibility to other console drivers
140 options WSDISPLAY_COMPAT_USL # wsconscfg VT handling
141 options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
142
143 config netbsd root on ? type ?
144
145 mainbus0 at root
146
147 cpu* at mainbus0
148 pci0 at mainbus0 bus ?
149
150 pci* at ppb? bus ?
151
152 ppb* at pci? dev ? function ? # PCI-PCI bridges
153 pchb* at pci? dev ? function ? # PCI-Host bridges
154 pcib* at pci? dev ? function ? # PCI-ISA bridges
155
156 isa* at pcib? # ISA on PCI-ISA bridge
157
158 # Console Devices
159
160 # wscons
161 pckbc0 at isa? # pc keyboard controller
162 pckbd* at pckbc? # PC keyboard
163 pms* at pckbc? # PS/2 mouse for wsmouse
164 #options PMS_DISABLE_POWERHOOK # Disable PS/2 reset on resume
165 #options PMS_SYNAPTICS_TOUCHPAD # Enable support for Synaptics Touchpads
166 genfb* at pci? dev ? function ?
167 options WSFB_FAKE_VGA_FB
168 vga* at pci? dev ? function ?
169 wsdisplay* at vga? console ?
170 wskbd* at pckbd? console ?
171 wsmouse* at pms? mux 0
172
173 # make sure the console display is always wsdisplay0
174 wsdisplay0 at wsemuldisplaydev? console 1
175 wsdisplay* at wsemuldisplaydev?
176
177 com0 at isa? port 0x3f8 irq 4 # standard PC serial ports
178 com1 at isa? port 0x2f8 irq 3
179 com2 at isa? port 0x380 irq 22
180 com3 at isa? port 0x388 irq 23
181
182 lpt0 at isa? port 0x378 irq 7 # standard PC parallel ports
183
184 mcclock0 at isa? port 0x70 # time-of-day clock
185 attimer0 at isa?
186 #pcppi0 at isa?
187 #spkr* at pcppi?
188
189 wss0 at isa? port 0x82c irq 30 drq 6 drq2 7 # Windows Sound System
190
191 # Audio support
192 audio* at audiobus?
193
194 spkr* at audio? # PC speaker (synthesized)
195
196 # MIDI support
197 #midi* at pcppi? # MIDI interface to the PC speaker
198
199 # Joystick driver. Probe is a little strange; add only if you have one.
200 joy0 at isa? port 0x201
201
202 siop* at pci? dev ? function ? # NCR 538XX SCSI controllers
203 scsibus* at siop?
204
205 sd* at scsibus? target ? lun ? # SCSI disk drives
206 #st* at scsibus? target ? lun ? # SCSI tape drives
207 cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
208 #ch* at scsibus? target ? lun ? # SCSI autochangers
209 #ss* at scsibus? target ? lun ? # SCSI scanners
210 #uk* at scsibus? target ? lun ? # SCSI unknown
211
212 fdc0 at isa? port 0x3f0 irq 6 drq 2 # standard PC floppy controllers
213 fd0 at fdc? drive 1
214 #fd* at fdc? drive ?
215
216 wdc0 at isa? port 0x1f0 irq 14 # ST506, ESDI, and IDE controllers
217
218 atabus* at ata?
219 wd* at atabus? drive ?
220
221 # ATAPI bus support
222 atapibus* at atapi?
223
224 # ATAPI devices
225 # flags have the same meaning as for IDE drives.
226 cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives
227 #sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives
228 #st* at atapibus? drive ? flags 0x0000 # ATAPI tape drives
229 #uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown
230
231 # Network devices
232 ec0 at isa? port 0x250 iomem 0xd8000 irq 9 # 3Com 3c503 Ethernet
233 ne0 at isa? port 0x300 irq 5 # NE[12]000 ethernet cards
234 fxp* at pci? dev ? function ? # Intel EtherExpress PRO 10+/100B
235 ne* at pci? dev ? function ? # NE2000-compatible Ethernet
236 tlp* at pci? dev ? function ? # DECchip 21x4x and clones
237
238 # MII/PHY support
239 ukphy* at mii? phy ? # generic unknown PHYs
240
241 # TV cards
242
243 # Brooktree 848/849/878/879 based TV cards
244 bktr* at pci? dev ? function ? # Brooktree video/audio capture/tuner
245
246
247 # Pseudo-Devices
248
249 pseudo-device crypto # /dev/crypto device
250 # (disabled, requires generic softints)
251 pseudo-device swcrypto # software crypto implementation
252
253 # disk/mass storage pseudo-devices
254 #pseudo-device bio # RAID control device driver
255 pseudo-device ccd # concatenated/striped disk devices
256 pseudo-device cgd # cryptographic disk devices
257 #pseudo-device raid # RAIDframe disk driver
258 #options RAID_AUTOCONFIG # auto-configuration of RAID components
259 # Options to enable various other RAIDframe RAID types.
260 #options RF_INCLUDE_EVENODD=1
261 #options RF_INCLUDE_RAID5_RS=1
262 #options RF_INCLUDE_PARITYLOGGING=1
263 #options RF_INCLUDE_CHAINDECLUSTER=1
264 #options RF_INCLUDE_INTERDECLUSTER=1
265 #options RF_INCLUDE_PARITY_DECLUSTERING=1
266 #options RF_INCLUDE_PARITY_DECLUSTERING_DS=1
267 pseudo-device fss # file system snapshot device
268
269 pseudo-device md # memory disk device
270 pseudo-device vnd # disk-like interface to files
271 options VND_COMPRESSION # compressed vnd(4)
272
273 # network pseudo-devices
274 pseudo-device bpfilter # packet filter
275 pseudo-device carp # Common Address Redundancy Protocol
276 pseudo-device npf # NPF packet filter
277 pseudo-device loop # network loopback
278 pseudo-device ppp # Point-to-Point Protocol
279 pseudo-device pppoe # PPP over Ethernet (RFC 2516)
280 pseudo-device sl # Serial Line IP
281 #pseudo-device irframetty # IrDA frame line discipline
282 pseudo-device tap # virtual Ethernet
283 pseudo-device tun # network tunneling over tty
284 #pseudo-device gre # generic L3 over IP tunnel
285 #pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
286 #pseudo-device faith # IPv[46] tcp relay translation i/f
287 #pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
288 #pseudo-device vlan # IEEE 802.1q encapsulation
289 #pseudo-device bridge # simple inter-network bridging
290 #pseudo-device vether # Virtual Ethernet for bridge
291 #pseudo-device agr # IEEE 802.3ad link aggregation
292 # srt is EXPERIMENTAL
293 #pseudo-device srt # source-address-based routing
294
295 #
296 # accept filters
297 pseudo-device accf_data # "dataready" accept filter
298 pseudo-device accf_http # "httpready" accept filter
299
300 # miscellaneous pseudo-devices
301 pseudo-device pty # pseudo-terminals
302 #pseudo-device sequencer # MIDI sequencer
303 #options RND_COM # use "com" randomness as well (BROKEN)
304 pseudo-device clockctl # user control of clock subsystem
305 pseudo-device ksyms # /dev/ksyms
306 pseudo-device lockstat # lock profiling
307 #pseudo-device bcsp # BlueCore Serial Protocol
308 #pseudo-device btuart # Bluetooth HCI UART (H4)
309 pseudo-device swwdog # software watchdog timer -- swwdog(4)
310
311 # a pseudo device needed for Coda # also needs CODA (above)
312 #pseudo-device vcoda # coda minicache <-> venus comm.
313
314 # wscons pseudo-devices
315 pseudo-device wsmux # mouse & keyboard multiplexor
316 pseudo-device wsfont
317
318 # pseudo audio device driver
319 #pseudo-device pad
320
321 # userland interface to drivers, including autoconf and properties retrieval
322 pseudo-device drvctl
323
324 include "dev/veriexec.config"
325
326 #options PAX_MPROTECT=0 # PaX mprotect(2) restrictions
327 #options PAX_ASLR=0 # PaX Address Space Layout Randomization
328
329 # Pull in optional local configuration - always at end
330 cinclude "arch/bebox/conf/GENERIC.local"
331