NVDRV: Implement sessions and initial implementation of SMMU

This commit is contained in:
Fernando Sahmkow
2023-12-24 18:20:02 +01:00
committed by Liam
parent 2f0418c101
commit 7a9d1ad2f8
37 changed files with 260 additions and 100 deletions

View File

@@ -77,7 +77,7 @@ public:
NvResult VerifyFD(DeviceFD fd) const;
/// Opens a device node and returns a file descriptor to it.
DeviceFD Open(const std::string& device_name);
DeviceFD Open(const std::string& device_name, size_t session_id);
/// Sends an ioctl command to the specified file descriptor.
NvResult Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input, std::span<u8> output);
@@ -93,6 +93,10 @@ public:
NvResult QueryEvent(DeviceFD fd, u32 event_id, Kernel::KEvent*& event);
NvCore::Container& GetContainer() {
return container;
}
private:
friend class EventInterface;
friend class Service::Nvnflinger::Nvnflinger;