Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
hpilo.h File Reference

Go to the source code of this file.

Data Structures

struct  ilo_hwinfo
 
struct  ccb
 
struct  ccb_data
 
struct  fifo
 

Macros

#define ILO_NAME   "hpilo"
 
#define MAX_CCB   24
 
#define MIN_CCB   8
 
#define MAX_ILO_DEV   1
 
#define MAX_OPEN   (MAX_CCB * MAX_ILO_DEV)
 
#define MAX_WAIT_TIME   10000
 
#define WAIT_TIME   10
 
#define MAX_WAIT   (MAX_WAIT_TIME / WAIT_TIME)
 
#define DB_IRQ   0xB2
 
#define DB_OUT   0xD4
 
#define DB_RESET   26
 
#define ILOSW_CCB_SZ   64
 
#define ILOHW_CCB_SZ   128
 
#define SENDQ   1
 
#define RECVQ   2
 
#define NR_QENTRY   4
 
#define L2_QENTRY_SZ   12
 
#define CTRL_BITPOS_L2SZ   0
 
#define CTRL_BITPOS_FIFOINDEXMASK   4
 
#define CTRL_BITPOS_DESCLIMIT   18
 
#define CTRL_BITPOS_A   30
 
#define CTRL_BITPOS_G   31
 
#define L2_DB_SIZE   14
 
#define ONE_DB_SIZE   (1 << L2_DB_SIZE)
 
#define ILO_START_ALIGN   4096
 
#define ILO_CACHE_SZ   128
 
#define FIFOHANDLESIZE   (sizeof(struct fifo) - sizeof(u64))
 
#define FIFOBARTOHANDLE(_fifo)   ((struct fifo *)(((char *)(_fifo)) - FIFOHANDLESIZE))
 
#define ENTRY_BITPOS_QWORDS   0
 
#define ENTRY_BITPOS_DESCRIPTOR   10
 
#define ENTRY_BITPOS_C   22
 
#define ENTRY_BITPOS_O   23
 
#define ENTRY_BITS_QWORDS   10
 
#define ENTRY_BITS_DESCRIPTOR   12
 
#define ENTRY_BITS_C   1
 
#define ENTRY_BITS_O   1
 
#define ENTRY_BITS_TOTAL
 
#define ENTRY_MASK   ((1 << ENTRY_BITS_TOTAL) - 1)
 
#define ENTRY_MASK_C   (((1 << ENTRY_BITS_C) - 1) << ENTRY_BITPOS_C)
 
#define ENTRY_MASK_O   (((1 << ENTRY_BITS_O) - 1) << ENTRY_BITPOS_O)
 
#define ENTRY_MASK_QWORDS   (((1 << ENTRY_BITS_QWORDS) - 1) << ENTRY_BITPOS_QWORDS)
 
#define ENTRY_MASK_DESCRIPTOR   (((1 << ENTRY_BITS_DESCRIPTOR) - 1) << ENTRY_BITPOS_DESCRIPTOR)
 
#define ENTRY_MASK_NOSTATE   (ENTRY_MASK >> (ENTRY_BITS_C + ENTRY_BITS_O))
 

Macro Definition Documentation

#define CTRL_BITPOS_A   30

Definition at line 122 of file hpilo.h.

#define CTRL_BITPOS_DESCLIMIT   18

Definition at line 121 of file hpilo.h.

#define CTRL_BITPOS_FIFOINDEXMASK   4

Definition at line 120 of file hpilo.h.

#define CTRL_BITPOS_G   31

Definition at line 123 of file hpilo.h.

#define CTRL_BITPOS_L2SZ   0

Definition at line 119 of file hpilo.h.

#define DB_IRQ   0xB2

Definition at line 68 of file hpilo.h.

#define DB_OUT   0xD4

Definition at line 70 of file hpilo.h.

#define DB_RESET   26

Definition at line 72 of file hpilo.h.

#define ENTRY_BITPOS_C   22

Definition at line 191 of file hpilo.h.

#define ENTRY_BITPOS_DESCRIPTOR   10

Definition at line 189 of file hpilo.h.

#define ENTRY_BITPOS_O   23

Definition at line 193 of file hpilo.h.

#define ENTRY_BITPOS_QWORDS   0

Definition at line 187 of file hpilo.h.

#define ENTRY_BITS_C   1

Definition at line 197 of file hpilo.h.

#define ENTRY_BITS_DESCRIPTOR   12

Definition at line 196 of file hpilo.h.

#define ENTRY_BITS_O   1

Definition at line 198 of file hpilo.h.

#define ENTRY_BITS_QWORDS   10

Definition at line 195 of file hpilo.h.

#define ENTRY_BITS_TOTAL
Value:
ENTRY_BITS_QWORDS + ENTRY_BITS_DESCRIPTOR)

Definition at line 199 of file hpilo.h.

#define ENTRY_MASK   ((1 << ENTRY_BITS_TOTAL) - 1)

Definition at line 204 of file hpilo.h.

#define ENTRY_MASK_C   (((1 << ENTRY_BITS_C) - 1) << ENTRY_BITPOS_C)

Definition at line 205 of file hpilo.h.

#define ENTRY_MASK_DESCRIPTOR   (((1 << ENTRY_BITS_DESCRIPTOR) - 1) << ENTRY_BITPOS_DESCRIPTOR)

Definition at line 209 of file hpilo.h.

#define ENTRY_MASK_NOSTATE   (ENTRY_MASK >> (ENTRY_BITS_C + ENTRY_BITS_O))

Definition at line 212 of file hpilo.h.

#define ENTRY_MASK_O   (((1 << ENTRY_BITS_O) - 1) << ENTRY_BITPOS_O)

Definition at line 206 of file hpilo.h.

#define ENTRY_MASK_QWORDS   (((1 << ENTRY_BITS_QWORDS) - 1) << ENTRY_BITPOS_QWORDS)

Definition at line 207 of file hpilo.h.

#define FIFOBARTOHANDLE (   _fifo)    ((struct fifo *)(((char *)(_fifo)) - FIFOHANDLESIZE))

Definition at line 183 of file hpilo.h.

#define FIFOHANDLESIZE   (sizeof(struct fifo) - sizeof(u64))

Definition at line 182 of file hpilo.h.

#define ILO_CACHE_SZ   128

Definition at line 164 of file hpilo.h.

#define ILO_NAME   "hpilo"

Definition at line 14 of file hpilo.h.

#define ILO_START_ALIGN   4096

Definition at line 163 of file hpilo.h.

#define ILOHW_CCB_SZ   128

Definition at line 80 of file hpilo.h.

#define ILOSW_CCB_SZ   64

Definition at line 79 of file hpilo.h.

#define L2_DB_SIZE   14

Definition at line 126 of file hpilo.h.

#define L2_QENTRY_SZ   12

Definition at line 116 of file hpilo.h.

#define MAX_CCB   24

Definition at line 17 of file hpilo.h.

#define MAX_ILO_DEV   1

Definition at line 21 of file hpilo.h.

#define MAX_OPEN   (MAX_CCB * MAX_ILO_DEV)

Definition at line 23 of file hpilo.h.

#define MAX_WAIT   (MAX_WAIT_TIME / WAIT_TIME)

Definition at line 29 of file hpilo.h.

#define MAX_WAIT_TIME   10000

Definition at line 25 of file hpilo.h.

#define MIN_CCB   8

Definition at line 19 of file hpilo.h.

#define NR_QENTRY   4

Definition at line 115 of file hpilo.h.

#define ONE_DB_SIZE   (1 << L2_DB_SIZE)

Definition at line 127 of file hpilo.h.

#define RECVQ   2

Definition at line 114 of file hpilo.h.

#define SENDQ   1

Definition at line 113 of file hpilo.h.

#define WAIT_TIME   10

Definition at line 27 of file hpilo.h.