]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/riscv/conf/GENERIC
Import DTS files for riscv from Linux 5.4
[FreeBSD/FreeBSD.git] / sys / riscv / conf / GENERIC
1 #
2 # GENERIC -- Generic kernel configuration file for FreeBSD/RISC-V
3 #
4 # For more information on this file, please read the config(5) manual page,
5 # and/or the handbook section on Kernel Configuration Files:
6 #
7 #    https://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
8 #
9 # The handbook is also available locally in /usr/share/doc/handbook
10 # if you've installed the doc distribution, otherwise always see the
11 # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the
12 # latest information.
13 #
14 # An exhaustive list of options and more detailed explanations of the
15 # device lines is also present in the ../../conf/NOTES and NOTES files.
16 # If you are in doubt as to the purpose or necessity of a line, check first
17 # in NOTES.
18 #
19 # $FreeBSD$
20
21 cpu             RISCV
22 ident           GENERIC
23
24 makeoptions     DEBUG=-g                # Build kernel with gdb(1) debug symbols
25 makeoptions     WITH_CTF=1              # Run ctfconvert(1) for DTrace support
26
27 options         SCHED_ULE               # ULE scheduler
28 options         PREEMPTION              # Enable kernel thread preemption
29 options         VIMAGE                  # Subsystem virtualization, e.g. VNET
30 options         INET                    # InterNETworking
31 options         INET6                   # IPv6 communications protocols
32 options         TCP_HHOOK               # hhook(9) framework for TCP
33 options         IPSEC_SUPPORT           # Allow kldload of ipsec and tcpmd5
34 options         TCP_OFFLOAD             # TCP offload
35 options         SCTP                    # Stream Control Transmission Protocol
36 options         FFS                     # Berkeley Fast Filesystem
37 options         SOFTUPDATES             # Enable FFS soft updates support
38 options         UFS_ACL                 # Support for access control lists
39 options         UFS_DIRHASH             # Improve performance on big directories
40 options         UFS_GJOURNAL            # Enable gjournal-based UFS journaling
41 options         QUOTA                   # Enable disk quotas for UFS
42 options         NFSCL                   # Network Filesystem Client
43 options         NFSD                    # Network Filesystem Server
44 options         NFSLOCKD                # Network Lock Manager
45 options         NFS_ROOT                # NFS usable as /, requires NFSCL
46 options         MSDOSFS                 # MSDOS Filesystem
47 options         CD9660                  # ISO 9660 Filesystem
48 options         PROCFS                  # Process filesystem (requires PSEUDOFS)
49 options         PSEUDOFS                # Pseudo-filesystem framework
50 options         GEOM_PART_GPT           # GUID Partition Tables.
51 options         GEOM_RAID               # Soft RAID functionality.
52 options         GEOM_LABEL              # Provides labelization
53 options         SCSI_DELAY=5000         # Delay (in ms) before probing SCSI
54 options         KTRACE                  # ktrace(1) support
55 options         STACK                   # stack(9) support
56 options         SYSVSHM                 # SYSV-style shared memory
57 options         SYSVMSG                 # SYSV-style message queues
58 options         SYSVSEM                 # SYSV-style semaphores
59 options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
60 options         PRINTF_BUFR_SIZE=128    # Prevent printf output being interspersed.
61 options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
62 # options       HWPMC_HOOKS             # Necessary kernel hooks for hwpmc(4)
63 options         AUDIT                   # Security event auditing
64 options         CAPABILITY_MODE         # Capsicum capability mode
65 options         CAPABILITIES            # Capsicum capabilities
66 options         MAC                     # TrustedBSD MAC Framework
67 options         KDTRACE_FRAME           # Ensure frames are compiled in
68 options         KDTRACE_HOOKS           # Kernel DTrace hooks
69 options         FPE                     # Floating-point extension support
70 options         RACCT                   # Resource accounting framework
71 options         RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
72 options         RCTL                    # Resource limits
73 options         SMP
74 options         INTRNG
75
76 # RISC-V SBI console
77 device          rcons
78
79 # VirtIO support
80 device          virtio                  # Generic VirtIO bus (required)
81 device          virtio_pci              # VirtIO PCI device
82 device          vtnet                   # VirtIO Ethernet device
83 device          virtio_blk              # VirtIO Block device
84 device          virtio_mmio             # VirtIO MMIO bus
85
86 # DTrace support
87 # device        dtrace
88 # device        dtrace_profile
89 # device        dtrace_sdt
90 # device        dtrace_fbt
91 # device        dtrace_systrace
92 # device        dtrace_prototype
93 # device        dtraceall
94
95 # Serial (COM) ports
96 device          uart            # Generic UART driver
97 device          uart_lowrisc    # lowRISC UART driver
98 device          uart_ns8250     # ns8250-type UART driver
99
100
101 # Ethernet drivers
102 device          miibus          # MII bus support
103 device          cgem            # Cadence Gigabit Ethernet MAC
104 device          xae             # Xilinx AXI Ethernet MAC
105
106 # DMA support
107 device          xdma            # DMA interface
108 device          axidma          # Xilinx AXI DMA Controller
109
110 # Uncomment for memory disk
111 # options       MD_ROOT
112 # options       MD_ROOT_SIZE=32768      # 32MB ram disk
113 # makeoptions   MFS_IMAGE=/path/to/img
114 # options       ROOTDEVNAME=\"ufs:/dev/md0\"
115
116 # Uncomment for virtio block device
117 # options       ROOTDEVNAME=\"ufs:/dev/vtbd0\"
118
119 # Debugging support.  Always need this:
120 options         KDB                     # Enable kernel debugger support.
121 options         KDB_TRACE               # Print a stack trace for a panic.
122 # For full debugger support use (turn off in stable branch):
123 options         DDB                     # Support DDB.
124 # options       GDB                     # Support remote GDB.
125 options         DEADLKRES               # Enable the deadlock resolver
126 options         INVARIANTS              # Enable calls of extra sanity checking
127 options         INVARIANT_SUPPORT       # Extra sanity checks of internal structures, required by INVARIANTS
128 options         WITNESS                 # Enable checks to detect deadlocks and cycles
129 # options       WITNESS_SKIPSPIN        # Don't run witness on spinlocks for speed
130 options         MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones
131 # options       EARLY_PRINTF
132 options         VERBOSE_SYSINIT=0       # Support debug.verbose_sysinit, off by default
133
134 # Kernel dump features.
135 options         ZSTDIO                  # zstd-compressed kernel and user dumps
136
137 # Pseudo devices.
138 device          crypto          # core crypto support
139 device          loop            # Network loopback
140 device          ether           # Ethernet support
141 device          vlan            # 802.1Q VLAN support
142 device          tuntap          # Packet tunnel.
143 device          md              # Memory "disks"
144 device          gif             # IPv6 and IPv4 tunneling
145 device          firmware        # firmware assist module
146
147 # The `bpf' device enables the Berkeley Packet Filter.
148 # Be aware of the administrative consequences of enabling this!
149 # Note that 'bpf' is required for DHCP.
150 device          bpf             # Berkeley packet filter
151
152 options         FDT