未验证 提交 db756746 编写于 作者: S Stanislaw Kardach 提交者: Palmer Dabbelt

riscv: enable generic PCI resource mapping

Enable the PCI resource mapping on RISC-V using the generic framework.
This allows userspace applications to mmap PCI resources using
/sys/devices/pci*/*/resource* interface.
The mmap has been tested with Intel x520-DA2 NIC card on a HiFive
Unmatched board (SiFive FU740 SoC).
Signed-off-by: NStanislaw Kardach <kda@semihalf.com>
Signed-off-by: NPalmer Dabbelt <palmerdabbelt@google.com>
上级 8f3e136f
......@@ -18,6 +18,8 @@
/* RISC-V shim does not initialize PCI bus */
#define pcibios_assign_all_busses() 1
#define ARCH_GENERIC_PCI_MMAP_RESOURCE 1
extern int isa_dma_bridge_buggy;
#ifdef CONFIG_PCI
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册