htc: skeleton main file/sysmodule dir

This commit is contained in:
Michael Scire 2021-02-07 18:08:20 -08:00
parent e1cc9f25a9
commit 1a5134d2d2
2 changed files with 27 additions and 0 deletions

View File

@ -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
}

View File

@ -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);
}