Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#	$NetBSD: GENERIC32_IP3x,v 1.135 2022/08/07 02:52:29 simonb Exp $
#
# GENERIC32_IP3x machine description file
# 
# This machine description file is used to generate the default NetBSD
# kernel.  The generic kernel does not include all options, subsystems
# and device drivers, but should be useful for most applications.
#
# The machine description file can be customised for your specific
# machine to reduce the kernel size and improve its performance.
#
# For further information on compiling NetBSD kernels, see the config(8)
# man page.
#
# For further information on hardware support for this architecture, see
# the intro(4) man page.  For further information about kernel options
# for this architecture, see the options(4) man page.  For an explanation
# of each device driver in this file see the section 4 man page for the
# device.
#
#
# Currently this config file supports O2 (IP32).
#

include 	"arch/sgimips/conf/std.sgimips"

makeoptions	TEXTADDR="0x80069000"	# entry point

options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary

#ident		"GENERIC32_IP3x-$Revision: 1.135 $"

maxusers	32

# CPU related options
options 	MIPS3		# MIPS3 support
options 	ENABLE_MIPS4_CACHE_R10K # enable R10000 cache ops
#options 	BLINK		# blinkenlitzen
makeoptions	CPUFLAGS="-march=mips3 -mtune=vr5000"

# Standard system options
#options 	INSECURE	# disable kernel security levels

#options 	NTP		# NTP phase/frequency locked loop
options 	KTRACE		# system call tracing via ktrace(1)

options 	SYSVMSG		# System V message queues
options 	SYSVSEM		# System V semaphores
options 	SYSVSHM		# System V shared memory

options 	USERCONF	# userconf(4) support
#options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel

# Alternate buffer queue strategies for better responsiveness under high
# disk I/O load.
#options 	BUFQ_READPRIO
options 	BUFQ_PRIOCSCAN

# Diagnostic/debugging support options
#options 	DIAGNOSTIC	# expensive kernel consistency checks
#options 	DEBUG		# expensive debugging checks/support
options 	DDB		# in-kernel debugger
options 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
#options 	KGDB		# remote debugger
#options 	KGDB_DEV=0x2301		# KGDB port - this is Serial(1)
#options 	KGDB_DEVRATE=19200	# KGDB Baud Rate
#makeoptions	DEBUG="-g"	# compile full symbol table

# Compatibility options
include 	"conf/compat_netbsd15.config"

# File systems
include "conf/filesystems.config"

# File system options
#options 	FFS_EI		# FFS Endian Independent support
#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
options 	QUOTA		# legacy UFS quotas
options 	QUOTA2		# new, in-filesystem UFS quotas
options 	UFS_DIRHASH	# UFS Large Directory Hashing
options 	UFS_EXTATTR	# Extended attribute support for UFS1
options 	WAPBL		# File system journaling support
#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
				# immutable) behave as system flags.
options 	NFSSERVER	# Network File System server

# Networking options
#options 	GATEWAY		# packet forwarding
options 	INET		# IP + ICMP + TCP + UDP
options 	INET6		# IPV6
#options 	IPSEC		# IP security
#options 	IPSEC_DEBUG	# debug for IP security
#options 	MROUTING	# IP multicast routing
#options 	PIM		# Protocol Independent Multicast
options 	NETATALK	# AppleTalk networking protocols
options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
options 	PPP_DEFLATE	# Deflate compression support for PPP
options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG

#options 	ALTQ		# Manipulate network interfaces' output queues
#options 	ALTQ_BLUE	# Stochastic Fair Blue
#options 	ALTQ_CBQ	# Class-Based Queueing
#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
#options 	ALTQ_FIFOQ	# First-In First-Out Queue
#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
#options 	ALTQ_LOCALQ	# Local queueing discipline
#options 	ALTQ_PRIQ	# Priority Queueing
#options 	ALTQ_RED	# Random Early Detection
#options 	ALTQ_RIO	# RED with IN/OUT
#options 	ALTQ_WFQ	# Weighted Fair Queueing

# JIT compiler for bpfilter
#options	SLJIT
#options	BPFJIT

# These options enable verbose messages for several subsystems.
# Warning, these may compile large string tables into the kernel!
options 	MIIVERBOSE	# verbose PHY autoconfig messages
options 	PCIVERBOSE	# verbose PCI device autoconfig messages
#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
options 	SCSIVERBOSE	# human readable SCSI error messages

options 	NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM

#options 	MEMORY_DISK_HOOKS
#options 	MEMORY_DISK_IS_ROOT
#options 	MEMORY_DISK_SERVER=0
#options 	MINIROOTSIZE=8192

#options 	SCSI_DELAY=5

# Kernel root file system and dump configuration.
config		netbsd	root on ? type ?

# Main bus and CPU
mainbus0 	at root
cpu0 		at mainbus?

# O2 busses
crime0 		at mainbus0 addr 0x14000000
crmfb0		at mainbus0 addr 0x16000000
wsdisplay* 	at crmfb? console ?
mace0 		at mainbus0 addr 0x1f000000
#options 	MACE_NEEDS_DELAYS
macepci0 	at mace0 offset 0x080000 intr 7
pci0 		at macepci0 bus 0
pci*		at ppb? bus ?
options 	PCI_NETBSD_CONFIGURE

options 	WSEMUL_VT100
options 	WSDISPLAY_COMPAT_USL		# wsconscfg VT handling
options 	WS_KERNEL_FG=WSCOL_GREEN
options 	WS_KERNEL_BG=WSCOL_BLACK
options 	WS_DEFAULT_BG=WSCOL_BLACK

# MACE devices
mec0 		at mace0 offset 0x280000 intr 3
mavb0		at mace0 offset 0x300000 intr 6
macekbc0	at mace0 offset 0x320000 intr 5
lpt0 		at mace0 offset 0x380000 intr 4 intrmask 0x000f0000
com0 		at mace0 offset 0x390000 intr 4 intrmask 0x03f00000
com1 		at mace0 offset 0x398000 intr 4 intrmask 0xfc000000
mcclock0	at mace0 offset 0x3a0000

# PCI bridges
ppb*	at pci? dev ? function ?	# PCI-PCI bridges

# PCI cryptographic devices
hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x

# PCI network devices
#an*     at pci? dev ? function ?        # Aironet PC4500/PC4800 (802.11)
#bge*    at pci? dev ? function ?        # Broadcom 570x gigabit Ethernet
ep*     at pci? dev ? function ?        # 3Com 3c59x
epic*   at pci? dev ? function ?        # SMC EPIC/100 Ethernet
ex*     at pci? dev ? function ?        # 3Com 90x[BC]
fxp*    at pci? dev ? function ?        # Intel EtherExpress PRO 10+/100B
gsip*   at pci? dev ? function ?        # NS83820 Gigabit Ethernet
#hme*   at pci? dev ? function ?        # Sun Microelectronics STP2002-STQ
mtd*    at pci? dev ? function ?        # Myson MTD803 3-in-1 Ethernet
ne*     at pci? dev ? function ?        # NE2000-compatible Ethernet
ntwoc*  at pci? dev ? function ?        # Riscom/N2 PCI Sync Serial
pcn*    at pci? dev ? function ?        # AMD PCnet-PCI Ethernet
re*     at pci? dev ? function ?        # Realtek 8139C+/8169/8169S/8110S
rtk*    at pci? dev ? function ?        # Realtek 8129/8139
sf*     at pci? dev ? function ?        # Adaptec AIC-6915 Ethernet
sip*    at pci? dev ? function ?        # SiS 900/DP83815 Ethernet
#skc*   at pci? dev ? function ?        # SysKonnect SK9821 Gigabit Ethernet
#sk*    at skc?                         # SysKonnect SK9821 Gigabit Ethernet
ste*    at pci? dev ? function ?        # Sundance ST-201 Ethernet
#stge*   at pci? dev ? function ?        # Sundance/Tamarack TC9021 Gigabit
ti*     at pci? dev ? function ?        # Alteon ACEnic gigabit Ethernet
tl*     at pci? dev ? function ?        # ThunderLAN-based Ethernet
tlp*    at pci? dev ? function ?        # DECchip 21x4x and clones
vr*     at pci? dev ? function ?        # VIA Rhine Fast Ethernet
wi*     at pci? dev ? function ?        # Intersil Prism Mini-PCI (802.11b)
wm*     at pci? dev ? function ?        # Intel 82543/82544 gigabit

# MII/PHY support
acphy*  at mii? phy ?                   # Altima AC101 and AMD Am79c874 PHYs
amhphy* at mii? phy ?                   # AMD 79c901 Ethernet PHYs
bmtphy*	at mii? phy ?			# Broadcom BCM5201 and BCM5202 PHYs
brgphy* at mii? phy ?                   # Broadcom BCM5400-family PHYs
dmphy*  at mii? phy ?                   # Davicom DM9101 PHYs
exphy*	at mii? phy ?			# 3Com internal PHYs
gentbi* at mii? phy ?                   # Generic Ten-Bit 1000BASE-[CLS]X PHYs
glxtphy* at mii? phy ?			# Level One LXT-1000 PHYs
gphyter* at mii? phy ?			# NS83861 Gig-E PHY
icsphy* at mii? phy ?                   # Integrated Circuit Systems ICS189x
ikphy*	at mii? phy ?			# Intel 82563 PHYs
inphy*	at mii? phy ?			# Intel 82555 PHYs
iophy*  at mii? phy ?                   # Intel 82553 PHYs
lxtphy* at mii? phy ?                   # Level One LXT-970 PHYs
makphy*	at mii? phy ?			# Marvell Semiconductor 88E1000 PHYs
nsphy*	at mii? phy ?			# NS83840 PHYs
nsphyter* at mii? phy ?                 # NS83843 PHYs
pnaphy* at mii? phy ?                   # generic HomePNA PHYs
qsphy*  at mii? phy ?                   # Quality Semiconductor QS6612 PHYs
rgephy* at mii? phy ?                   # Realtek 8169S/8110S/8211 PHYs
rlphy* at mii? phy ?                    # Realtek 8139/8201L PHYs
sqphy*  at mii? phy ?                   # Seeq 80220/80221/80223 PHYs
tlphy*  at mii? phy ?                   # ThunderLAN PHYs
tqphy*  at mii? phy ?                   # TDK Semiconductor PHYs
ukphy*	at mii? phy ?			# generic unknown PHYs
urlphy* at mii? phy ?                   # Realtek RTL8150L internal PHYs

# O2 SCSI
adv* 		at pci? dev ? function ?
ahc* 		at pci? dev ? function ?
esiop*		at pci? dev ? function ?
njs*		at pci? dev ? function ?
pcscp*		at pci? dev ? function ?
scsibus* 	at scsi?

sd*     at scsibus? target ? lun ?	# SCSI disks
st*     at scsibus? target ? lun ?	# SCSI tapes
cd*     at scsibus? target ? lun ?	# SCSI CD-ROMs
ch*     at scsibus? target ? lun ?	# SCSI changer devices
ss*     at scsibus? target ? lun ?	# SCSI scanners
ses*    at scsibus? target ? lun ?	# SCSI SES/SAF-TE devices
uk*     at scsibus? target ? lun ?	# unknown SCSI

pckbd*		at macekbc?
pms*		at macekbc?
wskbd*		at pckbd? console ?
wsmouse* 	at pms? mux 0
#wsdisplay* 	at foofb? console ?

# USB Controller and Devices

# PCI USB controllers
ehci*	at pci? dev ? function ?        # Enhanced Host Controller
ohci*   at pci? dev ? function ?        # Open Host Controller
uhci*   at pci? dev ? function ?        # Universal Host Controller (Intel)

# USB bus support
usb*	at ehci?
usb*    at ohci?
usb*    at uhci?

include "dev/usb/usbdevices.config"

# PCI IEEE1394 controllers
fwohci* at pci? dev ? function ?	# IEEE1394 Open Host Controller

ieee1394if* at fwohci?
fwip*	at ieee1394if?			# IP over IEEE1394
sbp*	at ieee1394if? euihi ? euilo ?

# Audio support
audio*  at audiobus?

spkr*	at audio?			# PC speaker (synthesized)

# MIDI support
midi*   at midibus?

include "dev/bluetooth/bluetoothdevices.config"

# Pseudo-Devices

pseudo-device	crypto			# /dev/crypto device
pseudo-device	swcrypto		# software crypto implementation

# disk/mass storage pseudo-devices
pseudo-device	ccd			# concatenated/striped disk devices
#pseudo-device	cgd			# cryptographic disk devices
#pseudo-device	raid			# RAIDframe disk driver
#options 	RAID_AUTOCONFIG		# auto-configuration of RAID components
pseudo-device	fss			# file system snapshot device
pseudo-device	md			# memory disk device (ramdisk)
pseudo-device	vnd			# disk-like interface to files
#options 	VND_COMPRESSION		# compressed vnd(4)

# network pseudo-devices
pseudo-device	bpfilter		# Berkeley packet filter
pseudo-device	carp			# Common Address Redundancy Protocol
pseudo-device	npf			# NPF packet filter
pseudo-device	loop			# network loopback
pseudo-device	ppp			# Point-to-Point Protocol
pseudo-device	sl			# Serial Line IP
pseudo-device	tun			# network tunneling over tty
pseudo-device	tap			# virtual Ethernet
pseudo-device	gre			# generic L3 over IP tunnel
pseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC1933)
#pseudo-device	faith			# IPv[46] tcp relay translation i/f
pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
pseudo-device	vlan			# IEEE 802.1q encapsulation
pseudo-device	bridge			# simple inter-network bridging
pseudo-device	vether			# Virtual Ethernet for bridge
pseudo-device	agr			# IEEE 802.3ad link aggregation
pseudo-device   accf_data		# "dataready" accept filter
pseudo-device   accf_http		# "httpready" accept filter

# miscellaneous pseudo-devices
pseudo-device	pty			# pseudo-terminals
pseudo-device	sequencer		# MIDI sequencer
pseudo-device	clockctl		# user control of clock subsystem
pseudo-device	ksyms			# /dev/ksyms

# wscons pseudo-devices
pseudo-device	wsmux			# mouse & keyboard multiplexor
pseudo-device	wsfont

# userland interface to drivers, including autoconf and properties retrieval
pseudo-device	drvctl

include "dev/veriexec.config"