11.13Smartin# $NetBSD: MIPSSIM,v 1.13 2025/07/27 10:41:11 martin Exp $
21.1Ssimonb#
31.1Ssimonb# Kernel config for the QEMU MIPS "mipssim" simulator
41.3Sreinoud#
51.3Sreinoud# The QEMU virtio support is experimental and subject to change
61.3Sreinoud# and will likely be removed when qemu gains a MIPS "virt" target.
71.3Sreinoud#
81.1Ssimonb
91.1Ssimonbinclude 	"arch/evbmips/conf/std.mipssim"
101.1Ssimonb
111.13Smartin#ident 		"GENERIC-$Revision: 1.13 $"
121.1Ssimonb
131.1Ssimonbmaxusers	32
141.1Ssimonb
151.1Ssimonboptions 	MIPS32
161.1Ssimonboptions 	MIPS32R2
171.1Ssimonboptions 	NOFPU		# No FPU
181.1Ssimonboptions 	FPEMUL		# emulate FPU insn
191.5Ssimonboptions 	HZ=50		# half usual host speed
201.1Ssimonb
211.1Ssimonb#options 	LOCKDEBUG
221.1Ssimonboptions 	SOSEND_COUNTERS
231.1Ssimonboptions 	INET_CSUM_COUNTERS
241.1Ssimonboptions 	TCP_CSUM_COUNTERS
251.1Ssimonboptions 	UDP_CSUM_COUNTERS
261.1Ssimonboptions 	TCP_OUTPUT_COUNTERS
271.1Ssimonb
281.8Sheoptions 	MSGBUFSIZE=32768 # need a bit more than 4K for virtio qemu
291.8She
301.4Sniaoptions 	NTP		# network time protocol
311.1Ssimonb
321.1Ssimonb# Debugging options
331.1Ssimonboptions 	DIAGNOSTIC	# extra kernel sanity checking
341.1Ssimonboptions 	DEBUG		# extra kernel debugging support
351.1Ssimonboptions 	DDB		# kernel dynamic debugger
361.1Ssimonboptions 	DDB_HISTORY_SIZE=100 # enable history editing in DDB
371.1Ssimonbmakeoptions 	DEBUG="-g"	# compile full symbol table
381.1Ssimonbmakeoptions	COPY_SYMTAB=1	# size for embedded symbol table
391.1Ssimonb
401.1Ssimonbpseudo-device	md				# memory disk device
411.1Ssimonboptions 	MEMORY_DISK_HOOKS
421.1Ssimonboptions 	MEMORY_DISK_IS_ROOT		# Force root on ram-disk
431.1Ssimonboptions 	MEMORY_DISK_ROOT_SIZE=32768	# size of memory disk, in blocks
441.1Ssimonb
451.1Ssimonb# Compatibility options
461.1Ssimonbinclude         "conf/compat_netbsd50.config"
471.1Ssimonb#options 	EXEC_ECOFF	# exec ECOFF binaries
481.1Ssimonb#options 	COMPAT_ULTRIX	# binary compatibility with Ultrix
491.1Ssimonb
501.4Sniaoptions 	SYSVMSG		# System V-like message queues
511.4Sniaoptions 	SYSVSEM		# System V-like semaphores
521.4Sniaoptions 	SYSVSHM		# System V-like memory sharing
531.4Snia
541.1Ssimonb# File systems
551.1Ssimonbfile-system	FFS		# Berkeley Fast Filesystem
561.1Ssimonb#file-system	MFS		# memory-based filesystem
571.1Ssimonb#file-system 	EXT2FS		# second extended file system (linux)
581.1Ssimonbfile-system	NFS		# Sun NFS-compatible filesystem client
591.4Sniafile-system	KERNFS		# kernel data-structure filesystem
601.4Sniafile-system	NULLFS		# NULL layered filesystem
611.4Sniafile-system 	OVERLAY		# overlay file system
621.4Sniafile-system	FDESC		# user file descriptor filesystem
631.1Ssimonb#file-system	UMAPFS		# uid/gid remapping filesystem
641.1Ssimonb#file-system	LFS		# Log-based filesystem (still experimental)
651.4Sniafile-system	PROCFS		# /proc
661.7Ssimonbfile-system	CD9660		# ISO 9660 + Rock Ridge file system
671.4Sniafile-system	UNION		# union file system
681.1Ssimonb#file-system	MSDOSFS		# MS-DOS FAT filesystem(s).
691.1Ssimonb#file-system 	CODA		# Coda File System; also needs vcoda (below)
701.1Ssimonbfile-system	PTYFS		# /dev/pts/N support
711.10Srinfile-system	PUFFS		# Userspace file systems (e.g. ntfs-3g & sshfs)
721.4Sniafile-system	MFS		# memory-based filesystem
731.4Sniafile-system	TMPFS		# Efficient memory file-system
741.1Ssimonb
751.1Ssimonb# File system options
761.6Ssimonboptions 	FFS_EI		# FFS Endian Independent support
771.1Ssimonb#options 	QUOTA		# legacy UFS quotas
781.1Ssimonb#options 	QUOTA2		# new, in-filesystem UFS quotas
791.6Ssimonb#options 	UFS_DIRHASH	# UFS Large Directory Hashing
801.6Ssimonb#options 	UFS_EXTATTR	# Extended attribute support for UFS1
811.4Sniaoptions 	WAPBL		# File system journaling support
821.6Ssimonboptions 	DISKLABEL_EI	# disklabel Endian Independent support
831.6Ssimonb#options 	NFSSERVER	# Network File System server
841.1Ssimonb
851.1Ssimonb# Alternate buffer queue strategies for better responsiveness under high
861.1Ssimonb# disk I/O load.
871.1Ssimonb#options 	BUFQ_READPRIO
881.1Ssimonb#options 	BUFQ_PRIOCSCAN
891.1Ssimonb
901.1Ssimonb# Networking options
911.1Ssimonb#options 	GATEWAY		# IP packet forwarding
921.1Ssimonboptions 	INET		# Internet protocols
931.4Sniaoptions 	INET6		# IPV6
941.1Ssimonb#options 	IPSEC		# IP security
951.1Ssimonb#options 	IPSEC_DEBUG	# debug for IP security
961.1Ssimonb#options 	MROUTING	# packet forwarding of multicast packets
971.1Ssimonb#options 	NETATALK	# AppleTalk (over Ethernet) protocol
981.1Ssimonb#options 	PIM		# Protocol Independent Multicast
991.1Ssimonb#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
1001.1Ssimonb#options 	PPP_DEFLATE	# Deflate compression support for PPP
1011.1Ssimonb#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
1021.1Ssimonb
1031.1Ssimonb# JIT compiler for bpfilter
1041.1Ssimonb#options	SLJIT
1051.1Ssimonb#options	BPFJIT
1061.1Ssimonb
1071.1Ssimonb# These options enable verbose messages for several subsystems.
1081.1Ssimonb# Warning, these may compile large string tables into the kernel!
1091.1Ssimonb#options 	MIIVERBOSE	# verbose PHY autoconfig messages
1101.1Ssimonb
1111.1Ssimonboptions 	NFS_BOOT_DHCP
1121.1Ssimonb
1131.1Ssimonbconfig		netbsd		root on ? type ?
1141.1Ssimonb
1151.1Ssimonbmainbus0 	at root
1161.1Ssimonbcpu* 		at mainbus?
1171.1Ssimonbcom*		at mainbus?
1181.1Ssimonb# mipsnet*	at mainbus?
1191.1Ssimonb# options 	MIPSSIM_ETH_MACADDR="ba:bb:1e:01:23:45"
1201.1Ssimonb
1211.3Sreinoud
1221.3Sreinoud# Virtio devices
1231.3Sreinoudvirtio*		at mainbus?		# Virtio PCI device
1241.12Sriastrad
1251.12Sriastradinclude "dev/virtio/virtio.config"
1261.12Sriastradno vio9p* 	at virtio?		# XXX ?
1271.12Sriastradno viomb* 	at virtio?		# XXX ?
1281.13Smartinwsdisplay*	at wsemuldisplaydev?
1291.3Sreinoud
1301.3Sreinoud# SCSI bus support
1311.3Sreinoudscsibus* at scsi?
1321.3Sreinoud
1331.3Sreinoud# SCSI devices
1341.3Sreinoudsd*	at scsibus? target ? lun ?	# SCSI disk drives
1351.3Sreinoud#st*	at scsibus? target ? lun ?	# SCSI tape drives
1361.3Sreinoudcd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
1371.3Sreinoud#ch*	at scsibus? target ? lun ?	# SCSI autochangers
1381.3Sreinoud#ses*	at scsibus? target ? lun ?	# SCSI Enclosure Services devices
1391.3Sreinoud#ss*	at scsibus? target ? lun ?	# SCSI scanners
1401.3Sreinoud#uk*	at scsibus? target ? lun ?	# SCSI unknown
1411.3Sreinoud
1421.10Srin# Pseudo-Devices
1431.10Srin
1441.10Srinpseudo-device	crypto				# /dev/crypto device
1451.10Srinpseudo-device	swcrypto			# software crypto implementation
1461.10Srin
1471.10Srinpseudo-device	vnd				# disk-like interface to files
1481.10Srin#options 	VND_COMPRESSION			# compressed vnd(4)
1491.10Srin
1501.10Srinpseudo-device	putter				# for puffs and pud
1511.3Sreinoud
1521.1Ssimonb# Network pseudo-devices
1531.1Ssimonbpseudo-device	bpfilter			# Berkeley packet filter
1541.1Ssimonb#pseudo-device 	carp				# Common Address Redundancy Protocol
1551.1Ssimonbpseudo-device	loop				# network loopback
1561.1Ssimonb#pseudo-device	ppp				# Point-to-Point Protocol
1571.1Ssimonb#pseudo-device	sl				# Serial Line IP
1581.1Ssimonb#pseudo-device	tun				# network tunneling over tty
1591.1Ssimonb#pseudo-device	gre				# generic L3 over IP tunnel
1601.1Ssimonb#pseudo-device	ipip				# RFC 2003 IP Encapsulation
1611.1Ssimonb#pseudo-device	gif				# RFC1933 tunnel
1621.1Ssimonb#pseudo-device	faith				# IPv[46] tcp relay translation
1631.1Ssimonb# Miscellaneous pseudo-devices
1641.1Ssimonbpseudo-device	pty				# pseudo-terminals
1651.1Ssimonb#pseudo-device	sequencer			# MIDI sequencer
1661.1Ssimonb
1671.1Ssimonb# A pseudo device needed for Coda		# also needs CODA (above)
1681.1Ssimonb#pseudo-device	vcoda				# coda minicache <-> venus comm.
1691.1Ssimonbpseudo-device	clockctl			# user control of clock subsystem
1701.1Ssimonbpseudo-device	ksyms				# /dev/ksyms
1711.1Ssimonb
1721.1Ssimonbinclude "dev/veriexec.config"
173