Re: [dpdk-dev] [PATCH v6 2/2] bus/pci: support MMIO in PCI ioport accessors
From: Maxime Coquelin <hidden>
Date: 2021-02-03 09:38:09
From: Maxime Coquelin <hidden>
Date: 2021-02-03 09:38:09
On 1/29/21 4:18 AM, 谢华伟(此时此刻) wrote:
|From: "huawei.xhw" [off-list ref] With IO BAR, we get PIO(programmed IO) address. With MMIO BAR, we get mapped virtual address. We distinguish PIO(Programmed IO) and MMIO(memory mapped IO) by their address like how kernel does. ioread/write8/16/32 is provided to access PIO/MMIO. By the way, for virtio on arch other than x86, BAR flag indicates PIO but is mapped. Signed-off-by: huawei xie [off-list ref] Reviewed-by: Maxime Coquelin [off-list ref] --- drivers/bus/pci/linux/pci.c | 4 -- drivers/bus/pci/linux/pci_uio.c | 124 ++++++++++++++++++++++++++-------------- 2 files changed, 81 insertions(+), 47 deletions(-)|
Reviewed-by: Maxime Coquelin <redacted> Thanks, Maxime