ref: 00b5e347b0ac95565d9f7ca1c6a3c7652a77f653
parent: ee0fa9b8ca18868ada4ce19cecc7bb89dac70857
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Apr 24 15:29:08 EDT 2023
imx8: provide PCIWINDOW constant, use PCIWADDR() for MSI_TARGET_ADDR
--- a/sys/src/9/imx8/io.h
+++ b/sys/src/9/imx8/io.h
@@ -53,4 +53,5 @@
};
#define BUSUNKNOWN (-1)
-#define PCIWADDR(x) PADDR(x)
+#define PCIWINDOW 0
+#define PCIWADDR(x) (PADDR(x)+PCIWINDOW)
--- a/sys/src/9/imx8/pciimx.c
+++ b/sys/src/9/imx8/pciimx.c
@@ -227,7 +227,7 @@
}
static u16int msimsg;
-#define MSI_TARGET_ADDR PADDR(&msimsg)
+#define MSI_TARGET_ADDR PCIWADDR(&msimsg)
enum {
MSI_CAP_ID = 0x50/4,