mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
51dce24bcd
After many years of having a ~30 line copyright and license header to our source files, we are finally able to reduce that to one line with the advent of the SPDX identifier. Also caught a few files missing the SPDX license identifier, so fixed them up. Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Acked-by: Shannon Nelson <shannon.nelson@oracle.com> Acked-by: Richard Cochran <richardcochran@gmail.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
40 lines
959 B
C
40 lines
959 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright(c) 1999 - 2008 Intel Corporation. */
|
|
|
|
/* glue for the OS independent part of ixgb
|
|
* includes register access macros
|
|
*/
|
|
|
|
#ifndef _IXGB_OSDEP_H_
|
|
#define _IXGB_OSDEP_H_
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/delay.h>
|
|
#include <asm/io.h>
|
|
#include <linux/interrupt.h>
|
|
#include <linux/sched.h>
|
|
#include <linux/if_ether.h>
|
|
|
|
#undef ASSERT
|
|
#define ASSERT(x) BUG_ON(!(x))
|
|
|
|
#define ENTER() pr_debug("%s\n", __func__);
|
|
|
|
#define IXGB_WRITE_REG(a, reg, value) ( \
|
|
writel((value), ((a)->hw_addr + IXGB_##reg)))
|
|
|
|
#define IXGB_READ_REG(a, reg) ( \
|
|
readl((a)->hw_addr + IXGB_##reg))
|
|
|
|
#define IXGB_WRITE_REG_ARRAY(a, reg, offset, value) ( \
|
|
writel((value), ((a)->hw_addr + IXGB_##reg + ((offset) << 2))))
|
|
|
|
#define IXGB_READ_REG_ARRAY(a, reg, offset) ( \
|
|
readl((a)->hw_addr + IXGB_##reg + ((offset) << 2)))
|
|
|
|
#define IXGB_WRITE_FLUSH(a) IXGB_READ_REG(a, STATUS)
|
|
|
|
#define IXGB_MEMCPY memcpy
|
|
|
|
#endif /* _IXGB_OSDEP_H_ */
|