Header i40e_osdep.h contains only IO primitives and couple of debug printing macros. Split this header file to i40e_io.h and i40e_debug.h and move i40e_debug_mask enum to i40e_debug.h Signed-off-by: Ivan Vecera <ivecera@redhat.com> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com> Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
17 lines
499 B
C
17 lines
499 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright(c) 2023 Intel Corporation. */
|
|
|
|
#ifndef _I40E_IO_H_
|
|
#define _I40E_IO_H_
|
|
|
|
/* get readq/writeq support for 32 bit kernels, use the low-first version */
|
|
#include <linux/io-64-nonatomic-lo-hi.h>
|
|
|
|
#define wr32(a, reg, value) writel((value), ((a)->hw_addr + (reg)))
|
|
#define rd32(a, reg) readl((a)->hw_addr + (reg))
|
|
|
|
#define rd64(a, reg) readq((a)->hw_addr + (reg))
|
|
#define i40e_flush(a) readl((a)->hw_addr + I40E_GLGEN_STAT)
|
|
|
|
#endif /* _I40E_IO_H_ */
|