htc: module id names, skeleton rest of main

This commit is contained in:
Michael Scire 2021-02-09 04:35:30 -08:00
parent e1b47dab0e
commit 276c3f8434
2 changed files with 11 additions and 9 deletions

View File

@ -20,7 +20,9 @@
namespace ams::htclow { namespace ams::htclow {
enum class ModuleId : u8 { enum class ModuleId : u8 {
/* ... */ Htcfs = 1,
Htcmisc = 3,
Htcs = 4,
}; };
struct ModuleType { struct ModuleType {

View File

@ -20,20 +20,20 @@ namespace ams::htclow::ctrl {
constexpr inline const impl::ChannelInternalType ServiceChannels[] = { constexpr inline const impl::ChannelInternalType ServiceChannels[] = {
{ {
.channel_id = 0, .channel_id = 0, /* TODO: htcfs::ChannelId? */
.module_id = static_cast<ModuleId>(1), .module_id = ModuleId::Htcfs,
}, },
{ {
.channel_id = 1, .channel_id = 1, /* TODO: htcmisc::ServerChannelId? */
.module_id = static_cast<ModuleId>(3), .module_id = ModuleId::Htcmisc,
}, },
{ {
.channel_id = 2, .channel_id = 2, /* TODO: htcmisc::ClientChannelId? */
.module_id = static_cast<ModuleId>(3), .module_id = ModuleId::Htcmisc,
}, },
{ {
.channel_id = 0, .channel_id = 0, /* TODO: htcs::ChannelId? */
.module_id = static_cast<ModuleId>(4), .module_id = ModuleId::Htcs,
}, },
}; };