Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / net / ethernet / intel / i40e / i40e_io.h
blob2a2ed9a1d476b5ab94f929ac5dd561f7412bda0f
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2023 Intel Corporation. */
4 #ifndef _I40E_IO_H_
5 #define _I40E_IO_H_
7 /* get readq/writeq support for 32 bit kernels, use the low-first version */
8 #include <linux/io-64-nonatomic-lo-hi.h>
10 #define wr32(a, reg, value) writel((value), ((a)->hw_addr + (reg)))
11 #define rd32(a, reg) readl((a)->hw_addr + (reg))
13 #define rd64(a, reg) readq((a)->hw_addr + (reg))
14 #define i40e_flush(a) readl((a)->hw_addr + I40E_GLGEN_STAT)
16 #endif /* _I40E_IO_H_ */