[NDM] Stub NDM service

This commit is contained in:
wheremyfoodat 2022-09-22 00:33:54 +03:00
parent aef1520f17
commit 36a30da78d
9 changed files with 84 additions and 10 deletions

18
include/services/ndm.hpp Normal file
View file

@ -0,0 +1,18 @@
#pragma once
#include "helpers.hpp"
#include "kernel_types.hpp"
#include "memory.hpp"
class NDMService {
Handle handle = KernelHandles::NDM;
Memory& mem;
// Service commands
void overrideDefaultDaemons(u32 messagePointer);
void suspendDaemons(u32 messagePointer);
public:
NDMService(Memory& mem) : mem(mem) {}
void reset();
void handleSyncRequest(u32 messagePointer);
};

View file

@ -7,6 +7,7 @@
#include "services/fs.hpp"
#include "services/gsp_gpu.hpp"
#include "services/gsp_lcd.hpp"
#include "services/ndm.hpp"
class ServiceManager {
std::array<u32, 16>& regs;
@ -17,8 +18,10 @@ class ServiceManager {
FSService fs;
GPUService gsp_gpu;
LCDService gsp_lcd;
NDMService ndm;
// "srv:" commands
void enableNotification(u32 messagePointer);
void getServiceHandle(u32 messagePointer);
void registerClient(u32 messagePointer);