LOONGSON revision 1.38
11.37Sthorpej# $NetBSD: LOONGSON,v 1.38 2018/06/07 13:36:29 thorpej Exp $
21.1Sbouyer#
31.1Sbouyer# LOONGSON machine description file
41.1Sbouyer# 
51.1Sbouyer# This machine description file is used to generate the default NetBSD
61.1Sbouyer# kernel.  The generic kernel does not include all options, subsystems
71.1Sbouyer# and device drivers, but should be useful for most applications.
81.1Sbouyer#
91.1Sbouyer# The machine description file can be customised for your specific
101.1Sbouyer# machine to reduce the kernel size and improve its performance.
111.1Sbouyer#
121.1Sbouyer# For further information on compiling NetBSD kernels, see the config(8)
131.1Sbouyer# man page.
141.1Sbouyer#
151.1Sbouyer# For further information on hardware support for this architecture, see
161.1Sbouyer# the intro(4) man page.  For further information about kernel options
171.1Sbouyer# for this architecture, see the options(4) man page.  For an explanation
181.1Sbouyer# of each device driver in this file see the section 4 man page for the
191.1Sbouyer# device.
201.1Sbouyer
211.35Smrginclude 	"arch/evbmips/conf/std.loongson"
221.1Sbouyer
231.1Sbouyeroptions 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
241.1Sbouyer
251.37Sthorpej#ident 		"LOONGSON-$Revision: 1.38 $"
261.1Sbouyer
271.1Sbouyermaxusers	16
281.1Sbouyer
291.1Sbouyer# Standard system options
301.1Sbouyeroptions 	DDB			# in-kernel debugger
311.1Sbouyer#options 	DDB_ONPANIC=0		# don't enter debugger on panic
321.1Sbouyeroptions 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
331.1Sbouyer#options 	KGDB			# remote debugger
341.1Sbouyeroptions 	DIAGNOSTIC		# extra kernel debugging checks
351.1Sbouyer#options 	DEBUG			# extra kernel debugging support
361.1Sbouyer#options 	PMAP_FAULTINFO
371.1Sbouyer#options 	LOCKDEBUG
381.1Sbouyermakeoptions	DEBUG="-g"
391.31Smayamakeoptions	COPY_SYMTAB=1		# size for embedded symbol table
401.1Sbouyeroptions 	KTRACE			# system call tracing support
411.1Sbouyeroptions 	MSGBUFSIZE=8192		# dmesg buffer size
421.1Sbouyer
431.1Sbouyer## UVM options.
441.1Sbouyer#options 	UVM_PAGE_TRKOWN
451.1Sbouyer#options 	UVMHIST
461.1Sbouyer#options 	UVMHIST_PRINT	# Loud!
471.1Sbouyer
481.1Sbouyer#options 	SCSIVERBOSE		# human readable SCSI error messages
491.1Sbouyer#options 	PCMCIAVERBOSE		# verbose PCMCIA configuration messages
501.1Sbouyer#options 	PCMCIADEBUG
511.1Sbouyer#options 	PCMCIACISDEBUG
521.1Sbouyer
531.1Sbouyer#options 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
541.1Sbouyer#options 	RTC_OFFSET=-540		# JST-9
551.1Sbouyer#options 	RTC_OFFSET=480		# PST8
561.1Sbouyer					# In NO RTC_OFFSET , inherit RTC_OFFSET
571.1Sbouyer					# from Windows CE.
581.1Sbouyeroptions 	NTP			# network time protocol
591.1Sbouyer
601.1Sbouyer#options 	WINCE_DEFAULT_SETTING	# Debugging use
611.1Sbouyer
621.11Snonaka# Note: SysV IPC parameters can be changed dynamically; see sysctl(8).
631.11Snonakaoptions 	SYSVMSG		# System V-like message queues
641.11Snonakaoptions 	SYSVSEM		# System V-like semaphores
651.11Snonakaoptions 	SYSVSHM		# System V-like memory sharing
661.11Snonaka
671.1Sbouyer#options 	SYSCALL_DEBUG		# for debug
681.1Sbouyer#options 	HPCMIPS_L1CACHE_DISABLE	# disable L1 cache for debug
691.1Sbouyeroptions 	USERCONF		# userconf(4) support
701.1Sbouyer#options	PIPE_SOCKETPAIR		# smaller, but slower pipe(2)
711.1Sbouyeroptions 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
721.1Sbouyer
731.15Smacallanoptions 	INSECURE	# disable kernel security levels
741.15Smacallan
751.1Sbouyer# Filesystem options
761.1Sbouyerfile-system 	FFS		# fast filesystem with user and group quotas
771.1Sbouyerfile-system 	MFS		# memory-based filesystem
781.1Sbouyerfile-system 	NFS		# Sun NFS-compatible filesystem (client)
791.1Sbouyerfile-system	EXT2FS		# second extended file system (linux)
801.1Sbouyer#file-system	LFS		# Log-based filesystem (still experimental)
811.1Sbouyerfile-system 	CD9660		# ISO 9660 + Rock Ridge file system
821.1Sbouyerfile-system 	MSDOSFS		# MS-DOS file system
831.1Sbouyer#file-system 	FDESC		# /dev/fd
841.1Sbouyerfile-system 	KERNFS		# /kern (kernel informational filesystem)
851.9Snonakafile-system 	NULLFS		# loopback file system
861.1Sbouyer#file-system 	OVERLAY		# overlay file system
871.1Sbouyerfile-system 	PROCFS		# /proc
881.1Sbouyer#file-system 	UMAPFS		# NULLFS + uid and gid remapping
891.1Sbouyerfile-system 	UNION
901.1Sbouyerfile-system	PTYFS		# /dev/pts/N support
911.9Snonakafile-system	TMPFS		# Efficient memory file-system
921.1Sbouyer#file-system	UDF		# experimental - OSTA UDF CD/DVD file-system
931.1Sbouyer
941.1Sbouyeroptions 	NFSSERVER	# Sun NFS-compatible filesystem (server)
951.8Sdhollandoptions 	WAPBL		# File system journaling support
961.1Sbouyer#options	UFS_DIRHASH	# UFS Large Directory Hashing - Experimental
971.1Sbouyer#options 	QUOTA		# legacy UFS quotas
981.1Sbouyer#options 	QUOTA2		# new, in-filesystem UFS quotas
991.30Srin#options 	DISKLABEL_EI	# disklabel Endian Independent support
1001.30Srin#options 	FFS_EI		# FFS Endian Independent support
1011.1Sbouyer#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
1021.1Sbouyer
1031.1Sbouyer# Networking options
1041.1Sbouyer#options 	GATEWAY		# IP packet forwarding
1051.1Sbouyeroptions 	INET		# IP + ICMP + TCP + UDP
1061.1Sbouyeroptions 	INET6		# IPV6
1071.1Sbouyer#options 	IPSEC		# IP security
1081.1Sbouyer#options 	IPSEC_DEBUG	# debug for IP security
1091.1Sbouyer#options 	MROUTING	# Multicast routing support
1101.1Sbouyer#options 	PIM		# Protocol Independent Multicast
1111.1Sbouyeroptions 	IPFILTER_LOG	# ipmon(8) log support
1121.1Sbouyeroptions 	IPFILTER_LOOKUP	# ippool(8) support
1131.1Sbouyeroptions 	IPFILTER_COMPAT # Compat for IP-Filter
1141.1Sbouyer#options 	IPFILTER_DEFAULT_BLOCK	# block all packets by default
1151.1Sbouyer
1161.1Sbouyer#options 	ALTQ		# Manipulate network interfaces' output queues
1171.1Sbouyer#options 	ALTQ_BLUE	# Stochastic Fair Blue
1181.1Sbouyer#options 	ALTQ_CBQ	# Class-Based Queueing
1191.1Sbouyer#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
1201.1Sbouyer#options 	ALTQ_FIFOQ	# First-In First-Out Queue
1211.1Sbouyer#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
1221.1Sbouyer#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
1231.1Sbouyer#options 	ALTQ_LOCALQ	# Local queueing discipline
1241.1Sbouyer#options 	ALTQ_PRIQ	# Priority Queueing
1251.1Sbouyer#options 	ALTQ_RED	# Random Early Detection
1261.1Sbouyer#options 	ALTQ_RIO	# RED with IN/OUT
1271.1Sbouyer#options 	ALTQ_WFQ	# Weighted Fair Queueing
1281.1Sbouyer
1291.23Salnsn# JIT compiler for bpfilter
1301.23Salnsn#options	SLJIT
1311.23Salnsn#options	BPFJIT
1321.23Salnsn
1331.1Sbouyer# NetBSD backwards compatibility
1341.35Smrginclude 	"conf/compat_netbsd16.config"
1351.1Sbouyer
1361.1Sbouyer#options 	NFS_BOOT_DHCP
1371.1Sbouyeroptions 	NFS_BOOT_BOOTP
1381.1Sbouyer#options 	NFS_BOOT_BOOTPARAM
1391.1Sbouyer
1401.1Sbouyer# compile options
1411.1Sbouyer#makeoptions	DEFGP="-G 10"
1421.1Sbouyer
1431.1Sbouyerconfig		netbsd		root on ? type ?
1441.1Sbouyer
1451.1Sbouyer# WS console uses SUN or VT100 terminal emulation
1461.1Sbouyeroptions 	WSEMUL_VT100
1471.14Smacallanoptions		WSDISPLAY_COMPAT_PCVT
1481.14Smacallanoptions 	WSDISPLAY_COMPAT_SYSCONS
1491.14Smacallanoptions		WSDISPLAY_COMPAT_USL
1501.14Smacallanoptions		WSDISPLAY_SCROLLSUPPORT
1511.4Smacallanoptions		WS_KERNEL_FG=WSCOL_GREEN
1521.1Sbouyer#options 	WSDISPLAY_DEFAULTSCREENS=4
1531.1Sbouyeroptions 	FONT_GALLANT12x22
1541.22Sbouyeroptions 	FONT_BOLD8x16
1551.1Sbouyer# compatibility to other console drivers
1561.1Sbouyeroptions 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
1571.1Sbouyer#
1581.1Sbouyer# Hpckbd will set key board layout appropriately. You can use option
1591.1Sbouyer# 'PCKBD_LAYOUT' to overrite the default layout.
1601.1Sbouyer#
1611.1Sbouyer#options 	PCKBD_LAYOUT="(KB_US | KB_SWAPCTRLCAPS | KB_MACHDEP)"
1621.1Sbouyer
1631.1Sbouyermainbus0	at root
1641.1Sbouyercpu0		at mainbus0
1651.1Sbouyerbonito0		at mainbus0
1661.1Sbouyerpci0		at bonito0
1671.1Sbouyersisfb0		at pci0 dev ? function ?
1681.5Smacallanvoyager0	at pci0 dev ? function ?	# SM502 on GDIUM
1691.5Smacallanvoyagerfb0	at voyager0			# framebuffer portion
1701.14Smacallanpwmclock0	at voyager0			# clock and CPU freq scaling
1711.38Sthorpejiic*		at voyager0
1721.38Sthorpejstrtc*		at iic? addr 0x68		# GDIUM's real time clock
1731.9Snonakaoptions 	STRTC_NO_USERRAM
1741.38Sthorpejlmtemp*		at iic? addr 0x48		# GDIUM's temperature sensor
1751.38Sthorpejstvii*		at iic? addr 0x40		# GDIUM's onboard microcontroller
1761.9Snonakalynxfb0		at pci0 dev ? function ?	# SM712 on Yeeloong Notebook
1771.1Sbouyer#genfb0		at pci0 dev ? function ?
1781.1Sbouyerwsdisplay*	at wsemuldisplaydev?
1791.36Smaya
1801.1Sbouyerehci*		at pci0 dev ? function ?
1811.1Sbouyer#options 	EHCI_DEBUG
1821.1Sbouyerohci*		at pci0 dev ? function ?
1831.1Sbouyer#options 	OHCI_DEBUG, USB_DEBUG, UHUB_DEBUG
1841.1Sbouyer
1851.36Smaya# USB
1861.36Smayausb*	at ehci?
1871.36Smayausb*	at ohci?
1881.36Smaya
1891.36Smayainclude "dev/usb/usbdevices.config"
1901.36Smayamidi*		at midibus?
1911.36Smaya
1921.36Smayaoptions		GDIUM_KEYBOARD_HACK	# support Fn key on Gdium
1931.36Smaya
1941.9Snonakagcscpcib*	at pci? dev ? function ?	# AMD CS5535/CS5536 PCI-ISA w/
1951.9Snonakagpio*		at gcscpcib?			# timecounter, watchdog and GPIO
1961.9Snonakaisa0		at gcscpcib?
1971.9Snonaka
1981.9Snonakapcib*		at pci?
1991.9Snonakaisa0		at pcib?
2001.9Snonaka
2011.9Snonakapckbc0		at isa?				# PC keyboard controller
2021.9Snonakapckbd*		at pckbc?			# PC keyboard
2031.9Snonakapms*		at pckbc?			# PS/2 mouse for wsmouse
2041.32Schristos#options 	PMS_DISABLE_POWERHOOK	# Disable PS/2 reset on resume
2051.9Snonakaoptions 	PMS_SYNAPTICS_TOUCHPAD	# Enable support for Synaptics Touchpads
2061.9Snonakaoptions 	PMS_ELANTECH_TOUCHPAD	# Enable support for Elantech Touchpads
2071.32Schristosoptions 	PMS_ALPS_TOUCHPAD	# Enable support for Alps Touchpads
2081.9Snonakawskbd*		at pckbd? console ?
2091.9Snonakawsmouse*	at pms? mux 0
2101.1Sbouyer
2111.1Sbouyermcclock*	at isa? port 0x70		# mc146818-compatible
2121.1Sbouyercom0		at isa? port 0x2f8 irq 3	# Fuloong 2F only
2131.1Sbouyercom1		at isa? port 0x3f8 irq 4	# Fuloong 2F only (IR port)
2141.1Sbouyer
2151.9Snonakagcscaudio*	at pci?
2161.9Snonakaaudio*		at audiobus?
2171.9Snonaka
2181.29Schristosspkr*		at audio?		# PC speaker (synthesized)
2191.27Snat
2201.1Sbouyerpciide* 	at pci? dev ? function ? flags 0x0000	# GENERIC pciide driver
2211.1Sbouyerviaide* 	at pci? dev ? function ?	# VIA/AMD/Nvidia IDE controllers
2221.2Sbouyeroptions  	WDC_NO_IDS #workaround CS5536+JMH330 interrupt disable bug
2231.1Sbouyer
2241.1Sbouyer# ATA (IDE) bus support
2251.1Sbouyeratabus* at ata?
2261.33Smaya#options 	ATADEBUG
2271.1Sbouyer
2281.1Sbouyer# IDE drives
2291.1Sbouyer# Flags are used only with controllers that support DMA operations
2301.1Sbouyer# and mode settings (e.g. some pciide controllers)
2311.1Sbouyer# The lowest order four bits (rightmost digit) of the flags define the PIO
2321.1Sbouyer# mode to use, the next set of four bits the DMA mode and the third set the
2331.1Sbouyer# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
2341.1Sbouyer# to use, and the last bit must be 1 for this setting to be used.
2351.1Sbouyer# For DMA and UDMA, 0xf (1111) means 'disable'.
2361.1Sbouyer# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
2371.1Sbouyer# (0xc=1100, 0xa=1010, 0xf=1111)
2381.1Sbouyer# 0x0000 means "use whatever the drive claims to support".
2391.1Sbouyerwd*	at atabus? drive ? flags 0x0000
2401.1Sbouyer
2411.1Sbouyer# ATAPI bus support
2421.1Sbouyer#atapibus* at atapi?
2431.1Sbouyer
2441.1Sbouyer# ATAPI devices
2451.1Sbouyer# flags have the same meaning as for IDE drives.
2461.1Sbouyer#cd*	at atapibus? drive ? flags 0x0000	# ATAPI CD-ROM drives
2471.1Sbouyer#sd*	at atapibus? drive ? flags 0x0000	# ATAPI disk drives
2481.1Sbouyer#st*	at atapibus? drive ? flags 0x0000	# ATAPI tape drives
2491.1Sbouyer#uk*	at atapibus? drive ? flags 0x0000	# ATAPI unknown
2501.1Sbouyer
2511.1Sbouyerral*	at pci? dev ? function ?	# RL2561S 802.11b/g
2521.1Sbouyerrtk*	at pci? dev ? function ?	# RTL8139 100/10 Ethernet
2531.1Sbouyerre*	at pci? dev ? function ?	# Realtek 8139C+/8169/8169S/8110S
2541.1Sbouyer# MII/PHY support
2551.1Sbouyerrgephy*	at mii? phy ?			# Realtek 8169S/8110S internal PHYs
2561.1Sbouyerrlphy*	at mii? phy ?			# Realtek 8139/8201L PHYs
2571.1Sbouyerukphy*	at mii? phy ?			# generic unknown PHYs
2581.1Sbouyer
2591.1Sbouyer#
2601.1Sbouyer# accept filters
2611.1Sbouyerpseudo-device   accf_data		# "dataready" accept filter
2621.1Sbouyerpseudo-device   accf_http		# "httpready" accept filter
2631.1Sbouyer
2641.18Schristospseudo-device	loop			# network loopback
2651.1Sbouyerpseudo-device	ppp			# serial-line IP ports
2661.1Sbouyerpseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
2671.1Sbouyerpseudo-device	pty			# pseudo-terminals
2681.1Sbouyerpseudo-device	bpfilter		# packet filter ports
2691.1Sbouyer#pseudo-device	carp			# Common Address Redundancy Protocol
2701.1Sbouyerpseudo-device	ipfilter		# IP filter, NAT
2711.1Sbouyer
2721.1Sbouyerpseudo-device	vnd			# virtual disk ick
2731.1Sbouyer#options 	VND_COMPRESSION		# compressed vnd(4)
2741.18Schristos#pseudo-device	ccd			# concatenated disks
2751.1Sbouyerpseudo-device	fss			# file system snapshot device
2761.18Schristos#pseudo-device	cgd			# cryptographic disks
2771.1Sbouyerpseudo-device	clockctl		# user control of clock subsystem
2781.1Sbouyer
2791.1Sbouyerpseudo-device	wsmux			# mouse & keyboard multiplexor
2801.9Snonakapseudo-device	wsfont
2811.1Sbouyer#pseudo-device	md			# memory disk device (ramdisk)
2821.1Sbouyer
2831.19Schristos#pseudo-device	raid			# RAIDframe disk driver
2841.1Sbouyer#options 	RAID_AUTOCONFIG		# auto-configuration of RAID components
2851.1Sbouyer# Options to enable various other RAIDframe RAID types.
2861.1Sbouyer# options	RF_INCLUDE_EVENODD=1
2871.1Sbouyer# options	RF_INCLUDE_RAID5_RS=1
2881.1Sbouyer# options	RF_INCLUDE_PARITYLOGGING=1
2891.1Sbouyer# options	RF_INCLUDE_CHAINDECLUSTER=1
2901.1Sbouyer# options	RF_INCLUDE_INTERDECLUSTER=1
2911.1Sbouyer# options 	RF_INCLUDE_PARITY_DECLUSTERING=1
2921.1Sbouyer# options	RF_INCLUDE_PARITY_DECLUSTERING_DS=1
2931.1Sbouyer
2941.1Sbouyer# for IPv6
2951.1Sbouyerpseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC1933)
2961.1Sbouyer#pseudo-device	faith			# IPv[46] tcp relay translation i/f
2971.1Sbouyerpseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
2981.1Sbouyer
2991.1Sbouyer## IEEE 802.1Q Virtual LAN encapsulation, see vlan(4).
3001.1Sbouyerpseudo-device	vlan
3011.1Sbouyer
3021.1Sbouyer## Simple inter-network traffic bridging
3031.1Sbouyerpseudo-device	bridge
3041.1Sbouyer#options	BRIDGE_IPF		# bridge uses IP/IPv6 pfil hooks too
3051.1Sbouyerpseudo-device	agr			# IEEE 802.3ad link aggregation
3061.1Sbouyerpseudo-device	ksyms			# /dev/ksyms
3071.26Sjmcneillpseudo-device	drvctl			# driver control
3081.1Sbouyer#pseudo-device	pf			# PF packet filter
3091.1Sbouyer#pseudo-device	pflog			# PF log if
3101.1Sbouyer
3111.1Sbouyer# Veriexec
3121.1Sbouyer#
3131.1Sbouyer# a pseudo device needed for veriexec
3141.19Schristos#pseudo-device	veriexec
3151.1Sbouyer#
3161.1Sbouyer# Uncomment the fingerprint methods below that are desired. Note that
3171.1Sbouyer# removing fingerprint methods will have almost no impact on the kernel
3181.1Sbouyer# code size.
3191.1Sbouyer#
3201.1Sbouyer#options VERIFIED_EXEC_FP_SHA256
3211.1Sbouyer#options VERIFIED_EXEC_FP_SHA384
3221.1Sbouyer#options VERIFIED_EXEC_FP_SHA512
323