mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-19 05:15:17 +00:00
[rpcsx-os] iodev: stub s3da, gbase, devstat, devact
Add shm, aout1, aout2, da0x15.crypt
This commit is contained in:
parent
dafbd2a0c5
commit
9f30ad9d72
9 changed files with 197 additions and 1 deletions
32
rpcsx-os/iodev/devctl.cpp
Normal file
32
rpcsx-os/iodev/devctl.cpp
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#include "io-device.hpp"
|
||||
#include "orbis/KernelAllocator.hpp"
|
||||
#include "orbis/file.hpp"
|
||||
#include "orbis/utils/Logs.hpp"
|
||||
|
||||
struct DevCtlFile : orbis::File {};
|
||||
|
||||
static orbis::ErrorCode devctl_ioctl(orbis::File *file, std::uint64_t request,
|
||||
void *argp, orbis::Thread *thread) {
|
||||
|
||||
ORBIS_LOG_FATAL("Unhandled devctl ioctl", request);
|
||||
return {};
|
||||
}
|
||||
|
||||
static const orbis::FileOps fileOps = {
|
||||
.ioctl = devctl_ioctl,
|
||||
};
|
||||
|
||||
struct DevCtlDevice : IoDevice {
|
||||
orbis::ErrorCode open(orbis::Ref<orbis::File> *file, const char *path,
|
||||
std::uint32_t flags, std::uint32_t mode,
|
||||
orbis::Thread *thread) override {
|
||||
auto newFile = orbis::knew<DevCtlFile>();
|
||||
newFile->ops = &fileOps;
|
||||
newFile->device = this;
|
||||
|
||||
*file = newFile;
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
IoDevice *createDevCtlCharacterDevice() { return orbis::knew<DevCtlDevice>(); }
|
||||
Loading…
Add table
Add a link
Reference in a new issue