From a13e1c0911c0627184bc38f18c7fdda64447b3ad Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 23 Mar 2025 19:13:48 +0100 Subject: meta(kernel): Reworked repository's filesystem structure. Removing useless parts of the project too. Signed-off-by: Amlal El Mahrouss --- dev/LibSCI/GPU.h | 78 -------------------------------------------------------- 1 file changed, 78 deletions(-) delete mode 100644 dev/LibSCI/GPU.h (limited to 'dev/LibSCI/GPU.h') diff --git a/dev/LibSCI/GPU.h b/dev/LibSCI/GPU.h deleted file mode 100644 index a29eae00..00000000 --- a/dev/LibSCI/GPU.h +++ /dev/null @@ -1,78 +0,0 @@ -/* ------------------------------------------- - -Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved. - -File: GPU.h -Purpose: GPU/FB System Calls. - -------------------------------------------- */ - -#ifndef SCI_GPU_H -#define SCI_GPU_H - -#include - -/// ------------------------------------------------------------------------------------------ // -/// @brief Graphics Processor API. -/// ------------------------------------------------------------------------------------------ // - -struct GPUCmdEntry; -struct GPUCmdEntryTraits; - -typedef VoidPtr GPUObject; - -/// ------------------------------------------------------------------------------------------ // -/// @brief Command structure type. -/// ------------------------------------------------------------------------------------------ // - -struct GPUCmdEntry -{ - VoidPtr Data{nullptr}; - SizeT DataSz{0}; - SizeT Layer{0}; - BOOL IsGPGPUData{NO}; -}; - -struct GPUCmdEntryTraits final -{ - GPUCmdEntry* Cmd{nullptr}; - - BOOL isGPGPUData() - { - return this->isValid() && this->Cmd->IsGPGPUData; - } - - BOOL isBackBuffer() - { - return this->Cmd->Layer > 0; - } - - BOOL isValid() - { - return this->Cmd->Data && (this->Cmd->DataSz > 0) && (MmGetHeapFlags(this->Cmd->Data) != ~0); - } -}; - -IMPORT_C BOOL GPUListDevices(const Char** list, SizeT cnt); - -IMPORT_C GPUObject GPUFindByDeviceName(_Input const Char* device_name); - -IMPORT_C GPUObject GPUQueryInfo(_Input const GPUObject* gpu_handle, VoidPtr* out, SizeT out_sz); - -IMPORT_C SInt32 GPUDisposeDevice(GPUObject gpu_handle, Bool cancel_all, Bool flush_all); - -IMPORT_C SInt32 GPUSendCmdBufferListWithCnt(GPUObject gpu_handle, GPUCmdEntry** cmd_list, SizeT cmd_list_cnt); - -// ------------------------------------------------------------------------------------------ // -// @brief Framebuffer API. -// ------------------------------------------------------------------------------------------ // - -IMPORT_C SInt32 FBAcquireBuffer(GPUObject* out, SInt32 width, SInt32 height); - -IMPORT_C SInt32 FBDisposeBuffer(GPUObject* in); - -IMPORT_C SInt32 FBGetColorProfile(GPUObject in); - -IMPORT_C SInt32 FBQueryInfo(GPUObject handle, VoidPtr* info_ptr, SizeT* info_sz); - -#endif // ifndef SCI_GPU_H -- cgit v1.2.3