提交 e16c8058 编写于 作者: T Thomas Gleixner

PCI: vmd: Use msi_msg shadow structs

Use the x86 shadow structs in msi_msg instead of the macros.
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Signed-off-by: NDavid Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20201024213535.443185-16-dwmw2@infradead.org
上级 b5c3786e
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include <asm/irqdomain.h> #include <asm/irqdomain.h>
#include <asm/device.h> #include <asm/device.h>
#include <asm/msi.h> #include <asm/msi.h>
#include <asm/msidef.h>
#define VMD_CFGBAR 0 #define VMD_CFGBAR 0
#define VMD_MEMBAR1 2 #define VMD_MEMBAR1 2
...@@ -131,10 +130,10 @@ static void vmd_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) ...@@ -131,10 +130,10 @@ static void vmd_compose_msi_msg(struct irq_data *data, struct msi_msg *msg)
struct vmd_irq_list *irq = vmdirq->irq; struct vmd_irq_list *irq = vmdirq->irq;
struct vmd_dev *vmd = irq_data_get_irq_handler_data(data); struct vmd_dev *vmd = irq_data_get_irq_handler_data(data);
msg->address_hi = MSI_ADDR_BASE_HI; memset(msg, 0, sizeof(*msg));
msg->address_lo = MSI_ADDR_BASE_LO | msg->address_hi = X86_MSI_BASE_ADDRESS_HIGH;
MSI_ADDR_DEST_ID(index_from_irqs(vmd, irq)); msg->arch_addr_lo.base_address = X86_MSI_BASE_ADDRESS_LOW;
msg->data = 0; msg->arch_addr_lo.destid_0_7 = index_from_irqs(vmd, irq);
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册