forked from 0ad/0ad
janwas
452d67f0b7
lib: move IsSimilarMagnitude and downcasters here from single modules where they're used acpi: simplify by only using v1.0 or 2.0 tables snd: add note on why OpenAL can't be used mahaf: change prefix wcpu: cache results, reinstate wcpu_ClockFrequency win: add winreg.h for registry functions wsnd: only do the DSound thing on non-vista (and delay-load to avoid overhead) wutil: add code to correctly detect windows version This was SVN commit r5090.
31 lines
983 B
C
31 lines
983 B
C
/**
|
|
* =========================================================================
|
|
* File : mahaf.h
|
|
* Project : 0 A.D.
|
|
* Description : user-mode interface to Aken driver
|
|
* =========================================================================
|
|
*/
|
|
|
|
// license: GPL; see lib/license.txt
|
|
|
|
// Mahaf - ferryman in Egyptian mythology that wakes up Aken,
|
|
// and the interface to the Aken driver.
|
|
|
|
#ifndef INCLUDED_MAHAF
|
|
#define INCLUDED_MAHAF
|
|
|
|
extern bool mahaf_Init();
|
|
extern void mahaf_Shutdown();
|
|
|
|
extern u8 mahaf_ReadPort8 (u16 port);
|
|
extern u16 mahaf_ReadPort16(u16 port);
|
|
extern u32 mahaf_ReadPort32(u16 port);
|
|
extern void mahaf_WritePort8 (u16 port, u8 value);
|
|
extern void mahaf_WritePort16(u16 port, u16 value);
|
|
extern void mahaf_WritePort32(u16 port, u32 value);
|
|
|
|
extern void* mahaf_MapPhysicalMemory(uintptr_t physicalAddress, size_t numBytes);
|
|
extern void mahaf_UnmapPhysicalMemory(void* virtualAddress);
|
|
|
|
#endif // INCLUDED_MAHAF
|