drivers: ivshmem: msi.h header only required for ivshmem-doorbell

Only include the MSI header when ivshmem-doorbell is employed, as the
ivshmem data structures already use the same protection for msi-related
structures.

Signed-off-by: Rodrigo Cataldo <rodrigo.cataldo@huawei.com>
Co-authored-by: Henri Xavier <datacomos@huawei.com>
This commit is contained in:
Rodrigo Cataldo 2022-12-06 23:09:44 +01:00 committed by Carles Cufí
parent eb4dee62c5
commit 0efb0f55b3
1 changed files with 3 additions and 0 deletions

View File

@ -8,7 +8,10 @@
#define ZEPHYR_DRIVERS_VIRTUALIZATION_VIRT_IVSHMEM_H_
#include <zephyr/drivers/pcie/pcie.h>
#ifdef CONFIG_IVSHMEM_DOORBELL
#include <zephyr/drivers/pcie/msi.h>
#endif
#define IVSHMEM_PCIE_REG_BAR_IDX 0
#define IVSHMEM_PCIE_SHMEM_BAR_IDX 2