GENERIC revision 1.118 1 1.118 thorpej # $NetBSD: GENERIC,v 1.118 2025/10/13 14:49:16 thorpej Exp $
2 1.1 gavan #
3 1.37 abs # GENERIC machine description file
4 1.1 gavan #
5 1.37 abs # This machine description file is used to generate the default NetBSD
6 1.37 abs # kernel. The generic kernel does not include all options, subsystems
7 1.37 abs # and device drivers, but should be useful for most applications.
8 1.37 abs #
9 1.37 abs # The machine description file can be customised for your specific
10 1.37 abs # machine to reduce the kernel size and improve its performance.
11 1.37 abs #
12 1.37 abs # For further information on compiling NetBSD kernels, see the config(8)
13 1.37 abs # man page.
14 1.37 abs #
15 1.37 abs # For further information on hardware support for this architecture, see
16 1.37 abs # the intro(4) man page. For further information about kernel options
17 1.37 abs # for this architecture, see the options(4) man page. For an explanation
18 1.37 abs # of each device driver in this file see the section 4 man page for the
19 1.37 abs # device.
20 1.1 gavan
21 1.1 gavan include "arch/iyonix/conf/std.iyonix"
22 1.1 gavan
23 1.1 gavan options INCLUDE_CONFIG_FILE # embed config file in kernel binary
24 1.1 gavan
25 1.118 thorpej #ident "GENERIC-$Revision: 1.118 $"
26 1.1 gavan
27 1.37 abs maxusers 32 # estimated number of users
28 1.1 gavan
29 1.96 mrg options MSGBUFSIZE=65536
30 1.1 gavan
31 1.1 gavan # CPU options
32 1.1 gavan
33 1.1 gavan # For XScale systems
34 1.1 gavan options CPU_XSCALE_80321 # Support the XScale core
35 1.1 gavan makeoptions CPUFLAGS="-mcpu=xscale"
36 1.1 gavan
37 1.1 gavan # Architecture options
38 1.1 gavan options XSCALE_CACHE_READ_WRITE_ALLOCATE
39 1.1 gavan #options HZ=512
40 1.1 gavan
41 1.37 abs # Standard system options
42 1.1 gavan
43 1.37 abs options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
44 1.37 abs #options NTP # NTP phase/frequency locked loop
45 1.1 gavan
46 1.37 abs #options KTRACE # system call tracing via ktrace(1)
47 1.1 gavan
48 1.1 gavan
49 1.1 gavan #options SYSVMSG # System V-like message queues
50 1.1 gavan #options SYSVSEM # System V-like semaphores
51 1.1 gavan #options SYSVSHM # System V-like memory sharing
52 1.1 gavan
53 1.1 gavan # Device options
54 1.1 gavan
55 1.1 gavan # Console options. The default console is speed is 115200 baud.
56 1.1 gavan #options CONSPEED=9600 # Console speed
57 1.1 gavan
58 1.1 gavan # Miscellaneous kernel options
59 1.1 gavan options KTRACE # system call tracing, a la ktrace(1)
60 1.1 gavan options IRQSTATS # manage IRQ statistics
61 1.1 gavan #options SCSIVERBOSE # Verbose SCSI errors
62 1.1 gavan options PCIVERBOSE # Verbose PCI descriptions
63 1.1 gavan options MIIVERBOSE # Verbose MII autoconfuration messages
64 1.1 gavan #options PCI_CONFIG_DUMP # verbosely dump PCI config space
65 1.37 abs
66 1.1 gavan options USERCONF # userconf(4) support
67 1.37 abs #options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
68 1.37 abs #options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
69 1.1 gavan
70 1.1 gavan # Development and Debugging options
71 1.1 gavan
72 1.97 sevan # Alternate buffer queue strategies for better responsiveness under high
73 1.97 sevan # disk I/O load.
74 1.37 abs #options BUFQ_READPRIO
75 1.107 sevan options BUFQ_PRIOCSCAN
76 1.37 abs
77 1.37 abs # Diagnostic/debugging support options
78 1.37 abs #options DIAGNOSTIC # expensive kernel consistency checks
79 1.37 abs #options DEBUG # expensive debugging checks/support
80 1.37 abs options DDB # in-kernel debugger
81 1.82 szptvlfn #options DDB_ONPANIC=1 # see also sysctl(7): `ddb.onpanic'
82 1.37 abs options DDB_HISTORY_SIZE=512 # enable history editing in DDB
83 1.37 abs #options DDB_KEYCODE=0x40
84 1.37 abs #options KGDB # remote debugger
85 1.37 abs #options KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x3f8,KGDB_DEVRATE=9600
86 1.105 macallan #makeoptions DEBUG="-g" # compile full symbol table
87 1.85 joerg makeoptions COPY_SYMTAB=1
88 1.111 skrll #options UVMHIST # kernhist for uvm/pmap subsystems
89 1.1 gavan #options VERBOSE_INIT_ARM # verbose bootstraping messages
90 1.1 gavan
91 1.37 abs #options PMAP_INCLUDE_PTE_SYNC
92 1.37 abs #options LOCKDEBUG
93 1.37 abs
94 1.37 abs
95 1.37 abs # Compatibility options
96 1.96 mrg
97 1.105 macallan include "conf/compat_netbsd70.config"
98 1.96 mrg options COMPAT_NETBSD32 # allow running arm (e.g. non-earm) binaries
99 1.37 abs
100 1.37 abs # File systems
101 1.37 abs file-system FFS # UFS
102 1.37 abs #file-system EXT2FS # second extended file system (linux)
103 1.37 abs #file-system LFS # log-structured file system
104 1.37 abs #file-system MFS # memory file system
105 1.37 abs file-system NFS # Network File System client
106 1.37 abs #file-system NTFS # Windows/NT file system (experimental)
107 1.37 abs file-system CD9660 # ISO 9660 + Rock Ridge file system
108 1.37 abs file-system MSDOSFS # MS-DOS file system
109 1.37 abs #file-system FDESC # /dev/fd
110 1.105 macallan file-system KERNFS # /kern
111 1.37 abs #file-system NULLFS # loopback file system
112 1.37 abs #file-system OVERLAY # overlay file system
113 1.105 macallan file-system PROCFS # /proc
114 1.37 abs #file-system UMAPFS # NULLFS + uid and gid remapping
115 1.37 abs #file-system UNION # union file system
116 1.37 abs #file-system CODA # Coda File System; also needs vcoda (below)
117 1.105 macallan file-system PTYFS # /dev/ptm support
118 1.105 macallan file-system TMPFS # Efficient memory file-system
119 1.37 abs #file-system UDF # experimental - OSTA UDF CD/DVD file-system
120 1.37 abs #file-system HFS # experimental - Apple HFS+ (read-only)
121 1.37 abs file-system FILECORE # Acorn filecore file system
122 1.37 abs
123 1.37 abs # File system options
124 1.114 simonb #options FFS_EI # FFS Endian Independent support
125 1.114 simonb options FFS_NO_SNAPSHOT # No FFS snapshot support
126 1.62 bouyer #options QUOTA # legacy UFS quotas
127 1.62 bouyer #options QUOTA2 # new, in-filesystem UFS quotas
128 1.114 simonb #options UFS_DIRHASH # UFS Large Directory Hashing
129 1.114 simonb #options UFS_EXTATTR # Extended attribute support for UFS1
130 1.69 dholland options WAPBL # File system journaling support
131 1.114 simonb #options NFSSERVER # Network File System server
132 1.37 abs
133 1.37 abs # Networking options
134 1.37 abs #options GATEWAY # packet forwarding
135 1.37 abs options INET # IP + ICMP + TCP + UDP
136 1.105 macallan options INET6 # IPV6
137 1.37 abs #options IPSEC # IP security
138 1.37 abs #options IPSEC_DEBUG # debug for IP security
139 1.37 abs #options MROUTING # IP multicast routing
140 1.37 abs #options PIM # Protocol Independent Multicast
141 1.37 abs #options NETATALK # AppleTalk networking protocols
142 1.37 abs #options PPP_BSDCOMP # BSD-Compress compression support for PPP
143 1.37 abs #options PPP_DEFLATE # Deflate compression support for PPP
144 1.37 abs #options PPP_FILTER # Active filter support for PPP (requires bpf)
145 1.37 abs #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
146 1.37 abs
147 1.37 abs #options ALTQ # Manipulate network interfaces' output queues
148 1.37 abs #options ALTQ_BLUE # Stochastic Fair Blue
149 1.37 abs #options ALTQ_CBQ # Class-Based Queueing
150 1.37 abs #options ALTQ_CDNR # Diffserv Traffic Conditioner
151 1.37 abs #options ALTQ_FIFOQ # First-In First-Out Queue
152 1.37 abs #options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box)
153 1.37 abs #options ALTQ_HFSC # Hierarchical Fair Service Curve
154 1.37 abs #options ALTQ_LOCALQ # Local queueing discipline
155 1.37 abs #options ALTQ_PRIQ # Priority Queueing
156 1.37 abs #options ALTQ_RED # Random Early Detection
157 1.37 abs #options ALTQ_RIO # RED with IN/OUT
158 1.37 abs #options ALTQ_WFQ # Weighted Fair Queueing
159 1.37 abs
160 1.37 abs
161 1.37 abs options NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
162 1.37 abs
163 1.105 macallan #options DKWEDGE_AUTODISCOVER
164 1.105 macallan #options DKWEDGE_METHOD_BSDLABEL
165 1.105 macallan #options DKWEDGE_METHOD_MBR
166 1.105 macallan
167 1.105 macallan options INSECURE
168 1.105 macallan
169 1.37 abs # Kernel root file system and dump configuration.
170 1.37 abs config netbsd root on ? type ?
171 1.105 macallan #config netbsd root on wd1a type ffs
172 1.105 macallan #config netbsd root on wm0 type nfs
173 1.105 macallan #config netbsd root on "wedge:system/a" type ffs
174 1.1 gavan
175 1.37 abs #
176 1.37 abs # Device configuration
177 1.37 abs #
178 1.1 gavan
179 1.37 abs mainbus0 at root
180 1.1 gavan
181 1.37 abs cpu0 at mainbus?
182 1.1 gavan
183 1.1 gavan # i80321 I/O Processor peripheral support
184 1.1 gavan iopxs* at mainbus?
185 1.1 gavan
186 1.1 gavan iopaau* at iopxs? # Application Accelerator Unit
187 1.110 skrll iopiic* at iopxs? # I2C Controller Unit(s)
188 1.1 gavan iic0 at iopiic?
189 1.1 gavan iic1 at iopiic?
190 1.1 gavan iopwdog* at iopxs? # Watchdog timer
191 1.1 gavan pci0 at iopxs? bus ? # PCI/PCI-X support
192 1.1 gavan
193 1.55 gavan # The curious can see their RAM timings.
194 1.55 gavan spdmem* at iic1 addr 0x56
195 1.55 gavan
196 1.118 thorpej # onboard RTC.
197 1.105 macallan dsrtc0 at iic0 addr 0x68
198 1.105 macallan
199 1.1 gavan # PCI bridges
200 1.37 abs ppb* at pci? dev ? function ? # PCI-PCI bridges
201 1.37 abs pci* at ppb? bus ?
202 1.37 abs # XXX 'puc's aren't really bridges, but there's no better place for them here
203 1.37 abs #puc* at pci? dev ? function ? # PCI "universal" comm. cards
204 1.1 gavan
205 1.55 gavan #options COMCONSOLE
206 1.55 gavan
207 1.1 gavan # VGA
208 1.1 gavan #vga* at pci? dev ? function ?
209 1.55 gavan genfb* at pci? dev ? function ?
210 1.105 macallan #options GENFB_PCI_DEBUG
211 1.105 macallan #gffb* at pci? dev ? function ?
212 1.105 macallan
213 1.105 macallan # these exist but aren't configured by RISC OS
214 1.105 macallan #alipm* at pci?
215 1.105 macallan #iic* at alipm?
216 1.55 gavan
217 1.55 gavan # Display
218 1.55 gavan wsdisplay0 at wsemuldisplaydev? console 1
219 1.55 gavan wsdisplay* at wsemuldisplaydev?
220 1.55 gavan
221 1.105 macallan #options WSEMUL_SUN # sun terminal emulation
222 1.105 macallan options WSEMUL_VT100 # vt100 terminal emulation
223 1.105 macallan options WS_DEFAULT_FG=WSCOL_BLACK
224 1.105 macallan options WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
225 1.105 macallan options WS_KERNEL_FG=WSCOL_GREEN
226 1.105 macallan options WS_KERNEL_BG=WSCOL_LIGHT_WHITE
227 1.105 macallan options WSDISPLAY_COMPAT_PCVT # emulate some ioctls
228 1.105 macallan options WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls
229 1.105 macallan options WSDISPLAY_COMPAT_USL # VT handling
230 1.105 macallan options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
231 1.105 macallan #options WSDISPLAY_DEFAULTSCREENS=4
232 1.105 macallan options FONT_GO_MONO12x23
233 1.105 macallan options WSDISPLAY_SCROLLSUPPORT
234 1.105 macallan options VCONS_DRAW_INTR
235 1.105 macallan options RASOPS_DEFAULT_WIDTH=100
236 1.105 macallan options RASOPS_DEFAULT_HEIGHT=30
237 1.37 abs
238 1.1 gavan # IDE and related devices
239 1.1 gavan # PCI IDE controllers - see pciide(4) for supported hardware.
240 1.1 gavan # The 0x0001 flag force the driver to use DMA, even if the driver doesn't know
241 1.1 gavan # how to set up DMA modes for this chip. This may work, or may cause
242 1.1 gavan # a machine hang with some controllers.
243 1.105 macallan #pciide* at pci? dev ? function ? flags 0x0000 # GENERIC pciide driver
244 1.1 gavan aceride* at pci? dev ? function ? # Acer Lab IDE controllers
245 1.105 macallan #mvsata* at pci? dev ? function ?
246 1.37 abs
247 1.1 gavan # ATA (IDE) bus support
248 1.1 gavan atabus* at ata?
249 1.37 abs #options ATADEBUG
250 1.1 gavan
251 1.1 gavan # IDE drives
252 1.1 gavan # Flags are used only with controllers that support DMA operations
253 1.1 gavan # and mode settings (e.g. some pciide controllers)
254 1.1 gavan # The lowest order four bits (rightmost digit) of the flags define the PIO
255 1.1 gavan # mode to use, the next set of four bits the DMA mode and the third set the
256 1.1 gavan # UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
257 1.1 gavan # to use, and the last bit must be 1 for this setting to be used.
258 1.1 gavan # For DMA and UDMA, 0xf (1111) means 'disable'.
259 1.1 gavan # 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
260 1.1 gavan # (0xc=1100, 0xa=1010, 0xf=1111)
261 1.1 gavan # 0x0000 means "use whatever the drive claims to support".
262 1.1 gavan wd* at atabus? drive ? flags 0x0000
263 1.1 gavan
264 1.1 gavan # ATAPI bus support
265 1.1 gavan atapibus* at atapi?
266 1.1 gavan
267 1.1 gavan # ATAPI devices
268 1.1 gavan # flags have the same meaning as for IDE drives.
269 1.1 gavan # XXX No DMA on IDE devices for now
270 1.1 gavan cd* at atapibus? drive ? flags 0x0ff0 # ATAPI CD-ROM drives
271 1.1 gavan sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives
272 1.1 gavan st* at atapibus? drive ? flags 0x0000 # ATAPI tape drives
273 1.1 gavan uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown
274 1.1 gavan
275 1.37 abs
276 1.37 abs # Network Interfaces
277 1.37 abs
278 1.105 macallan # onboard ethernet
279 1.1 gavan wm* at pci? dev ? function ? # Intel 8254x gigabit
280 1.1 gavan
281 1.1 gavan # MII/PHY support
282 1.1 gavan makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs
283 1.1 gavan ukphy* at mii? phy ? # generic unknown PHYs
284 1.1 gavan
285 1.37 abs
286 1.1 gavan # USB Controller and Devices
287 1.1 gavan
288 1.105 macallan # Iyonix ships with an ehci/ohci card
289 1.105 macallan ehci* at pci? dev ? function ? # Enhanced Host Controller
290 1.1 gavan ohci* at pci? dev ? function ? # Open Host Controller
291 1.105 macallan #uhci* at pci? dev ? function ? # Universal Host Controller (Intel)
292 1.41 kiyohara
293 1.1 gavan # USB bus support
294 1.105 macallan usb* at ehci?
295 1.1 gavan usb* at ohci?
296 1.105 macallan #usb* at uhci?
297 1.1 gavan #usb* at slhci?
298 1.1 gavan
299 1.1 gavan # USB Hubs
300 1.37 abs uhub* at usb?
301 1.37 abs uhub* at uhub? port ?
302 1.1 gavan
303 1.1 gavan # USB HID device
304 1.37 abs uhidev* at uhub? port ? configuration ? interface ?
305 1.1 gavan
306 1.1 gavan # USB Mice
307 1.37 abs ums* at uhidev? reportid ?
308 1.37 abs wsmouse* at ums? mux 0
309 1.1 gavan
310 1.1 gavan # USB eGalax touch-panel
311 1.37 abs #uep* at uhub? port ?
312 1.37 abs #wsmouse* at uep? mux 0
313 1.1 gavan
314 1.1 gavan # USB Keyboards
315 1.37 abs ukbd* at uhidev? reportid ?
316 1.37 abs wskbd* at ukbd? console ? mux 1
317 1.1 gavan
318 1.1 gavan # USB Generic HID devices
319 1.37 abs uhid* at uhidev? reportid ?
320 1.1 gavan
321 1.1 gavan # USB Mass Storage
322 1.37 abs umass* at uhub? port ? configuration ? interface ?
323 1.1 gavan
324 1.1 gavan # USB audio
325 1.37 abs uaudio* at uhub? port ? configuration ?
326 1.1 gavan
327 1.1 gavan # USB MIDI
328 1.37 abs #umidi* at uhub? port ? configuration ?
329 1.1 gavan
330 1.1 gavan # USB Ethernet adapters
331 1.37 abs #axe* at uhub? port ? # ASIX AX88172 based adapters
332 1.1 gavan
333 1.37 abs uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter
334 1.37 abs ucom* at uplcom? portno ?
335 1.1 gavan
336 1.1 gavan # USB Generic driver
337 1.37 abs #ugen* at uhub? port ?
338 1.1 gavan
339 1.1 gavan
340 1.105 macallan # Iyonix onboard audio
341 1.1 gavan autri* at pci? dev ? function ? # Trident 4DWAVE based AC'97 Audio
342 1.1 gavan
343 1.1 gavan # Audio support
344 1.1 gavan audio* at audiobus?
345 1.1 gavan
346 1.93 christos spkr* at audio? # PC speaker (synthesized)
347 1.91 nat
348 1.1 gavan # On-board device support
349 1.37 abs
350 1.1 gavan obio* at mainbus?
351 1.105 macallan com1 at obio? addr 0x900003e8 xint 1 # on-board UART
352 1.1 gavan com0 at obio? addr 0x900002f8 xint 1 # on-board UART
353 1.1 gavan #com* at obio? addr 0x900003e8 xint 1 # on-board UART
354 1.1 gavan #com* at obio? addr 0x900003f8 xint 1 # on-board UART
355 1.1 gavan
356 1.1 gavan # Pseudo-Devices
357 1.1 gavan
358 1.37 abs #pseudo-device crypto # /dev/crypto device
359 1.37 abs #pseudo-device swcrypto # software crypto implementation
360 1.37 abs
361 1.1 gavan # disk/mass storage pseudo-devices
362 1.37 abs
363 1.59 pooka pseudo-device fss # file system snapshot device
364 1.37 abs
365 1.1 gavan # network pseudo-devices
366 1.26 rpaulo pseudo-device bpfilter # Berkeley packet filter
367 1.107 sevan pseudo-device carp # Common Address Redundancy Protocol
368 1.99 maxv #pseudo-device npf # NPF packet filter
369 1.1 gavan pseudo-device loop # network loopback
370 1.37 abs #pseudo-device ppp # Point-to-Point Protocol
371 1.37 abs #pseudo-device pppoe # PPP over Ethernet (RFC 2516)
372 1.37 abs #pseudo-device sl # Serial Line IP
373 1.37 abs #pseudo-device irframetty # IrDA frame line discipline
374 1.37 abs #pseudo-device tap # virtual Ethernet
375 1.37 abs #pseudo-device tun # network tunneling over tty
376 1.37 abs #pseudo-device gre # generic L3 over IP tunnel
377 1.37 abs #pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
378 1.37 abs #pseudo-device faith # IPv[46] tcp relay translation i/f#
379 1.37 abs #pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
380 1.37 abs #pseudo-device vlan # IEEE 802.1q encapsulation
381 1.37 abs #pseudo-device bridge # simple inter-network bridging
382 1.113 roy #pseudo-device vether # Virtual Ethernet for bridge
383 1.38 martin #pseudo-device agr # IEEE 802.3ad link aggregation
384 1.37 abs # srt is EXPERIMENTAL
385 1.37 abs #pseudo-device srt # source-address-based routing
386 1.1 gavan
387 1.50 tls #
388 1.50 tls # accept filters
389 1.50 tls pseudo-device accf_data # "dataready" accept filter
390 1.50 tls pseudo-device accf_http # "httpready" accept filter
391 1.50 tls
392 1.1 gavan # miscellaneous pseudo-devices
393 1.1 gavan pseudo-device pty # pseudo-terminals
394 1.37 abs #options RND_COM # use "com" randomness as well (BROKEN)
395 1.1 gavan pseudo-device clockctl # user control of clock subsystem
396 1.106 isaki pseudo-device drvctl # user control of drive subsystem
397 1.1 gavan pseudo-device ksyms # /dev/ksyms
398 1.115 riastrad pseudo-device swwdog # software watchdog timer -- swwdog(4)
399 1.1 gavan
400 1.37 abs # wscons pseudo-devices
401 1.37 abs pseudo-device wsmux # mouse & keyboard multiplexor
402 1.55 gavan pseudo-device wsfont
403 1.37 abs
404 1.107 sevan include "dev/veriexec.config"
405 1.37 abs
406 1.105 macallan #options PAX_MPROTECT=0 # PaX mprotect(2) restrictions
407 1.116 abs
408 1.116 abs # Pull in optional local configuration - always at end
409 1.116 abs cinclude "arch/iyonix/conf/GENERIC.local"
410