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

Go to the source code of this file.

Macros

#define STRINGIFYFY(i)   #i
 
#define STRINGIFY(i)   STRINGIFYFY(i)
 
#define SPEC_REG_BZ   "BZ"
 
#define SPEC_REG_VR   "VR"
 
#define SPEC_REG_PID   "PID"
 
#define SPEC_REG_SRS   "SRS"
 
#define SPEC_REG_WZ   "WZ"
 
#define SPEC_REG_EXS   "EXS"
 
#define SPEC_REG_EDA   "EDA"
 
#define SPEC_REG_MOF   "MOF"
 
#define SPEC_REG_DZ   "DZ"
 
#define SPEC_REG_EBP   "EBP"
 
#define SPEC_REG_ERP   "ERP"
 
#define SPEC_REG_SRP   "SRP"
 
#define SPEC_REG_NRP   "NRP"
 
#define SPEC_REG_CCS   "CCS"
 
#define SPEC_REG_USP   "USP"
 
#define SPEC_REG_SPC   "SPC"
 
#define RW_MM_CFG   0
 
#define RW_MM_KBASE_LO   1
 
#define RW_MM_KBASE_HI   2
 
#define RW_MM_CAUSE   3
 
#define RW_MM_TLB_SEL   4
 
#define RW_MM_TLB_LO   5
 
#define RW_MM_TLB_HI   6
 
#define RW_MM_TLB_PGD   7
 
#define BANK_GC   0
 
#define BANK_IM   1
 
#define BANK_DM   2
 
#define BANK_BP   3
 
#define RW_GC_CFG   0
 
#define RW_GC_CCS   1
 
#define RW_GC_SRS   2
 
#define RW_GC_NRP   3
 
#define RW_GC_EXS   4
 
#define RW_GC_R0   8
 
#define RW_GC_R1   9
 
#define SPEC_REG_WR(r, v)   __asm__ __volatile__ ("move %0, $" r : : "r" (v));
 
#define SPEC_REG_RD(r, v)   __asm__ __volatile__ ("move $" r ",%0" : "=r" (v));
 
#define NOP()   __asm__ __volatile__ ("nop");
 
#define SUPP_BANK_SEL(b)
 
#define SUPP_REG_WR(r, v)
 
#define SUPP_REG_RD(r, v)   __asm__ __volatile__ ("move $S" STRINGIFYFY(r) ",%0" : "=r" (v));
 

Macro Definition Documentation

#define BANK_BP   3

Definition at line 43 of file supp_reg.h.

#define BANK_DM   2

Definition at line 42 of file supp_reg.h.

#define BANK_GC   0

Definition at line 40 of file supp_reg.h.

#define BANK_IM   1

Definition at line 41 of file supp_reg.h.

#define NOP ( )    __asm__ __volatile__ ("nop");

Definition at line 59 of file supp_reg.h.

#define RW_GC_CCS   1

Definition at line 46 of file supp_reg.h.

#define RW_GC_CFG   0

Definition at line 45 of file supp_reg.h.

#define RW_GC_EXS   4

Definition at line 49 of file supp_reg.h.

#define RW_GC_NRP   3

Definition at line 48 of file supp_reg.h.

#define RW_GC_R0   8

Definition at line 50 of file supp_reg.h.

#define RW_GC_R1   9

Definition at line 51 of file supp_reg.h.

#define RW_GC_SRS   2

Definition at line 47 of file supp_reg.h.

#define RW_MM_CAUSE   3

Definition at line 34 of file supp_reg.h.

#define RW_MM_CFG   0

Definition at line 31 of file supp_reg.h.

#define RW_MM_KBASE_HI   2

Definition at line 33 of file supp_reg.h.

#define RW_MM_KBASE_LO   1

Definition at line 32 of file supp_reg.h.

#define RW_MM_TLB_HI   6

Definition at line 37 of file supp_reg.h.

#define RW_MM_TLB_LO   5

Definition at line 36 of file supp_reg.h.

#define RW_MM_TLB_PGD   7

Definition at line 38 of file supp_reg.h.

#define RW_MM_TLB_SEL   4

Definition at line 35 of file supp_reg.h.

#define SPEC_REG_BZ   "BZ"

Definition at line 14 of file supp_reg.h.

#define SPEC_REG_CCS   "CCS"

Definition at line 27 of file supp_reg.h.

#define SPEC_REG_DZ   "DZ"

Definition at line 22 of file supp_reg.h.

#define SPEC_REG_EBP   "EBP"

Definition at line 23 of file supp_reg.h.

#define SPEC_REG_EDA   "EDA"

Definition at line 20 of file supp_reg.h.

#define SPEC_REG_ERP   "ERP"

Definition at line 24 of file supp_reg.h.

#define SPEC_REG_EXS   "EXS"

Definition at line 19 of file supp_reg.h.

#define SPEC_REG_MOF   "MOF"

Definition at line 21 of file supp_reg.h.

#define SPEC_REG_NRP   "NRP"

Definition at line 26 of file supp_reg.h.

#define SPEC_REG_PID   "PID"

Definition at line 16 of file supp_reg.h.

#define SPEC_REG_RD (   r,
  v 
)    __asm__ __volatile__ ("move $" r ",%0" : "=r" (v));

Definition at line 56 of file supp_reg.h.

#define SPEC_REG_SPC   "SPC"

Definition at line 29 of file supp_reg.h.

#define SPEC_REG_SRP   "SRP"

Definition at line 25 of file supp_reg.h.

#define SPEC_REG_SRS   "SRS"

Definition at line 17 of file supp_reg.h.

#define SPEC_REG_USP   "USP"

Definition at line 28 of file supp_reg.h.

#define SPEC_REG_VR   "VR"

Definition at line 15 of file supp_reg.h.

#define SPEC_REG_WR (   r,
  v 
)    __asm__ __volatile__ ("move %0, $" r : : "r" (v));

Definition at line 53 of file supp_reg.h.

#define SPEC_REG_WZ   "WZ"

Definition at line 18 of file supp_reg.h.

#define STRINGIFY (   i)    STRINGIFYFY(i)

Definition at line 11 of file supp_reg.h.

#define STRINGIFYFY (   i)    #i

Definition at line 7 of file supp_reg.h.

#define SUPP_BANK_SEL (   b)
Value:
NOP(); \
NOP(); \
NOP();

Definition at line 62 of file supp_reg.h.

#define SUPP_REG_RD (   r,
  v 
)    __asm__ __volatile__ ("move $S" STRINGIFYFY(r) ",%0" : "=r" (v));

Definition at line 75 of file supp_reg.h.

#define SUPP_REG_WR (   r,
  v 
)
Value:
__asm__ __volatile__ ("move %0, $S" STRINGIFYFY(r) "\n\t" \
"nop\n\t" \
"nop\n\t" \
"nop\n\t" \
: : "r" (v));

Definition at line 68 of file supp_reg.h.