Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

lib.sysdep
(lib.sysdep globals)

   in acpi.h
   in compiler.h
   in cpu.h
   in dir_watch.h
   in gfx.h
   in snd.h
   in stl.h
   in sysdep.h
   in gfx.h
   in snd.h
   in sysdep.h
   in gfx.cpp
   in acpi.cpp
   in cpu.cpp
   in gfx.cpp
   in snd.cpp

(lib.sysdep globals)


Field Summary
 static double clockFrequency
          See cpu.cpp
 static void* FAILED
          See acpi.cpp
 char[ GFX_CARD_LEN ] gfx_card
          ========================================================================= File : gfx.
 const size_t GFX_CARD_LEN
          ========================================================================= File : gfx.
 char[ GFX_DRV_VER_LEN ] gfx_drv_ver
          See gfx.cpp
 const size_t GFX_DRV_VER_LEN
          See gfx.h
 int gfx_mem
          See gfx.cpp
 static ModuleInitState initState
          See acpi.cpp
 static size_t memoryTotalMib
          See cpu.cpp
 static int numTables
          See acpi.cpp
 static const size_t RSDP_ALIGNMENT
          See acpi.cpp
 char[ SND_CARD_LEN ] snd_card
          ========================================================================= File : snd.
 const size_t SND_CARD_LEN
          ========================================================================= File : snd.
 char[ SND_DRV_VER_LEN ] snd_drv_ver
          See snd.cpp
 const size_t SND_DRV_VER_LEN
          See snd.h
 static void* SUCCEEDED
          See acpi.cpp
 static const AcpiTable** tables
          See acpi.cpp
 
Method Summary
 const AcpiTable* acpi_GetTable( const char* signature )
          See acpi.cpp
 bool acpi_Init()
          See acpi.cpp
 void acpi_Shutdown()
          See acpi.cpp
 static const AcpiTable* AllocateCopyOfTable( u64 physicalAddress )
          See acpi.cpp
 static inline void* CallWithSafetyBlanket( UnsafeFunction func, PCV_u8 mem, size_t numBytes, void* arg )
          See acpi.cpp
 static u8 ComputeChecksum( PCV_u8 buf, size_t numBytes )
          See acpi.cpp
 void cpu_AtomicAdd( volatile intptr_t* location, intptr_t increment )
          See cpu.cpp
 LibError cpu_CallByEachCPU( CpuCallback cb, void* param )
          See cpu.cpp
 bool cpu_CAS( volatile uintptr_t* location, uintptr_t expected, uintptr_t new_value )
          See cpu.cpp
 double cpu_ClockFrequency()
          See cpu.cpp
 uint cpu_CoresPerPackage()
          See cpu.cpp
 i32 cpu_i32FromDouble( double d )
          See cpu.cpp
 i32 cpu_i32FromFloat( float f )
          See cpu.cpp
 i64 cpu_i64FromDouble( double d )
          See cpu.cpp
 const char* cpu_IdentifierString()
          See cpu.cpp
 void cpu_Init()
          See cpu.cpp
 uint cpu_LogicalPerCore()
          See cpu.cpp
 void* cpu_memcpy( void* RESTRICT dst, const void* RESTRICT src, size_t nbytes )
          See cpu.cpp
 void cpu_MemoryFence()
          See cpu.cpp
 size_t cpu_MemorySize( CpuMemoryIndicators mem_type )
          See cpu.cpp
 size_t cpu_MemoryTotalMiB()
          See cpu.cpp
 uint cpu_NumPackages()
          See cpu.cpp
 int cpu_OsNumProcessors()
          See cpu.cpp
 void cpu_Serialize()
          See cpu.cpp
 void cpu_Shutdown()
          See cpu.cpp
 template< typename T > static void DeallocateTable( const T* table )
          See acpi.cpp
 static void DetectClockFrequency()
          See cpu.cpp
 static void DetectMemory()
          See cpu.cpp
  ERROR_ASSOCIATE( ERR::CPU_RESTRICTED_AFFINITY,"Cannot set desired CPU affinity",-1 )
          See cpu.cpp
  ERROR_ASSOCIATE( ERR::CPU_UNKNOWN_OPCODE,"Disassembly failed",-1 )
          See cpu.cpp
  ERROR_ASSOCIATE( ERR::CPU_FEATURE_MISSING,"This CPU doesn't support a required feature",-1 )
          ========================================================================= File : cpu.
  ERROR_ASSOCIATE( ERR::CPU_UNKNOWN_VENDOR,"CPU vendor unknown",-1 )
          See cpu.cpp
 static void FreeAllTables()
          See acpi.cpp
 static const AcpiTable* GetTable( u64 physicalAddress, const char* signature = 0 )
          See acpi.cpp
 void gfx_detect()
          See gfx.cpp
 static bool LatchAllTables()
          See acpi.cpp
 static bool RetrieveRsdp( RSDP& rsdp )
          See acpi.cpp
 void snd_detect()
          See snd.cpp
 wchar_t* sys_get_module_filename( void* addr, wchar_t* path )
          See sysdep.h
 static void* TransactPhysicalMemory( u64 physicalAddress, size_t numBytes, UnsafeFunction func, void* arg = 0 )
          See acpi.cpp
 static inline void* UnsafeAllocateCopyOfTable( PCV_u8 mem, size_t numBytes, void* arg )
          See acpi.cpp
 static void* UnsafeLocateAndRetrieveRsdp( PCV_u8 buf, size_t numBytes, void* arg )
          See acpi.cpp
 static void* UnsafeReadEbdaPhysicalAddress( PCV_u8 mem, size_t numBytes, void* UNUSED( arg ) )
          See acpi.cpp
 static bool VerifyTable( const AcpiTable* table, const char* signature = 0 )
          See acpi.cpp
 
Symbol Summary
 #define __func__ "(unknown)"
          See compiler.h
 #define _HAS_EXCEPTIONS 0
          See stl.h
 #define _W64
          See compiler.h
 #define ASSUME_UNREACHABLE
          See compiler.h
 #define EXTERN_C extern
          See compiler.h
 #define FP_ Ebp
          See cpu.h
 #define INCLUDED_ACPI
          See acpi.h
 #define INCLUDED_COMPILER
          See compiler.h
 #define INCLUDED_CPU
          See cpu.h
 #define INCLUDED_DIR_WATCH
          See dir_watch.h
 #define INCLUDED_GFX
          See gfx.h
 #define INCLUDED_SND
          See snd.h
 #define INCLUDED_STL
          See stl.h
 #define INCLUDED_SYSDEP
          See sysdep.h
 #define PC_ Eip
          See cpu.h
 #define RESTRICT
          See compiler.h
 #define SP_ Esp
          See cpu.h
 #define STL_HASH_MAP std::hash_map
          See stl.h
 #define STL_HASH_MULTIMAP std::hash_multimap
          See stl.h
 #define STL_HASH_MULTISET std::hash_multiset
          See stl.h
 #define STL_HASH_SET std::hash_set
          See stl.h
 #define STL_HASH_VALUE std::hash_value
          See stl.h
 #define STL_NO_EXCEPTIONS
          See stl.h
 #define STL_SLIST __gnu_cxx::slist
          See stl.h
 #define SYS_DIR_SEP '/'
          See sysdep.h
 
Macro Summary
 #define CAS(l, o, n) cpu_CAS((volatile uintptr_t*)l, (uintptr_t)o, (uintptr_t)n)
          See cpu.h
 #define SHORTEN(what, chars_to_keepif(!strncmp(gfx_card, what, ARRAY_SIZE(what-1memmove(gfx_card+chars_to_keep, gfx_card+ARRAY_SIZE(what-1, strlen(gfx_card-(ARRAY_SIZE(what-1+1)
          See gfx.cpp
 

Field Detail

clockFrequency

 static double clockFrequency;
See cpu.cpp.

FAILED

 static void* FAILED;
See acpi.cpp.

gfx_card

 char gfx_card[ GFX_CARD_LEN ];
========================================================================= File : gfx.cpp Project : 0 A.D. Description : graphics card detection. =========================================================================
See gfx.cpp.

GFX_CARD_LEN

 const size_t GFX_CARD_LEN;
========================================================================= File : gfx.h Project : 0 A.D. Description : graphics card detection. =========================================================================
See gfx.h.

gfx_drv_ver

 char gfx_drv_ver[ GFX_DRV_VER_LEN ];
See gfx.cpp.

GFX_DRV_VER_LEN

 const size_t GFX_DRV_VER_LEN;
See gfx.h.

gfx_mem

 int gfx_mem;
See gfx.cpp.

initState

 static ModuleInitState initState;
See acpi.cpp.

memoryTotalMib

 static size_t memoryTotalMib;
See cpu.cpp.

numTables

 static int numTables;
See acpi.cpp.

RSDP_ALIGNMENT

 static const size_t RSDP_ALIGNMENT;
See acpi.cpp.

snd_card

 char snd_card[ SND_CARD_LEN ];
========================================================================= File : snd.cpp Project : 0 A.D. Description : sound card detection. =========================================================================
See snd.cpp.

SND_CARD_LEN

 const size_t SND_CARD_LEN;
========================================================================= File : snd.h Project : 0 A.D. Description : sound card detection. =========================================================================
See snd.h.

snd_drv_ver

 char snd_drv_ver[ SND_DRV_VER_LEN ];
See snd.cpp.

SND_DRV_VER_LEN

 const size_t SND_DRV_VER_LEN;
See snd.h.

SUCCEEDED

 static void* SUCCEEDED;
See acpi.cpp.

tables

 static const AcpiTable** tables;
See acpi.cpp.


Method Detail

acpi_GetTable

 const AcpiTable* acpi_GetTable( const char* signature );
See acpi.cpp.

acpi_Init

 bool acpi_Init();
See acpi.cpp.

acpi_Shutdown

 void acpi_Shutdown();
See acpi.cpp.

AllocateCopyOfTable

 static const AcpiTable* AllocateCopyOfTable( u64 physicalAddress );
See acpi.cpp.

CallWithSafetyBlanket

 static inline void* CallWithSafetyBlanket( UnsafeFunction func, PCV_u8 mem, size_t numBytes, void* arg );
See acpi.cpp.

ComputeChecksum

 static u8 ComputeChecksum( PCV_u8 buf, size_t numBytes );
See acpi.cpp.

cpu_AtomicAdd

 void cpu_AtomicAdd( volatile intptr_t* location, intptr_t increment );
See cpu.cpp.

cpu_CallByEachCPU

 LibError cpu_CallByEachCPU( CpuCallback cb, void* param );
See cpu.cpp.

cpu_CAS

 bool cpu_CAS( volatile uintptr_t* location, uintptr_t expected, uintptr_t new_value );
See cpu.cpp.

cpu_ClockFrequency

 double cpu_ClockFrequency();
See cpu.cpp.

cpu_CoresPerPackage

 uint cpu_CoresPerPackage();
See cpu.cpp.

cpu_i32FromDouble

 i32 cpu_i32FromDouble( double d );
See cpu.cpp.

cpu_i32FromFloat

 i32 cpu_i32FromFloat( float f );
See cpu.cpp.

cpu_i64FromDouble

 i64 cpu_i64FromDouble( double d );
See cpu.cpp.

cpu_IdentifierString

 const char* cpu_IdentifierString();
See cpu.cpp.

cpu_Init

 void cpu_Init();
See cpu.cpp.

cpu_LogicalPerCore

 uint cpu_LogicalPerCore();
See cpu.cpp.

cpu_memcpy

 void* cpu_memcpy( void* RESTRICT dst, const void* RESTRICT src, size_t nbytes );
See cpu.cpp.

cpu_MemoryFence

 void cpu_MemoryFence();
See cpu.cpp.

cpu_MemorySize

 size_t cpu_MemorySize( CpuMemoryIndicators mem_type );
See cpu.cpp.

cpu_MemoryTotalMiB

 size_t cpu_MemoryTotalMiB();
See cpu.cpp.

cpu_NumPackages

 uint cpu_NumPackages();
See cpu.cpp.

cpu_OsNumProcessors

 int cpu_OsNumProcessors();
See cpu.cpp.

cpu_Serialize

 void cpu_Serialize();
See cpu.cpp.

cpu_Shutdown

 void cpu_Shutdown();
See cpu.cpp.

DeallocateTable

 template< typename T > static void DeallocateTable( const T* table );
See acpi.cpp.

DetectClockFrequency

 static void DetectClockFrequency();
See cpu.cpp.

DetectMemory

 static void DetectMemory();
See cpu.cpp.

ERROR_ASSOCIATE

 ERROR_ASSOCIATE( ERR::CPU_RESTRICTED_AFFINITY,"Cannot set desired CPU affinity",-1 );
See cpu.cpp.

ERROR_ASSOCIATE

 ERROR_ASSOCIATE( ERR::CPU_UNKNOWN_OPCODE,"Disassembly failed",-1 );
See cpu.cpp.

ERROR_ASSOCIATE

 ERROR_ASSOCIATE( ERR::CPU_FEATURE_MISSING,"This CPU doesn't support a required feature",-1 );
========================================================================= File : cpu.cpp Project : 0 A.D. Description : CPU and memory detection. =========================================================================
See cpu.cpp.

ERROR_ASSOCIATE

 ERROR_ASSOCIATE( ERR::CPU_UNKNOWN_VENDOR,"CPU vendor unknown",-1 );
See cpu.cpp.

FreeAllTables

 static void FreeAllTables();
See acpi.cpp.

GetTable

 static const AcpiTable* GetTable( u64 physicalAddress, const char* signature = 0 );
See acpi.cpp.

gfx_detect

 void gfx_detect();
See gfx.cpp.

LatchAllTables

 static bool LatchAllTables();
See acpi.cpp.

RetrieveRsdp

 static bool RetrieveRsdp( RSDP& rsdp );
See acpi.cpp.

snd_detect

 void snd_detect();
See snd.cpp.

sys_get_module_filename

 wchar_t* sys_get_module_filename( void* addr, wchar_t* path );
See sysdep.h.

TransactPhysicalMemory

 static void* TransactPhysicalMemory( u64 physicalAddress, size_t numBytes, UnsafeFunction func, void* arg = 0 );
See acpi.cpp.

UnsafeAllocateCopyOfTable

 static inline void* UnsafeAllocateCopyOfTable( PCV_u8 mem, size_t numBytes, void* arg );
See acpi.cpp.

UnsafeLocateAndRetrieveRsdp

 static void* UnsafeLocateAndRetrieveRsdp( PCV_u8 buf, size_t numBytes, void* arg );
See acpi.cpp.

UnsafeReadEbdaPhysicalAddress

 static void* UnsafeReadEbdaPhysicalAddress( PCV_u8 mem, size_t numBytes, void* UNUSED( arg ) );
See acpi.cpp.

VerifyTable

 static bool VerifyTable( const AcpiTable* table, const char* signature = 0 );
See acpi.cpp.


Symbol Detail

__func__

 #define __func__ "(unknown)"
See compiler.h.

_HAS_EXCEPTIONS

 #define _HAS_EXCEPTIONS 0
See stl.h.

_W64

 #define _W64 
See compiler.h.

ASSUME_UNREACHABLE

 #define ASSUME_UNREACHABLE 
See compiler.h.

EXTERN_C

 #define EXTERN_C extern
See compiler.h.

FP_

 #define FP_ Ebp
See cpu.h.

INCLUDED_ACPI

 #define INCLUDED_ACPI 
See acpi.h.

INCLUDED_COMPILER

 #define INCLUDED_COMPILER 
See compiler.h.

INCLUDED_CPU

 #define INCLUDED_CPU 
See cpu.h.

INCLUDED_DIR_WATCH

 #define INCLUDED_DIR_WATCH 
See dir_watch.h.

INCLUDED_GFX

 #define INCLUDED_GFX 
See gfx.h.

INCLUDED_SND

 #define INCLUDED_SND 
See snd.h.

INCLUDED_STL

 #define INCLUDED_STL 
See stl.h.

INCLUDED_SYSDEP

 #define INCLUDED_SYSDEP 
See sysdep.h.

PC_

 #define PC_ Eip
See cpu.h.

RESTRICT

 #define RESTRICT 
See compiler.h.

SP_

 #define SP_ Esp
See cpu.h.

STL_HASH_MAP

 #define STL_HASH_MAP std::hash_map
See stl.h.

STL_HASH_MULTIMAP

 #define STL_HASH_MULTIMAP std::hash_multimap
See stl.h.

STL_HASH_MULTISET

 #define STL_HASH_MULTISET std::hash_multiset
See stl.h.

STL_HASH_SET

 #define STL_HASH_SET std::hash_set
See stl.h.

STL_HASH_VALUE

 #define STL_HASH_VALUE std::hash_value
See stl.h.

STL_NO_EXCEPTIONS

 #define STL_NO_EXCEPTIONS 
See stl.h.

STL_SLIST

 #define STL_SLIST __gnu_cxx::slist
See stl.h.

SYS_DIR_SEP

 #define SYS_DIR_SEP '/'
See sysdep.h.


Macro Detail

CAS

 #define CAS(l, o, n) cpu_CAS((volatile uintptr_t*)l, (uintptr_t)o, (uintptr_t)n)
See cpu.h.

SHORTEN

 #define SHORTEN(what, chars_to_keepif(!strncmp(gfx_card, what, ARRAY_SIZE(what-1memmove(gfx_card+chars_to_keep, gfx_card+ARRAY_SIZE(what-1, strlen(gfx_card-(ARRAY_SIZE(what-1+1;) 
See gfx.cpp.

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD