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

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Tue Mar 5 04:16:59 UTC 2024


On Fri, Mar 01, 2024 at 04:15:40PM +0100, Piórkowski, Piotr wrote:
> 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
> 

Same as 1/3, lgtm:

Acked-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

--
Zbigniew


More information about the igt-dev mailing list