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

Go to the source code of this file.

Macros

#define PFMON_MASK   0xff
 
#define PFCEN_MASK   0x3
 
#define PFCEN_DISABLE   0x0
 
#define PFCEN_ENABLE_USER   0x1
 
#define PFCEN_ENABLE_SUPV   0x2
 
#define PFCEN_ENABLE_ALL   (PFCEN_ENABLE_USER | PFCEN_ENABLE_SUPV)
 
#define PFPWR_P   0
 
#define PEMUSW0_P   2
 
#define PFCEN0_P   3
 
#define PFMON0_P   5
 
#define PEMUSW1_P   13
 
#define PFCEN1_P   14
 
#define PFMON1_P   16
 
#define PFCNT0_P   24
 
#define PFCNT1_P   25
 
#define PFPWR   (1 << PFPWR_P)
 
#define PEMUSW(n, x)   ((x) << ((n) ? PEMUSW1_P : PEMUSW0_P))
 
#define PEMUSW0   PEMUSW(0, 1)
 
#define PEMUSW1   PEMUSW(1, 1)
 
#define PFCEN(n, x)   ((x) << ((n) ? PFCEN1_P : PFCEN0_P))
 
#define PFCEN0   PFCEN(0, PFCEN_MASK)
 
#define PFCEN1   PFCEN(1, PFCEN_MASK)
 
#define PFCNT(n, x)   ((x) << ((n) ? PFCNT1_P : PFCNT0_P))
 
#define PFCNT0   PFCNT(0, 1)
 
#define PFCNT1   PFCNT(1, 1)
 
#define PFMON(n, x)   ((x) << ((n) ? PFMON1_P : PFMON0_P))
 
#define PFMON0   PFMON(0, PFMON_MASK)
 
#define PFMON1   PFMON(1, PFMON_MASK)
 

Macro Definition Documentation

#define PEMUSW (   n,
  x 
)    ((x) << ((n) ? PEMUSW1_P : PEMUSW0_P))

Definition at line 31 of file bfin_pfmon.h.

#define PEMUSW0   PEMUSW(0, 1)

Definition at line 32 of file bfin_pfmon.h.

#define PEMUSW0_P   2

Definition at line 21 of file bfin_pfmon.h.

#define PEMUSW1   PEMUSW(1, 1)

Definition at line 33 of file bfin_pfmon.h.

#define PEMUSW1_P   13

Definition at line 24 of file bfin_pfmon.h.

#define PFCEN (   n,
  x 
)    ((x) << ((n) ? PFCEN1_P : PFCEN0_P))

Definition at line 34 of file bfin_pfmon.h.

#define PFCEN0   PFCEN(0, PFCEN_MASK)

Definition at line 35 of file bfin_pfmon.h.

#define PFCEN0_P   3

Definition at line 22 of file bfin_pfmon.h.

#define PFCEN1   PFCEN(1, PFCEN_MASK)

Definition at line 36 of file bfin_pfmon.h.

#define PFCEN1_P   14

Definition at line 25 of file bfin_pfmon.h.

#define PFCEN_DISABLE   0x0

Definition at line 15 of file bfin_pfmon.h.

#define PFCEN_ENABLE_ALL   (PFCEN_ENABLE_USER | PFCEN_ENABLE_SUPV)

Definition at line 18 of file bfin_pfmon.h.

#define PFCEN_ENABLE_SUPV   0x2

Definition at line 17 of file bfin_pfmon.h.

#define PFCEN_ENABLE_USER   0x1

Definition at line 16 of file bfin_pfmon.h.

#define PFCEN_MASK   0x3

Definition at line 14 of file bfin_pfmon.h.

#define PFCNT (   n,
  x 
)    ((x) << ((n) ? PFCNT1_P : PFCNT0_P))

Definition at line 37 of file bfin_pfmon.h.

#define PFCNT0   PFCNT(0, 1)

Definition at line 38 of file bfin_pfmon.h.

#define PFCNT0_P   24

Definition at line 27 of file bfin_pfmon.h.

#define PFCNT1   PFCNT(1, 1)

Definition at line 39 of file bfin_pfmon.h.

#define PFCNT1_P   25

Definition at line 28 of file bfin_pfmon.h.

#define PFMON (   n,
  x 
)    ((x) << ((n) ? PFMON1_P : PFMON0_P))

Definition at line 40 of file bfin_pfmon.h.

#define PFMON0   PFMON(0, PFMON_MASK)

Definition at line 41 of file bfin_pfmon.h.

#define PFMON0_P   5

Definition at line 23 of file bfin_pfmon.h.

#define PFMON1   PFMON(1, PFMON_MASK)

Definition at line 42 of file bfin_pfmon.h.

#define PFMON1_P   16

Definition at line 26 of file bfin_pfmon.h.

#define PFMON_MASK   0xff

Definition at line 13 of file bfin_pfmon.h.

#define PFPWR   (1 << PFPWR_P)

Definition at line 30 of file bfin_pfmon.h.

#define PFPWR_P   0

Definition at line 20 of file bfin_pfmon.h.