diff options
Diffstat (limited to 'src/core/hle/svc.h')
| -rw-r--r-- | src/core/hle/svc.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/core/hle/svc.h b/src/core/hle/svc.h new file mode 100644 index 000000000..5c35977d1 --- /dev/null +++ b/src/core/hle/svc.h | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "common/common_types.h" | ||
| 8 | |||
| 9 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 10 | // SVC types | ||
| 11 | |||
| 12 | struct MemoryInfo { | ||
| 13 | u32 base_address; | ||
| 14 | u32 size; | ||
| 15 | u32 permission; | ||
| 16 | u32 state; | ||
| 17 | }; | ||
| 18 | |||
| 19 | struct PageInfo { | ||
| 20 | u32 flags; | ||
| 21 | }; | ||
| 22 | |||
| 23 | struct ThreadContext { | ||
| 24 | u32 cpu_registers[13]; | ||
| 25 | u32 sp; | ||
| 26 | u32 lr; | ||
| 27 | u32 pc; | ||
| 28 | u32 cpsr; | ||
| 29 | u32 fpu_registers[32]; | ||
| 30 | u32 fpscr; | ||
| 31 | u32 fpexc; | ||
| 32 | }; | ||
| 33 | |||
| 34 | enum ResetType { | ||
| 35 | RESETTYPE_ONESHOT, | ||
| 36 | RESETTYPE_STICKY, | ||
| 37 | RESETTYPE_PULSE, | ||
| 38 | RESETTYPE_MAX_BIT = (1u << 31), | ||
| 39 | }; | ||
| 40 | |||
| 41 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 42 | // Namespace SVC | ||
| 43 | |||
| 44 | namespace SVC { | ||
| 45 | |||
| 46 | void Register(); | ||
| 47 | |||
| 48 | } // namespace | ||