GENERIC revision 1.107 1 1.107 sevan # $NetBSD: GENERIC,v 1.107 2019/04/26 21:40:30 sevan 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.107 sevan #ident "GENERIC-$Revision: 1.107 $"
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.1 gavan #options PMAP_DEBUG # Enable pmap_debug_level code
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.37 abs #file-system SMBFS # experimental - CIFS; also needs nsmb (below)
118 1.105 macallan file-system PTYFS # /dev/ptm support
119 1.105 macallan file-system TMPFS # Efficient memory file-system
120 1.37 abs #file-system UDF # experimental - OSTA UDF CD/DVD file-system
121 1.37 abs #file-system HFS # experimental - Apple HFS+ (read-only)
122 1.37 abs file-system FILECORE # Acorn filecore file system
123 1.37 abs
124 1.37 abs # File system options
125 1.62 bouyer #options QUOTA # legacy UFS quotas
126 1.62 bouyer #options QUOTA2 # new, in-filesystem UFS quotas
127 1.37 abs #options FFS_EI # FFS Endian Independent support
128 1.69 dholland options WAPBL # File system journaling support
129 1.37 abs # Note that UFS_DIRHASH is suspected of causing kernel memory corruption.
130 1.37 abs # It is not recommended for general use.
131 1.37 abs #options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
132 1.37 abs #options NFSSERVER # Network File System server
133 1.37 abs options FFS_NO_SNAPSHOT # No FFS snapshot support
134 1.87 manu #options UFS_EXTATTR # Extended attribute support for UFS1
135 1.37 abs #options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
136 1.37 abs # immutable) behave as system flags.
137 1.37 abs
138 1.37 abs # Networking options
139 1.37 abs #options GATEWAY # packet forwarding
140 1.37 abs options INET # IP + ICMP + TCP + UDP
141 1.105 macallan options INET6 # IPV6
142 1.37 abs #options IPSEC # IP security
143 1.37 abs #options IPSEC_DEBUG # debug for IP security
144 1.37 abs #options MROUTING # IP multicast routing
145 1.37 abs #options PIM # Protocol Independent Multicast
146 1.37 abs #options NETATALK # AppleTalk networking protocols
147 1.37 abs #options PPP_BSDCOMP # BSD-Compress compression support for PPP
148 1.37 abs #options PPP_DEFLATE # Deflate compression support for PPP
149 1.37 abs #options PPP_FILTER # Active filter support for PPP (requires bpf)
150 1.37 abs #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
151 1.37 abs
152 1.37 abs #options ALTQ # Manipulate network interfaces' output queues
153 1.37 abs #options ALTQ_BLUE # Stochastic Fair Blue
154 1.37 abs #options ALTQ_CBQ # Class-Based Queueing
155 1.37 abs #options ALTQ_CDNR # Diffserv Traffic Conditioner
156 1.37 abs #options ALTQ_FIFOQ # First-In First-Out Queue
157 1.37 abs #options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box)
158 1.37 abs #options ALTQ_HFSC # Hierarchical Fair Service Curve
159 1.37 abs #options ALTQ_LOCALQ # Local queueing discipline
160 1.37 abs #options ALTQ_PRIQ # Priority Queueing
161 1.37 abs #options ALTQ_RED # Random Early Detection
162 1.37 abs #options ALTQ_RIO # RED with IN/OUT
163 1.37 abs #options ALTQ_WFQ # Weighted Fair Queueing
164 1.37 abs
165 1.37 abs
166 1.37 abs options NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
167 1.37 abs
168 1.105 macallan #options DKWEDGE_AUTODISCOVER
169 1.105 macallan #options DKWEDGE_METHOD_BSDLABEL
170 1.105 macallan #options DKWEDGE_METHOD_MBR
171 1.105 macallan
172 1.105 macallan options INSECURE
173 1.105 macallan
174 1.37 abs # Kernel root file system and dump configuration.
175 1.37 abs config netbsd root on ? type ?
176 1.105 macallan #config netbsd root on wd1a type ffs
177 1.105 macallan #config netbsd root on wm0 type nfs
178 1.105 macallan #config netbsd root on "wedge:system/a" type ffs
179 1.1 gavan
180 1.37 abs #
181 1.37 abs # Device configuration
182 1.37 abs #
183 1.1 gavan
184 1.37 abs mainbus0 at root
185 1.1 gavan
186 1.37 abs cpu0 at mainbus?
187 1.1 gavan
188 1.1 gavan # i80321 I/O Processor peripheral support
189 1.1 gavan iopxs* at mainbus?
190 1.1 gavan
191 1.1 gavan iopaau* at iopxs? # Application Accelerator Unit
192 1.1 gavan iopiic* at iopxs? # I2C Controller Unit(s)
193 1.1 gavan iic0 at iopiic?
194 1.1 gavan iic1 at iopiic?
195 1.1 gavan iopwdog* at iopxs? # Watchdog timer
196 1.1 gavan pci0 at iopxs? bus ? # PCI/PCI-X support
197 1.1 gavan
198 1.55 gavan # The curious can see their RAM timings.
199 1.55 gavan spdmem* at iic1 addr 0x56
200 1.55 gavan
201 1.105 macallan # onboard RTC. RISC OS starts counting years at 2000
202 1.105 macallan dsrtc0 at iic0 addr 0x68
203 1.105 macallan options DSRTC_YEAR_START_2K
204 1.105 macallan
205 1.1 gavan # PCI bridges
206 1.37 abs ppb* at pci? dev ? function ? # PCI-PCI bridges
207 1.37 abs pci* at ppb? bus ?
208 1.37 abs # XXX 'puc's aren't really bridges, but there's no better place for them here
209 1.37 abs #puc* at pci? dev ? function ? # PCI "universal" comm. cards
210 1.1 gavan
211 1.55 gavan #options COMCONSOLE
212 1.55 gavan
213 1.1 gavan # VGA
214 1.1 gavan #vga* at pci? dev ? function ?
215 1.55 gavan genfb* at pci? dev ? function ?
216 1.105 macallan #options GENFB_PCI_DEBUG
217 1.105 macallan #gffb* at pci? dev ? function ?
218 1.105 macallan
219 1.105 macallan # these exist but aren't configured by RISC OS
220 1.105 macallan #alipm* at pci?
221 1.105 macallan #iic* at alipm?
222 1.55 gavan
223 1.55 gavan # Display
224 1.55 gavan wsdisplay0 at wsemuldisplaydev? console 1
225 1.55 gavan wsdisplay* at wsemuldisplaydev?
226 1.55 gavan
227 1.105 macallan #options WSEMUL_SUN # sun terminal emulation
228 1.105 macallan options WSEMUL_VT100 # vt100 terminal emulation
229 1.105 macallan options WS_DEFAULT_FG=WSCOL_BLACK
230 1.105 macallan options WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
231 1.105 macallan options WS_KERNEL_FG=WSCOL_GREEN
232 1.105 macallan options WS_KERNEL_BG=WSCOL_LIGHT_WHITE
233 1.105 macallan options WSDISPLAY_COMPAT_PCVT # emulate some ioctls
234 1.105 macallan options WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls
235 1.105 macallan options WSDISPLAY_COMPAT_USL # VT handling
236 1.105 macallan options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
237 1.105 macallan #options WSDISPLAY_DEFAULTSCREENS=4
238 1.105 macallan options FONT_GO_MONO12x23
239 1.105 macallan options WSDISPLAY_SCROLLSUPPORT
240 1.105 macallan options VCONS_DRAW_INTR
241 1.105 macallan options RASOPS_DEFAULT_WIDTH=100
242 1.105 macallan options RASOPS_DEFAULT_HEIGHT=30
243 1.37 abs
244 1.1 gavan # IDE and related devices
245 1.1 gavan # PCI IDE controllers - see pciide(4) for supported hardware.
246 1.1 gavan # The 0x0001 flag force the driver to use DMA, even if the driver doesn't know
247 1.1 gavan # how to set up DMA modes for this chip. This may work, or may cause
248 1.1 gavan # a machine hang with some controllers.
249 1.105 macallan #pciide* at pci? dev ? function ? flags 0x0000 # GENERIC pciide driver
250 1.1 gavan aceride* at pci? dev ? function ? # Acer Lab IDE controllers
251 1.105 macallan #mvsata* at pci? dev ? function ?
252 1.37 abs
253 1.1 gavan # ATA (IDE) bus support
254 1.1 gavan atabus* at ata?
255 1.37 abs #options ATADEBUG
256 1.1 gavan
257 1.1 gavan # IDE drives
258 1.1 gavan # Flags are used only with controllers that support DMA operations
259 1.1 gavan # and mode settings (e.g. some pciide controllers)
260 1.1 gavan # The lowest order four bits (rightmost digit) of the flags define the PIO
261 1.1 gavan # mode to use, the next set of four bits the DMA mode and the third set the
262 1.1 gavan # UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
263 1.1 gavan # to use, and the last bit must be 1 for this setting to be used.
264 1.1 gavan # For DMA and UDMA, 0xf (1111) means 'disable'.
265 1.1 gavan # 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
266 1.1 gavan # (0xc=1100, 0xa=1010, 0xf=1111)
267 1.1 gavan # 0x0000 means "use whatever the drive claims to support".
268 1.1 gavan wd* at atabus? drive ? flags 0x0000
269 1.1 gavan
270 1.1 gavan # ATAPI bus support
271 1.1 gavan atapibus* at atapi?
272 1.1 gavan
273 1.1 gavan # ATAPI devices
274 1.1 gavan # flags have the same meaning as for IDE drives.
275 1.1 gavan # XXX No DMA on IDE devices for now
276 1.1 gavan cd* at atapibus? drive ? flags 0x0ff0 # ATAPI CD-ROM drives
277 1.1 gavan sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives
278 1.1 gavan st* at atapibus? drive ? flags 0x0000 # ATAPI tape drives
279 1.1 gavan uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown
280 1.1 gavan
281 1.37 abs
282 1.37 abs # Network Interfaces
283 1.37 abs
284 1.105 macallan # onboard ethernet
285 1.1 gavan wm* at pci? dev ? function ? # Intel 8254x gigabit
286 1.1 gavan
287 1.1 gavan # MII/PHY support
288 1.1 gavan makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs
289 1.1 gavan ukphy* at mii? phy ? # generic unknown PHYs
290 1.1 gavan
291 1.37 abs
292 1.1 gavan # USB Controller and Devices
293 1.1 gavan
294 1.105 macallan # Iyonix ships with an ehci/ohci card
295 1.105 macallan ehci* at pci? dev ? function ? # Enhanced Host Controller
296 1.1 gavan ohci* at pci? dev ? function ? # Open Host Controller
297 1.105 macallan #uhci* at pci? dev ? function ? # Universal Host Controller (Intel)
298 1.41 kiyohara
299 1.1 gavan # USB bus support
300 1.105 macallan usb* at ehci?
301 1.1 gavan usb* at ohci?
302 1.105 macallan #usb* at uhci?
303 1.1 gavan #usb* at slhci?
304 1.1 gavan
305 1.1 gavan # USB Hubs
306 1.37 abs uhub* at usb?
307 1.37 abs uhub* at uhub? port ?
308 1.1 gavan
309 1.1 gavan # USB HID device
310 1.37 abs uhidev* at uhub? port ? configuration ? interface ?
311 1.1 gavan
312 1.1 gavan # USB Mice
313 1.37 abs ums* at uhidev? reportid ?
314 1.37 abs wsmouse* at ums? mux 0
315 1.1 gavan
316 1.1 gavan # USB eGalax touch-panel
317 1.37 abs #uep* at uhub? port ?
318 1.37 abs #wsmouse* at uep? mux 0
319 1.1 gavan
320 1.1 gavan # USB Keyboards
321 1.37 abs ukbd* at uhidev? reportid ?
322 1.37 abs wskbd* at ukbd? console ? mux 1
323 1.1 gavan
324 1.1 gavan # USB Generic HID devices
325 1.37 abs uhid* at uhidev? reportid ?
326 1.1 gavan
327 1.1 gavan # USB Mass Storage
328 1.37 abs umass* at uhub? port ? configuration ? interface ?
329 1.1 gavan
330 1.1 gavan # USB audio
331 1.37 abs uaudio* at uhub? port ? configuration ?
332 1.1 gavan
333 1.1 gavan # USB MIDI
334 1.37 abs #umidi* at uhub? port ? configuration ?
335 1.1 gavan
336 1.1 gavan # USB Ethernet adapters
337 1.37 abs #axe* at uhub? port ? # ASIX AX88172 based adapters
338 1.1 gavan
339 1.37 abs uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter
340 1.37 abs ucom* at uplcom? portno ?
341 1.1 gavan
342 1.1 gavan # USB Generic driver
343 1.37 abs #ugen* at uhub? port ?
344 1.1 gavan
345 1.1 gavan
346 1.105 macallan # Iyonix onboard audio
347 1.1 gavan autri* at pci? dev ? function ? # Trident 4DWAVE based AC'97 Audio
348 1.1 gavan
349 1.1 gavan # Audio support
350 1.1 gavan audio* at audiobus?
351 1.1 gavan
352 1.93 christos spkr* at audio? # PC speaker (synthesized)
353 1.91 nat
354 1.1 gavan # On-board device support
355 1.37 abs
356 1.1 gavan obio* at mainbus?
357 1.105 macallan com1 at obio? addr 0x900003e8 xint 1 # on-board UART
358 1.1 gavan com0 at obio? addr 0x900002f8 xint 1 # on-board UART
359 1.1 gavan #com* at obio? addr 0x900003e8 xint 1 # on-board UART
360 1.1 gavan #com* at obio? addr 0x900003f8 xint 1 # on-board UART
361 1.1 gavan
362 1.1 gavan # Pseudo-Devices
363 1.1 gavan
364 1.37 abs #pseudo-device crypto # /dev/crypto device
365 1.37 abs #pseudo-device swcrypto # software crypto implementation
366 1.37 abs
367 1.1 gavan # disk/mass storage pseudo-devices
368 1.37 abs
369 1.59 pooka pseudo-device fss # file system snapshot device
370 1.37 abs
371 1.1 gavan # network pseudo-devices
372 1.26 rpaulo pseudo-device bpfilter # Berkeley packet filter
373 1.107 sevan pseudo-device carp # Common Address Redundancy Protocol
374 1.99 maxv #pseudo-device npf # NPF packet filter
375 1.1 gavan pseudo-device loop # network loopback
376 1.37 abs #pseudo-device ppp # Point-to-Point Protocol
377 1.37 abs #pseudo-device pppoe # PPP over Ethernet (RFC 2516)
378 1.37 abs #pseudo-device sl # Serial Line IP
379 1.37 abs #pseudo-device strip # Starmode Radio IP (Metricom)
380 1.37 abs #pseudo-device irframetty # IrDA frame line discipline
381 1.37 abs #pseudo-device tap # virtual Ethernet
382 1.37 abs #pseudo-device tun # network tunneling over tty
383 1.37 abs #pseudo-device gre # generic L3 over IP tunnel
384 1.37 abs #pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
385 1.37 abs #pseudo-device faith # IPv[46] tcp relay translation i/f#
386 1.37 abs #pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
387 1.37 abs #pseudo-device vlan # IEEE 802.1q encapsulation
388 1.37 abs #pseudo-device bridge # simple inter-network bridging
389 1.37 abs #options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too
390 1.38 martin #pseudo-device agr # IEEE 802.3ad link aggregation
391 1.37 abs # srt is EXPERIMENTAL
392 1.37 abs #pseudo-device srt # source-address-based routing
393 1.1 gavan
394 1.50 tls #
395 1.50 tls # accept filters
396 1.50 tls pseudo-device accf_data # "dataready" accept filter
397 1.50 tls pseudo-device accf_http # "httpready" accept filter
398 1.50 tls
399 1.1 gavan # miscellaneous pseudo-devices
400 1.1 gavan pseudo-device pty # pseudo-terminals
401 1.37 abs #options RND_COM # use "com" randomness as well (BROKEN)
402 1.1 gavan pseudo-device clockctl # user control of clock subsystem
403 1.106 isaki pseudo-device drvctl # user control of drive subsystem
404 1.1 gavan pseudo-device ksyms # /dev/ksyms
405 1.1 gavan
406 1.37 abs # wscons pseudo-devices
407 1.37 abs pseudo-device wsmux # mouse & keyboard multiplexor
408 1.55 gavan pseudo-device wsfont
409 1.37 abs
410 1.107 sevan include "dev/veriexec.config"
411 1.37 abs
412 1.105 macallan #options PAX_MPROTECT=0 # PaX mprotect(2) restrictions
413