# $NetBSD: GENERIC,v 1.187 2023/02/12 14:50:38 abs Exp $
#
# GENERIC machine description file
#
# This machine description file is used to generate the default NetBSD
# 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 NetBSD 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.

include         "arch/cats/conf/std.cats"

options         INCLUDE_CONFIG_FILE     # embed config file in kernel binary

# estimated number of users

maxusers        32

# Standard system options

options         INSECURE        # disable kernel securelevel

options         RTC_OFFSET=0    # hardware clock is this many mins. west of GMT
options         NTP             # NTP phase/frequency locked loop

# experimental ELF support when used on a CATS board running ABLE
#options        ABLEELF
#makeoptions    ABLEELF="1"

# Alternate buffer queue strategies for better responsiveness under high
# disk I/O load.
#options        BUFQ_READPRIO
options         BUFQ_PRIOCSCAN

# CPU options

# For StrongARM systems
options         CPU_SA110       # Support the SA110 core
makeoptions     CPUFLAGS="-march=armv4 -mtune=strongarm"
#options        VERBOSE_INIT_ARM
#options        FCOM_INIT_ARM   # early console attach

# File systems

file-system     FFS             # UFS
#file-system    LFS             # log-structured file system
file-system     MFS             # memory file system
file-system     NFS             # Network file system
#file-system    ADOSFS          # AmigaDOS-compatible file system
#file-system    EXT2FS          # second extended file system (linux)
file-system     CD9660          # ISO 9660 + Rock Ridge file system
file-system     MSDOSFS         # MS-DOS file system
file-system     FDESC           # /dev/fd
file-system     KERNFS          # /kern
file-system     NULLFS          # loopback file system
#file-system    OVERLAY         # overlay filesystem
file-system     PUFFS           # Userspace file systems (e.g. ntfs-3g & sshfs)
file-system     PROCFS          # /proc
file-system     UMAPFS          # NULLFS + uid and gid remapping
file-system     UNION           # union file system
#file-system    CODA            # Coda File System; also needs vcode (below)
file-system     PTYFS           # /dev/pts/N support
file-system     TMPFS           # Efficient memory file-system
#file-system    UDF             # experimental - OSTA UDF CD/DVD file-system

# File system options
#options        FFS_EI          # FFS Endian Independent support
#options        FFS_NO_SNAPSHOT # No FFS snapshot support
options         QUOTA           # legacy UFS quotas
options         QUOTA2          # new, in-filesystem UFS quotas
#options        UFS_DIRHASH     # UFS Large Directory Hashing
options         UFS_EXTATTR     # Extended attribute support for UFS1
options         WAPBL           # File system journaling support
options         NFSSERVER       # Network File System server

# Networking options

#options        GATEWAY         # packet forwarding
options         INET            # IP + ICMP + TCP + UDP
options         INET6           # IPV6
#options        IPSEC           # IP security
#options        IPSEC_DEBUG     # debug for IP security
#options        MROUTING        # IP multicast routing
#options        PIM             # Protocol Independent Multicast
#options        NETATALK        # AppleTalk networking
options         PPP_BSDCOMP     # BSD-Compress compression support for PPP
options         PPP_DEFLATE     # Deflate compression support for PPP
options         PPP_FILTER      # Active filter support for PPP (requires bpf)
#options        TCP_DEBUG       # Record last TCP_NDEBUG packets with SO_DEBUG

#options        ALTQ            # Manipulate network interfaces' output queues
#options        ALTQ_BLUE       # Stochastic Fair Blue
#options        ALTQ_CBQ        # Class-Based Queueing
#options        ALTQ_CDNR       # Diffserv Traffic Conditioner
#options        ALTQ_FIFOQ      # First-In First-Out Queue
#options        ALTQ_FLOWVALVE  # RED/flow-valve (red-penalty-box)
#options        ALTQ_HFSC       # Hierarchical Fair Service Curve
#options        ALTQ_LOCALQ     # Local queueing discipline
#options        ALTQ_PRIQ       # Priority Queueing
#options        ALTQ_RED        # Random Early Detection
#options        ALTQ_RIO        # RED with IN/OUT
#options        ALTQ_WFQ        # Weighted Fair Queueing

options         NFS_BOOT_BOOTP
options         NFS_BOOT_DHCP
#options        NFS_BOOT_BOOTPARAM

# Compatibility options

include         "conf/compat_netbsd13.config"
options         COMPAT_NETBSD32 # allow running arm (e.g. non-earm) binaries

# Shared memory options

options         SYSVMSG         # System V-like message queues
options         SYSVSEM         # System V-like semaphores
options         SYSVSHM         # System V-like memory sharing

# Device options

#options        MEMORY_DISK_HOOKS       # boottime setup of ramdisk
#options        MEMORY_DISK_ROOT_SIZE=3400      # Size in blocks
#options        MEMORY_DISK_IS_ROOT     # use memory disk as root

# Miscellaneous kernel options
options         KTRACE          # system call tracing, a la ktrace(1)
#options        IRQSTATS        # manage IRQ statistics
options         SCSIVERBOSE     # Verbose SCSI errors
options         PCIVERBOSE      # Verbose PCI descriptions
options         MIIVERBOSE      # verbose PHY autoconfig messages
#options        PCI_CONFIG_DUMP # verbosely dump PCI config space
options         USBVERBOSE      # verbose USB device autoconfig messages
options         USERCONF        # userconf(4) support
#options        PIPE_SOCKETPAIR # smaller, but slower pipe(2)
options         SYSCTL_INCLUDE_DESCR    # Include sysctl descriptions in kernel

# if set defines a keycode for the fcom console to break into ddb.
# 0x40 == @, see man ascii(7)
#options        DDB_KEYCODE=0x40

# wscons options
#options        WSEMUL_SUN              # sun terminal emulation
options         WSEMUL_VT100            # VT100 / VT220 emulation
# different kernel output - see dev/wscons/wsdisplayvar.h
options         WS_KERNEL_FG=WSCOL_GREEN
options         WSDISPLAY_COMPAT_PCVT           # emulate some ioctls
options         WSDISPLAY_COMPAT_SYSCONS        # emulate some ioctls
options         WSDISPLAY_COMPAT_USL            # wsconscfg VT handling
options         WSDISPLAY_COMPAT_RAWKBD         # can get raw scancodes
# see dev/wscons/wskbdmap_mfii.h for implemented layouts
#options        PCKBD_LAYOUT="(KB_DE | KB_NODEAD)"

# Development and Debugging options

#options        PORTMASTER      # Enable PortMaster only options
#options        DIAGNOSTIC      # internal consistency checks
options         DDB             # in-kernel debugger
options         DDB_HISTORY_SIZE=100    # Enable history editing in DDB
#makeoptions    DEBUG="-g"      # compile full symbol table
#makeoptions    COPY_SYMTAB=1

config          netbsd  root on ? type ?

# The main bus device
mainbus0 at root

# The boot CPU
cpu0 at mainbus?

# Core logic
footbridge0     at mainbus?

# footbridge uart
fcom0   at footbridge?

# system clock via footbridge
#clock* at footbridge?

# PCI bus support
# PCI bus via footbridge
pci0    at footbridge?                  # PCI bus

pci*    at ppb? bus ?

# PCI bridges
ppb*    at pci? dev ? function ?        # PCI-PCI bridges
# XXX 'puc's aren't really bridges, but there's no better place for them here
#puc*   at pci? dev ? function ?        # PCI "universal" comm. cards

# Cryptographic Devices

# PCI cryptographic devices
#hifn*  at pci? dev ? function ?        # Hifn 7755/7811/795x
#ubsec* at pci? dev ? function ?        # Broadcom 5501/5601/580x/582x


# PCI serial interfaces
#com*   at puc? port ?                  # 16x50s on "universal" comm boards
#cy*    at pci? dev ? function ?        # Cyclades Cyclom-Y serial boards

# PCI parallel printer interfaces
#lpt*   at puc? port ?                  # || ports on "universal" comm boards

# PCI SCSI Controllers and Buses
#adv*   at pci? dev ? function ?        # AdvanSys 1200[A,B], ULTRA SCSI
#scsibus* at adv?
#adw*   at pci? dev ? function ?        # AdvanSys 9xxUW SCSI
#scsibus* at adw?
#ahc*   at pci? dev ? function ?        # Adaptec [23]94x, aic78x0 SCSI controllers
#scsibus* at ahc?
#bha*   at pci? dev ? function ?        # BusLogic 9xx SCSI
#scsibus* at bha?
#iha*   at pci? dev ? function ?        # Initio INIC-940/950 SCSI
#scsibus* at iha?
#isp*   at pci? dev ? function ?        # Qlogic ISP 10x0 SCSI controllers
#scsibus* at isp?
#pcscp* at pci? dev ? function ?        # AMD 53c974 PCscsi-PCI SCSI
#scsibus* at pcscp?
#siop*  at pci? dev ? function ?        # NCR 53c8xx SCSI
#scsibus* at siop?
#esiop* at pci? dev ? function ?        # NCR 53c875 SCSI and newer
#scsibus* at esiop?

# SCSI devices
#sd*    at scsibus? target ? lun ?      # SCSI disk drives
#st*    at scsibus? target ? lun ?      # SCSI tape drives
#cd*    at scsibus? target ? lun ?      # SCSI CD-ROM drives
#ch*    at scsibus? target ? lun ?      # SCSI auto-changers
#uk*    at scsibus? target ? lun ?      # SCSI unknown device
#ss*    at scsibus? target ? lun ?      # SCSI scanner

# PCI IDE Controllers and Devices
# PCI IDE controllers - see pciide(4) for supported hardware.
# The 0x0001 flag force the driver to use DMA, even if the driver doesn't know
# how to set up DMA modes for this chip. This may work, or may cause
# a machine hang with some controllers.
#pciide*        at pci? dev ? function ? flags 0x0000   # GENERIC pciide driver
#acardide*      at pci? dev ? function ?        # Acard IDE controllers
aceride*        at pci? dev ? function ?        # Acer Lab IDE controllers
#artsata*       at pci? dev ? function ?        # Intel i31244 SATA controller
#cmdide*        at pci? dev ? function ?        # CMD tech IDE controllers
#cypide*        at pci? dev ? function ?        # Cypress IDE controllers
#hptide*        at pci? dev ? function ?        # Triones/HighPoint IDE controllers
#optiide*       at pci? dev ? function ?        # Opti IDE controllers
#pdcide*        at pci? dev ? function ?        # Promise IDE controllers
#pdcsata*       at pci? dev ? function ?        # Promise SATA150 controllers
#satalink*      at pci? dev ? function ?        # SiI SATALink controllers
#siside*        at pci? dev ? function ?        # SiS IDE controllers
#slide*         at pci? dev ? function ?        # Symphony Labs IDE controllers
#viaide*        at pci? dev ? function ?        # VIA/AMD/Nvidia IDE controllers

# ATA (IDE) bus support
atabus* at ata?

# IDE drives
# Flags are used only with controllers that support DMA operations
# and mode settings (e.g. some pciide controllers)
# The lowest order four bits (rightmost digit) of the flags define the PIO
# mode to use, the next set of four bits the DMA mode and the third set the
# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
# to use, and the last bit must be 1 for this setting to be used.
# For DMA and UDMA, 0xf (1111) means 'disable'.
# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
# (0xc=1100, 0xa=1010, 0xf=1111)
# 0x0000 means "use whatever the drive claims to support".
wd*     at atabus? drive ? flags 0x0000 # the drives themselves

# ATAPI bus support
atapibus* at atapi?

# ATAPI devices
cd*     at atapibus? drive ? flags 0x0000       # ATAPI CD-ROM drives
sd*     at atapibus? drive ? flags 0x0000       # ATAPI disk drives
uk*     at atapibus? drive ? flags 0x0000       # ATAPI unknown

# PCI network interfaces
ep*     at pci? dev ? function ?        # 3C590 ethernet cards
ex*     at pci? dev ? function ?        # 3Com 90x[B]
epic*   at pci? dev ? function ?        # SMC EPIC/100 Ethernet
fxp*    at pci? dev ? function ?        # Intel EtherExpress PRO 10+/100B
#pcn*   at pci? dev ? function ?        # PCnet-PCI Ethernet
ne*     at pci? dev ? function ?        # NE2000 compat ethernet
#ntwoc* at pci? dev ? function ?        # Riscom/N2 PCI Sync Serial
sip*    at pci? dev ? function ?        # SiS 900 Ethernet
#tl*    at pci? dev ? function ?        # ThunderLAN-based Ethernet
tlp*    at pci? dev ? function ?        # DECchip 21x4x and clones
vr*     at pci? dev ? function ?        # VIA Rhine Fast Ethernet
rtk*    at pci? dev ? function ?        # Realtek 8129/8139

# MII/PHY support
acphy*  at mii? phy ?                   # DAltima AC101 and AMD Am79c874 PHYs
amhphy* at mii? phy ?                   # AMD 79c901 Ethernet PHYs
bmtphy* at mii? phy ?                   # Broadcom BCM5201 and BCM5202 PHYs
brgphy* at mii? phy ?                   # Broadcom BCM5400-family PHYs
dmphy*  at mii? phy ?                   # Davicom DM9101 PHYs
exphy*  at mii? phy ?                   # 3Com internal PHYs
glxtphy* at mii? phy ?                  # Level One LXT-1000 PHYs
gphyter* at mii? phy ?                  # NS83861 Gig-E PHY
icsphy* at mii? phy ?                   # Integrated Circuit Systems ICS189x
inphy*  at mii? phy ?                   # Intel 82555 PHYs
iophy*  at mii? phy ?                   # Intel 82553 PHYs
lxtphy* at mii? phy ?                   # Level One LXT-970 PHYs
makphy* at mii? phy ?                   # Marvell Semiconductor 88E1000 PHYs
nsphy*  at mii? phy ?                   # NS83840 PHYs
nsphyter* at mii? phy ?                 # NS83843 PHYs
pnaphy* at mii? phy ?                   # generic HomePNA PHYs
qsphy*  at mii? phy ?                   # Quality Semiconductor QS6612 PHYs
rgephy* at mii? phy ?                   # Realtek 8169S/8110S/8211 PHYs
rlphy*  at mii? phy ?                   # Realtek 8139/8201L PHYs
sqphy*  at mii? phy ?                   # Seeq 80220/80221/80223 PHYs
tlphy*  at mii? phy ?                   # ThunderLAN PHYs
tqphy*  at mii? phy ?                   # TDK Semiconductor PHYs
ukphy*  at mii? phy ?                   # generic unknown PHYs
urlphy* at mii? phy ?                   # Realtek RTL8150L internal PHYs

# USB Controller and Devices

# PCI USB controllers
ohci*   at pci?                         # Open Host Controller

# USB bus support
usb*    at ohci?

# USB Hubs
uhub*   at usb?
uhub*   at uhub? port ?

# USB HID device
uhidev* at uhub? port ? configuration ? interface ?

# USB Mice
ums*    at uhidev? reportid ?
wsmouse*        at ums?

# USB Keyboards
ukbd*   at uhidev? reportid ?
wskbd*  at ukbd? console ?

# USB serial adapter
ucycom* at uhidev? reportid ?

# USB Generic HID devices
uhid*   at uhidev? reportid ?

# USB Printer
ulpt*   at uhub? port ? configuration ? interface ?

# USB Modem
umodem* at uhub? port ? configuration ?
ucom*   at umodem?

# USB Mass Storage
umass*  at uhub? port ? configuration ? interface ?
scsibus* at umass? channel ?

# USB audio
uaudio* at uhub? port ? configuration ?
audio*  at uaudio?

# USB MIDI
umidi*  at uhub? port ? configuration ?
midi*   at umidi?

# USB Ethernet adapters
aue*    at uhub? port ?         # ADMtek AN986 Pegasus based adapters
axe*    at uhub? port ?         # ASIX AX88172 based adapters
cue*    at uhub? port ?         # CATC USB-EL1201A based adapters
kue*    at uhub? port ?         # Kawasaki LSI KL5KUSB101B based adapters
mue*    at uhub? port ?         # Microchip LAN75xx/LAN78xx based adapters
ure*    at uhub? port ?         # Realtek RTL8152/RTL8153 based adapters
url*    at uhub? port ?         # Realtek RTL8150L based adapters
udav*   at uhub? port ?         # Davicom DM9601 based adapters

# Prolific PL2301/PL2302 host-to-host adapter
upl*    at uhub? port ?

# Serial adapters
# FTDI FT8U100AX serial adapter
uftdi*  at uhub? port ?
ucom*   at uftdi? portno ?

uplcom* at uhub? port ?         # I/O DATA USB-RSAQ2 serial adapter
ucom*   at uplcom? portno ?

umct*   at uhub? port ?         # MCT USB-RS232 serial adapter
ucom*   at umct? portno ?

# USB Handspring Visor
uvisor* at uhub? port ?
ucom*   at uvisor?

# Kyocera AIR-EDGE PHONE
ukyopon* at uhub? port ?
ucom*   at ukyopon? portno ?

# USB scanners that use SCSI emulation, e.g., HP5300
usscanner* at uhub? port ?
scsibus* at usscanner? channel ?

# USB Generic driver
ugen* at uhub? port ?

# Audio Devices

# PCI audio devices
#eap*   at pci? dev ? function ?        # Ensoniq AudioPCI
#sv*    at pci? dev ? function ?        # S3 SonicVibes

# Audio support
#audio* at eap?
#audio* at sv?

vga*            at pci?
wsdisplay*      at vga? console ?

# ISA bus bridging

pcib*   at pci? dev ? function ?        # PCI-ISA bridge
isa*    at pcib?                        # ISA bus

# ISA Plug-and-Play bus support
isapnp0 at isa?

# wscons
pckbc0  at isa?                 # pc keyboard controller
pckbd*  at pckbc?               # PC keyboard
pms*            at pckbc?               # PS/2 mouse for wsmouse
wskbd*          at pckbd? console ?
wsmouse*        at pms?

attimer0        at isa?
pcppi0  at isa?
sysbeep0        at pcppi?

# ISA Plug-and-Play serial interfaces
com*    at isapnp?                      # Modems and serial boards

# ISA Plug-and-Play network interfaces
ep*     at isapnp?                      # 3Com 3c509 Ethernet
fmv*    at isapnp?                      # Fujitsu FMV-183
ne*     at isapnp?                      # NE2000-compatible

# ISA serial interfaces
com0    at isa? port 0x3f8 irq 4        # Standard PC serial ports
com1    at isa? port 0x2f8 irq 3
#com2   at isa? port 0x3e8 irq 9
#com3   at isa? port 0x2e8 irq 10

# ISA parallel printer interfaces
lpt0    at isa? port 0x378 irq 7        # standard PC parallel ports
lpt1    at isa? port 0x278 irq 5
#lpt2   at isa? port 0x3bc

# ISA floppy
#fdc0   at isa? port 0x3f0 irq 6 drq 2  # standard PC floppy controllers
#fdc1   at isa? port 0x370 irq ? drq ?
#fd*    at fdc? drive ?                 # the drives themselves

# ISA network interface
#ne0    at isa? port 0x280 irq 9
#ne1    at isa? port 0x300 irq 10
#ep*    at isa? port ? irq ?

# The spkr driver provides a simple tone interface to the built in speaker.
spkr*   at pcppi?                       # PC speaker
spkr*   at audio?                       # PC speaker (synthesized)

ds1687rtc0      at isa? port 0x72       # Dallas 1687 RTC

# ISA Plug-and-Play audio devices
ess*    at isapnp?                      # ESS Tech ES1887, ES1888, ES888 audio
sb*     at isapnp?                      # SoundBlaster-compatible audio
wss*    at isapnp?                      # Windows Sound System

# OPL[23] FM syntheziers
opl*    at ess?
opl*    at sb?

# Audio support
audio*  at ess?
audio*  at sb?
audio*  at wss?

# MPU 401 UARTs
#mpu*   at sb?

# MIDI support
midi*   at pcppi?               # MIDI interface to the PC speaker
midi*   at sb?                  # SB MPU401 port
midi*   at opl?                 # OPL FM synth
#midi*  at mpu?                 # MPU 401

# Joysticks

# ISA Plug-and-Play joysticks
joy*    at isapnp?                      # Game ports (usually on audio cards)

# ISA joysticks. Probe is a little strange; add only if you have one.
#joy0   at isa? port 0x201

# Pseudo-Devices

#pseudo-device  crypto                  # /dev/crypto device
#pseudo-device  swcrypto                # software crypto implementation

# disk/mass storage pseudo-devices
pseudo-device   ccd                     # concatenated/striped disk devices
pseudo-device   fss                     # file system snapshot device
#pseudo-device  cgd                     # cryptographic disk devices
pseudo-device   md                      # memory disk device (ramdisk)
pseudo-device   vnd                     # disk-like interface to files
#options        VND_COMPRESSION         # compressed vnd(4)
pseudo-device   putter                  # for puffs and pud

# network pseudo-devices
pseudo-device   bpfilter                # Berkeley packet filter
pseudo-device   carp                    # Common Address Redundancy Protocol
#pseudo-device  npf                     # NPF packet filter
pseudo-device   loop                    # network loopback
pseudo-device   ppp                     # Point-to-Point Protocol
pseudo-device   pppoe                   # PPP over Ethernet (RFC 2516)
#pseudo-device  sl                      # Serial Line IP
pseudo-device   tun                     # network tunneling over tty
pseudo-device   tap                     # virtual Ethernet
pseudo-device   gre                     # generic L3 over IP tunnel
pseudo-device   gif                     # IPv[46] over IPv[46] tunnel (RFC1933)
#pseudo-device  faith                   # IPv[46] tcp relay translation i/f
pseudo-device   stf                     # 6to4 IPv6 over IPv4 encapsulation
pseudo-device   vlan                    # IEEE 802.1q encapsulation
pseudo-device   bridge                  # simple inter-network bridging
pseudo-device   vether                  # Virtual Ethernet for bridge
pseudo-device   agr                     # IEEE 802.3ad link aggregation

#
# accept filters
pseudo-device   accf_data               # "dataready" accept filter
pseudo-device   accf_http               # "httpready" accept filter

# miscellaneous pseudo-devices
pseudo-device   pty                     # pseudo-terminals
pseudo-device   sequencer               # MIDI sequencer
#options        RND_COM                 # use "com" randomness as well (BROKEN)
pseudo-device   clockctl                # user control of clock subsystem
pseudo-device   drvctl                  # user control of drive subsystem
pseudo-device   swwdog                  # software watchdog timer -- swwdog(4)

# a pseudo device needed for Coda       # also needs CODA (above)
#pseudo-device  vcoda                   # coda minicache <-> venus comm.

# mouse & keyboard multiplexor pseudo-devices
pseudo-device   wsmux
pseudo-device   wsfont
pseudo-device   ksyms                   # /dev/ksyms

include "dev/veriexec.config"

# Pull in optional local configuration - always at end
cinclude        "arch/cats/conf/GENERIC.local"