# $OpenBSD: RAMDISK,v 1.104 2019/10/07 18:55:20 kettenis Exp $
#
# GENERIC machine description file
#
# This machine description file is used to generate the default OpenBSD
# kernel.  The generic kernel does not include all options, subsystems
# and device drivers, but should be useful for most applications.
#
# The machine description file can be customised for your specific
# machine to reduce the kernel size and improve its performance.
#
# 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		arm64
maxusers	4

option		PCIVERBOSE
option		USBVERBOSE
option		SMALL_KERNEL
option		NO_PROPOLICE
option		BOOT_CONFIG

option		RAMDISK_HOOKS
option		MINIROOTSIZE=16384

option		FFS
option		FFS2
option		MSDOSFS
option		INET6
option		EXT2FS
option		NFSCLIENT
option		CRYPTO

makeoptions	KERNEL_BASE_PHYS="0x00200000"
makeoptions	KERNEL_BASE_VIRT="0xffffff8000200000"

config		bsd	root on rd0a swap on rd0b

# The main bus device
mainbus0	at root
softraid0	at root
cpu0		at mainbus?
efi0		at mainbus?
acpi0		at mainbus?
acpiec*		at acpi?
acpimcfg*	at acpi?
acpipci*	at acpi?
pci*		at acpipci?
ahci*		at acpi?
ccp*		at acpi?		# AMD Cryptographic Co-processor
com*		at acpi?
pluart*		at acpi?
xhci*		at acpi?
simplebus*	at fdt?

scsibus*	at scsi?
sd*		at scsibus?
st*		at scsibus?
cd*		at scsibus?
ch*		at scsibus?
uk*		at scsibus?

ampintc*	at fdt? early 1
ampintcmsi*	at fdt? early 1
agintc*		at fdt? early 1
agintcmsi*	at fdt? early 1
agtimer*	at fdt?
ahci*		at fdt?
dwge*		at fdt?
dwpcie*		at fdt?
pci*		at dwpcie?
ohci*		at fdt?
ehci*		at fdt?
pciecam*	at fdt?
pci*		at pciecam?
sdhc*		at fdt?
sdmmc*		at sdhc?
bwfm*		at sdmmc?	# Broadcom FullMAC
xhci*		at fdt?
ccp*		at fdt?		# AMD Cryptographic Co-processor

# NS16550 compatible serial ports
com*		at fdt?

# Generic devices
pinctrl*	at fdt? early 1
plgpio*		at fdt? early 1
plrtc*		at fdt?
pluart*		at fdt?
psci*		at fdt? early 1
syscon*		at fdt? early 1

virtio*		at fdt?
virtio*		at pci?
vio*		at virtio?
vioblk*		at virtio?
viomb*		at virtio?
viornd*		at virtio?
vioscsi*	at virtio?

simplefb*	at fdt?
wsdisplay*	at simplefb?

# iMX
imxccm*		at fdt? early 1
imxiomuxc*	at fdt? early 1
imxanatop*	at fdt? early 1
imxsrc*		at fdt? early 1
imxgpc*		at fdt?
imxgpio*	at fdt?
fec*		at fdt?
imxuart*	at fdt?
imxiic*		at fdt?
iic*		at imxiic?
imxesdhc*	at fdt?
sdmmc*		at imxesdhc?

# Raspberry Pi 3
bcmaux*		at fdt?
bcmintc*	at fdt?
bcmdog*		at fdt?
bcmrng*		at fdt?
dwctwo*		at fdt?
usb*		at dwctwo?

# Amlogic SoCs
amlclock*	at fdt? early 1
amldwusb*	at fdt?
amliic*		at fdt?
iic*		at amliic?
amlmmc*		at fdt?
sdmmc*		at amlmmc?
amlpciephy*	at fdt?
amlpinctrl*	at fdt? early 1
amlreset*	at fdt? early 1
amlrng*		at fdt?
amluart*	at fdt?
amlusbphy*	at fdt?

# HiSilicon SoCs
hiclock*	at fdt? early 1
hidwusb*	at fdt?
hireset*	at fdt? early 1

# Marvell SoCs
mvclock*	at fdt? early 1
mvgicp*		at fdt? early 1
mvicu*		at fdt? early 1
mvpinctrl*	at fdt? early 1
mvdog*		at fdt?
mvgpio*		at fdt?
mviic*		at fdt?
iic*		at mviic?
mvmdio*		at fdt?
mvneta*		at fdt?
mvrng*		at fdt?
mvrtc*		at fdt?
mvuart*		at fdt?
sfp*		at fdt?

# Rockchip SoCs
rkclock*	at fdt? early 1
rkgrf*		at fdt? early 1
rkpinctrl*	at fdt? early 1
rkgpio*		at fdt?
rkiic*		at fdt?
iic*		at rkiic?
rkpcie*		at fdt?
pci*		at rkpcie?
rkdwusb*	at fdt?
dwmmc*		at fdt?
sdmmc*		at dwmmc?

# Sunxi SoCs
sxipio*		at fdt? early 1	# GPIO pins for leds & PHYs
gpio*		at sxipio?
sxiccmu*	at fdt? early 1	# Clock Control Module/Unit
sxirsb*		at fdt? early 1	# Reduced Serial Bus
sxirtc*		at fdt? early 1	# Real Time Clock
sximmc*		at fdt?		# SD/MMC card controller
sdmmc*		at sximmc?	# SD/MMC bus
sxisyscon*	at fdt? early 1	# System controller
sxitwi*		at fdt?		# I2C controller
iic*		at sxitwi?	# I2C bus
dwxe*		at fdt?

# PCI
ppb*		at pci?			# PCI-PCI bridges
pci*		at ppb?

# PCI Ethernet
bnxt*		at pci?			# Broadcom BCM573xx, BCM574xx
em*		at pci?			# Intel Pro/1000 Ethernet
ix*		at pci?			# Intel 82598EB 10Gb Ethernet
mcx*		at pci?			# Mellanox ConnectX-4/5 Ethernet
mskc*		at pci?			# Marvell Yukon-2
msk*		at mskc?		#  each port of above
re*		at pci?			# Realtek 8169/8169S/8110S

# PCI SCSI
ahci*		at pci? flags 0x0000	# AHCI SATA controllers
					# flags 0x0001 to force SATA 1 (1.5Gb/s)
nvme*		at pci?			# NVMe controllers

# USB Controllers
ohci*		at pci?			# Open Host Controller
uhci*		at pci?			# Universal Host Controller (Intel)
ehci*		at pci?			# Enhanced Host Controller
xhci*		at pci?			# eXtensible Host Controller

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

# USB devices
uhub*		at usb?			# USB Hubs
uhub*		at uhub?		# USB Hubs
umass*		at uhub?		# USB Mass Storage devices
uhidev*		at uhub?		# Human Interface Devices
ukbd*		at uhidev?		# USB keyboard
wskbd*		at ukbd? mux 1
aue*		at uhub?		# ADMtek AN986 Pegasus Ethernet
atu*		at uhub?		# Atmel AT76c50x based 802.11b
axe*		at uhub?		# ASIX Electronics AX88172 USB Ethernet
axen*		at uhub?		# ASIX Electronics AX88179 USB Ethernet
cue*		at uhub?		# CATC USB-EL1201A based Ethernet
kue*		at uhub?		# Kawasaki KL5KUSB101B based Ethernet
smsc*		at uhub?		# SMSC LAN95xx Ethernet
cdce*		at uhub?		# CDC Ethernet
urndis*		at uhub?		# Remote NDIS Ethernet
upl*		at uhub?		# Prolific PL2301/PL2302 host-to-host `network'
ugl*		at uhub?		# Genesys Logic GL620USB-A host-to-host `network'
udav*		at uhub?		# Davicom DM9601 based Ethernet
mos*		at uhub?		# MOSCHIP MCS7730/7830 10/100 Ethernet
mue*		at uhub?		# Microchip LAN75xx/LAN78xx Ethernet
url*		at uhub?		# Realtek RTL8150L based adapters
ure*		at uhub?		# Realtek RTL8152 based adapters
wi*		at uhub?		# WaveLAN IEEE 802.11DS
uath*		at uhub?		# Atheros AR5005UG/AR5005UX
ural*		at uhub?		# Ralink RT2500USB
rum*		at uhub?		# Ralink RT2501USB/RT2601USB
run*		at uhub?		# Ralink RT2700U/RT2800U/RT3000U
otus*		at uhub?		# Atheros AR9001U
athn*		at uhub?		# Atheros AR9002U
zyd*		at uhub?		# Zydas ZD1211
upgt*		at uhub?		# Conexant/Intersil PrismGT SoftMAC USB
urtw*		at uhub?		# Realtek 8187
rsu*		at uhub?		# Realtek RTL8188SU/RTL8191SU/RTL8192SU
urtwn*		at uhub?		# Realtek RTL8188CU/RTL8192CU

amphy*		at mii?			# AMD 79C873 PHYs
atphy*		at mii?			# Attansic F1 PHYs
eephy*		at mii?			# Marvell 88E1000 series PHY
rgephy*		at mii?			# Realtek 8169S/8110S PHY
rlphy*		at mii?			# Realtek 8139 internal PHYs
ukphy*		at mii?			# "unknown" PHYs
urlphy*		at mii?			# Realtek RTL8150L internal PHY

scsibus*	at scsi?
sd*		at scsibus?
cd*		at scsibus?
st*		at scsibus?
ch*		at scsibus?
uk*		at scsibus?

# I2C devices
abcrtc*		at iic?			# Abracon x80x RTC
fusbtc*		at iic?			# USB Type-C controller
islrtc*		at iic?			# ISL1208 RTC
mcprtc*		at iic?			# MCP794XX RTC
pcxrtc*		at iic?			# PCF8563 RTC
rkpmic*		at iic?			# RK808 PMIC

pseudo-device	loop 1
pseudo-device	vlan
pseudo-device	trunk
pseudo-device	bpfilter 1
pseudo-device	rd 1
pseudo-device	bio 1
