Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
ixgb_osdep.h File Reference
#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>

Go to the source code of this file.

Macros

#define ASSERT(x)   BUG_ON(!(x))
 
#define ENTER()   pr_debug("%s\n", __func__);
 
#define IXGB_WRITE_REG(a, reg, value)
 
#define IXGB_READ_REG(a, reg)
 
#define IXGB_WRITE_REG_ARRAY(a, reg, offset, value)
 
#define IXGB_READ_REG_ARRAY(a, reg, offset)
 
#define IXGB_WRITE_FLUSH(a)   IXGB_READ_REG(a, STATUS)
 
#define IXGB_MEMCPY   memcpy
 

Macro Definition Documentation

#define ASSERT (   x)    BUG_ON(!(x))

Definition at line 44 of file ixgb_osdep.h.

#define ENTER ( )    pr_debug("%s\n", __func__);

Definition at line 46 of file ixgb_osdep.h.

#define IXGB_MEMCPY   memcpy

Definition at line 62 of file ixgb_osdep.h.

#define IXGB_READ_REG (   a,
  reg 
)
Value:
( \
readl((a)->hw_addr + IXGB_##reg))

Definition at line 51 of file ixgb_osdep.h.

#define IXGB_READ_REG_ARRAY (   a,
  reg,
  offset 
)
Value:
( \
readl((a)->hw_addr + IXGB_##reg + ((offset) << 2)))

Definition at line 57 of file ixgb_osdep.h.

#define IXGB_WRITE_FLUSH (   a)    IXGB_READ_REG(a, STATUS)

Definition at line 60 of file ixgb_osdep.h.

#define IXGB_WRITE_REG (   a,
  reg,
  value 
)
Value:
( \
writel((value), ((a)->hw_addr + IXGB_##reg)))

Definition at line 48 of file ixgb_osdep.h.

#define IXGB_WRITE_REG_ARRAY (   a,
  reg,
  offset,
  value 
)
Value:
( \
writel((value), ((a)->hw_addr + IXGB_##reg + ((offset) << 2))))

Definition at line 54 of file ixgb_osdep.h.