[Y2R] Add more service calls

This commit is contained in:
wheremyfoodat 2023-04-24 01:25:29 +03:00
parent ef6cc56182
commit ba8a610e7b
2 changed files with 61 additions and 0 deletions

View file

@ -17,11 +17,29 @@ class Y2RService {
std::optional<Handle> transferEndEvent;
bool transferEndInterruptEnabled;
enum class BusyStatus : u32 {
NotBusy = 0,
Busy = 1
};
enum class InputFormat : u32 {
YUV422_Individual8 = 0,
YUV420_Individual8 = 1,
YUV422_Individual16 = 2,
YUV420_Individual16 = 3,
YUV422_Batch = 4,
};
InputFormat inputFmt;
// Service commands
void driverInitialize(u32 messagePointer);
void isBusyConversion(u32 messagePointer);
void pingProcess(u32 messagePointer);
void setTransferEndInterrupt(u32 messagePointer);
void getTransferEndEvent(u32 messagePointer);
void setInputFormat(u32 messagePointer);
void stopConversion(u32 messagePointer);
public:
Y2RService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {}