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