1
0
forked from 0ad/0ad
0ad/source/lib/sysdep/win/mahaf.h
janwas f331b7313d fix very very insidious bug with mapping physical memory (TLB corruption). fix weirdness reported by michael (underlying cause: using cpu_ClockFrequency instead of wcpu_*; that made the timer run at freq=0)
mahaf: now disabled on Win2k because we can't prevent the TLB bug there.
removed the CopyPhysical API.
wutil: allow querying windows version via number

View: fix warning

This was SVN commit r5169.
2007-06-12 23:29:27 +00:00

31 lines
1001 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 volatile void* mahaf_MapPhysicalMemory(uintptr_t physicalAddress, size_t numBytes);
extern void mahaf_UnmapPhysicalMemory(volatile void* virtualAddress);
#endif // INCLUDED_MAHAF