diff options
Diffstat (limited to 'src/core/hardware_properties.h')
| -rw-r--r-- | src/core/hardware_properties.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/core/hardware_properties.h b/src/core/hardware_properties.h new file mode 100644 index 000000000..62cdf9ef0 --- /dev/null +++ b/src/core/hardware_properties.h | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | // Copyright 2020 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "common/common_types.h" | ||
| 8 | |||
| 9 | namespace Core { | ||
| 10 | |||
| 11 | union EmuThreadHandle { | ||
| 12 | u64 raw; | ||
| 13 | struct { | ||
| 14 | u32 host_handle; | ||
| 15 | u32 guest_handle; | ||
| 16 | }; | ||
| 17 | }; | ||
| 18 | |||
| 19 | namespace Hardware { | ||
| 20 | |||
| 21 | // The below clock rate is based on Switch's clockspeed being widely known as 1.020GHz | ||
| 22 | // The exact value used is of course unverified. | ||
| 23 | constexpr u64 BASE_CLOCK_RATE = 1019215872; // Switch cpu frequency is 1020MHz un/docked | ||
| 24 | constexpr u64 CNTFREQ = 19200000; // Switch's hardware clock speed | ||
| 25 | constexpr u32 NUM_CPU_CORES = 4; // Number of CPU Cores | ||
| 26 | } // namespace Hardware | ||
| 27 | |||
| 28 | } // namespace Core | ||