]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/riscv/conf/NOTES
zfs: merge openzfs/zfs@233d34e47
[FreeBSD/FreeBSD.git] / sys / riscv / conf / NOTES
1 #
2 # NOTES -- Lines that can be cut/pasted into kernel and hints configs.
3 #
4 # This file contains machine dependent kernel configuration notes.  For
5 # machine independent notes, look in /sys/conf/NOTES.
6 #
7 #
8
9 cpu             RISCV
10
11 makeoptions     DEBUG=-g                # Build kernel with gdb(1) debug symbols
12 makeoptions     WITH_CTF=1              # Run ctfconvert(1) for DTrace support
13
14 options         PRINTF_BUFR_SIZE=128    # Prevent printf output being interspersed.
15 options         KDTRACE_FRAME           # Ensure frames are compiled in
16 options         KDTRACE_HOOKS           # Kernel DTrace hooks
17 options         DDB_CTF                 # Kernel ELF linker loads CTF data
18 options         RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
19
20 # RISC-V SBI console
21 device          rcons
22
23 # pseudo devices
24 device          clk
25 device          hwreset
26 device          phy
27 device          regulator
28 device          syscon
29 device          syscon_power
30 device          riscv_syscon
31
32 # Backlight subsystem
33 device          backlight
34
35 # VirtIO support
36 device          virtio                  # Generic VirtIO bus (required)
37 device          virtio_pci              # VirtIO PCI device
38 device          vtnet                   # VirtIO Ethernet device
39 device          virtio_blk              # VirtIO Block device
40 device          virtio_mmio             # VirtIO MMIO bus
41 device          virtio_random           # VirtIO Entropy device
42
43 # NVM Express (NVMe) support
44 device          nvme            # base NVMe driver
45 options         NVME_USE_NVD=0  # prefer the cam(4) based nda(4) driver
46 device          nvd             # expose NVMe namespaces as disks, depends on nvme
47
48 # NOTE: dtrace introduces CDDL-licensed components into the kernel
49 device          dtrace                  # dtrace core
50 device          dtraceall               # include all dtrace modules
51
52 # Serial (COM) ports
53 device          uart_lowrisc    # lowRISC UART driver
54 device          uart_ns8250     # ns8250-type UART driver
55
56 # RTC
57 device          da9063_rtc      # Dialog Semiconductor DA9063 RTC
58 device          goldfish_rtc    # QEMU RTC
59
60 # Ethernet drivers
61 device          xae             # Xilinx AXI Ethernet MAC
62
63 # DMA support
64 device          xdma            # DMA interface
65 device          axidma          # Xilinx AXI DMA Controller
66
67 # SPI
68 device          xilinx_spi      # Xilinx AXI Quad-SPI Controller
69
70 # Power management controllers
71 device          da9063_pmic     # Dialog Semiconductor DA9063 PMIC
72
73 # SiFive device drivers
74 device          fe310aon
75 device          fu740_pci_dw
76 device          sifive_gpio
77 device          sifive_spi
78 files           "../sifive/files.sifive"
79
80 # Flattened Device Tree
81 options         FDT
82 makeoptions     MODULES_EXTRA+="dtb/sifive"
83
84 # FreeBSD/riscv didn't exist for these releases
85 nooptions       COMPAT_FREEBSD4
86 nooptions       COMPAT_FREEBSD5
87 nooptions       COMPAT_FREEBSD6
88 nooptions       COMPAT_FREEBSD7
89 nooptions       COMPAT_FREEBSD9
90 nooptions       COMPAT_FREEBSD10
91 nooptions       COMPAT_FREEBSD11
92
93 # riscv doesn't support inb/outb, so disable chipset probing which needs it
94 nooptions       PPC_PROBE_CHIPSET
95
96 # Makes assumptions about bus tags that aren't true on riscv
97 nodevice        snd_cmi
98
99 # Don't yet have hwpmc(4)
100 nodevice        hwpmc
101 nooptions       HWPMC_HOOKS
102
103 # riscv doesn't yet have atomic_testandset_int and atomic_testandclear_int.
104 nodevice        ccr
105 nodevice        cxgbe
106 nodevice        cxgbev