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:
parent
eb4dee62c5
commit
0efb0f55b3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue