mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-19 03:01:45 +00:00
Updated Driver API
This commit is contained in:
3
DAPI.hpp
3
DAPI.hpp
@@ -45,6 +45,8 @@ struct KernelAPI
|
|||||||
unsigned long PageSize;
|
unsigned long PageSize;
|
||||||
void *(*RequestPage)(unsigned long Size);
|
void *(*RequestPage)(unsigned long Size);
|
||||||
void (*FreePage)(void *Page, unsigned long Size);
|
void (*FreePage)(void *Page, unsigned long Size);
|
||||||
|
void (*Map)(void *VirtualAddress, void *PhysicalAddress, unsigned long Flags);
|
||||||
|
void (*Unmap)(void *VirtualAddress);
|
||||||
} Memory;
|
} Memory;
|
||||||
|
|
||||||
struct KAPIPCI
|
struct KAPIPCI
|
||||||
@@ -58,6 +60,7 @@ struct KernelAPI
|
|||||||
void (*DebugPrint)(char *String, unsigned long DriverUID);
|
void (*DebugPrint)(char *String, unsigned long DriverUID);
|
||||||
void (*DisplayPrint)(char *Value);
|
void (*DisplayPrint)(char *Value);
|
||||||
void *(*memcpy)(void *Destination, void *Source, unsigned long Size);
|
void *(*memcpy)(void *Destination, void *Source, unsigned long Size);
|
||||||
|
void *(*memset)(void *Destination, int Value, unsigned long Size);
|
||||||
} Util;
|
} Util;
|
||||||
|
|
||||||
struct KAPIDriverTalk
|
struct KAPIDriverTalk
|
||||||
|
Reference in New Issue
Block a user