Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
privop.h File Reference
#include <linux/types.h>
#include <asm/xen/interface.h>

Go to the source code of this file.

Macros

#define XSI_BASE   0xfffffffffff00000
 
#define XMAPPEDREGS_BASE   (XSI_BASE + XSI_SIZE)
 
#define XEN_MAPPEDREGS   ((struct mapped_regs *)XMAPPEDREGS_BASE)
 
#define XSI_PSR_I   (*XEN_MAPPEDREGS->interrupt_mask_addr)
 
#define xen_get_virtual_psr_i()   (!XSI_PSR_I)
 
#define xen_set_virtual_psr_i(_val)   ({ XSI_PSR_I = (uint8_t)(_val) ? 0 : 1; })
 
#define xen_set_virtual_psr_ic(_val)   ({ XEN_MAPPEDREGS->interrupt_collection_enabled = _val ? 1 : 0; })
 
#define xen_get_virtual_pend()   (*(((uint8_t *)XEN_MAPPEDREGS->interrupt_mask_addr) - 1))
 

Functions

void xen_fc (void *addr)
 
unsigned long xen_thash (unsigned long addr)
 
unsigned long xen_get_cpuid (int index)
 
unsigned long xen_get_pmd (int index)
 
unsigned long xen_get_eflag (void)
 
void xen_set_eflag (unsigned long)
 
unsigned long xen_get_psr (void)
 
unsigned long xen_get_ivr (void)
 
unsigned long xen_get_tpr (void)
 
void xen_hyper_ssm_i (void)
 
void xen_set_itm (unsigned long)
 
void xen_set_tpr (unsigned long)
 
void xen_eoi (unsigned long)
 
unsigned long xen_get_rr (unsigned long index)
 
void xen_set_rr (unsigned long index, unsigned long val)
 
void xen_set_rr0_to_rr4 (unsigned long val0, unsigned long val1, unsigned long val2, unsigned long val3, unsigned long val4)
 
void xen_set_kr (unsigned long index, unsigned long val)
 
void xen_ptcga (unsigned long addr, unsigned long size)
 

Macro Definition Documentation

#define xen_get_virtual_pend ( )    (*(((uint8_t *)XEN_MAPPEDREGS->interrupt_mask_addr) - 1))

Definition at line 110 of file privop.h.

#define xen_get_virtual_psr_i ( )    (!XSI_PSR_I)

Definition at line 104 of file privop.h.

#define XEN_MAPPEDREGS   ((struct mapped_regs *)XMAPPEDREGS_BASE)

Definition at line 100 of file privop.h.

#define xen_set_virtual_psr_i (   _val)    ({ XSI_PSR_I = (uint8_t)(_val) ? 0 : 1; })

Definition at line 106 of file privop.h.

#define xen_set_virtual_psr_ic (   _val)    ({ XEN_MAPPEDREGS->interrupt_collection_enabled = _val ? 1 : 0; })

Definition at line 108 of file privop.h.

#define XMAPPEDREGS_BASE   (XSI_BASE + XSI_SIZE)

Definition at line 27 of file privop.h.

#define XSI_BASE   0xfffffffffff00000

Definition at line 24 of file privop.h.

#define XSI_PSR_I   (*XEN_MAPPEDREGS->interrupt_mask_addr)

Definition at line 102 of file privop.h.

Function Documentation

void xen_eoi ( unsigned  long)
void xen_fc ( void addr)
unsigned long xen_get_cpuid ( int  index)
unsigned long xen_get_eflag ( void  )
unsigned long xen_get_ivr ( void  )
unsigned long xen_get_pmd ( int  index)
unsigned long xen_get_psr ( void  )
unsigned long xen_get_rr ( unsigned long  index)
unsigned long xen_get_tpr ( void  )
void xen_hyper_ssm_i ( void  )
void xen_ptcga ( unsigned long  addr,
unsigned long  size 
)
void xen_set_eflag ( unsigned  long)
void xen_set_itm ( unsigned  long)
void xen_set_kr ( unsigned long  index,
unsigned long  val 
)
void xen_set_rr ( unsigned long  index,
unsigned long  val 
)
void xen_set_rr0_to_rr4 ( unsigned long  val0,
unsigned long  val1,
unsigned long  val2,
unsigned long  val3,
unsigned long  val4 
)
void xen_set_tpr ( unsigned  long)
unsigned long xen_thash ( unsigned long  addr)