GENERIC revision 1.175 1 # $NetBSD: GENERIC,v 1.175 2021/01/21 06:51:55 nia 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/ofppc/conf/std.ofppc"
22
23 options INCLUDE_CONFIG_FILE # embed config file in kernel binary
24
25 #ident "GENERIC-$Revision: 1.175 $"
26
27 maxusers 32
28
29 options PIC_OPENPIC
30 options PIC_DISTOPENPIC
31 options PIC_I8259
32 #options PIC_PREPIVR
33
34 # various hacks due to bugs in Openfirmware implementation
35 options FIRMWORKSBUGS
36
37 # Standard system options
38 options INSECURE # disable kernel security checks
39 #options NTP # NTP phase/frequency locked loop
40 options KTRACE # system call tracing via ktrace(1)
41
42 options SYSVMSG # System V message queues
43 options SYSVSEM # System V semaphores
44 options SYSVSHM # System V shared memory
45
46 options USERCONF # userconf(4) support
47 #options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
48 options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
49 options RDB_PART # Rigid Disk Block partition support
50
51 # Alternate buffer queue strategies for better responsiveness under high
52 # disk I/O load.
53 #options BUFQ_READPRIO
54 options BUFQ_PRIOCSCAN
55
56 # Diagnostic/debugging support options
57 #options DIAGNOSTIC # cheap kernel consistency checks
58 #options DEBUG # expensive debugging checks/support
59 options DDB # in-kernel debugger
60 options DDB_HISTORY_SIZE=512 # enable history editing in DDB
61 options DDB_VERBOSE_HELP
62 options TRAP_PANICWAIT
63 options MSGBUFSIZE=32768
64
65 makeoptions DEBUG="-g" # compile full symbol table
66
67 # Compatibility option
68 include "conf/compat_netbsd09.config"
69 options COMPAT_386BSD_MBRPART # recognize old partition ID
70 #options COMPAT_LINUX # Linux binary compatibility
71 #options COMPAT_OSSAUDIO # Linux binary compatibility
72
73 # Wedge support
74 options DKWEDGE_AUTODISCOVER # Automatically add dk(4) instances
75 options DKWEDGE_METHOD_GPT # Supports GPT partitions as wedges
76 #options DKWEDGE_METHOD_BSDLABEL # Support disklabel entries as wedges
77 #options DKWEDGE_METHOD_MBR # Support MBR partitions as wedges
78 options DKWEDGE_METHOD_APPLE # Support Apple partitions as wedges
79 #options DKWEDGE_METHOD_RDB # Support RDB partitions as wedges
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 CD9660 # ISO 9660 + Rock Ridge file system
88 file-system MSDOSFS # MS-DOS file system
89 file-system ADOSFS # AmigaDOS 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 PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs)
95 file-system PROCFS # /proc
96 file-system UMAPFS # NULLFS + uid and gid remapping
97 file-system UNION # union file system
98 file-system NTFS # Windows NT file system
99 file-system PTYFS # /dev/pts/N support
100 file-system TMPFS # Efficient memory file-system
101 #file-system UDF # experimental - OSTA UDF CD/DVD file-system
102
103 # File system options
104 options QUOTA # legacy UFS quotas
105 options QUOTA2 # new, in-filesystem UFS quotas
106 options FFS_EI # FFS Endian Independent support
107 options WAPBL # File system journaling support
108 #options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
109 options NFSSERVER # Network File System server
110 #options FFS_NO_SNAPSHOT # No FFS snapshot support
111 options UFS_EXTATTR # Extended attribute support for UFS1
112 #options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
113 # immutable) behave as system flags.
114
115 options NFS_BOOT_DHCP # Support DHCP NFS root
116
117 # Networking options
118 #options GATEWAY # packet forwarding
119 options INET # IP + ICMP + TCP + UDP
120 options INET6 # IPV6
121 #options IPSEC # IP security
122 #options IPSEC_DEBUG # debug for IP security
123 #options MROUTING # IP multicast routing
124 #options PIM # Protocol Independent Multicast
125 #options NETATALK # AppleTalk networking protocols
126 options PPP_BSDCOMP # BSD-Compress compression support for PPP
127 options PPP_DEFLATE # Deflate compression support for PPP
128 options PPP_FILTER # Active filter support for PPP (requires BPF)
129 #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
130
131 #options ALTQ # Manipulate network interfaces' output queues
132 #options ALTQ_BLUE # Stochastic Fair Blue
133 #options ALTQ_CBQ # Class-Based Queueing
134 #options ALTQ_CDNR # Diffserv Traffic Conditioner
135 #options ALTQ_FIFOQ # First-In First-Out Queue
136 #options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box)
137 #options ALTQ_HFSC # Hierarchical Fair Service Curve
138 #options ALTQ_LOCALQ # Local queueing discipline
139 #options ALTQ_PRIQ # Priority Queueing
140 #options ALTQ_RED # Random Early Detection
141 #options ALTQ_RIO # RED with IN/OUT
142 #options ALTQ_WFQ # Weighted Fair Queueing
143
144 # These options enable verbose messages for several subsystems.
145 # Warning, these may compile large string tables into the kernel!
146 options MIIVERBOSE # verbose PHY autoconfig messages
147 options PCIVERBOSE # verbose PCI device autoconfig messages
148 #options PCI_CONFIG_DUMP # verbosely dump PCI config space
149 options SCSIVERBOSE # human readable SCSI error messages
150 options USBVERBOSE # verbose USB device autoconfig messages
151
152 options WSEMUL_VT100
153 options WSDISPLAY_COMPAT_USL # wsconscfg VT handling
154 options WS_DEFAULT_FG=WSCOL_BLACK
155 options WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
156 options WS_KERNEL_FG=WSCOL_GREEN
157 options WS_KERNEL_BG=WSCOL_LIGHT_WHITE
158 #options FONT_GALLANT12x22
159 options FONT_BOLD8x16
160
161 # Kernel root file system and dump configuration
162 config netbsd root on ? type ?
163
164 #
165 # Device configuration
166 #
167
168 mainbus* at root
169
170 # CPUs
171 cpu* at mainbus?
172
173 # Generic OpenFirmware console support
174 rtas* at mainbus?
175
176 gt* at mainbus? # Marvell MV64361 Discovery II
177 mvgbec* at gt? offset ? # Gigabit Ethernet
178 mvgbe0 at mvgbec? port 1 irq 9
179
180 # PCI root nodes
181 ofwpci* at mainbus?
182 pci* at ofwpci? bus ?
183 gtpci* at gt? unit ?
184 pci* at gtpci? bus ?
185
186 # PCI bridges
187 pchb* at pci? dev ? function ?
188 ppb* at pci? dev ? function ?
189 pcib* at pci? dev ? function ?
190
191 # ISA bus support
192 isa* at pcib?
193
194 # Console Devices
195 genfb* at pci? dev ? function ?
196 #radeonfb* at pci? dev ? function ?
197 #voodoofb* at pci? dev ? function ? # 3Dfx Voodoo3
198 tdvfb* at pci? dev ? function ? # 3Dfx Voodoo1/Voodoo2
199 #options TDVFB_CONSOLE
200 pckbc0 at isa? # pc keyboard controller
201 pckbd* at pckbc? # PC keyboard
202 pms* at pckbc? # PS/2 mouse for wsmouse
203 #wscons stuff
204 wskbd* at pckbd? console ?
205 wsmouse* at pms? mux 0
206 # make sure the console display is always wsdisplay0 XXX Why?
207 wsdisplay0 at wsemuldisplaydev? console 1
208 wsdisplay* at wsemuldisplaydev?
209
210 attimer0 at isa? # AT Timer
211 pcppi0 at isa? # PC prog. periph. interface
212 # FIX ISABEEP LATER
213
214 # VIA VT82C686A/VT8231 Hardware Monitor and Power Management Timer
215 viaenv* at pci? dev ? function ?
216
217 # Serial Devices
218 # ISA serial interfaces
219 com0 at isa? port 0x3f8 irq 4 # standard PC serial ports
220 com1 at isa? port 0x2f8 irq 3
221
222 # Parallel Printer Interfaces
223 # ISA parallel printer interfaces
224 lpt0 at isa? port 0x3bc irq 7 # standard PC parallel ports
225
226 # ISA floppy
227 fdc0 at isa? port 0x3f0 irq 6 drq 2 # standard PC floppy controllers
228 fd* at fdc? drive ? # the drives themselves
229
230 # SCSI Controllers and Devices
231 siop* at pci? dev ? function ? # Symbios 53c8xx SCSI
232 esiop* at pci? dev ? function ? # Symbios 53c875 SCSI and newer
233
234 # SCSI bus support
235 scsibus* at siop?
236 scsibus* at esiop?
237 scsibus* at umass?
238 scsibus* at sbp?
239
240 # SCSI devices
241 sd* at scsibus? target ? lun ? # SCSI disk drives
242 st* at scsibus? target ? lun ? # SCSI tape drives
243 cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
244 #ch* at scsibus? target ? lun ? # SCSI autochangers
245 #ss* at scsibus? target ? lun ? # SCSI scanners
246 #uk* at scsibus? target ? lun ? # SCSI unknown
247
248 # IDE and related devices
249 # PCI IDE controllers
250 pciide* at pci? dev ? function ? flags 0x0000
251 viaide* at pci? dev ? function ? # VIA/AMD/Nvidia IDE controllers
252 siisata* at pci? dev ? function ?
253
254 # ATA (IDE) bus support
255 atabus0 at viaide0 channel 0
256 atabus1 at viaide0 channel 1
257 atabus* at ata?
258
259 # IDE drives
260 # Flags are used only with controllers that support DMA operations
261 # and mode settings (e.g. some pciide controllers)
262 # The lowest order four bits (rightmost digit) of the flags define the PIO
263 # mode to use, the next set of four bits the DMA mode and the third set the
264 # UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
265 # to use, and the last bit must be 1 for this setting to be used.
266 # For DMA and UDMA, 0xf (1111) means 'disable'.
267 # 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
268 # (0xc=1100, 0xa=1010, 0xf=1111)
269 # 0x0000 means "use whatever the drive claims to support".
270 wd0 at atabus0 drive 0 flags 0x0000
271 wd* at atabus? drive ? flags 0x0000
272
273 # ATAPI bus support
274 atapibus* at atapi?
275
276 # ATAPI devices
277 # flags have the same meaning as for IDE drives.
278 cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives
279 sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives
280 uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown
281
282 # Network Interfaces
283 ep* at pci? dev ? function ? # 3Com 3c59x
284 ex* at pci? dev ? function ? # 3Com 3c90x[BC]
285 fxp* at pci? dev ? function ? # Intel EtherExpress PRO 10+/100B
286 ne* at pci? dev ? function ? # NE2000-compatible Ethernet
287 pcn* at pci? dev ? function ? # AMD PCnet-PCI Ethernet
288 re* at pci? dev ? function ? # Realtek 8139C+/8169/8169S/8110S
289 rtk* at pci? dev ? function ? # Realtek 8129/8139
290 sip* at pci? dev ? function ? # SiS 900/DP83815 Ethernet
291 tlp* at pci? dev ? function ? # DECchip 21x4x and clones
292 vr* at pci? dev ? function ? # VIA Rhine Fast Ethernet
293
294 # MII/PHY support
295 acphy* at mii? phy ? # Altima AC101 and AMD Am79c874 PHYs
296 amhphy* at mii? phy ? # AMD 79c901 Ethernet PHYs
297 bmtphy* at mii? phy ? # Broadcom BCM5201 and BCM5202 PHYs
298 brgphy* at mii? phy ? # Broadcom BCM5400-family PHYs
299 ciphy* at mii? phy ? # Cicada CS8201 Gig-E PHYs
300 dmphy* at mii? phy ? # Davicom DM9101 PHYs
301 exphy* at mii? phy ? # 3Com internal PHYs
302 gentbi* at mii? phy ? # Generic Ten-Bit 1000BASE-[CLS]X PHYs
303 glxtphy* at mii? phy ? # Level One LXT-1000 PHYs
304 gphyter* at mii? phy ? # NS83861 Gig-E PHY
305 icsphy* at mii? phy ? # Integrated Circuit Systems ICS189x
306 igphy* at mii? phy ? # Intel IGP01E1000
307 ikphy* at mii? phy ? # Intel 82563 PHYs
308 inphy* at mii? phy ? # Intel 82555 PHYs
309 iophy* at mii? phy ? # Intel 82553 PHYs
310 lxtphy* at mii? phy ? # Level One LXT-970 PHYs
311 makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs
312 nsphy* at mii? phy ? # NS83840 PHYs
313 nsphyter* at mii? phy ? # NS83843 PHYs
314 pnaphy* at mii? phy ? # generic HomePNA PHYs
315 qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs
316 rgephy* at mii? phy ? # Realtek 8169S/8110S internal PHYs
317 rlphy* at mii? phy ? # Realtek 8139/8201L PHYs
318 sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs
319 tlphy* at mii? phy ? # ThunderLAN PHYs
320 tqphy* at mii? phy ? # TDK Semiconductor PHYs
321 ukphy* at mii? phy ? # generic unknown PHYs
322 urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs
323
324 # PCI USB controllers
325 uhci* at pci? dev ? function ? # USB Universal Host Controller
326 ohci* at pci? dev ? function ? # USB Open Host Controller
327 ehci* at pci? dev ? function ? # USB Enhanced Host Controller
328 options USB_FRAG_DMA_WORKAROUND # Workaround panic in usb_allocmem()
329
330 usb* at uhci? # USB bus support
331 usb* at ohci? # USB bus support
332 usb* at ehci? # USB bus support
333 uhub* at usb? # USB Hubs
334 uhub* at uhub? port ?
335
336 # USB Mass Storage
337 umass* at uhub? port ? configuration ? interface ?
338
339 uhidev* at uhub? port ? configuration ? interface ? # USB HID device
340
341 ums* at uhidev? reportid ? # USB Mice
342 wsmouse* at ums? mux 0
343
344 ukbd* at uhidev? reportid ? # USB Keyboards
345 wskbd* at ukbd? console ? mux 1
346
347 ucycom* at uhidev? reportid ? # USB serial adapter
348 uhid* at uhidev? reportid ? # USB Generic HID
349
350 ulpt* at uhub? port ? configuration ? interface ? # USB Printer
351 umodem* at uhub? port ? configuration ? # USB Modem
352 ucom* at umodem?
353 uhso* at uhub? port ? configuration ? # Option N.V. Wireless WAN modems
354 #uaudio* at uhub? port ? configuration ? # USB audio
355
356 # D-Link DSB-R100 USB FM radio tuner
357 #udsbr* at uhub? port ?
358 #radio* at udsbr?
359
360 # USB Ethernet adapters
361 #aue* at uhub? port ? # ADMtek AN986 Pegasus based adapters
362 #axe* at uhub? port ? # ASIX AX88172 based adapters
363 #cue* at uhub? port ? # CATC USB-EL1201A based adapters
364 #kue* at uhub? port ? # Kawasaki LSI KL5KUSB101B based adapters
365 #mue* at uhub? port ? # Microchip LAN75xx/LAN78xx based adapters
366 #udav* at uhub? port ? # Davicom DM9601 based adapters
367 #ure* at uhub? port ? # Realtek RTL8152/RTL8153 based adapters
368 #url* at uhub? port ? # Realtek RTL8150L based adapters
369
370 #ukyopon* at uhub? port ? # Kyocera AIR-EDGE PHONE
371 #ucom* at ukyopon? portno ?
372
373 #uscanner* at uhub? port ? # USB scanners
374 ugen* at uhub? port ? configuration ? interface ? # USB Generic driver
375
376 # USB 802.11 adapters
377 #atu* at uhub? port ? # Atmel at76c50x 802.11b
378 #ural* at uhub? port ? # Ralink Technology RT2500USB 802.11a/b/g
379 #zyd* at uhub? port ? # Zydas ZD1211
380
381 # PCI IEEE1394 controllers
382 fwohci* at pci? dev ? function ? # IEEE1394 Open Host Controller
383
384 ieee1394if* at fwohci?
385 fwip* at ieee1394if? # IP over IEEE1394
386 sbp* at ieee1394if? euihi ? euilo ?
387
388 # Audio Devices
389
390 # PCI audio devices
391 auvia* at pci? dev ? function ? # VIA VT82C686A integrated AC'97 Audio
392
393 # Audio support
394 audio* at audiobus?
395
396 spkr* at audio? # PC speaker (synthesized)
397
398
399 #
400 # accept filters
401 pseudo-device accf_data # "dataready" accept filter
402 pseudo-device accf_http # "httpready" accept filter
403
404 pseudo-device vnd # disk-like interface to files
405 #options VND_COMPRESSION # compressed vnd(4)
406 pseudo-device ccd # concatenated/striped disk devices
407 #pseudo-device cgd # cryptographic disk devices
408 pseudo-device raid # RAIDframe disk driver
409 options RAID_AUTOCONFIG # auto-configuration of RAID components
410 # Options to enable various other RAIDframe RAID types.
411 #options RF_INCLUDE_EVENODD=1
412 #options RF_INCLUDE_RAID5_RS=1
413 #options RF_INCLUDE_PARITYLOGGING=1
414 #options RF_INCLUDE_CHAINDECLUSTER=1
415 #options RF_INCLUDE_INTERDECLUSTER=1
416 #options RF_INCLUDE_PARITY_DECLUSTERING=1
417 #options RF_INCLUDE_PARITY_DECLUSTERING_DS=1
418 pseudo-device fss # file system snapshot device
419 pseudo-device md # memory disk device
420 pseudo-device loop # network loopback
421 pseudo-device bpfilter # packet filter
422 pseudo-device carp # Common Address Redundancy Protocol
423 pseudo-device npf # NPF packet filter
424 pseudo-device ppp # Point-to-Point Protocol
425 pseudo-device pppoe # PPP over Ethernet (RFC 2516)
426 pseudo-device sl # Serial Line IP
427 pseudo-device tun # network tunneling over tty
428 pseudo-device tap # virtual Ethernet
429 #pseudo-device gre # generic L3 over IP tunnel
430 pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
431 #pseudo-device faith # IPv[46] tcp relay translation i/f
432 pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
433 pseudo-device vlan # IEEE 802.1q encapsulation
434 pseudo-device bridge # simple inter-network bridging
435 pseudo-device vether # Virtual Ethernet for bridge
436 pseudo-device agr # IEEE 802.3ad link aggregation
437 pseudo-device pty # pseudo-terminals
438 pseudo-device clockctl # user control of clock subsystem
439 pseudo-device openfirm # /dev/openfirm
440 pseudo-device ksyms # /dev/ksyms
441 pseudo-device wsmux # mouse and keyboard multiplexor
442 pseudo-device putter # for puffs and pud
443
444 # userland interface to drivers, including autoconf and properties retrieval
445 pseudo-device drvctl
446
447 include "dev/veriexec.config"
448