#	$NetBSD: WII,v 1.9.2.4 2025/12/14 10:19:36 martin Exp $
#
#	Nintendo Wii
#

include 	"arch/evbppc/conf/std.wii"
ident 		"WII_TINY"
options 	MSGBUFSIZE=0x10000
maxusers	32
options 	INSECURE	# disable kernel security levels
options 	NTP		# NTP phase/frequency locked loop
options 	KTRACE		# system call tracing via ktrace(1)

#makeoptions COPY_SYMTAB=1
makeoptions DEBUG="-g"

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

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

# Compatibility options
include 	"conf/compat_netbsd50.config"

# Wedge support
options 	DKWEDGE_AUTODISCOVER	# Automatically add dk(4) instances
options 	DKWEDGE_METHOD_GPT	# Supports GPT partitions as wedges

# File systems
file-system 	FFS		# UFS
file-system 	MFS		# memory file system
file-system 	CD9660		# ISO 9660 + Rock Ridge file system
file-system 	MSDOSFS		# MS-DOS file system
file-system 	FDESC		# /dev/fd
file-system 	KERNFS		# /kern
file-system 	NULLFS		# loopback file system
file-system 	OVERLAY		# overlay file system
file-system 	PROCFS		# /proc
file-system 	TMPFS		# efficient memory file system
file-system	PTYFS		# /dev/pts/N support

# File system options
options 	FFS_EI		# FFS Endian Independent support
options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
options 	DISKLABEL_EI	# disklabel Endian Independent support

# Networking options
#options 	GATEWAY		# packet forwarding
options 	INET		# IP + ICMP + TCP + UDP
options 	INET6		# IPV6

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

#
# Device configuration
#

mainbus0 at root

cpu0		at mainbus0
genfb0		at mainbus0 addr 0x0c002000
wsdisplay*      at wsemuldisplaydev?
options 	WSEMUL_VT100
options 	WSDISPLAY_CUSTOM_OUTPUT
options 	WS_DEFAULT_FG=WSCOL_WHITE
options 	WS_DEFAULT_BG=WSCOL_BLACK
options 	WS_KERNEL_FG=WSCOL_GREEN
options 	WS_KERNEL_BG=WSCOL_BLACK
options 	WSDISPLAY_COMPAT_PCVT
options 	WSDISPLAY_COMPAT_SYSCONS
options 	WSDISPLAY_COMPAT_USL
#options 	WSDISPLAY_COMPAT_RAWKBD
options 	WSDISPLAY_DEFAULTSCREENS=4
options 	WSDISPLAY_SCROLLSUPPORT
options 	WSDISPLAY_MULTICONS

hollywood0 	at mainbus0 irq 14
exi0		at mainbus0 addr 0x0d006800 irq 4	# External interface
rtcsram0	at exi0					# RTC/SRAM chip
gecko0		at exi0					# USB Gecko
bwai0		at mainbus0 addr 0x0d006c00 irq 5	# Audio interface
bwdsp0		at mainbus0 addr 0x0c005000 irq 6	# DSP

hwgpio0		at hollywood0 addr 0x0d0000c0 irq 10	# GPIO
gpio0		at hwgpio0
gpioiic0	at gpio0 offset 0 mask 0xc000 flag 1
iic0		at gpioiic0
avenc0		at iic0 addr 0x70			# A/V Encoder

resetbtn0	at hollywood0 irq 17			# Reset button

ehci0		at hollywood0 addr 0x0d040000 irq 4	# EHCI
ohci0		at hollywood0 addr 0x0d050000 irq 5	# OHCI0
ohci1		at hollywood0 addr 0x0d060000 irq 6	# OHCI1
usb*		at usbus?

sdhc0		at hollywood0 addr 0x0d070000 irq 7	# SD card
sdhc1		at hollywood0 addr 0x0d080000 irq 8	# SDIO/BT
sdmmc*		at sdmmcbus?
ld*		at sdmmc?
bwi*		at sdmmc?				# WLAN

di0		at hollywood0 addr 0x0d806000 irq 18	# Drive interface

hwaes0		at hollywood0 addr 0x0d020000 irq 2	# AES engine

include "dev/usb/usbdevices.config"
include "dev/bluetooth/bluetoothdevices.config"

# MII/PHY support
urlphy*		at mii? phy ?
ukphy*		at mii? phy ?

# Radio support
radio*	at radiodev?

# Audio support
audio*	at audiobus?
spkr*	at audio?		# PC speaker (synthesized)
midi*	at midibus?
pseudo-device	sequencer	# MIDI sequencer

# SCSI bus support
scsibus* at scsi? channel ?

# SCSI devices
sd*	at scsibus? target ? lun ?	# SCSI disk drives
cd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
uk*	at scsibus? target ? lun ?	# SCSI unknown

#pseudo-device	vnd			# disk-like interface to files
#pseudo-device	md			# memory disk device
pseudo-device	loop			# network loopback
pseudo-device	bpfilter		# packet filter
pseudo-device	npf			# NPF packet filter
pseudo-device	pty			# pseudo-terminals
pseudo-device	clockctl		# user control of clock subsystem
pseudo-device	drvctl			# user control of drive subsystem
#pseudo-device	putter			# for puffs and pud
#pseudo-device	ksyms

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