mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-06-02 19:28:47 +02:00
c005d7df74
What was added: * Framebuffer * NativeActivity * NV Services * IOCTL Handler * NV Devices: * * /dev/nvmap - 0xC0080101, 0xC0080103, 0xC0200104, 0xC0180105, 0xC00C0109, 0xC008010E * * /dev/nvhost-as-gpu * * /dev/nvhost-channel - 0x40044801, 0xC0104809, 0xC010480B, 0xC018480C, 0x4004480D, 0xC020481A, 0x40084714 * * /dev/nvhost-ctrl * * /dev/nvhost-ctrl-gpu - 0x80044701, 0x80284702, 0xC0184706, 0xC0B04705, 0x80084714 * SVCs: * * SetMemoryAttribute * * CreateTransferMemory * * ResetSignal * * GetSystemTick * Addition of Compact Logger What was fixed: * SVCs: * * SetHeapSize * * SetMemoryAttribute * * QueryMemory * A release build would not set CMAKE_BUILD_TYPE to "RELEASE" * The logger code was simplified
47 lines
1.8 KiB
C++
47 lines
1.8 KiB
C++
#pragma once
|
|
|
|
#include <services/base_service.h>
|
|
#include <services/serviceman.h>
|
|
#include <kernel/types/KTransferMemory.h>
|
|
#include <gpu.h>
|
|
|
|
namespace skyline::kernel::service::nvdrv {
|
|
/**
|
|
* @brief nvdrv or INvDrvServices is used to access the Nvidia GPU inside the Switch (https://switchbrew.org/wiki/NV_services#nvdrv.2C_nvdrv:a.2C_nvdrv:s.2C_nvdrv:t)
|
|
*/
|
|
class nvdrv : public BaseService {
|
|
public:
|
|
nvdrv(const DeviceState &state, ServiceManager &manager);
|
|
|
|
/**
|
|
* @brief Open a specific device and return a FD (https://switchbrew.org/wiki/NV_services#Open)
|
|
*/
|
|
void Open(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
|
|
|
/**
|
|
* @brief Close the specified FD (https://switchbrew.org/wiki/NV_services#Close)
|
|
*/
|
|
void Ioctl(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
|
|
|
/**
|
|
* @brief Close the specified FD (https://switchbrew.org/wiki/NV_services#Close)
|
|
*/
|
|
void Close(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
|
|
|
/**
|
|
* @brief This initializes the driver (https://switchbrew.org/wiki/NV_services#Initialize)
|
|
*/
|
|
void Initialize(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
|
|
|
/**
|
|
* @brief This returns a specific event from a device (https://switchbrew.org/wiki/NV_services#QueryEvent)
|
|
*/
|
|
void QueryEvent(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
|
|
|
/**
|
|
* @brief This sets the AppletResourceUserId which matches the PID (https://switchbrew.org/wiki/NV_services#SetAruidByPID)
|
|
*/
|
|
void SetAruidByPID(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
|
};
|
|
}
|