LOONGSON revision 1.45
11.45Sroy# $NetBSD: LOONGSON,v 1.45 2020/09/27 13:48:50 roy 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.45Sroy#ident "LOONGSON-$Revision: 1.45 $" 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.41Ssevan# Alternate buffer queue strategies for better responsiveness under high 1041.41Ssevan# disk I/O load. 1051.41Ssevan#options BUFQ_READPRIO 1061.41Ssevanoptions BUFQ_PRIOCSCAN 1071.41Ssevan 1081.1Sbouyer# Networking options 1091.1Sbouyer#options GATEWAY # IP packet forwarding 1101.1Sbouyeroptions INET # IP + ICMP + TCP + UDP 1111.1Sbouyeroptions INET6 # IPV6 1121.1Sbouyer#options IPSEC # IP security 1131.1Sbouyer#options IPSEC_DEBUG # debug for IP security 1141.1Sbouyer#options MROUTING # Multicast routing support 1151.1Sbouyer#options PIM # Protocol Independent Multicast 1161.1Sbouyer 1171.1Sbouyer#options ALTQ # Manipulate network interfaces' output queues 1181.1Sbouyer#options ALTQ_BLUE # Stochastic Fair Blue 1191.1Sbouyer#options ALTQ_CBQ # Class-Based Queueing 1201.1Sbouyer#options ALTQ_CDNR # Diffserv Traffic Conditioner 1211.1Sbouyer#options ALTQ_FIFOQ # First-In First-Out Queue 1221.1Sbouyer#options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box) 1231.1Sbouyer#options ALTQ_HFSC # Hierarchical Fair Service Curve 1241.1Sbouyer#options ALTQ_LOCALQ # Local queueing discipline 1251.1Sbouyer#options ALTQ_PRIQ # Priority Queueing 1261.1Sbouyer#options ALTQ_RED # Random Early Detection 1271.1Sbouyer#options ALTQ_RIO # RED with IN/OUT 1281.1Sbouyer#options ALTQ_WFQ # Weighted Fair Queueing 1291.1Sbouyer 1301.23Salnsn# JIT compiler for bpfilter 1311.23Salnsn#options SLJIT 1321.23Salnsn#options BPFJIT 1331.23Salnsn 1341.1Sbouyer# NetBSD backwards compatibility 1351.35Smrginclude "conf/compat_netbsd16.config" 1361.1Sbouyer 1371.1Sbouyer#options NFS_BOOT_DHCP 1381.1Sbouyeroptions NFS_BOOT_BOOTP 1391.1Sbouyer#options NFS_BOOT_BOOTPARAM 1401.1Sbouyer 1411.1Sbouyer# compile options 1421.1Sbouyer#makeoptions DEFGP="-G 10" 1431.1Sbouyer 1441.1Sbouyerconfig netbsd root on ? type ? 1451.1Sbouyer 1461.1Sbouyer# WS console uses SUN or VT100 terminal emulation 1471.1Sbouyeroptions WSEMUL_VT100 1481.14Smacallanoptions WSDISPLAY_COMPAT_PCVT 1491.14Smacallanoptions WSDISPLAY_COMPAT_SYSCONS 1501.14Smacallanoptions WSDISPLAY_COMPAT_USL 1511.14Smacallanoptions WSDISPLAY_SCROLLSUPPORT 1521.4Smacallanoptions WS_KERNEL_FG=WSCOL_GREEN 1531.1Sbouyer#options WSDISPLAY_DEFAULTSCREENS=4 1541.1Sbouyeroptions FONT_GALLANT12x22 1551.22Sbouyeroptions FONT_BOLD8x16 1561.1Sbouyer# compatibility to other console drivers 1571.1Sbouyeroptions WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes 1581.1Sbouyer 1591.1Sbouyermainbus0 at root 1601.1Sbouyercpu0 at mainbus0 1611.1Sbouyerbonito0 at mainbus0 1621.1Sbouyerpci0 at bonito0 1631.1Sbouyersisfb0 at pci0 dev ? function ? 1641.5Smacallanvoyager0 at pci0 dev ? function ? # SM502 on GDIUM 1651.5Smacallanvoyagerfb0 at voyager0 # framebuffer portion 1661.14Smacallanpwmclock0 at voyager0 # clock and CPU freq scaling 1671.38Sthorpejiic* at voyager0 1681.43Sthorpejstrtc* at iic? addr 0x68 # GDIUM's real time clock (M41T80/81 ?) 1691.38Sthorpejlmtemp* at iic? addr 0x48 # GDIUM's temperature sensor 1701.38Sthorpejstvii* at iic? addr 0x40 # GDIUM's onboard microcontroller 1711.9Snonakalynxfb0 at pci0 dev ? function ? # SM712 on Yeeloong Notebook 1721.1Sbouyer#genfb0 at pci0 dev ? function ? 1731.1Sbouyerwsdisplay* at wsemuldisplaydev? 1741.36Smaya 1751.1Sbouyerehci* at pci0 dev ? function ? 1761.1Sbouyer#options EHCI_DEBUG 1771.1Sbouyerohci* at pci0 dev ? function ? 1781.1Sbouyer#options OHCI_DEBUG, USB_DEBUG, UHUB_DEBUG 1791.1Sbouyer 1801.36Smaya# USB 1811.36Smayausb* at ehci? 1821.36Smayausb* at ohci? 1831.36Smaya 1841.36Smayainclude "dev/usb/usbdevices.config" 1851.36Smayamidi* at midibus? 1861.36Smaya 1871.36Smayaoptions GDIUM_KEYBOARD_HACK # support Fn key on Gdium 1881.36Smaya 1891.9Snonakagcscpcib* at pci? dev ? function ? # AMD CS5535/CS5536 PCI-ISA w/ 1901.9Snonakagpio* at gcscpcib? # timecounter, watchdog and GPIO 1911.9Snonakaisa0 at gcscpcib? 1921.9Snonaka 1931.9Snonakapcib* at pci? 1941.9Snonakaisa0 at pcib? 1951.9Snonaka 1961.9Snonakapckbc0 at isa? # PC keyboard controller 1971.9Snonakapckbd* at pckbc? # PC keyboard 1981.9Snonakapms* at pckbc? # PS/2 mouse for wsmouse 1991.32Schristos#options PMS_DISABLE_POWERHOOK # Disable PS/2 reset on resume 2001.9Snonakaoptions PMS_SYNAPTICS_TOUCHPAD # Enable support for Synaptics Touchpads 2011.9Snonakaoptions PMS_ELANTECH_TOUCHPAD # Enable support for Elantech Touchpads 2021.32Schristosoptions PMS_ALPS_TOUCHPAD # Enable support for Alps Touchpads 2031.9Snonakawskbd* at pckbd? console ? 2041.9Snonakawsmouse* at pms? mux 0 2051.1Sbouyer 2061.1Sbouyermcclock* at isa? port 0x70 # mc146818-compatible 2071.1Sbouyercom0 at isa? port 0x2f8 irq 3 # Fuloong 2F only 2081.1Sbouyercom1 at isa? port 0x3f8 irq 4 # Fuloong 2F only (IR port) 2091.1Sbouyer 2101.9Snonakagcscaudio* at pci? 2111.9Snonakaaudio* at audiobus? 2121.9Snonaka 2131.29Schristosspkr* at audio? # PC speaker (synthesized) 2141.27Snat 2151.1Sbouyerpciide* at pci? dev ? function ? flags 0x0000 # GENERIC pciide driver 2161.1Sbouyerviaide* at pci? dev ? function ? # VIA/AMD/Nvidia IDE controllers 2171.2Sbouyeroptions WDC_NO_IDS #workaround CS5536+JMH330 interrupt disable bug 2181.1Sbouyer 2191.1Sbouyer# ATA (IDE) bus support 2201.1Sbouyeratabus* at ata? 2211.33Smaya#options ATADEBUG 2221.1Sbouyer 2231.1Sbouyer# IDE drives 2241.1Sbouyer# Flags are used only with controllers that support DMA operations 2251.1Sbouyer# and mode settings (e.g. some pciide controllers) 2261.1Sbouyer# The lowest order four bits (rightmost digit) of the flags define the PIO 2271.1Sbouyer# mode to use, the next set of four bits the DMA mode and the third set the 2281.1Sbouyer# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode 2291.1Sbouyer# to use, and the last bit must be 1 for this setting to be used. 2301.1Sbouyer# For DMA and UDMA, 0xf (1111) means 'disable'. 2311.1Sbouyer# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'. 2321.1Sbouyer# (0xc=1100, 0xa=1010, 0xf=1111) 2331.1Sbouyer# 0x0000 means "use whatever the drive claims to support". 2341.1Sbouyerwd* at atabus? drive ? flags 0x0000 2351.1Sbouyer 2361.1Sbouyer# ATAPI bus support 2371.1Sbouyer#atapibus* at atapi? 2381.1Sbouyer 2391.1Sbouyer# ATAPI devices 2401.1Sbouyer# flags have the same meaning as for IDE drives. 2411.1Sbouyer#cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives 2421.1Sbouyer#sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives 2431.1Sbouyer#st* at atapibus? drive ? flags 0x0000 # ATAPI tape drives 2441.1Sbouyer#uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown 2451.1Sbouyer 2461.1Sbouyerral* at pci? dev ? function ? # RL2561S 802.11b/g 2471.1Sbouyerrtk* at pci? dev ? function ? # RTL8139 100/10 Ethernet 2481.1Sbouyerre* at pci? dev ? function ? # Realtek 8139C+/8169/8169S/8110S 2491.1Sbouyer# MII/PHY support 2501.1Sbouyerrgephy* at mii? phy ? # Realtek 8169S/8110S internal PHYs 2511.1Sbouyerrlphy* at mii? phy ? # Realtek 8139/8201L PHYs 2521.1Sbouyerukphy* at mii? phy ? # generic unknown PHYs 2531.1Sbouyer 2541.1Sbouyer# 2551.1Sbouyer# accept filters 2561.1Sbouyerpseudo-device accf_data # "dataready" accept filter 2571.1Sbouyerpseudo-device accf_http # "httpready" accept filter 2581.1Sbouyer 2591.18Schristospseudo-device loop # network loopback 2601.1Sbouyerpseudo-device ppp # serial-line IP ports 2611.1Sbouyerpseudo-device pppoe # PPP over Ethernet (RFC 2516) 2621.1Sbouyerpseudo-device pty # pseudo-terminals 2631.1Sbouyerpseudo-device bpfilter # packet filter ports 2641.42Ssevanpseudo-device carp # Common Address Redundancy Protocol 2651.39Smaxvpseudo-device npf # NPF packet filter 2661.1Sbouyer 2671.1Sbouyerpseudo-device vnd # virtual disk ick 2681.1Sbouyer#options VND_COMPRESSION # compressed vnd(4) 2691.18Schristos#pseudo-device ccd # concatenated disks 2701.1Sbouyerpseudo-device fss # file system snapshot device 2711.18Schristos#pseudo-device cgd # cryptographic disks 2721.1Sbouyerpseudo-device clockctl # user control of clock subsystem 2731.1Sbouyer 2741.1Sbouyerpseudo-device wsmux # mouse & keyboard multiplexor 2751.9Snonakapseudo-device wsfont 2761.1Sbouyer#pseudo-device md # memory disk device (ramdisk) 2771.1Sbouyer 2781.19Schristos#pseudo-device raid # RAIDframe disk driver 2791.1Sbouyer#options RAID_AUTOCONFIG # auto-configuration of RAID components 2801.1Sbouyer# Options to enable various other RAIDframe RAID types. 2811.1Sbouyer# options RF_INCLUDE_EVENODD=1 2821.1Sbouyer# options RF_INCLUDE_RAID5_RS=1 2831.1Sbouyer# options RF_INCLUDE_PARITYLOGGING=1 2841.1Sbouyer# options RF_INCLUDE_CHAINDECLUSTER=1 2851.1Sbouyer# options RF_INCLUDE_INTERDECLUSTER=1 2861.1Sbouyer# options RF_INCLUDE_PARITY_DECLUSTERING=1 2871.1Sbouyer# options RF_INCLUDE_PARITY_DECLUSTERING_DS=1 2881.1Sbouyer 2891.1Sbouyer# for IPv6 2901.1Sbouyerpseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933) 2911.1Sbouyer#pseudo-device faith # IPv[46] tcp relay translation i/f 2921.1Sbouyerpseudo-device stf # 6to4 IPv6 over IPv4 encapsulation 2931.1Sbouyer 2941.1Sbouyer## IEEE 802.1Q Virtual LAN encapsulation, see vlan(4). 2951.1Sbouyerpseudo-device vlan 2961.1Sbouyer 2971.1Sbouyer## Simple inter-network traffic bridging 2981.1Sbouyerpseudo-device bridge 2991.45Sroy#pseudo-device vether # Virtual Ethernet for bridge 3001.1Sbouyerpseudo-device agr # IEEE 802.3ad link aggregation 3011.1Sbouyerpseudo-device ksyms # /dev/ksyms 3021.26Sjmcneillpseudo-device drvctl # driver control 3031.1Sbouyer 3041.42Ssevaninclude "dev/veriexec.config" 305