Go to the documentation of this file.
33 #ifndef _IXGB_OSDEP_H_
34 #define _IXGB_OSDEP_H_
36 #include <linux/types.h>
40 #include <linux/sched.h>
41 #include <linux/if_ether.h>
44 #define ASSERT(x) BUG_ON(!(x))
46 #define ENTER() pr_debug("%s\n", __func__);
48 #define IXGB_WRITE_REG(a, reg, value) ( \
49 writel((value), ((a)->hw_addr + IXGB_##reg)))
51 #define IXGB_READ_REG(a, reg) ( \
52 readl((a)->hw_addr + IXGB_##reg))
54 #define IXGB_WRITE_REG_ARRAY(a, reg, offset, value) ( \
55 writel((value), ((a)->hw_addr + IXGB_##reg + ((offset) << 2))))
57 #define IXGB_READ_REG_ARRAY(a, reg, offset) ( \
58 readl((a)->hw_addr + IXGB_##reg + ((offset) << 2)))
60 #define IXGB_WRITE_FLUSH(a) IXGB_READ_REG(a, STATUS)
62 #define IXGB_MEMCPY memcpy