1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2023 Intel Corporation. */
3 
4 #ifndef _I40E_IO_H_
5 #define _I40E_IO_H_
6 
7 /* get readq/writeq support for 32 bit kernels, use the low-first version */
8 #include <linux/io-64-nonatomic-lo-hi.h>
9 
10 #define wr32(a, reg, value)	writel((value), ((a)->hw_addr + (reg)))
11 #define rd32(a, reg)		readl((a)->hw_addr + (reg))
12 
13 #define rd64(a, reg)		readq((a)->hw_addr + (reg))
14 #define i40e_flush(a)		readl((a)->hw_addr + I40E_GLGEN_STAT)
15 
16 #endif /* _I40E_IO_H_ */
17