[PATCH i-g-t 2/3] lib/intel_mmio: Add 64-bits ioread/iowrite

Piórkowski, Piotr piotr.piorkowski at intel.com
Fri Mar 1 15:15:40 UTC 2024


From: Piotr Piórkowski <piotr.piorkowski at intel.com>

Add functions to read/write 64-bit values from MMIO

Signed-off-by: Piotr Piórkowski <piotr.piorkowski at intel.com>
---
 lib/intel_io.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/intel_io.h b/lib/intel_io.h
index e39384ca5..e8dfd930b 100644
--- a/lib/intel_io.h
+++ b/lib/intel_io.h
@@ -79,6 +79,7 @@ static inline uint##x__##_t ioread##x__(void *mmio, uint32_t reg) \
 {\
 	return *(volatile uint##x__##_t *)(mmio + reg);\
 }
+__ioread(64)
 __ioread(32)
 __ioread(16)
 __ioread(8)
@@ -89,6 +90,7 @@ static inline void iowrite##x__(void *mmio, uint32_t reg, uint##x__##_t val) \
 {\
 	*(volatile uint##x__##_t *)(mmio + reg) = val; \
 }
+__iowrite(64)
 __iowrite(32)
 __iowrite(16)
 __iowrite(8)
-- 
2.34.1



More information about the igt-dev mailing list