[Y2R] Add more service calls
This commit is contained in:
@@ -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) {}
|
||||
|
||||
Reference in New Issue
Block a user