GENERIC_601 revision 1.30 1 # $NetBSD: GENERIC_601,v 1.30 2022/08/07 02:52:27 simonb 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 # For PPC 601, need "CPUFLAGS+= -mcpu=601"
22 #
23 # Openfirmware 1.0.5 require a kernel < 4M for netbooting
24 #
25 # this config more or less matches a Power Macintosh 7200 with a USB card
26
27 include "arch/macppc/conf/std.macppc.601"
28
29 options INCLUDE_CONFIG_FILE # embed config file in kernel binary
30
31 ident "GENERIC-$Revision: 1.30 $"
32
33 maxusers 32
34
35 # Standard system options
36 options INSECURE # disable kernel security levels
37
38 options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
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 MODULAR # new style module(7) framework
47 options MODULAR_DEFAULT_AUTOLOAD
48
49 #options USERCONF # userconf(4) support
50 #options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
51 options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
52
53 # Alternate buffer queue strategies for better responsiveness under high
54 # disk I/O load.
55 #options BUFQ_READPRIO
56 options BUFQ_PRIOCSCAN
57
58 # Diagnostic/debugging support options
59 #options DIAGNOSTIC # cheap kernel consistency checks
60 #options DEBUG # expensive debugging checks/support
61 options ZS_CONSOLE_ABORT# allow break to get into DDB on serial
62 options DDB # in-kernel debugger
63 #options DDB_ONPANIC=0 # don't go into ddb on panic.
64 options DDB_HISTORY_SIZE=512 # enable history editing in DDB
65 #options TRAP_PANICWAIT
66 #options DDB_COMMANDONENTER="bt"
67
68 #makeoptions DEBUG="-g" # compile full symbol table
69
70 # Compatibility options
71 include "conf/compat_netbsd50.config"
72
73 #options COMPAT_386BSD_MBRPART # recognize old partition ID
74 #options COMPAT_LINUX # Linux binary compatibility
75 #options COMPAT_OSSAUDIO # Linux binary compatibility
76
77 # Wedge support
78 options DKWEDGE_AUTODISCOVER # Automatically add dk(4) instances
79 options DKWEDGE_METHOD_GPT # Supports GPT partitions as wedges
80 #options DKWEDGE_METHOD_BSDLABEL # Support disklabel entries as wedges
81 #options DKWEDGE_METHOD_MBR # Support MBR partitions as wedges
82 options DKWEDGE_METHOD_APPLE # Support Apple partitions as wedges
83 #options DKWEDGE_METHOD_RDB # Support RDB partitions as wedges
84
85 # File systems
86 file-system FFS # UFS
87 #file-system EXT2FS # second extended file system (linux)
88 #file-system LFS # log-structured file system
89 #file-system MFS # memory file system
90 file-system NFS # Network File System client
91 file-system CD9660 # ISO 9660 + Rock Ridge file system
92 #file-system MSDOSFS # MS-DOS file system
93 file-system FDESC # /dev/fd
94 file-system KERNFS # /kern
95 #file-system NULLFS # loopback file system
96 #file-system OVERLAY # overlay file system
97 #file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs)
98 file-system PROCFS # /proc
99 #file-system UMAPFS # NULLFS + uid and gid remapping
100 #file-system UNION # union file system
101 file-system PTYFS # /dev/pts/N support
102 file-system TMPFS # Efficient memory file-system
103 #file-system UDF # experimental - OSTA UDF CD/DVD file-system
104 #file-system HFS # experimental - Apple HFS+ (read-only)
105
106 # File system options
107 #options APPLE_UFS # Apple UFS support in FFS
108 #options FFS_EI # FFS Endian Independent support
109 #options FFS_NO_SNAPSHOT # No FFS snapshot support
110 #options QUOTA # legacy UFS quotas
111 #options QUOTA2 # new, in-filesystem UFS quotas
112 #options UFS_DIRHASH # UFS Large Directory Hashing
113 #options UFS_EXTATTR # Extended attribute support for UFS1
114 options WAPBL # File system journaling support
115 #options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
116 # immutable) behave as system flags.
117 #options NFSSERVER # Network File System server
118
119 options NFS_BOOT_DHCP # Support DHCP NFS root
120
121 # Networking options
122 #options GATEWAY # packet forwarding
123 options INET # IP + ICMP + TCP + UDP
124 options INET6 # IPV6
125 #options IPSEC # IP security
126 #options IPSEC_DEBUG # debug for IP security
127 #options MROUTING # IP multicast routing
128 #options PIM # Protocol Independent Multicast
129 #options NETATALK # AppleTalk networking protocols
130 #options PPP_BSDCOMP # BSD-Compress compression support for PPP
131 #options PPP_DEFLATE # Deflate compression support for PPP
132 #options PPP_FILTER # Active filter support for PPP (requires bpf)
133 #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
134
135 #options ALTQ # Manipulate network interfaces' output queues
136 #options ALTQ_BLUE # Stochastic Fair Blue
137 #options ALTQ_CBQ # Class-Based Queueing
138 #options ALTQ_CDNR # Diffserv Traffic Conditioner
139 #options ALTQ_FIFOQ # First-In First-Out Queue
140 #options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box)
141 #options ALTQ_HFSC # Hierarchical Fair Service Curve
142 #options ALTQ_LOCALQ # Local queueing discipline
143 #options ALTQ_PRIQ # Priority Queueing
144 #options ALTQ_RED # Random Early Detection
145 #options ALTQ_RIO # RED with IN/OUT
146 #options ALTQ_WFQ # Weighted Fair Queueing
147
148 # These options enable verbose messages for several subsystems.
149 # Warning, these may compile large string tables into the kernel!
150 options PCIVERBOSE # verbose PCI device autoconfig messages
151 options MIIVERBOSE # verbose PHY autoconfig messages
152 #options PCI_CONFIG_DUMP # verbosely dump PCI config space
153 options SCSIVERBOSE # human readable SCSI error messages
154 options USBVERBOSE # verbose USB device autoconfig messages
155
156 # wscons options
157 #options WSEMUL_SUN # sun terminal emulation
158 options WSEMUL_VT100 # VT100 / VT220 emulation
159 options WSDISPLAY_COMPAT_PCVT # emulate some ioctls
160 options WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls
161 options WSDISPLAY_COMPAT_USL # VT handling
162
163 options WS_DEFAULT_FG=WSCOL_BLACK
164 options WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
165 options WS_KERNEL_FG=WSCOL_GREEN
166 options WS_KERNEL_BG=WSCOL_LIGHT_WHITE
167 options WSDISPLAY_SCROLLSUPPORT
168
169 #options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
170 options FONT_GALLANT12x22
171 options FONT_QVSS8x15 # a smaller font for lower resolutions
172 options FONT_DROID_SANS_MONO12x22
173 #options FONT_DROID_SANS_MONO8x16
174
175 # Optional Mac keyboard tweaks
176
177 # Tweak the keyboard driver to treat the caps lock key on an ADB
178 # keyboard as a control key; requires special remapping because of
179 # ADB's strange emulation of a mechanically-locked key.
180 #options CAPS_IS_CONTROL
181
182 # On Mac laptops, several function keys double as "hot keys"
183 # (brightness, volume, eject) when the Fn modifier is held down. Mac
184 # OS X likes to reprogram the keyboard controller to send hot key
185 # events when Fn is not held down and send function key events when it
186 # is. This option transforms the non-keyboard "button" events back
187 # into function key events.
188 # enabled by default since trying to control brightness with those causes
189 # trouble on pretty much all halfway recent Apple laptops
190 options FORCE_FUNCTION_KEYS
191
192 # Kernel root file system and dump configuration.
193 config netbsd root on ? type ?
194
195 #
196 # Device configuration
197 #
198
199 mainbus* at root
200
201 cpu* at mainbus?
202 bandit* at mainbus?
203
204 pci* at bandit? bus ?
205 pci* at ppb? bus ?
206
207 pchb* at pci? dev ? function ? # PCI-Host bridges
208 ppb* at pci? dev ? function ? # PCI-PCI bridges
209
210 # PCI SCSI controllers
211 ahc* at pci? dev ? function ? # Adaptec 294x, aic78x0 SCSI
212
213 # Display devices
214 #
215 # The 7200's onboard video is unsupported by OF so we need either a
216 # graphics card that works as OF console or a serial console.
217 # The only cards known to work ( so far ) are PCI Voodoo3s flashed with the
218 # official Macintosh firmware from 3Dfx. The others should work but are
219 # untested with OF 1.0.5
220
221 # this will take over the console if output-device is set to 'platinum'.
222 # It will provide a NetBSD console, but still won't work with OF
223 platinumfb0 at mainbus?
224
225 #gffb* at pci? function ? # NVIDIA GeForce2 MX
226 #machfb* at pci? function ? # ATI Mach 64, Rage, Rage Pro
227 #r128fb* at pci? function ? # ATI Rage 128
228 voodoofb* at pci? function ? # 3Dfx Voodoo3
229
230 # ATI Radeon. Still has problems on some hardware
231 #radeonfb* at pci? function ?
232
233 # generic PCI framebuffer, should work with everything supported by OF
234 genfb* at pci? function ?
235
236 # make sure the console display is always wsdisplay0
237 wsdisplay0 at wsemuldisplaydev? console 1
238 wsdisplay* at wsemuldisplaydev?
239
240 obio* at pci? dev ? function ?
241
242 mc* at obio? # MACE ethernet
243 esp* at obio? flags 0x00ff # 53c9x SCSI
244 # the 7200 has no mesh but other PMacs with 601 cards may
245 mesh* at obio? flags 0xffff # MESH SCSI
246 nvram* at obio? # nvram
247
248 # the new, improved ADB subsystem
249
250 cuda* at obio? # CUDA, for Old World PowerMacs
251 nadb* at adb_bus? # ADB bus enumerator, at cuda or pmu
252 adbkbd* at nadb? # ADB keyboard
253 adbms* at nadb? # ADB mice and touchpads
254
255 wskbd* at wskbddev? console ?
256 wsmouse* at wsmousedev?
257
258 iic0 at cuda0 # CUDA's IIC bus
259
260 zsc* at obio?
261 zstty* at zsc? channel ?
262
263 awacs* at obio? # Apple audio device
264
265 # Cryptographic Devices
266
267 # PCI cryptographic devices
268 # (disabled, requires opencrypto framework which requires generic softints
269 #hifn* at pci? dev ? function ? # Hifn 7755/7811/795x
270 #ubsec* at pci? dev ? function ? # Broadcom 5501/5601/580x/582x
271
272
273 scsibus* at scsi?
274
275 sd* at scsibus? target ? lun ? # SCSI disks
276 #st* at scsibus? target ? lun ? # SCSI tape drives
277 cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
278 #ch* at scsibus? target ? lun ? # SCSI autochangers
279 #ss* at scsibus? target ? lun ? # SCSI scanners
280 #uk* at scsibus? target ? lun ? # SCSI unknown
281
282 # PCI USB controllers
283 ohci* at pci? dev ? function ? # USB Open Host Controller
284 #ehci* at pci? dev ? function ? # USB Enhanced Host Controller
285
286 #usb* at ehci? # USB bus support
287 usb* at ohci? # USB bus support
288 uhub* at usb? # USB Hubs
289 uhub* at uhub? port ?
290
291 uhidev* at uhub? port ? configuration ? interface ? # USB HID device
292
293 ums* at uhidev? reportid ? # USB Mice
294 wsmouse* at ums? mux 0
295 ukbd* at uhidev? reportid ? # USB Keyboards
296 uhid* at uhidev? reportid ? # USB Generic HID
297
298 umass* at uhub? port ? configuration ? interface ? # USB Mass Storage
299 ugen* at uhub? port ? configuration ? interface ? # USB Generic driver
300
301 # Audio Devices
302
303 # Audio support
304 audio* at audiobus?
305
306 spkr* at audio? # PC speaker (synthesized)
307
308 #
309 # accept filters
310 #pseudo-device accf_data # "dataready" accept filter
311 #pseudo-device accf_http # "httpready" accept filter
312
313 #pseudo-device crypto # /dev/crypto device
314 # (disabled, requires generic softints)
315 #pseudo-device swcrypto # software crypto implementation
316 pseudo-device vnd # disk-like interface to files
317 #options VND_COMPRESSION # compressed vnd(4)
318 #pseudo-device ccd # concatenated/striped disk devices
319 #pseudo-device cgd # cryptographic disk devices
320 #pseudo-device raid # RAIDframe disk driver
321 #options RAID_AUTOCONFIG # auto-configuration of RAID components
322 # Options to enable various other RAIDframe RAID types.
323 # options RF_INCLUDE_EVENODD=1
324 # options RF_INCLUDE_RAID5_RS=1
325 # options RF_INCLUDE_PARITYLOGGING=1
326 # options RF_INCLUDE_CHAINDECLUSTER=1
327 # options RF_INCLUDE_INTERDECLUSTER=1
328 # options RF_INCLUDE_PARITY_DECLUSTERING=1
329 # options RF_INCLUDE_PARITY_DECLUSTERING_DS=1
330 pseudo-device fss # file system snapshot device
331 #pseudo-device md # memory disk device
332 pseudo-device loop # network loopback
333 pseudo-device bpfilter # packet filter
334 #pseudo-device npf # NPF packet filter
335 #pseudo-device ppp # Point-to-Point Protocol
336 #pseudo-device pppoe # PPP over Ethernet (RFC 2516)
337 #pseudo-device sl # Serial Line IP
338 #pseudo-device tun # network tunneling over tty
339 #pseudo-device tap # virtual Ethernet
340 #pseudo-device gre # generic L3 over IP tunnel
341 #pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
342 #pseudo-device faith # IPv[46] tcp relay translation i/f
343 #pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
344 #pseudo-device vlan # IEEE 802.1q encapsulation
345 #pseudo-device bridge # simple inter-network bridging
346 #pseudo-device vether # Virtual Ethernet for bridge
347 #pseudo-device agr # IEEE 802.3ad link aggregation
348 pseudo-device pty # pseudo-terminals
349 pseudo-device openfirm # /dev/openfirm
350 pseudo-device wsmux # mouse and keyboard multiplexer
351 #pseudo-device swwdog # software watchdog driver - swwdog(4)
352 pseudo-device clockctl # user control of clock subsystem
353 pseudo-device ksyms # /dev/ksyms
354 #pseudo-device putter # for puffs and pud
355
356 # userland interface to drivers, including autoconf and properties retrieval
357 pseudo-device drvctl
358
359 # Veriexec
360 # include "dev/veriexec.config"
361
362 #options PAX_MPROTECT=0 # PaX mprotect(2) restrictions
363
364 rlphy* at mii? phy ? # Realtek 8139/8201L PHYs
365 rtk* at pci? dev ? function ? # Realtek 8129/8139
366
367 #rgephy* at mii? phy ? # Realtek 8169S/8110S internal PHYs
368 #ral* at pci? dev ? function ? # Ralink Technology RT25x0 802.11a/b/g
369