[PATCH v3 3/4] bus/pci: introduce helper for MMIO read and write
Cao, Yahui
yahui.cao at intel.com
Mon May 29 08:31:42 CEST 2023
On 5/26/2023 12:31 AM, Miao Li wrote:
> From: Chenbo Xia <chenbo.xia at intel.com>
>
> The MMIO regions may not be mmap-able for VFIO-PCI devices.
> In this case, the driver should explicitly do read and write
> to access these regions.
>
> Signed-off-by: Chenbo Xia <chenbo.xia at intel.com>
> ---
> drivers/bus/pci/bsd/pci.c | 22 +++++++++++++++
> drivers/bus/pci/linux/pci.c | 46 ++++++++++++++++++++++++++++++
> drivers/bus/pci/linux/pci_init.h | 10 +++++++
> drivers/bus/pci/linux/pci_uio.c | 22 +++++++++++++++
> drivers/bus/pci/linux/pci_vfio.c | 36 ++++++++++++++++++++++++
> drivers/bus/pci/rte_bus_pci.h | 48 ++++++++++++++++++++++++++++++++
> drivers/bus/pci/version.map | 3 ++
> 7 files changed, 187 insertions(+)
>
Acked-by: Yahui Cao <yahui.cao at intel.com>
More information about the dev
mailing list