GENERIC_601 revision 1.12.6.2 1 1.12.6.2 snj # $NetBSD: GENERIC_601,v 1.12.6.2 2018/02/26 01:08:26 snj 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.1 macallan 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.12.6.2 snj ident "GENERIC-$Revision: 1.12.6.2 $"
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.12.6.1 martin # Alternate buffer queue strategies for better responsiveness under high
54 1.12.6.1 martin # disk I/O load.
55 1.1 macallan #options BUFQ_READPRIO
56 1.12.6.2 snj 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.1 macallan 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.4 dholland options COMPAT_50 # NetBSD 5.0,
72 1.4 dholland options COMPAT_60 # NetBSD 6.0, and
73 1.4 dholland options COMPAT_70 # NetBSD 7.0 binary compatibility.
74 1.1 macallan #options COMPAT_386BSD_MBRPART # recognize old partition ID
75 1.1 macallan #options COMPAT_LINUX # Linux binary compatibility
76 1.1 macallan #options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended.
77 1.1 macallan options COMPAT_BSDPTY # /dev/[pt]ty?? ptys.
78 1.1 macallan
79 1.1 macallan # Wedge support
80 1.1 macallan options DKWEDGE_AUTODISCOVER # Automatically add dk(4) instances
81 1.1 macallan options DKWEDGE_METHOD_GPT # Supports GPT partitions as wedges
82 1.12 rin #options DKWEDGE_METHOD_BSDLABEL # Support disklabel entries as wedges
83 1.12 rin #options DKWEDGE_METHOD_MBR # Support MBR partitions as wedges
84 1.3 christos options DKWEDGE_METHOD_APPLE # Support Apple partitions as wedges
85 1.12 rin #options DKWEDGE_METHOD_RDB # Support RDB partitions as wedges
86 1.1 macallan
87 1.1 macallan # File systems
88 1.1 macallan file-system FFS # UFS
89 1.1 macallan #file-system EXT2FS # second extended file system (linux)
90 1.1 macallan #file-system LFS # log-structured file system
91 1.1 macallan #file-system MFS # memory file system
92 1.1 macallan file-system NFS # Network File System client
93 1.1 macallan file-system CD9660 # ISO 9660 + Rock Ridge file system
94 1.1 macallan #file-system MSDOSFS # MS-DOS file system
95 1.1 macallan file-system FDESC # /dev/fd
96 1.1 macallan file-system KERNFS # /kern
97 1.1 macallan #file-system NULLFS # loopback file system
98 1.1 macallan #file-system OVERLAY # overlay file system
99 1.1 macallan #file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs)
100 1.1 macallan file-system PROCFS # /proc
101 1.1 macallan #file-system UMAPFS # NULLFS + uid and gid remapping
102 1.1 macallan #file-system UNION # union file system
103 1.1 macallan #file-system SMBFS # CIFS; also needs nsmb (below)
104 1.1 macallan file-system PTYFS # /dev/pts/N support
105 1.1 macallan file-system TMPFS # Efficient memory file-system
106 1.1 macallan #file-system UDF # experimental - OSTA UDF CD/DVD file-system
107 1.1 macallan #file-system HFS # experimental - Apple HFS+ (read-only)
108 1.1 macallan
109 1.1 macallan # File system options
110 1.1 macallan #options QUOTA # legacy UFS quotas
111 1.1 macallan #options QUOTA2 # new, in-filesystem UFS quotas
112 1.1 macallan #options FFS_EI # FFS Endian Independent support
113 1.1 macallan options WAPBL # File system journaling support
114 1.1 macallan #options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
115 1.1 macallan #options NFSSERVER # Network File System server
116 1.1 macallan #options FFS_NO_SNAPSHOT # No FFS snapshot support
117 1.1 macallan #options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
118 1.1 macallan # immutable) behave as system flags.
119 1.1 macallan #options APPLE_UFS # Apple UFS support in FFS
120 1.1 macallan
121 1.1 macallan options NFS_BOOT_DHCP # Support DHCP NFS root
122 1.1 macallan
123 1.1 macallan # Networking options
124 1.1 macallan #options GATEWAY # packet forwarding
125 1.1 macallan options INET # IP + ICMP + TCP + UDP
126 1.1 macallan options INET6 # IPV6
127 1.1 macallan #options IPSEC # IP security
128 1.1 macallan #options IPSEC_DEBUG # debug for IP security
129 1.1 macallan #options MROUTING # IP multicast routing
130 1.1 macallan #options PIM # Protocol Independent Multicast
131 1.1 macallan #options NETATALK # AppleTalk networking protocols
132 1.1 macallan #options PPP_BSDCOMP # BSD-Compress compression support for PPP
133 1.1 macallan #options PPP_DEFLATE # Deflate compression support for PPP
134 1.1 macallan #options PPP_FILTER # Active filter support for PPP (requires bpf)
135 1.1 macallan #options IPFILTER_LOG # ipmon(8) log support
136 1.1 macallan #options IPFILTER_LOOKUP # ippool(8) support
137 1.1 macallan #options IPFILTER_COMPAT # Compat for IP-Filter
138 1.1 macallan #options IPFILTER_DEFAULT_BLOCK # block all packets by default
139 1.1 macallan #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
140 1.1 macallan
141 1.1 macallan #options ALTQ # Manipulate network interfaces' output queues
142 1.1 macallan #options ALTQ_BLUE # Stochastic Fair Blue
143 1.1 macallan #options ALTQ_CBQ # Class-Based Queueing
144 1.1 macallan #options ALTQ_CDNR # Diffserv Traffic Conditioner
145 1.1 macallan #options ALTQ_FIFOQ # First-In First-Out Queue
146 1.1 macallan #options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box)
147 1.1 macallan #options ALTQ_HFSC # Hierarchical Fair Service Curve
148 1.1 macallan #options ALTQ_LOCALQ # Local queueing discipline
149 1.1 macallan #options ALTQ_PRIQ # Priority Queueing
150 1.1 macallan #options ALTQ_RED # Random Early Detection
151 1.1 macallan #options ALTQ_RIO # RED with IN/OUT
152 1.1 macallan #options ALTQ_WFQ # Weighted Fair Queueing
153 1.1 macallan
154 1.1 macallan # These options enable verbose messages for several subsystems.
155 1.1 macallan # Warning, these may compile large string tables into the kernel!
156 1.1 macallan options PCIVERBOSE # verbose PCI device autoconfig messages
157 1.1 macallan options MIIVERBOSE # verbose PHY autoconfig messages
158 1.1 macallan #options PCI_CONFIG_DUMP # verbosely dump PCI config space
159 1.1 macallan options SCSIVERBOSE # human readable SCSI error messages
160 1.1 macallan options USBVERBOSE # verbose USB device autoconfig messages
161 1.1 macallan
162 1.1 macallan # wscons options
163 1.1 macallan #options WSEMUL_SUN # sun terminal emulation
164 1.1 macallan options WSEMUL_VT100 # VT100 / VT220 emulation
165 1.1 macallan options WSDISPLAY_COMPAT_PCVT # emulate some ioctls
166 1.1 macallan options WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls
167 1.1 macallan options WSDISPLAY_COMPAT_USL # VT handling
168 1.1 macallan
169 1.1 macallan options WS_DEFAULT_FG=WSCOL_BLACK
170 1.1 macallan options WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
171 1.1 macallan options WS_KERNEL_FG=WSCOL_GREEN
172 1.1 macallan options WS_KERNEL_BG=WSCOL_LIGHT_WHITE
173 1.1 macallan
174 1.1 macallan #options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
175 1.1 macallan options FONT_GALLANT12x22
176 1.1 macallan options FONT_QVSS8x15 # a smaller font for lower resolutions
177 1.1 macallan options FONT_DROID_SANS_MONO12x22
178 1.1 macallan #options FONT_DROID_SANS_MONO8x16
179 1.1 macallan
180 1.1 macallan # Optional Mac keyboard tweaks
181 1.1 macallan
182 1.1 macallan # Tweak the keyboard driver to treat the caps lock key on an ADB
183 1.1 macallan # keyboard as a control key; requires special remapping because of
184 1.1 macallan # ADB's strange emulation of a mechanically-locked key.
185 1.1 macallan #options CAPS_IS_CONTROL
186 1.1 macallan
187 1.1 macallan # On Mac laptops, several function keys double as "hot keys"
188 1.1 macallan # (brightness, volume, eject) when the Fn modifier is held down. Mac
189 1.1 macallan # OS X likes to reprogram the keyboard controller to send hot key
190 1.1 macallan # events when Fn is not held down and send function key events when it
191 1.1 macallan # is. This option transforms the non-keyboard "button" events back
192 1.1 macallan # into function key events.
193 1.1 macallan # enabled by default since trying to control brightness with those causes
194 1.1 macallan # trouble on pretty much all halfway recent Apple laptops
195 1.1 macallan options FORCE_FUNCTION_KEYS
196 1.1 macallan
197 1.1 macallan # Kernel root file system and dump configuration.
198 1.1 macallan config netbsd root on ? type ?
199 1.1 macallan
200 1.1 macallan #
201 1.1 macallan # Device configuration
202 1.1 macallan #
203 1.1 macallan
204 1.1 macallan mainbus* at root
205 1.1 macallan
206 1.1 macallan cpu* at mainbus?
207 1.1 macallan bandit* at mainbus?
208 1.1 macallan
209 1.1 macallan pci* at bandit? bus ?
210 1.1 macallan pci* at ppb? bus ?
211 1.1 macallan
212 1.1 macallan pchb* at pci? dev ? function ? # PCI-Host bridges
213 1.1 macallan ppb* at pci? dev ? function ? # PCI-PCI bridges
214 1.1 macallan
215 1.1 macallan # PCI SCSI controllers
216 1.1 macallan #ahc* at pci? dev ? function ? # Adaptec 294x, aic78x0 SCSI
217 1.1 macallan
218 1.1 macallan # Display devices
219 1.1 macallan #
220 1.8 macallan # The 7200's onboard video is unsupported by OF so we need either a
221 1.1 macallan # graphics card that works as OF console or a serial console.
222 1.1 macallan # The only cards known to work ( so far ) are PCI Voodoo3s flashed with the
223 1.1 macallan # official Macintosh firmware from 3Dfx. The others should work but are
224 1.1 macallan # untested with OF 1.0.5
225 1.1 macallan
226 1.8 macallan # this will take over the console if output-device is set to 'screen' or
227 1.8 macallan # 'platinum'. It will provide a NetBSD console, but still won't work with OF
228 1.8 macallan platinumfb0 at mainbus?
229 1.8 macallan
230 1.1 macallan #gffb* at pci? function ? # NVIDIA GeForce2 MX
231 1.1 macallan #machfb* at pci? function ? # ATI Mach 64, Rage, Rage Pro
232 1.1 macallan #r128fb* at pci? function ? # ATI Rage 128
233 1.1 macallan voodoofb* at pci? function ? # 3Dfx Voodoo3
234 1.1 macallan
235 1.1 macallan # ATI Radeon. Still has problems on some hardware
236 1.1 macallan #radeonfb* at pci? function ?
237 1.1 macallan
238 1.1 macallan # generic PCI framebuffer, should work with everything supported by OF
239 1.1 macallan genfb* at pci? function ?
240 1.1 macallan
241 1.1 macallan # make sure the console display is always wsdisplay0
242 1.1 macallan wsdisplay0 at wsemuldisplaydev? console 1
243 1.1 macallan wsdisplay* at wsemuldisplaydev?
244 1.1 macallan
245 1.1 macallan #macofcons0 at pci? dev ? function ? # OpenFirmware console (for debugging)
246 1.1 macallan
247 1.1 macallan obio* at pci? dev ? function ?
248 1.1 macallan
249 1.1 macallan mc* at obio? # MACE ethernet
250 1.1 macallan esp* at obio? flags 0x00ff # 53c9x SCSI
251 1.1 macallan # the 7200 has no mesh but other PMacs with 601 cards may
252 1.1 macallan mesh* at obio? flags 0xffff # MESH SCSI
253 1.1 macallan nvram* at obio? # nvram
254 1.1 macallan
255 1.1 macallan # the new, improved ADB subsystem
256 1.1 macallan
257 1.1 macallan cuda* at obio? # CUDA, for Old World PowerMacs
258 1.1 macallan nadb* at adb_bus? # ADB bus enumerator, at cuda or pmu
259 1.1 macallan adbkbd* at nadb? # ADB keyboard
260 1.1 macallan adbms* at nadb? # ADB mice and touchpads
261 1.1 macallan
262 1.1 macallan wskbd* at wskbddev? console ?
263 1.1 macallan wsmouse* at wsmousedev?
264 1.1 macallan
265 1.1 macallan iic0 at cuda0 # CUDA's IIC bus
266 1.1 macallan
267 1.1 macallan zsc* at obio?
268 1.1 macallan zstty* at zsc? channel ?
269 1.1 macallan
270 1.1 macallan # awacs is disabled because on most systems (7300 - 9600 PowerMacs,
271 1.1 macallan # many kinds of G4s), very heavy load can cause the machine to lock
272 1.1 macallan # up. ONLY enable this if your machine is never under heavy load, or
273 1.1 macallan # you'd rather have audio than worry about occasional lockups.
274 1.1 macallan awacs* at obio? # Apple audio device
275 1.1 macallan
276 1.1 macallan # Cryptographic Devices
277 1.1 macallan
278 1.1 macallan # PCI cryptographic devices
279 1.1 macallan # (disabled, requires opencrypto framework which requires generic softints
280 1.1 macallan #hifn* at pci? dev ? function ? # Hifn 7755/7811/795x
281 1.1 macallan #ubsec* at pci? dev ? function ? # Broadcom 5501/5601/580x/582x
282 1.1 macallan
283 1.1 macallan
284 1.1 macallan scsibus* at scsi?
285 1.1 macallan
286 1.1 macallan sd* at scsibus? target ? lun ? # SCSI disks
287 1.1 macallan #st* at scsibus? target ? lun ? # SCSI tape drives
288 1.1 macallan cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
289 1.1 macallan #ch* at scsibus? target ? lun ? # SCSI autochangers
290 1.1 macallan #ss* at scsibus? target ? lun ? # SCSI scanners
291 1.1 macallan #uk* at scsibus? target ? lun ? # SCSI unknown
292 1.1 macallan
293 1.1 macallan # PCI USB controllers
294 1.1 macallan ohci* at pci? dev ? function ? # USB Open Host Controller
295 1.1 macallan #ehci* at pci? dev ? function ? # USB Enhanced Host Controller
296 1.1 macallan
297 1.1 macallan #usb* at ehci? # USB bus support
298 1.1 macallan usb* at ohci? # USB bus support
299 1.1 macallan uhub* at usb? # USB Hubs
300 1.1 macallan uhub* at uhub? port ?
301 1.1 macallan
302 1.1 macallan uhidev* at uhub? port ? configuration ? interface ? # USB HID device
303 1.1 macallan
304 1.1 macallan ums* at uhidev? reportid ? # USB Mice
305 1.1 macallan ukbd* at uhidev? reportid ? # USB Keyboards
306 1.1 macallan uhid* at uhidev? reportid ? # USB Generic HID
307 1.1 macallan
308 1.1 macallan umass* at uhub? port ? configuration ? interface ? # USB Mass Storage
309 1.1 macallan ugen* at uhub? port ? configuration ? interface ? # USB Generic driver
310 1.1 macallan
311 1.1 macallan # Audio Devices
312 1.1 macallan
313 1.1 macallan # Audio support
314 1.1 macallan audio* at audiobus?
315 1.1 macallan
316 1.11 christos spkr* at audio? # PC speaker (synthesized)
317 1.9 nat
318 1.1 macallan #
319 1.1 macallan # accept filters
320 1.1 macallan #pseudo-device accf_data # "dataready" accept filter
321 1.1 macallan #pseudo-device accf_http # "httpready" accept filter
322 1.1 macallan
323 1.1 macallan #pseudo-device crypto # /dev/crypto device
324 1.1 macallan # (disabled, requires generic softints)
325 1.1 macallan #pseudo-device swcrypto # software crypto implementation
326 1.1 macallan pseudo-device vnd # disk-like interface to files
327 1.1 macallan #options VND_COMPRESSION # compressed vnd(4)
328 1.1 macallan #pseudo-device ccd # concatenated/striped disk devices
329 1.1 macallan #pseudo-device cgd # cryptographic disk devices
330 1.1 macallan #pseudo-device raid # RAIDframe disk driver
331 1.1 macallan #options RAID_AUTOCONFIG # auto-configuration of RAID components
332 1.1 macallan # Options to enable various other RAIDframe RAID types.
333 1.1 macallan # options RF_INCLUDE_EVENODD=1
334 1.1 macallan # options RF_INCLUDE_RAID5_RS=1
335 1.1 macallan # options RF_INCLUDE_PARITYLOGGING=1
336 1.1 macallan # options RF_INCLUDE_CHAINDECLUSTER=1
337 1.1 macallan # options RF_INCLUDE_INTERDECLUSTER=1
338 1.1 macallan # options RF_INCLUDE_PARITY_DECLUSTERING=1
339 1.1 macallan # options RF_INCLUDE_PARITY_DECLUSTERING_DS=1
340 1.1 macallan pseudo-device fss # file system snapshot device
341 1.1 macallan #pseudo-device md # memory disk device
342 1.1 macallan pseudo-device loop # network loopback
343 1.1 macallan #pseudo-device bpfilter # packet filter
344 1.1 macallan #pseudo-device ipfilter # IP filter (firewall) and NAT
345 1.1 macallan #pseudo-device ppp # Point-to-Point Protocol
346 1.1 macallan #pseudo-device pppoe # PPP over Ethernet (RFC 2516)
347 1.1 macallan #pseudo-device sl # Serial Line IP
348 1.1 macallan #pseudo-device tun # network tunneling over tty
349 1.1 macallan pseudo-device tap # virtual Ethernet
350 1.1 macallan #pseudo-device gre # generic L3 over IP tunnel
351 1.1 macallan #pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
352 1.1 macallan #pseudo-device faith # IPv[46] tcp relay translation i/f
353 1.1 macallan #pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
354 1.1 macallan #pseudo-device vlan # IEEE 802.1q encapsulation
355 1.1 macallan #pseudo-device bridge # simple inter-network bridging
356 1.1 macallan #options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too
357 1.1 macallan #pseudo-device agr # IEEE 802.3ad link aggregation
358 1.1 macallan pseudo-device pty # pseudo-terminals
359 1.1 macallan pseudo-device openfirm # /dev/openfirm
360 1.1 macallan pseudo-device wsmux # mouse and keyboard multiplexer
361 1.1 macallan #pseudo-device swwdog # software watchdog driver - swwdog(4)
362 1.1 macallan pseudo-device clockctl # user control of clock subsystem
363 1.1 macallan pseudo-device ksyms # /dev/ksyms
364 1.1 macallan #pseudo-device nsmb # SMB requester
365 1.1 macallan #pseudo-device pf # PF packet filter
366 1.1 macallan #pseudo-device pflog # PF log if
367 1.1 macallan #pseudo-device putter # for puffs and pud
368 1.1 macallan
369 1.1 macallan # userland interface to drivers, including autoconf and properties retrieval
370 1.1 macallan pseudo-device drvctl
371 1.1 macallan
372 1.1 macallan # Veriexec
373 1.1 macallan #
374 1.1 macallan # a pseudo device needed for veriexec
375 1.1 macallan #pseudo-device veriexec
376 1.1 macallan #
377 1.1 macallan # Uncomment the fingerprint methods below that are desired. Note that
378 1.1 macallan # removing fingerprint methods will have almost no impact on the kernel
379 1.1 macallan # code size.
380 1.1 macallan #
381 1.1 macallan #options VERIFIED_EXEC_FP_RMD160
382 1.1 macallan #options VERIFIED_EXEC_FP_SHA256
383 1.1 macallan #options VERIFIED_EXEC_FP_SHA384
384 1.1 macallan #options VERIFIED_EXEC_FP_SHA512
385 1.1 macallan #options VERIFIED_EXEC_FP_SHA1
386 1.1 macallan #options VERIFIED_EXEC_FP_MD5
387 1.1 macallan
388 1.1 macallan #options PAX_MPROTECT=0 # PaX mprotect(2) restrictions
389