From 1a5134d2d24e26540d34a872b5e6884ac44897eb Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sun, 7 Feb 2021 18:08:20 -0800 Subject: [PATCH] htc: skeleton main file/sysmodule dir --- .../impl/ams_system_thread_definitions.hpp | 21 +++++++++++++++++++ .../ncm/ncm_system_content_meta_id.hpp | 6 ++++++ 2 files changed, 27 insertions(+) diff --git a/libstratosphere/include/stratosphere/ams/impl/ams_system_thread_definitions.hpp b/libstratosphere/include/stratosphere/ams/impl/ams_system_thread_definitions.hpp index ff789a78..f08fa246 100644 --- a/libstratosphere/include/stratosphere/ams/impl/ams_system_thread_definitions.hpp +++ b/libstratosphere/include/stratosphere/ams/impl/ams_system_thread_definitions.hpp @@ -123,6 +123,27 @@ namespace ams::impl { AMS_DEFINE_SYSTEM_THREAD(21, pgl, Main); AMS_DEFINE_SYSTEM_THREAD(21, pgl, ProcessControlTask); + /* htc. */ + AMS_DEFINE_SYSTEM_THREAD(10, htc, Main); + AMS_DEFINE_SYSTEM_THREAD(10, htc, HtcIpc); + AMS_DEFINE_SYSTEM_THREAD(10, htc, HtcsIpc); + AMS_DEFINE_SYSTEM_THREAD(10, htc, HtcsMonitor); + AMS_DEFINE_SYSTEM_THREAD(10, htc, HtcfsIpc); + AMS_DEFINE_SYSTEM_THREAD(10, htc, HtcfsMonitor); + AMS_DEFINE_SYSTEM_THREAD(10, htc, HtclowDiscovery); + AMS_DEFINE_SYSTEM_THREAD(10, htc, HtclowTcpServer); + AMS_DEFINE_SYSTEM_THREAD(10, htc, HtclowUsbIndication); + AMS_DEFINE_SYSTEM_THREAD(10, htc, HtclowListen); + AMS_DEFINE_SYSTEM_THREAD(10, htc, HtclowObserver); + AMS_DEFINE_SYSTEM_THREAD(10, htc, HtclowSend); + AMS_DEFINE_SYSTEM_THREAD(10, htc, HtclowReceive); + AMS_DEFINE_SYSTEM_THREAD(10, htc, Htcmisc); + AMS_DEFINE_SYSTEM_THREAD(10, htc, HtcmiscReceive); + AMS_DEFINE_SYSTEM_THREAD(10, htc, HtcmiscSend); + + AMS_DEFINE_SYSTEM_THREAD(10, tma, BridgePcieDriver); + + #undef AMS_DEFINE_SYSTEM_THREAD } diff --git a/libstratosphere/include/stratosphere/ncm/ncm_system_content_meta_id.hpp b/libstratosphere/include/stratosphere/ncm/ncm_system_content_meta_id.hpp index 7154243c..894c556f 100644 --- a/libstratosphere/include/stratosphere/ncm/ncm_system_content_meta_id.hpp +++ b/libstratosphere/include/stratosphere/ncm/ncm_system_content_meta_id.hpp @@ -98,6 +98,9 @@ namespace ams::ncm { static const SystemProgramId Pgl; static const SystemProgramId End; + + static const SystemProgramId Manu; + static const SystemProgramId Htc; }; struct AtmosphereProgramId { @@ -197,6 +200,9 @@ namespace ams::ncm { inline constexpr const SystemProgramId SystemProgramId::End = { 0x01000000000007FFul }; + inline constexpr const SystemProgramId SystemProgramId::Manu = { 0x010000000000B14Aul }; + inline constexpr const SystemProgramId SystemProgramId::Htc = { 0x010000000000B240ul }; + inline constexpr bool IsSystemProgramId(const ProgramId &program_id) { return (SystemProgramId::Start <= program_id && program_id <= SystemProgramId::End) || IsAtmosphereProgramId(program_id); }