hvtramp.h 743 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _SPARC64_HVTRAP_H
  2. #define _SPARC64_HVTRAP_H
  3. #ifndef __ASSEMBLY__
  4. #include <linux/types.h>
  5. struct hvtramp_mapping {
  6. __u64 vaddr;
  7. __u64 tte;
  8. };
  9. struct hvtramp_descr {
  10. __u32 cpu;
  11. __u32 num_mappings;
  12. __u64 fault_info_va;
  13. __u64 fault_info_pa;
  14. __u64 thread_reg;
  15. struct hvtramp_mapping maps[1];
  16. };
  17. void hv_cpu_startup(unsigned long hvdescr_pa);
  18. #endif
  19. #define HVTRAMP_DESCR_CPU 0x00
  20. #define HVTRAMP_DESCR_NUM_MAPPINGS 0x04
  21. #define HVTRAMP_DESCR_FAULT_INFO_VA 0x08
  22. #define HVTRAMP_DESCR_FAULT_INFO_PA 0x10
  23. #define HVTRAMP_DESCR_THREAD_REG 0x18
  24. #define HVTRAMP_DESCR_MAPS 0x20
  25. #define HVTRAMP_MAPPING_VADDR 0x00
  26. #define HVTRAMP_MAPPING_TTE 0x08
  27. #define HVTRAMP_MAPPING_SIZE 0x10
  28. #endif /* _SPARC64_HVTRAP_H */