[CAM] Add service skeleton

This commit is contained in:
wheremyfoodat 2023-03-13 01:00:12 +02:00
parent b564029a8f
commit 5b9648e0a8
7 changed files with 63 additions and 5 deletions

19
include/services/cam.hpp Normal file
View file

@ -0,0 +1,19 @@
#pragma once
#include "helpers.hpp"
#include "kernel_types.hpp"
#include "logger.hpp"
#include "memory.hpp"
class CAMService {
Handle handle = KernelHandles::CAM;
Memory& mem;
MAKE_LOG_FUNCTION(log, camLogger)
// Service commands
void driverInitialize(u32 messagePointer);
public:
CAMService(Memory& mem) : mem(mem) {}
void reset();
void handleSyncRequest(u32 messagePointer);
};

View file

@ -8,6 +8,7 @@
#include "services/am.hpp"
#include "services/apt.hpp"
#include "services/boss.hpp"
#include "services/cam.hpp"
#include "services/cecd.hpp"
#include "services/cfg.hpp"
#include "services/dsp.hpp"
@ -38,6 +39,7 @@ class ServiceManager {
AMService am;
APTService apt;
BOSSService boss;
CAMService cam;
CECDService cecd;
CFGService cfg;
DSPService dsp;