linux/drivers/net/ethernet/intel/ice/ice_osdep.h

/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2018, Intel Corporation. */

#ifndef _ICE_OSDEP_H_
#define _ICE_OSDEP_H_

#include <linux/types.h>
#include <linux/ctype.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/bitops.h>
#include <linux/ethtool.h>
#include <linux/etherdevice.h>
#include <linux/if_ether.h>
#include <linux/iopoll.h>
#include <linux/pci_ids.h>
#ifndef CONFIG_64BIT
#include <linux/io-64-nonatomic-lo-hi.h>
#endif
#include <net/udp_tunnel.h>

#define wr32(a, reg, value)
#define rd32(a, reg)
#define wr64(a, reg, value)
#define rd64(a, reg)

#define rd32_poll_timeout(a, addr, val, cond, delay_us, timeout_us)

#define ice_flush(a)
#define ICE_M(m, s)

struct ice_dma_mem {};

struct ice_hw;
struct device *ice_hw_to_dev(struct ice_hw *hw);

#ifdef CONFIG_DYNAMIC_DEBUG
#define ice_debug(hw, type, fmt, args...)

#define _ice_debug_array(hw, type, prefix, rowsize, groupsize, buf, len)
#else /* CONFIG_DYNAMIC_DEBUG */
#define ice_debug

#ifdef DEBUG
#define _ice_debug_array
#else /* DEBUG */
#define _ice_debug_array
#endif /* DEBUG */
#endif /* CONFIG_DYNAMIC_DEBUG */

#define ice_debug_array(hw, type, rowsize, groupsize, buf, len)

#define ice_debug_array_w_prefix(hw, type, prefix, buf, len)

#endif /* _ICE_OSDEP_H_ */