Go to the documentation of this file.
21 #ifndef ASM_HEXAGON_VM_H
22 #define ASM_HEXAGON_VM_H
83 static inline long __vmcache_ickill(
void)
88 static inline long __vmcache_dckill(
void)
93 static inline long __vmcache_l2kill(
void)
98 static inline long __vmcache_dccleaninva(
unsigned long addr,
unsigned long len)
103 static inline long __vmcache_icinva(
unsigned long addr,
unsigned long len)
108 static inline long __vmcache_idsync(
unsigned long addr,
114 static inline long __vmcache_fetch_cfg(
unsigned long val)
121 static inline long __vmintop_nop(
void)
126 static inline long __vmintop_globen(
long i)
131 static inline long __vmintop_globdis(
long i)
136 static inline long __vmintop_locen(
long i)
141 static inline long __vmintop_locdis(
long i)
146 static inline long __vmintop_affinity(
long i,
long cpu)
151 static inline long __vmintop_get(
void)
156 static inline long __vmintop_peek(
void)
161 static inline long __vmintop_status(
long i)
166 static inline long __vmintop_post(
long i)
171 static inline long __vmintop_clear(
long i)
178 #define HVM_TRAP1_VMRTE 1
179 #define HVM_TRAP1_VMSETVEC 2
180 #define HVM_TRAP1_VMSETIE 3
181 #define HVM_TRAP1_VMGETIE 4
182 #define HVM_TRAP1_VMINTOP 5
183 #define HVM_TRAP1_VMCLRMAP 10
184 #define HVM_TRAP1_VMNEWMAP 11
185 #define HVM_TRAP1_FORMERLY_VMWIRE 12
186 #define HVM_TRAP1_VMCACHE 13
187 #define HVM_TRAP1_VMGETTIME 14
188 #define HVM_TRAP1_VMSETTIME 15
189 #define HVM_TRAP1_VMWAIT 16
190 #define HVM_TRAP1_VMYIELD 17
191 #define HVM_TRAP1_VMSTART 18
192 #define HVM_TRAP1_VMSTOP 19
193 #define HVM_TRAP1_VMVPID 20
194 #define HVM_TRAP1_VMSETREGS 21
195 #define HVM_TRAP1_VMGETREGS 22
205 #define VM_INT_DISABLE 0
206 #define VM_INT_ENABLE 1
210 #define VM_INT_UNMASK 0
211 #define VM_INT_MASK 1
213 #define VM_NEWMAP_TYPE_LINEAR 0
214 #define VM_NEWMAP_TYPE_PGTABLES 1
223 #define HVM_VMEST_UM_SFT 31
224 #define HVM_VMEST_UM_MSK 1
225 #define HVM_VMEST_IE_SFT 30
226 #define HVM_VMEST_IE_MSK 1
227 #define HVM_VMEST_EVENTNUM_SFT 16
228 #define HVM_VMEST_EVENTNUM_MSK 0xff
229 #define HVM_VMEST_CAUSE_SFT 0
230 #define HVM_VMEST_CAUSE_MSK 0xffff
238 #define HEXAGON_VM_SED_NULL 0
244 #define HVM_EV_RESET 0
245 #define HVM_EV_MACHCHECK 1
246 #define HVM_EV_GENEX 2
247 #define HVM_EV_TRAP 8
248 #define HVM_EV_INTR 15
250 #define HVM_EV_INTR_0 16
251 #define HVM_MAX_INTR 240
257 #define HVM_GE_C_BUS 0x01
258 #define HVM_GE_C_XPROT 0x11
259 #define HVM_GE_C_XUSER 0x14
260 #define HVM_GE_C_INVI 0x15
261 #define HVM_GE_C_PRIVI 0x1B
262 #define HVM_GE_C_XMAL 0x1C
263 #define HVM_GE_C_RMAL 0x20
264 #define HVM_GE_C_WMAL 0x21
265 #define HVM_GE_C_RPROT 0x22
266 #define HVM_GE_C_WPROT 0x23
267 #define HVM_GE_C_RUSER 0x24
268 #define HVM_GE_C_WUSER 0x25
269 #define HVM_GE_C_CACHE 0x28
275 #define HVM_MCHK_C_DOWN 0x00
276 #define HVM_MCHK_C_BADSP 0x01
277 #define HVM_MCHK_C_BADEX 0x02
278 #define HVM_MCHK_C_BADPT 0x03
279 #define HVM_MCHK_C_REGWR 0x29