#	$OpenBSD: RAMDISK,v 1.11 2010/03/02 20:54:51 miod Exp $
#
# For further information on compiling OpenBSD 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.

machine		loongson mips64

maxusers	8

option		CPU_LOONGSON2
makeoption	LINK_ADDRESS="0xffffffff80200000"

option		PCIVERBOSE
option		USBVERBOSE

# Filesystem options
option		FFS		# UFS
option		FFS2		# UFS2
option		NFSCLIENT	# Network File System client
option		CD9660		# ISO 9660 + Rock Ridge file system
option		UDF		# UDF (DVD) file system
option		EXT2FS		# Second Extended Filesystem
option		MSDOSFS		# MS-DOS file system
option		INET		# IP + ICMP + TCP + UDP
option		INET6		# IPv6 (needs INET)
option		DDB		# kernel debugger

option		MINIROOTSIZE=8192
option		RAMDISK_HOOKS

config	bsd	root on rd0a swap on rd0b

#
# Definition of system
#
mainbus0	at root
cpu0		at mainbus0
clock0		at mainbus0

# Main local buses
bonito*		at mainbus0
pci*		at bonito?

# Lemote Lynloong, Lemote Fuloong 2F and Lemote Yeeloong devices
glxpcib*	at pci?
isa0		at glxpcib?
mcclock0	at isa? port 0x70
pckbc0		at isa?				# Yeeloong only
pckbd*		at pckbc?			# Yeeloong only
wskbd*		at pckbd? mux 1			# Yeeloong only
pmsi*		at pckbc?			# Yeeloong only
wsmouse*	at pmsi? mux 0			# Yeeloong only
com0		at isa? port 0x2f8 irq 3	# Fuloong 2F only
pciide*		at pci?
wd*		at pciide? flags 0x0000
sisfb*		at pci?				# Lynloong/Fuloong 2F only
wsdisplay*	at sisfb?
smfb*		at pci?				# Yeeloong only
wsdisplay*	at smfb?

# Gdium Liberty specific devices
voyager*	at pci?
gpio0		at voyager?
gdiumiic0	at gpio0 offset 6 mask 0x81	# pins 6 and 13
gdiumiic0	at gpio0 offset 46 mask 0x03	# pins 46 and 47
iic0		at gdiumiic0
mfokclock0	at iic0				# M41T8x todclock
ohci*		at voyager?
smfb*		at voyager?
wsdisplay*	at smfb?

# USB Controllers
ohci*		at pci?
uhci*		at pci?
ehci*		at pci?

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

# USB devices
uhub*		at usb?		# USB Hubs
uhub*		at uhub?	# USB Hubs
umodem*		at uhub?	# USB Modems/Serial
ucom*		at umodem?
uvscom*		at uhub?	# SUNTAC Slipper U VS-10U serial
ucom*		at uvscom?
ubsa*		at uhub?	# Belkin serial adapter
ucom*		at ubsa?
uplcom*		at uhub?	# I/O DATA USB-RSAQ2 serial adapter
ucom*		at uplcom?
umass*		at uhub?	# USB Mass Storage devices
atapiscsi*	at umass?
scsibus*	at atapiscsi?
scsibus*	at umass?
uhidev*		at uhub?	# Human Interface Devices
ums*		at uhidev?	# USB mouse
wsmouse*	at ums? mux 0
ukbd*		at uhidev?	# USB keyboard
wskbd*		at ukbd? mux 1
uhid*		at uhidev?	# USB generic HID support
atu*		at uhub?	# Atmel AT76c50x based 802.11b
aue*		at uhub?	# ADMtek AN986 Pegasus Ethernet  
axe*		at uhub?	# ASIX Electronics AX88172 USB Ethernet
cdce*		at uhub?	# CDC Ethernet
cue*		at uhub?	# CATC USB-EL1201A based Ethernet
kue*		at uhub?	# Kawasaki KL5KUSB101B based Ethernet
mos*		at uhub?	# MOSCHIP MCS7730/7830 10/100 Ethernet
otus*		at uhub?	# Atheros AR9001U
rum*		at uhub?	# Ralink RT2501USB/RT2601USB
run*		at uhub?	# Ralink RT2700U/RT2800U/RT3000U
uath*		at uhub?	# Atheros AR5005UG/AR5005UX
udav*		at uhub?	# Davicom DM9601 based Ethernet
upgt*		at uhub?	# Conexant/Intersil PrismGT SoftMAC USB
upl*		at uhub?	# Prolific PL2301/PL2302 host-to-host `network'
ural*		at uhub?	# Ralink RT2500USB
url*		at uhub?	# Realtek RTL8150L based adapters
urtw*		at uhub?	# RealTek 8187
wi*		at uhub?	# WaveLAN IEEE 802.11DS
zyd*		at uhub?	# Zydas ZD1211
ugen*		at uhub?	# USB Generic driver

# NICs
ral*		at pci?
re*		at pci?
rl*		at pci?

# Media Independent Interface (mii) drivers
acphy*		at mii?		# Altima AC101 PHYs
amphy*		at mii?		# AMD 79C873 PHYs
bmtphy*		at mii?		# Broadcom 10/100 PHYs
eephy*		at mii?		# Marvell 88E1000 series PHY
rgephy*		at mii?		# Realtek 8169S/8110S PHY
rlphy*		at mii?		# RealTek 8139 internal PHYs
urlphy*		at mii?		# Realtek RTL8150L internal PHY
ukphy*		at mii?		# "unknown" PHYs

sd*		at scsibus?
#st*		at scsibus?
cd*		at scsibus?
#ch*		at scsibus?
#ss*		at scsibus?
#uk*		at scsibus?

pseudo-device	loop		1	# network loopback
pseudo-device	bpfilter	1	# packet filter
pseudo-device	rd		1	# ram disk
pseudo-device	wsmux		2	# mouse & keyboard multiplexor

option		BOOT_CONFIG	# boot-time kernel config
