ReactOS  0.4.13-dev-99-g7e18b6d
acwin.h File Reference

Go to the source code of this file.

Macros

#define ACPI_USE_STANDARD_HEADERS
 
#define ACPI_USE_SYSTEM_CLIBRARY
 
#define ACPI_MACHINE_WIDTH   32
 
#define ACPI_USE_NATIVE_DIVIDE
 
#define ACPI_USE_NATIVE_MATH64
 
#define open   _open
 
#define read   _read
 
#define write   _write
 
#define close   _close
 
#define stat   _stat
 
#define fstat   _fstat
 
#define mkdir   _mkdir
 
#define snprintf   _snprintf
 
#define vsnprintf   _vsnprintf
 
#define O_RDONLY   _O_RDONLY
 
#define O_BINARY   _O_BINARY
 
#define O_CREAT   _O_CREAT
 
#define O_WRONLY   _O_WRONLY
 
#define O_TRUNC   _O_TRUNC
 
#define S_IREAD   _S_IREAD
 
#define S_IWRITE   _S_IWRITE
 
#define S_IFDIR   _S_IFDIR
 
#define ACPI_FLUSH_CPU_CACHE()   __asm {WBINVD}
 
#define ACPI_ACQUIRE_GLOBAL_LOCK(FacsPtr, Acq)
 
#define ACPI_RELEASE_GLOBAL_LOCK(FacsPtr, Pnd)
 

Macro Definition Documentation

◆ ACPI_ACQUIRE_GLOBAL_LOCK

#define ACPI_ACQUIRE_GLOBAL_LOCK (   FacsPtr,
  Acq 
)
Value:
__asm \
{ \
__asm mov eax, 0xFF \
__asm mov ecx, FacsPtr \
__asm or ecx, ecx \
__asm jz exit_acq \
__asm lea ecx, [ecx].GlobalLock \
\
__asm acq10: \
__asm mov eax, [ecx] \
__asm mov edx, eax \
__asm and edx, 0xFFFFFFFE \
__asm bts edx, 1 \
__asm adc edx, 0 \
__asm lock cmpxchg dword ptr [ecx], edx \
__asm jnz acq10 \
\
__asm cmp dl, 3 \
__asm sbb eax, eax \
\
__asm exit_acq: \
__asm mov Acq, al \
}
rwlock_t lock
Definition: tcpcore.h:1163
#define cmp(status, error)
Definition: error.c:114
static PVOID ptr
Definition: dispmode.c:27
ecx edi ebx edx edi decl ecx esi eax jecxz decl eax andl eax esi movl eax
Definition: synth_sse3d.h:85
ecx edi ebx edx edi decl ecx esi eax jecxz decl eax andl eax esi movl edx
Definition: synth_sse3d.h:85

[End] no source code translation !

Definition at line 122 of file acwin.h.

◆ ACPI_FLUSH_CPU_CACHE

#define ACPI_FLUSH_CPU_CACHE ( )    __asm {WBINVD}

[Begin] no source code translation

Definition at line 106 of file acwin.h.

◆ ACPI_MACHINE_WIDTH

#define ACPI_MACHINE_WIDTH   32

Definition at line 50 of file acwin.h.

◆ ACPI_RELEASE_GLOBAL_LOCK

#define ACPI_RELEASE_GLOBAL_LOCK (   FacsPtr,
  Pnd 
)
Value:
__asm \
{ \
__asm xor eax, eax \
__asm mov ecx, FacsPtr \
__asm or ecx, ecx \
__asm jz exit_rel \
__asm lea ecx, [ecx].GlobalLock \
\
__asm Rel10: \
__asm mov eax, [ecx] \
__asm mov edx, eax \
__asm and edx, 0xFFFFFFFC \
__asm lock cmpxchg dword ptr [ecx], edx \
__asm jnz Rel10 \
\
__asm cmp dl, 3 \
__asm and eax, 1 \
\
__asm exit_rel: \
__asm mov Pnd, al \
}
static void xor(unsigned char *dst, const unsigned char *a, const unsigned char *b, const int count)
Definition: crypt_des.c:251
rwlock_t lock
Definition: tcpcore.h:1163
#define cmp(status, error)
Definition: error.c:114
static PVOID ptr
Definition: dispmode.c:27
ecx edi ebx edx edi decl ecx esi eax jecxz decl eax andl eax esi movl eax
Definition: synth_sse3d.h:85
ecx edi ebx edx edi decl ecx esi eax jecxz decl eax andl eax esi movl edx
Definition: synth_sse3d.h:85

Definition at line 146 of file acwin.h.

◆ ACPI_USE_NATIVE_DIVIDE

#define ACPI_USE_NATIVE_DIVIDE

Definition at line 51 of file acwin.h.

◆ ACPI_USE_NATIVE_MATH64

#define ACPI_USE_NATIVE_MATH64

Definition at line 52 of file acwin.h.

◆ ACPI_USE_STANDARD_HEADERS

#define ACPI_USE_STANDARD_HEADERS

Definition at line 47 of file acwin.h.

◆ ACPI_USE_SYSTEM_CLIBRARY

#define ACPI_USE_SYSTEM_CLIBRARY

Definition at line 48 of file acwin.h.

◆ close

#define close   _close

Definition at line 74 of file acwin.h.

◆ fstat

#define fstat   _fstat

Definition at line 76 of file acwin.h.

◆ mkdir

#define mkdir   _mkdir

Definition at line 77 of file acwin.h.

◆ O_BINARY

#define O_BINARY   _O_BINARY

Definition at line 83 of file acwin.h.

◆ O_CREAT

#define O_CREAT   _O_CREAT

Definition at line 84 of file acwin.h.

◆ O_RDONLY

#define O_RDONLY   _O_RDONLY

Definition at line 82 of file acwin.h.

◆ O_TRUNC

#define O_TRUNC   _O_TRUNC

Definition at line 86 of file acwin.h.

◆ O_WRONLY

#define O_WRONLY   _O_WRONLY

Definition at line 85 of file acwin.h.

◆ open

#define open   _open

Definition at line 71 of file acwin.h.

◆ read

#define read   _read

Definition at line 72 of file acwin.h.

◆ S_IFDIR

#define S_IFDIR   _S_IFDIR

Definition at line 89 of file acwin.h.

◆ S_IREAD

#define S_IREAD   _S_IREAD

Definition at line 87 of file acwin.h.

◆ S_IWRITE

#define S_IWRITE   _S_IWRITE

Definition at line 88 of file acwin.h.

◆ snprintf

#define snprintf   _snprintf

Definition at line 78 of file acwin.h.

◆ stat

#define stat   _stat

Definition at line 75 of file acwin.h.

◆ vsnprintf

#define vsnprintf   _vsnprintf

Definition at line 80 of file acwin.h.

◆ write

#define write   _write

Definition at line 73 of file acwin.h.