Go to the documentation of this file. 1 #ifndef _ASM_IA64_XEN_PRIVOP_H
2 #define _ASM_IA64_XEN_PRIVOP_H
18 #include <linux/types.h>
20 #include <asm/xen/interface.h>
24 #define XSI_BASE 0xfffffffffff00000
27 #define XMAPPEDREGS_BASE (XSI_BASE + XSI_SIZE)
30 #define XEN_HYPER_RFI break HYPERPRIVOP_RFI
31 #define XEN_HYPER_RSM_PSR_DT break HYPERPRIVOP_RSM_DT
32 #define XEN_HYPER_SSM_PSR_DT break HYPERPRIVOP_SSM_DT
33 #define XEN_HYPER_COVER break HYPERPRIVOP_COVER
34 #define XEN_HYPER_ITC_D break HYPERPRIVOP_ITC_D
35 #define XEN_HYPER_ITC_I break HYPERPRIVOP_ITC_I
36 #define XEN_HYPER_SSM_I break HYPERPRIVOP_SSM_I
37 #define XEN_HYPER_GET_IVR break HYPERPRIVOP_GET_IVR
38 #define XEN_HYPER_THASH break HYPERPRIVOP_THASH
39 #define XEN_HYPER_ITR_D break HYPERPRIVOP_ITR_D
40 #define XEN_HYPER_SET_KR break HYPERPRIVOP_SET_KR
41 #define XEN_HYPER_GET_PSR break HYPERPRIVOP_GET_PSR
42 #define XEN_HYPER_SET_RR0_TO_RR4 break HYPERPRIVOP_SET_RR0_TO_RR4
44 #define XSI_IFS (XSI_BASE + XSI_IFS_OFS)
45 #define XSI_PRECOVER_IFS (XSI_BASE + XSI_PRECOVER_IFS_OFS)
46 #define XSI_IFA (XSI_BASE + XSI_IFA_OFS)
47 #define XSI_ISR (XSI_BASE + XSI_ISR_OFS)
48 #define XSI_IIM (XSI_BASE + XSI_IIM_OFS)
49 #define XSI_ITIR (XSI_BASE + XSI_ITIR_OFS)
50 #define XSI_PSR_I_ADDR (XSI_BASE + XSI_PSR_I_ADDR_OFS)
51 #define XSI_PSR_IC (XSI_BASE + XSI_PSR_IC_OFS)
52 #define XSI_IPSR (XSI_BASE + XSI_IPSR_OFS)
53 #define XSI_IIP (XSI_BASE + XSI_IIP_OFS)
54 #define XSI_B1NAT (XSI_BASE + XSI_B1NATS_OFS)
55 #define XSI_BANK1_R16 (XSI_BASE + XSI_BANK1_R16_OFS)
56 #define XSI_BANKNUM (XSI_BASE + XSI_BANKNUM_OFS)
57 #define XSI_IHA (XSI_BASE + XSI_IHA_OFS)
58 #define XSI_ITC_OFFSET (XSI_BASE + XSI_ITC_OFFSET_OFS)
59 #define XSI_ITC_LAST (XSI_BASE + XSI_ITC_LAST_OFS)
100 #define XEN_MAPPEDREGS ((struct mapped_regs *)XMAPPEDREGS_BASE)
103 (*XEN_MAPPEDREGS->interrupt_mask_addr)
104 #define xen_get_virtual_psr_i() \
106 #define xen_set_virtual_psr_i(_val) \
107 ({ XSI_PSR_I = (uint8_t)(_val) ? 0 : 1; })
108 #define xen_set_virtual_psr_ic(_val) \
109 ({ XEN_MAPPEDREGS->interrupt_collection_enabled = _val ? 1 : 0; })
110 #define xen_get_virtual_pend() \
111 (*(((uint8_t *)XEN_MAPPEDREGS->interrupt_mask_addr) - 1))
113 #ifndef ASM_SUPPORTED
123 extern void xen_eoi(
unsigned long);
127 unsigned long val2,
unsigned long val3,