iPXE
Macros | Typedefs | Enumerations | Functions
igbvf_osdep.h File Reference

Go to the source code of this file.

Macros

#define _IGBVF_OSDEP_H_
 
#define u8   unsigned char
 
#define bool   boolean_t
 
#define dma_addr_t   unsigned long
 
#define __le16   uint16_t
 
#define __le32   uint32_t
 
#define __le64   uint64_t
 
#define __iomem
 
#define __devinit
 
#define ____cacheline_aligned_in_smp
 
#define msleep(x)   mdelay(x)
 
#define ETH_FCS_LEN   4
 
#define usec_delay(x)   udelay(x)
 
#define msec_delay(x)   mdelay(x)
 
#define msec_delay_irq(x)   mdelay(x)
 
#define PCI_COMMAND_REGISTER   PCI_COMMAND
 
#define CMD_MEM_WRT_INVALIDATE   PCI_COMMAND_INVALIDATE
 
#define ETH_ADDR_LEN   ETH_ALEN
 
#define DEBUGOUT(S)   if (0) { printf(S); }
 
#define DEBUGOUT1(S, A...)   if (0) { printf(S, A); }
 
#define DEBUGFUNC(F)   DEBUGOUT(F "\n")
 
#define DEBUGOUT2   DEBUGOUT1
 
#define DEBUGOUT3   DEBUGOUT2
 
#define DEBUGOUT7   DEBUGOUT3
 
#define E1000_WRITE_REG(a, reg, value)
 
#define E1000_READ_REG(a, reg)   (readl((a)->hw_addr + reg))
 
#define E1000_WRITE_REG_ARRAY(a, reg, offset, value)
 
#define E1000_READ_REG_ARRAY(a, reg, offset)
 
#define E1000_READ_REG_ARRAY_DWORD   E1000_READ_REG_ARRAY
 
#define E1000_WRITE_REG_ARRAY_DWORD   E1000_WRITE_REG_ARRAY
 
#define E1000_WRITE_REG_ARRAY_WORD(a, reg, offset, value)
 
#define E1000_READ_REG_ARRAY_WORD(a, reg, offset)
 
#define E1000_WRITE_REG_ARRAY_BYTE(a, reg, offset, value)
 
#define E1000_READ_REG_ARRAY_BYTE(a, reg, offset)
 
#define E1000_WRITE_REG_IO(a, reg, offset)
 
#define E1000_WRITE_FLUSH(a)   E1000_READ_REG(a, E1000_STATUS)
 
#define E1000_WRITE_FLASH_REG(a, reg, value)
 
#define E1000_WRITE_FLASH_REG16(a, reg, value)
 
#define E1000_READ_FLASH_REG(a, reg)   (readl((a)->flash_address + reg))
 
#define E1000_READ_FLASH_REG16(a, reg)   (readw((a)->flash_address + reg))
 

Typedefs

typedef int spinlock_t
 

Enumerations

enum  boolean_t { false = 0, true = 1 }
 

Functions

 FILE_LICENCE (GPL2_ONLY)
 

Macro Definition Documentation

◆ _IGBVF_OSDEP_H_

#define _IGBVF_OSDEP_H_

Definition at line 36 of file igbvf_osdep.h.

◆ u8

uint8_t u8   unsigned char

◆ bool

#define bool   boolean_t

Definition at line 39 of file igbvf_osdep.h.

◆ dma_addr_t

#define dma_addr_t   unsigned long

Definition at line 40 of file igbvf_osdep.h.

◆ __le16

#define __le16   uint16_t

Definition at line 41 of file igbvf_osdep.h.

◆ __le32

#define __le32   uint32_t

Definition at line 42 of file igbvf_osdep.h.

◆ __le64

#define __le64   uint64_t

Definition at line 43 of file igbvf_osdep.h.

◆ __iomem

#define __iomem

Definition at line 45 of file igbvf_osdep.h.

◆ __devinit

#define __devinit

Definition at line 46 of file igbvf_osdep.h.

◆ ____cacheline_aligned_in_smp

#define ____cacheline_aligned_in_smp

Definition at line 47 of file igbvf_osdep.h.

◆ msleep

#define msleep (   x)    mdelay(x)

Definition at line 49 of file igbvf_osdep.h.

◆ ETH_FCS_LEN

#define ETH_FCS_LEN   4

Definition at line 51 of file igbvf_osdep.h.

◆ usec_delay

#define usec_delay (   x)    udelay(x)

Definition at line 59 of file igbvf_osdep.h.

◆ msec_delay

#define msec_delay (   x)    mdelay(x)

Definition at line 60 of file igbvf_osdep.h.

◆ msec_delay_irq

#define msec_delay_irq (   x)    mdelay(x)

Definition at line 61 of file igbvf_osdep.h.

◆ PCI_COMMAND_REGISTER

#define PCI_COMMAND_REGISTER   PCI_COMMAND

Definition at line 63 of file igbvf_osdep.h.

◆ CMD_MEM_WRT_INVALIDATE

#define CMD_MEM_WRT_INVALIDATE   PCI_COMMAND_INVALIDATE

Definition at line 64 of file igbvf_osdep.h.

◆ ETH_ADDR_LEN

#define ETH_ADDR_LEN   ETH_ALEN

Definition at line 65 of file igbvf_osdep.h.

◆ DEBUGOUT

#define DEBUGOUT (   S)    if (0) { printf(S); }

Definition at line 68 of file igbvf_osdep.h.

◆ DEBUGOUT1

#define DEBUGOUT1 (   S,
  A... 
)    if (0) { printf(S, A); }

Definition at line 69 of file igbvf_osdep.h.

◆ DEBUGFUNC

#define DEBUGFUNC (   F)    DEBUGOUT(F "\n")

Definition at line 71 of file igbvf_osdep.h.

◆ DEBUGOUT2

#define DEBUGOUT2   DEBUGOUT1

Definition at line 72 of file igbvf_osdep.h.

◆ DEBUGOUT3

#define DEBUGOUT3   DEBUGOUT2

Definition at line 73 of file igbvf_osdep.h.

◆ DEBUGOUT7

#define DEBUGOUT7   DEBUGOUT3

Definition at line 74 of file igbvf_osdep.h.

◆ E1000_WRITE_REG

#define E1000_WRITE_REG (   a,
  reg,
  value 
)
Value:
do { \
writel((value), ((a)->hw_addr + reg)); } while (0)
pseudo_bit_t value[0x00020]
Definition: arbel.h:13
static unsigned int unsigned int reg
Definition: intel.h:245

Definition at line 76 of file igbvf_osdep.h.

◆ E1000_READ_REG

#define E1000_READ_REG (   a,
  reg 
)    (readl((a)->hw_addr + reg))

Definition at line 79 of file igbvf_osdep.h.

◆ E1000_WRITE_REG_ARRAY

#define E1000_WRITE_REG_ARRAY (   a,
  reg,
  offset,
  value 
)
Value:
do { \
writel((value), ((a)->hw_addr + reg + ((offset) << 2))); } while (0)
static userptr_t size_t offset
Offset of the first segment within the content.
Definition: deflate.h:259
pseudo_bit_t value[0x00020]
Definition: arbel.h:13
static unsigned int unsigned int reg
Definition: intel.h:245

Definition at line 81 of file igbvf_osdep.h.

◆ E1000_READ_REG_ARRAY

#define E1000_READ_REG_ARRAY (   a,
  reg,
  offset 
)
Value:
( \
readl((a)->hw_addr + reg + ((offset) << 2)))
static userptr_t size_t offset
Offset of the first segment within the content.
Definition: deflate.h:259
static unsigned int unsigned int reg
Definition: intel.h:245

Definition at line 84 of file igbvf_osdep.h.

◆ E1000_READ_REG_ARRAY_DWORD

#define E1000_READ_REG_ARRAY_DWORD   E1000_READ_REG_ARRAY

Definition at line 87 of file igbvf_osdep.h.

◆ E1000_WRITE_REG_ARRAY_DWORD

#define E1000_WRITE_REG_ARRAY_DWORD   E1000_WRITE_REG_ARRAY

Definition at line 88 of file igbvf_osdep.h.

◆ E1000_WRITE_REG_ARRAY_WORD

#define E1000_WRITE_REG_ARRAY_WORD (   a,
  reg,
  offset,
  value 
)
Value:
( \
writew((value), ((a)->hw_addr + reg + ((offset) << 1))))
static userptr_t size_t offset
Offset of the first segment within the content.
Definition: deflate.h:259
pseudo_bit_t value[0x00020]
Definition: arbel.h:13
static unsigned int unsigned int reg
Definition: intel.h:245

Definition at line 90 of file igbvf_osdep.h.

◆ E1000_READ_REG_ARRAY_WORD

#define E1000_READ_REG_ARRAY_WORD (   a,
  reg,
  offset 
)
Value:
( \
readw((a)->hw_addr + reg + ((offset) << 1)))
static userptr_t size_t offset
Offset of the first segment within the content.
Definition: deflate.h:259
static unsigned int unsigned int reg
Definition: intel.h:245

Definition at line 93 of file igbvf_osdep.h.

◆ E1000_WRITE_REG_ARRAY_BYTE

#define E1000_WRITE_REG_ARRAY_BYTE (   a,
  reg,
  offset,
  value 
)
Value:
( \
writeb((value), ((a)->hw_addr + reg + (offset))))
static userptr_t size_t offset
Offset of the first segment within the content.
Definition: deflate.h:259
pseudo_bit_t value[0x00020]
Definition: arbel.h:13
static unsigned int unsigned int reg
Definition: intel.h:245

Definition at line 96 of file igbvf_osdep.h.

◆ E1000_READ_REG_ARRAY_BYTE

#define E1000_READ_REG_ARRAY_BYTE (   a,
  reg,
  offset 
)
Value:
( \
readb((a)->hw_addr + reg + (offset)))
static userptr_t size_t offset
Offset of the first segment within the content.
Definition: deflate.h:259
static unsigned int unsigned int reg
Definition: intel.h:245

Definition at line 99 of file igbvf_osdep.h.

◆ E1000_WRITE_REG_IO

#define E1000_WRITE_REG_IO (   a,
  reg,
  offset 
)
Value:
do { \
outl(reg, ((a)->io_base)); \
outl(offset, ((a)->io_base + 4)); } while(0)
static userptr_t size_t offset
Offset of the first segment within the content.
Definition: deflate.h:259
static unsigned int unsigned int reg
Definition: intel.h:245

Definition at line 102 of file igbvf_osdep.h.

◆ E1000_WRITE_FLUSH

#define E1000_WRITE_FLUSH (   a)    E1000_READ_REG(a, E1000_STATUS)

Definition at line 106 of file igbvf_osdep.h.

◆ E1000_WRITE_FLASH_REG

#define E1000_WRITE_FLASH_REG (   a,
  reg,
  value 
)
Value:
( \
writel((value), ((a)->flash_address + reg)))
pseudo_bit_t value[0x00020]
Definition: arbel.h:13
static unsigned int unsigned int reg
Definition: intel.h:245

Definition at line 108 of file igbvf_osdep.h.

◆ E1000_WRITE_FLASH_REG16

#define E1000_WRITE_FLASH_REG16 (   a,
  reg,
  value 
)
Value:
( \
writew((value), ((a)->flash_address + reg)))
pseudo_bit_t value[0x00020]
Definition: arbel.h:13
static unsigned int unsigned int reg
Definition: intel.h:245

Definition at line 111 of file igbvf_osdep.h.

◆ E1000_READ_FLASH_REG

#define E1000_READ_FLASH_REG (   a,
  reg 
)    (readl((a)->flash_address + reg))

Definition at line 114 of file igbvf_osdep.h.

◆ E1000_READ_FLASH_REG16

#define E1000_READ_FLASH_REG16 (   a,
  reg 
)    (readw((a)->flash_address + reg))

Definition at line 116 of file igbvf_osdep.h.

Typedef Documentation

◆ spinlock_t

typedef int spinlock_t

Definition at line 53 of file igbvf_osdep.h.

Enumeration Type Documentation

◆ boolean_t

enum boolean_t
Enumerator
false 
true 

Definition at line 54 of file igbvf_osdep.h.

54  {
55  false = 0,
56  true = 1
57 } boolean_t;
boolean_t
Definition: igbvf_osdep.h:54

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_ONLY  )