Pyrogenesis
trunk
|
#include "precompiled.h"
#include "lib/sysdep/os/win/mahaf.h"
#include "lib/config2.h"
#include "lib/module_init.h"
#include "lib/sysdep/os/win/wutil.h"
#include <winioctl.h>
#include "lib/sysdep/os/win/aken/aken.h"
#include "lib/sysdep/os/win/wversion.h"
Functions | |
static u32 | ReadPort (u16 port, u8 numBytes) |
u8 | mahaf_ReadPort8 (u16 port) |
u16 | mahaf_ReadPort16 (u16 port) |
u32 | mahaf_ReadPort32 (u16 port) |
static void | WritePort (u16 port, u32 value, u8 numBytes) |
void | mahaf_WritePort8 (u16 port, u8 value) |
void | mahaf_WritePort16 (u16 port, u16 value) |
void | mahaf_WritePort32 (u16 port, u32 value) |
bool | mahaf_IsPhysicalMappingDangerous () |
volatile void * | mahaf_MapPhysicalMemory (uintptr_t physicalAddress, size_t numBytes) |
void | mahaf_UnmapPhysicalMemory (volatile void *virtualAddress) |
static u64 | ReadRegister (DWORD ioctl, u64 reg) |
u64 | mahaf_ReadModelSpecificRegister (u64 reg) |
u64 | mahaf_ReadPerformanceMonitoringCounter (u64 reg) |
void | mahaf_WriteModelSpecificRegister (u64 reg, u64 value) |
static SC_HANDLE | OpenServiceControlManager (DWORD access) |
static void | UninstallDriver () |
static Status | Init () |
static void | Shutdown () |
Status | mahaf_Init () |
void | mahaf_Shutdown () |
Variables | |
static HANDLE | hAken = INVALID_HANDLE_VALUE |
static ModuleInitState | initState |
|
static |
Status mahaf_Init | ( | ) |
bool mahaf_IsPhysicalMappingDangerous | ( | ) |
callable before or after mahaf_Init.
note: mahaf_MapPhysicalMemory will complain if it is called despite this function having returned true.
volatile void* mahaf_MapPhysicalMemory | ( | uintptr_t | physicalAddress, |
size_t | numBytes | ||
) |
void mahaf_Shutdown | ( | ) |
void mahaf_UnmapPhysicalMemory | ( | volatile void * | virtualAddress | ) |
|
static |
|
static |
|
static |
|
static |
|
static |