WII revision 1.11
11.11Sjmcneill#	$NetBSD: WII,v 1.11 2025/11/15 17:59:24 jmcneill Exp $
21.1Sjmcneill#
31.1Sjmcneill#	Nintendo Wii
41.1Sjmcneill#
51.1Sjmcneill
61.1Sjmcneillinclude 	"arch/evbppc/conf/std.wii"
71.1Sjmcneill
81.1Sjmcneill#options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
91.1Sjmcneill
101.1Sjmcneillident 		"WII"
111.1Sjmcneill
121.1Sjmcneilloptions 	MSGBUFSIZE=0x10000
131.1Sjmcneill
141.1Sjmcneillmaxusers	32
151.1Sjmcneill
161.1Sjmcneilloptions 	INSECURE	# disable kernel security levels
171.1Sjmcneilloptions 	NTP		# NTP phase/frequency locked loop
181.1Sjmcneilloptions 	KTRACE		# system call tracing via ktrace(1)
191.1Sjmcneill
201.1Sjmcneilloptions 	SYSVMSG		# System V message queues
211.1Sjmcneilloptions 	SYSVSEM		# System V semaphores
221.1Sjmcneilloptions 	SYSVSHM		# System V shared memory
231.1Sjmcneill
241.9Sjmcneill#options 	USERCONF	# userconf(4) support
251.9Sjmcneill#options	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
261.1Sjmcneill#options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
271.1Sjmcneill
281.1Sjmcneill# Alternate buffer queue strategies for better responsiveness under high
291.1Sjmcneill# disk I/O load.
301.1Sjmcneill#options 	BUFQ_READPRIO
311.1Sjmcneilloptions 	BUFQ_PRIOCSCAN
321.1Sjmcneill
331.1Sjmcneill# Diagnostic/debugging support options
341.1Sjmcneilloptions 	DIAGNOSTIC	# cheap kernel consistency checks
351.1Sjmcneill#options 	DEBUG		# expensive debugging checks/support
361.1Sjmcneilloptions 	DDB		# in-kernel debugger
371.9Sjmcneill#options 	DDB_HISTORY_SIZE=100	# enable history editing in DDB
381.1Sjmcneill#options 	TRAP_PANICWAIT
391.1Sjmcneillmakeoptions COPY_SYMTAB=1	# size for embedded symbol table
401.1Sjmcneill
411.1Sjmcneill#options 	KGDB		# remote debugger
421.1Sjmcneill#options 	KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0xff600400,KGDB_DEVRATE=9600
431.1Sjmcneillmakeoptions DEBUG="-g"	# compile full symbol table
441.1Sjmcneill
451.1Sjmcneill# Compatibility options
461.1Sjmcneillinclude 	"conf/compat_netbsd50.config"
471.1Sjmcneill#options 	COMPAT_386BSD_MBRPART # recognize old partition ID
481.1Sjmcneill
491.5Sjakllsch# Wedge support
501.5Sjakllschoptions 	DKWEDGE_AUTODISCOVER	# Automatically add dk(4) instances
511.5Sjakllschoptions 	DKWEDGE_METHOD_GPT	# Supports GPT partitions as wedges
521.5Sjakllsch
531.1Sjmcneill# File systems
541.1Sjmcneillfile-system 	FFS		# UFS
551.9Sjmcneill#file-system 	EXT2FS		# second extended file system (linux)
561.9Sjmcneill#file-system 	LFS		# log-structured file system
571.1Sjmcneillfile-system 	MFS		# memory file system
581.1Sjmcneillfile-system 	NFS		# Network File System client
591.1Sjmcneillfile-system 	CD9660		# ISO 9660 + Rock Ridge file system
601.1Sjmcneillfile-system 	MSDOSFS		# MS-DOS file system
611.1Sjmcneillfile-system 	FDESC		# /dev/fd
621.1Sjmcneillfile-system 	KERNFS		# /kern
631.1Sjmcneillfile-system 	NULLFS		# loopback file system
641.1Sjmcneillfile-system 	OVERLAY		# overlay file system
651.1Sjmcneillfile-system	PUFFS		# Userspace file systems (e.g. ntfs-3g & sshfs)
661.1Sjmcneillfile-system 	PROCFS		# /proc
671.1Sjmcneillfile-system 	TMPFS		# efficient memory file system
681.1Sjmcneillfile-system 	UMAPFS		# NULLFS + uid and gid remapping
691.1Sjmcneillfile-system 	UNION		# union file system
701.1Sjmcneillfile-system	PTYFS		# /dev/pts/N support
711.1Sjmcneill
721.1Sjmcneill# File system options
731.1Sjmcneilloptions 	FFS_EI		# FFS Endian Independent support
741.9Sjmcneilloptions 	FFS_NO_SNAPSHOT	# No FFS snapshot support
751.1Sjmcneill#options 	QUOTA		# legacy UFS quotas
761.1Sjmcneill#options 	QUOTA2		# new, in-filesystem UFS quotas
771.1Sjmcneill#options 	UFS_DIRHASH	# UFS Large Directory Hashing
781.1Sjmcneill#options 	UFS_EXTATTR	# Extended attribute support for UFS1
791.1Sjmcneilloptions 	WAPBL		# File system journaling support
801.1Sjmcneill#options 	LFS_DIRHASH	# LFS version of UFS_DIRHASH - experimental
811.1Sjmcneill#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
821.1Sjmcneill				# immutable) behave as system flags.
831.1Sjmcneilloptions 	DISKLABEL_EI	# disklabel Endian Independent support
841.1Sjmcneill#options 	NFSSERVER	# Network File System server
851.1Sjmcneill
861.1Sjmcneilloptions 	NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
871.1Sjmcneilloptions 	NFS_BOOT_RWSIZE=1024
881.1Sjmcneill
891.1Sjmcneill# Networking options
901.9Sjmcneill#options 	GATEWAY		# packet forwarding
911.1Sjmcneilloptions 	INET		# IP + ICMP + TCP + UDP
921.1Sjmcneilloptions 	INET6		# IPV6
931.1Sjmcneilloptions 	IPSEC		# IP security
941.1Sjmcneill#options 	IPSEC_DEBUG	# debug for IP security
951.9Sjmcneill#options 	MROUTING	# IP multicast routing
961.9Sjmcneill#options 	PIM		# Protocol Independent Multicast
971.1Sjmcneill#options 	NETATALK	# AppleTalk networking protocols
981.1Sjmcneill#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
991.1Sjmcneill#options 	PPP_DEFLATE	# Deflate compression support for PPP
1001.1Sjmcneill#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
1011.1Sjmcneill#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
1021.1Sjmcneill
1031.1Sjmcneill# These options enable verbose messages for several subsystems.
1041.1Sjmcneill# Warning, these may compile large string tables into the kernel!
1051.9Sjmcneill#options 	MIIVERBOSE	# verbose PHY autoconfig messages
1061.1Sjmcneill#options 	SCSIVERBOSE	# human readable SCSI error messages
1071.9Sjmcneill#options 	USBVERBOSE	# verbose USB device autoconfig messages
1081.1Sjmcneill
1091.1Sjmcneill# Kernel root file system and dump configuration.
1101.1Sjmcneillconfig		netbsd	root on ? type ?
1111.1Sjmcneill
1121.1Sjmcneill#
1131.1Sjmcneill# Device configuration
1141.1Sjmcneill#
1151.1Sjmcneill
1161.1Sjmcneillmainbus0 at root
1171.1Sjmcneill
1181.1Sjmcneillcpu0		at mainbus0
1191.1Sjmcneillgenfb0		at mainbus0 addr 0x0c002000
1201.1Sjmcneillwsdisplay*      at wsemuldisplaydev?
1211.1Sjmcneilloptions 	WSEMUL_VT100
1221.1Sjmcneilloptions 	WSDISPLAY_CUSTOM_OUTPUT
1231.1Sjmcneilloptions 	WS_DEFAULT_FG=WSCOL_WHITE
1241.1Sjmcneilloptions 	WS_DEFAULT_BG=WSCOL_BLACK
1251.1Sjmcneilloptions 	WS_KERNEL_FG=WSCOL_GREEN
1261.1Sjmcneilloptions 	WS_KERNEL_BG=WSCOL_BLACK
1271.1Sjmcneilloptions 	WSDISPLAY_COMPAT_PCVT
1281.1Sjmcneilloptions 	WSDISPLAY_COMPAT_SYSCONS
1291.1Sjmcneilloptions 	WSDISPLAY_COMPAT_USL
1301.1Sjmcneill#options 	WSDISPLAY_COMPAT_RAWKBD
1311.1Sjmcneilloptions 	WSDISPLAY_DEFAULTSCREENS=4
1321.1Sjmcneilloptions 	WSDISPLAY_SCROLLSUPPORT
1331.11Sjmcneilloptions 	WSDISPLAY_MULTICONS
1341.1Sjmcneill
1351.1Sjmcneillhollywood0 	at mainbus0 irq 14
1361.4Sjmcneillexi0		at mainbus0 addr 0x0d006800 irq 4	# External interface
1371.4Sjmcneillrtcsram0	at exi0					# RTC/SRAM chip
1381.11Sjmcneillgecko0		at exi0					# USB Gecko
1391.2Sjmcneillbwai0		at mainbus0 addr 0x0d006c00 irq 5	# Audio interface
1401.2Sjmcneillbwdsp0		at mainbus0 addr 0x0c005000 irq 6	# DSP
1411.1Sjmcneill
1421.3Sjmcneillhwgpio0		at hollywood0 addr 0x0d0000c0 irq 10	# GPIO
1431.3Sjmcneillgpio0		at hwgpio0
1441.3Sjmcneillgpioiic0	at gpio0 offset 0 mask 0xc000 flag 1
1451.3Sjmcneilliic0		at gpioiic0
1461.3Sjmcneillavenc0		at iic0 addr 0x70			# A/V Encoder
1471.3Sjmcneill
1481.1Sjmcneillresetbtn0	at hollywood0 irq 17			# Reset button
1491.1Sjmcneill
1501.1Sjmcneillehci0		at hollywood0 addr 0x0d040000 irq 4	# EHCI
1511.6Sjmcneillohci0		at hollywood0 addr 0x0d050000 irq 5	# OHCI0
1521.6Sjmcneillohci1		at hollywood0 addr 0x0d060000 irq 6	# OHCI1
1531.1Sjmcneillusb*		at usbus?
1541.1Sjmcneill
1551.1Sjmcneillsdhc0		at hollywood0 addr 0x0d070000 irq 7	# SD card
1561.1Sjmcneillsdhc1		at hollywood0 addr 0x0d080000 irq 8	# SDIO/BT
1571.1Sjmcneillsdmmc*		at sdmmcbus?
1581.1Sjmcneillld*		at sdmmc?
1591.7Sjmcneillbwi*		at sdmmc?				# WLAN
1601.1Sjmcneill
1611.8Sjmcneilldi0		at hollywood0 addr 0x0d806000 irq 18	# Drive interface
1621.8Sjmcneill
1631.10Sjmcneillhwaes0		at hollywood0 addr 0x0d020000 irq 2	# AES engine
1641.10Sjmcneill
1651.1Sjmcneillinclude "dev/usb/usbdevices.config"
1661.1Sjmcneillinclude "dev/bluetooth/bluetoothdevices.config"
1671.1Sjmcneill
1681.1Sjmcneill# MII/PHY support
1691.1Sjmcneillurlphy*		at mii? phy ?
1701.1Sjmcneillukphy*		at mii? phy ?
1711.1Sjmcneill
1721.1Sjmcneill# Radio support
1731.1Sjmcneillradio*	at radiodev?
1741.1Sjmcneill
1751.1Sjmcneill# Audio support
1761.1Sjmcneillaudio*	at audiobus?
1771.1Sjmcneillspkr*	at audio?		# PC speaker (synthesized)
1781.1Sjmcneillmidi*	at midibus?
1791.1Sjmcneillpseudo-device	sequencer	# MIDI sequencer
1801.1Sjmcneill
1811.1Sjmcneill# SCSI bus support
1821.1Sjmcneillscsibus* at scsi? channel ?
1831.1Sjmcneill
1841.1Sjmcneill# SCSI devices
1851.1Sjmcneillsd*	at scsibus? target ? lun ?	# SCSI disk drives
1861.1Sjmcneillst*	at scsibus? target ? lun ?	# SCSI tape drives
1871.1Sjmcneillcd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
1881.1Sjmcneillch*	at scsibus? target ? lun ?	# SCSI autochangers
1891.1Sjmcneillses*	at scsibus? target ? lun ?	# SCSI Enclosure Services devices
1901.1Sjmcneillss*	at scsibus? target ? lun ?	# SCSI scanners
1911.1Sjmcneilluk*	at scsibus? target ? lun ?	# SCSI unknown
1921.1Sjmcneill
1931.1Sjmcneillpseudo-device	vnd			# disk-like interface to files
1941.1Sjmcneill#pseudo-device	fss			# file system snapshot device
1951.10Sjmcneillpseudo-device	cgd			# cryptographic disk devices
1961.1Sjmcneill#pseudo-device	md			# memory disk device
1971.1Sjmcneillpseudo-device	loop			# network loopback
1981.1Sjmcneillpseudo-device	bpfilter		# packet filter
1991.9Sjmcneill#pseudo-device 	carp			# Common Address Redundancy Protocol
2001.1Sjmcneillpseudo-device	npf			# NPF packet filter
2011.1Sjmcneillpseudo-device	ppp			# Point-to-Point Protocol
2021.1Sjmcneillpseudo-device	sl			# Serial Line IP
2031.1Sjmcneillpseudo-device	tun			# network tunneling over tty
2041.1Sjmcneillpseudo-device	gre			# generic L3 over IP tunnel
2051.1Sjmcneillpseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC1933)
2061.1Sjmcneill#pseudo-device	faith			# IPv[46] tcp relay translation i/f
2071.1Sjmcneillpseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
2081.1Sjmcneillpseudo-device	vlan			# IEEE 802.1q encapsulation
2091.1Sjmcneillpseudo-device	pty			# pseudo-terminals
2101.1Sjmcneillpseudo-device	clockctl		# user control of clock subsystem
2111.1Sjmcneillpseudo-device	drvctl			# user control of drive subsystem
2121.1Sjmcneillpseudo-device	putter			# for puffs and pud
2131.1Sjmcneillpseudo-device	ksyms
2141.1Sjmcneill
2151.1Sjmcneill# wscons pseudo-devices
2161.1Sjmcneillpseudo-device	wsmux			# mouse & keyboard multiplexor
2171.1Sjmcneillpseudo-device	wsfont
2181.1Sjmcneilloptions         FONT_BOLD8x16
219