CP3100 revision 1.52
11.52Ssimonb#	$NetBSD: CP3100,v 1.52 2022/08/07 02:52:25 simonb Exp $
21.1Sscw#
31.1Sscw#	CP3100 -- Certance CP3100 Kernel
41.1Sscw#
51.1Sscw
61.1Sscwinclude	"arch/evbarm/conf/std.cp3100"
71.1Sscw
81.1Sscw#options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
91.1Sscw
101.1Sscw# estimated number of users
111.1Sscw
121.1Sscwmaxusers	32
131.1Sscw
141.1Sscw# Standard system options
151.1Sscw
161.1Sscwoptions 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
171.1Sscwoptions 	NTP		# NTP phase/frequency locked loop
181.1Sscw
191.1Sscw# CPU options
201.1Sscw
211.1Sscw# For XScale systems
221.1Sscwoptions 	CPU_XSCALE_80321	# Support the XScale core
231.1Sscwmakeoptions	CPUFLAGS="-mcpu=xscale"
241.1Sscw
251.1Sscw# Architecture options
261.1Sscwoptions 	XSCALE_CACHE_READ_WRITE_ALLOCATE
271.1Sscw#options 	HZ=512
281.1Sscw
291.1Sscw# File systems
301.1Sscw
311.1Sscwfile-system	FFS		# UFS
321.1Sscwfile-system	LFS		# log-structured file system
331.1Sscwfile-system	MFS		# memory file system
341.1Sscwfile-system	NFS		# Network file system
351.1Sscw#file-system 	ADOSFS		# AmigaDOS-compatible file system
361.1Sscw#file-system 	EXT2FS		# second extended file system (linux)
371.1Sscw#file-system	CD9660		# ISO 9660 + Rock Ridge file system
381.1Sscw#file-system	MSDOSFS		# MS-DOS file system
391.1Sscwfile-system	FDESC		# /dev/fd
401.1Sscwfile-system	KERNFS		# /kern
411.1Sscwfile-system	NULLFS		# loopback file system
421.1Sscwfile-system	PROCFS		# /proc
431.29Smsaitoh#file-system	PUFFS		# Userspace file systems (e.g. ntfs-3g & sshfs)
441.1Sscw#file-system	UMAPFS		# NULLFS + uid and gid remapping
451.1Sscw#file-system	UNION		# union file system
461.1Sscwfile-system	PTYFS		# /dev/pts/N support
471.1Sscw
481.1Sscw# File system options
491.52Ssimonb#options 	FFS_EI		# FFS Endian Independent support
501.52Ssimonb#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
511.21Sbouyer#options 	QUOTA		# legacy UFS quotas
521.21Sbouyer#options 	QUOTA2		# new, in-filesystem UFS quotas
531.52Ssimonb#options 	UFS_DIRHASH	# UFS Large Directory Hashing
541.52Ssimonb#options 	UFS_EXTATTR	# Extended attribute support for UFS1
551.52Ssimonboptions 	WAPBL		# File system journaling support
561.52Ssimonb#options 	LFS_DIRHASH	# LFS version of UFS_DIRHASH - experimental
571.44Srin#options 	DISKLABEL_EI	# disklabel Endian Independent support
581.52Ssimonboptions 	NFSSERVER	# Network File System server
591.1Sscw
601.1Sscw# Networking options
611.1Sscw
621.1Sscwoptions 	GATEWAY		# packet forwarding
631.1Sscwoptions 	INET		# IP + ICMP + TCP + UDP
641.1Sscwoptions 	INET6		# IPV6
651.1Sscw#options 	IPSEC		# IP security
661.1Sscw#options 	IPSEC_DEBUG	# debug for IP security
671.1Sscw#options 	MROUTING	# IP multicast routing
681.1Sscw#options 	PIM		# Protocol Independent Multicast
691.1Sscw#options 	NETATALK	# AppleTalk networking
701.1Sscw#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
711.1Sscw#options 	PPP_DEFLATE	# Deflate compression support for PPP
721.1Sscw#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
731.1Sscw#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
741.1Sscw
751.1Sscwoptions 	NFS_BOOT_BOOTP
761.1Sscwoptions 	NFS_BOOT_DHCP
771.1Sscw#options 	NFS_BOOT_BOOTPARAM
781.1Sscw
791.1Sscw# Compatibility options
801.1Sscw
811.46Smrginclude 	"conf/compat_netbsd50.config"
821.46Smrgoptions 	COMPAT_NETBSD32	# allow running arm (e.g. non-earm) binaries
831.1Sscw
841.1Sscw# Shared memory options
851.1Sscw
861.1Sscwoptions 	SYSVMSG		# System V-like message queues
871.1Sscwoptions 	SYSVSEM		# System V-like semaphores
881.1Sscwoptions 	SYSVSHM		# System V-like memory sharing
891.1Sscw
901.1Sscw# Device options
911.1Sscw
921.1Sscw#options 	MEMORY_DISK_HOOKS	# boottime setup of ramdisk
931.1Sscw#options 	MEMORY_DISK_ROOT_SIZE=3400	# Size in blocks
941.1Sscw#options 	MEMORY_DISK_IS_ROOT	# use memory disk as root
951.1Sscw
961.1Sscw# Console options.  The default console is speed is 115200 baud.
971.1Sscwoptions 	CONSPEED=115200		# Console speed
981.1Sscw
991.1Sscw# Miscellaneous kernel options
1001.1Sscwoptions 	KTRACE		# system call tracing, a la ktrace(1)
1011.1Sscwoptions 	IRQSTATS	# manage IRQ statistics
1021.1Sscw#options 	SCSIVERBOSE	# Verbose SCSI errors
1031.1Sscw#options 	PCIVERBOSE	# Verbose PCI descriptions
1041.1Sscw#options 	MIIVERBOSE	# Verbose MII autoconfuration messages
1051.1Sscw#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
1061.1Sscw#options 	DDB_KEYCODE=0x40
1071.1Sscwoptions 	USERCONF	# userconf(4) support
1081.1Sscw#options	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
1091.1Sscw#options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
1101.1Sscw
1111.1Sscw# Development and Debugging options
1121.1Sscw
1131.38Sdhollandoptions 	DIAGNOSTIC	# internal consistency checks
1141.1Sscw#options 	DEBUG
1151.50Sskrll#options 	UVMHIST		# kernhist for uvm/pmap subsystems
1161.1Sscw#options 	VERBOSE_INIT_ARM # verbose bootstraping messages
1171.1Sscwoptions 	DDB		# in-kernel debugger
1181.1Sscwoptions 	DDB_HISTORY_SIZE=100	# Enable history editing in DDB
1191.1Sscw#makeoptions	DEBUG="-g"	# compile full symbol table
1201.41Sjoergmakeoptions	COPY_SYMTAB=1
1211.1Sscw
1221.1Sscwconfig		netbsd		root on ? type ?
1231.1Sscwconfig		netbsd-wm0	root on wm0 type nfs
1241.1Sscwconfig		netbsd-wd0	root on wd0a type ffs
1251.2Sheconfig		netbsd-sd0	root on sd0a type ffs
1261.1Sscw
1271.1Sscw# The main bus device
1281.1Sscwmainbus0	at root
1291.1Sscw
1301.1Sscw# The boot CPU
1311.1Sscwcpu0		at mainbus?
1321.1Sscw
1331.1Sscw# On-board device support
1341.1Sscwobio*		at mainbus?
1351.1Sscw
1361.1Sscw# Console UART.
1371.1Sscw# Note: "xint 4" is actually the HPI# pin
1381.1Sscwcom0		at obio? addr 0xfe800000 xint 4
1391.1Sscw
1401.1Sscw# i80321 I/O Processor peripheral support
1411.1Sscwiopxs*		at mainbus?
1421.1Sscw
1431.1Sscwiopaau*		at iopxs?		# Application Accelerator Unit
1441.1Sscwiopiic*		at iopxs?		# I2C Controller Unit(s)
1451.1Sscwiic0		at iopiic?
1461.1Sscwiic1		at iopiic?
1471.1Sscwiopwdog*	at iopxs?		# Watchdog timer
1481.1Sscwpci0		at iopxs? bus ?		# PCI/PCI-X support
1491.1Sscw
1501.1Sscw# IIC Devices
1511.1Sscwm41trtc0	at iic1 addr 0x68		# M41T11 Realtime Clock
1521.1Sscw
1531.1Sscw#
1541.1Sscw# Storage devices
1551.1Sscw#
1561.1Sscw
1571.1Sscw# Serial ATA: i31244
1581.1Sscwartsata*	at pci? dev ? function ?	# Intel i31244 SATA controller
1591.1Sscwatabus* 	at ata?
1601.1Sscw
1611.1Sscw# ATA Disks
1621.1Sscwwd*	at atabus? drive ? flags 0x0000
1631.1Sscw
1641.1Sscw# SCSI: Symbios Logic 53c1010
1651.1Sscw#
1661.49Smsaitoh# Wire down the Target/Host instances. Disable the target controller for
1671.1Sscw# now as we don't currently support SCSI target mode.
1681.1Sscwsiop0		at pci0 dev 2 function 1	# Host controller
1691.1Sscw#siop1		at pci0 dev 2 function 0	# Target controller
1701.1Sscwscsibus*	at scsi?
1711.1Sscw
1721.1Sscw# SCSI Devices
1731.1Sscwsd*	at scsibus? target ? lun ?	# SCSI disk drives
1741.1Sscwst*	at scsibus? target ? lun ?	# SCSI tape drives
1751.1Sscwcd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
1761.1Sscwch*	at scsibus? target ? lun ?	# SCSI autochangers
1771.1Sscwses*	at scsibus? target ? lun ?	# SCSI Enclosure Services devices
1781.1Sscwss*	at scsibus? target ? lun ?	# SCSI Scanners
1791.1Sscwuk*	at scsibus? target ? lun ?	# SCSI unknown
1801.1Sscw
1811.1Sscw#
1821.1Sscw# Networking devices
1831.1Sscw#
1841.1Sscw
1851.1Sscw# PCI network devices
1861.1Sscwwm*	at pci? dev ? function ?	# Intel i82546EB Gig-E
1871.1Sscw
1881.1Sscw# MII/PHY support
1891.1Sscwmakphy* at mii? phy ?			# Marvell 88E1000 PHYs
1901.1Sscw
1911.1Sscw# Pseudo-Devices
1921.1Sscw
1931.1Sscw# disk/mass storage pseudo-devices
1941.33Schristospseudo-device	ccd			# concatenated/striped disk devices
1951.33Schristos#pseudo-device	cgd			# cryptographic disk devices
1961.34Schristospseudo-device	raid			# RAIDframe disk driver
1971.1Sscwoptions 	RAID_AUTOCONFIG		# auto-configuration of RAID components
1981.1Sscw# Options to enable various other RAIDframe RAID types.
1991.1Sscw#options 	RF_INCLUDE_EVENODD=1
2001.1Sscw#options 	RF_INCLUDE_RAID5_RS=1
2011.1Sscw#options 	RF_INCLUDE_PARITYLOGGING=1
2021.1Sscw#options 	RF_INCLUDE_CHAINDECLUSTER=1
2031.1Sscw#options 	RF_INCLUDE_INTERDECLUSTER=1
2041.1Sscw#options 	RF_INCLUDE_PARITY_DECLUSTERING=1
2051.1Sscw#options 	RF_INCLUDE_PARITY_DECLUSTERING_DS=1
2061.17Spooka#pseudo-device	fss			# file system snapshot device
2071.29Smsaitoh#pseudo-device	putter			# for puffs and pud
2081.1Sscw
2091.19Shannken#pseudo-device	md			# memory disk device (ramdisk)
2101.1Sscwpseudo-device	vnd			# disk-like interface to files
2111.1Sscwoptions 	VND_COMPRESSION		# compressed vnd(4)
2121.1Sscw
2131.1Sscw# network pseudo-devices
2141.1Sscwpseudo-device	bpfilter		# Berkeley packet filter
2151.48Smaxvpseudo-device	npf			# NPF packet filter
2161.1Sscwpseudo-device	loop			# network loopback
2171.1Sscw#pseudo-device	tun			# network tunneling over tty
2181.1Sscw#pseudo-device	vlan			# IEEE 802.1q encapsulation
2191.1Sscw#pseudo-device	bridge			# simple inter-network bridging
2201.51Sroy#pseudo-device	vether			# Virtual Ethernet for bridge
2211.1Sscw
2221.1Sscw# miscellaneous pseudo-devices
2231.1Sscwpseudo-device	pty			# pseudo-terminals
2241.1Sscwpseudo-device	clockctl		# user control of clock subsystem
2251.1Sscwpseudo-device	ksyms			# /dev/ksyms
2261.1Sscw
2271.1Sscw# data mover pseudo-devices
2281.27Sskrll#pseudo-device	swdmover		# software dmover(9) back-end
2291.1Sscw#pseudo-device	dmoverio		# /dev/dmover dmover(9) interface
230