riscv: enable generic PCI resource mapping
authorStanislaw Kardach <kda@semihalf.com>
Mon, 12 Apr 2021 11:10:12 +0000 (13:10 +0200)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 26 May 2021 05:50:49 +0000 (22:50 -0700)
commitdb756746807b5cb64bbe2e6ac4ff38d18b7787ed
tree1d4e4f73966f6ae51b51188a0b67bb4b7c0cb445
parent8f3e136ff378a2b22dbc0ca2a6e58022e6df36d2
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: Stanislaw Kardach <kda@semihalf.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/pci.h