ReactOS  0.4.14-dev-606-g14ebc0b
acmacros.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ACPI_CAST8(ptr)   ACPI_CAST_PTR (UINT8, (ptr))
 
#define ACPI_CAST16(ptr)   ACPI_CAST_PTR (UINT16, (ptr))
 
#define ACPI_CAST32(ptr)   ACPI_CAST_PTR (UINT32, (ptr))
 
#define ACPI_CAST64(ptr)   ACPI_CAST_PTR (UINT64, (ptr))
 
#define ACPI_GET8(ptr)   (*ACPI_CAST8 (ptr))
 
#define ACPI_GET16(ptr)   (*ACPI_CAST16 (ptr))
 
#define ACPI_GET32(ptr)   (*ACPI_CAST32 (ptr))
 
#define ACPI_GET64(ptr)   (*ACPI_CAST64 (ptr))
 
#define ACPI_SET8(ptr, val)   (*ACPI_CAST8 (ptr) = (UINT8) (val))
 
#define ACPI_SET16(ptr, val)   (*ACPI_CAST16 (ptr) = (UINT16) (val))
 
#define ACPI_SET32(ptr, val)   (*ACPI_CAST32 (ptr) = (UINT32) (val))
 
#define ACPI_SET64(ptr, val)   (*ACPI_CAST64 (ptr) = (UINT64) (val))
 
#define ACPI_FORMAT_UINT64(i)   ACPI_HIDWORD(i), ACPI_LODWORD(i)
 
#define ACPI_MOVE_16_TO_16(d, s)   *(UINT16 *)(void *)(d) = *(UINT16 *)(void *)(s)
 
#define ACPI_MOVE_16_TO_32(d, s)   *(UINT32 *)(void *)(d) = *(UINT16 *)(void *)(s)
 
#define ACPI_MOVE_16_TO_64(d, s)   *(UINT64 *)(void *)(d) = *(UINT16 *)(void *)(s)
 
#define ACPI_MOVE_32_TO_16(d, s)   ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */
 
#define ACPI_MOVE_32_TO_32(d, s)   *(UINT32 *)(void *)(d) = *(UINT32 *)(void *)(s)
 
#define ACPI_MOVE_32_TO_64(d, s)   *(UINT64 *)(void *)(d) = *(UINT32 *)(void *)(s)
 
#define ACPI_MOVE_64_TO_16(d, s)   ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */
 
#define ACPI_MOVE_64_TO_32(d, s)   ACPI_MOVE_32_TO_32(d, s) /* Truncate to 32 */
 
#define ACPI_MOVE_64_TO_64(d, s)   *(UINT64 *)(void *)(d) = *(UINT64 *)(void *)(s)
 
#define _ACPI_DIV(value, PowerOf2)   ((UINT32) ((value) >> (PowerOf2)))
 
#define _ACPI_MUL(value, PowerOf2)   ((UINT32) ((value) << (PowerOf2)))
 
#define _ACPI_MOD(value, Divisor)   ((UINT32) ((value) & ((Divisor) -1)))
 
#define ACPI_DIV_2(a)   _ACPI_DIV(a, 1)
 
#define ACPI_MUL_2(a)   _ACPI_MUL(a, 1)
 
#define ACPI_MOD_2(a)   _ACPI_MOD(a, 2)
 
#define ACPI_DIV_4(a)   _ACPI_DIV(a, 2)
 
#define ACPI_MUL_4(a)   _ACPI_MUL(a, 2)
 
#define ACPI_MOD_4(a)   _ACPI_MOD(a, 4)
 
#define ACPI_DIV_8(a)   _ACPI_DIV(a, 3)
 
#define ACPI_MUL_8(a)   _ACPI_MUL(a, 3)
 
#define ACPI_MOD_8(a)   _ACPI_MOD(a, 8)
 
#define ACPI_DIV_16(a)   _ACPI_DIV(a, 4)
 
#define ACPI_MUL_16(a)   _ACPI_MUL(a, 4)
 
#define ACPI_MOD_16(a)   _ACPI_MOD(a, 16)
 
#define ACPI_DIV_32(a)   _ACPI_DIV(a, 5)
 
#define ACPI_MUL_32(a)   _ACPI_MUL(a, 5)
 
#define ACPI_MOD_32(a)   _ACPI_MOD(a, 32)
 
#define ACPI_IS_ASCII(c)   ((c) < 0x80)
 
#define ACPI_SIGN_POSITIVE   0
 
#define ACPI_SIGN_NEGATIVE   1
 
#define ACPI_ROUND_DOWN(value, boundary)
 
#define ACPI_ROUND_UP(value, boundary)
 
#define ACPI_ROUND_DOWN_TO_32BIT(a)   ACPI_ROUND_DOWN(a, 4)
 
#define ACPI_ROUND_DOWN_TO_64BIT(a)   ACPI_ROUND_DOWN(a, 8)
 
#define ACPI_ROUND_DOWN_TO_NATIVE_WORD(a)   ACPI_ROUND_DOWN(a, sizeof(ACPI_SIZE))
 
#define ACPI_ROUND_UP_TO_32BIT(a)   ACPI_ROUND_UP(a, 4)
 
#define ACPI_ROUND_UP_TO_64BIT(a)   ACPI_ROUND_UP(a, 8)
 
#define ACPI_ROUND_UP_TO_NATIVE_WORD(a)   ACPI_ROUND_UP(a, sizeof(ACPI_SIZE))
 
#define ACPI_ROUND_BITS_UP_TO_BYTES(a)   ACPI_DIV_8((a) + 7)
 
#define ACPI_ROUND_BITS_DOWN_TO_BYTES(a)   ACPI_DIV_8((a))
 
#define ACPI_ROUND_UP_TO_1K(a)   (((a) + 1023) >> 10)
 
#define ACPI_ROUND_UP_TO(value, boundary)   (((value) + ((boundary)-1)) / (boundary))
 
#define ACPI_IS_MISALIGNED(value)   (((ACPI_SIZE) value) & (sizeof(ACPI_SIZE)-1))
 
#define __ACPI_FIND_LAST_BIT_2(a, r)   ((((UINT8) (a)) & 0x02) ? (r)+1 : (r))
 
#define __ACPI_FIND_LAST_BIT_4(a, r)
 
#define __ACPI_FIND_LAST_BIT_8(a, r)
 
#define __ACPI_FIND_LAST_BIT_16(a, r)
 
#define __ACPI_FIND_LAST_BIT_32(a, r)
 
#define __ACPI_FIND_LAST_BIT_64(a, r)
 
#define ACPI_FIND_LAST_BIT_8(a)   ((a) ? __ACPI_FIND_LAST_BIT_8 (a, 1) : 0)
 
#define ACPI_FIND_LAST_BIT_16(a)   ((a) ? __ACPI_FIND_LAST_BIT_16 (a, 1) : 0)
 
#define ACPI_FIND_LAST_BIT_32(a)   ((a) ? __ACPI_FIND_LAST_BIT_32 (a, 1) : 0)
 
#define ACPI_FIND_LAST_BIT_64(a)   ((a) ? __ACPI_FIND_LAST_BIT_64 (a, 1) : 0)
 
#define __ACPI_FIND_FIRST_BIT_2(a, r)   ((((UINT8) (a)) & 0x01) ? (r) : (r)+1)
 
#define __ACPI_FIND_FIRST_BIT_4(a, r)
 
#define __ACPI_FIND_FIRST_BIT_8(a, r)
 
#define __ACPI_FIND_FIRST_BIT_16(a, r)
 
#define __ACPI_FIND_FIRST_BIT_32(a, r)
 
#define __ACPI_FIND_FIRST_BIT_64(a, r)
 
#define ACPI_FIND_FIRST_BIT_8(a)   ((a) ? __ACPI_FIND_FIRST_BIT_8 (a, 1) : 0)
 
#define ACPI_FIND_FIRST_BIT_16(a)   ((a) ? __ACPI_FIND_FIRST_BIT_16 (a, 1) : 0)
 
#define ACPI_FIND_FIRST_BIT_32(a)   ((a) ? __ACPI_FIND_FIRST_BIT_32 (a, 1) : 0)
 
#define ACPI_FIND_FIRST_BIT_64(a)   ((a) ? __ACPI_FIND_FIRST_BIT_64 (a, 1) : 0)
 
#define ACPI_ROUND_UP_POWER_OF_TWO_8(a)
 
#define ACPI_ROUND_DOWN_POWER_OF_TWO_8(a)
 
#define ACPI_ROUND_UP_POWER_OF_TWO_16(a)
 
#define ACPI_ROUND_DOWN_POWER_OF_TWO_16(a)
 
#define ACPI_ROUND_UP_POWER_OF_TWO_32(a)
 
#define ACPI_ROUND_DOWN_POWER_OF_TWO_32(a)
 
#define ACPI_IS_ALIGNED(a, s)   (((a) & ((s) - 1)) == 0)
 
#define ACPI_IS_POWER_OF_TWO(a)   ACPI_IS_ALIGNED(a, a)
 
#define ACPI_MASK_BITS_ABOVE(position)   (~((ACPI_UINT64_MAX) << ((UINT32) (position))))
 
#define ACPI_MASK_BITS_BELOW(position)   ((ACPI_UINT64_MAX) << ((UINT32) (position)))
 
#define ACPI_MASK_BITS_ABOVE_32(width)   ((UINT32) ACPI_MASK_BITS_ABOVE(width))
 
#define ACPI_MASK_BITS_BELOW_32(width)   ((UINT32) ACPI_MASK_BITS_BELOW(width))
 
#define ACPI_MASK_BITS_ABOVE_64(width)
 
#define ACPI_MASK_BITS_BELOW_64(width)
 
#define ACPI_REGISTER_PREPARE_BITS(Val, Pos, Mask)   ((Val << Pos) & Mask)
 
#define ACPI_REGISTER_INSERT_VALUE(Reg, Pos, Mask, Val)   Reg = (Reg & (~(Mask))) | ACPI_REGISTER_PREPARE_BITS(Val, Pos, Mask)
 
#define ACPI_INSERT_BITS(Target, Mask, Source)   Target = ((Target & (~(Mask))) | (Source & Mask))
 
#define ACPI_GET_BITS(SourcePtr, Position, Mask)   ((*(SourcePtr) >> (Position)) & (Mask))
 
#define ACPI_SET_BITS(TargetPtr, Position, Mask, Value)   (*(TargetPtr) |= (((Value) & (Mask)) << (Position)))
 
#define ACPI_1BIT_MASK   0x00000001
 
#define ACPI_2BIT_MASK   0x00000003
 
#define ACPI_3BIT_MASK   0x00000007
 
#define ACPI_4BIT_MASK   0x0000000F
 
#define ACPI_5BIT_MASK   0x0000001F
 
#define ACPI_6BIT_MASK   0x0000003F
 
#define ACPI_7BIT_MASK   0x0000007F
 
#define ACPI_8BIT_MASK   0x000000FF
 
#define ACPI_16BIT_MASK   0x0000FFFF
 
#define ACPI_24BIT_MASK   0x00FFFFFF
 
#define ACPI_GET_1BIT_FLAG(Value)   ((Value) & ACPI_1BIT_MASK)
 
#define ACPI_GET_2BIT_FLAG(Value)   ((Value) & ACPI_2BIT_MASK)
 
#define ACPI_GET_3BIT_FLAG(Value)   ((Value) & ACPI_3BIT_MASK)
 
#define ACPI_GET_4BIT_FLAG(Value)   ((Value) & ACPI_4BIT_MASK)
 
#define ACPI_EXTRACT_1BIT_FLAG(Field, Position)   (ACPI_GET_1BIT_FLAG ((Field) >> Position))
 
#define ACPI_EXTRACT_2BIT_FLAG(Field, Position)   (ACPI_GET_2BIT_FLAG ((Field) >> Position))
 
#define ACPI_EXTRACT_3BIT_FLAG(Field, Position)   (ACPI_GET_3BIT_FLAG ((Field) >> Position))
 
#define ACPI_EXTRACT_4BIT_FLAG(Field, Position)   (ACPI_GET_4BIT_FLAG ((Field) >> Position))
 
#define ACPI_IS_ROOT_PREFIX(c)   ((c) == (UINT8) 0x5C) /* Backslash */
 
#define ACPI_IS_PARENT_PREFIX(c)   ((c) == (UINT8) 0x5E) /* Carat */
 
#define ACPI_IS_PATH_SEPARATOR(c)   ((c) == (UINT8) 0x2E) /* Period (dot) */
 
#define ACPI_GET_DESCRIPTOR_PTR(d)   (((ACPI_DESCRIPTOR *)(void *)(d))->Common.CommonPointer)
 
#define ACPI_SET_DESCRIPTOR_PTR(d, p)   (((ACPI_DESCRIPTOR *)(void *)(d))->Common.CommonPointer = (p))
 
#define ACPI_GET_DESCRIPTOR_TYPE(d)   (((ACPI_DESCRIPTOR *)(void *)(d))->Common.DescriptorType)
 
#define ACPI_SET_DESCRIPTOR_TYPE(d, t)   (((ACPI_DESCRIPTOR *)(void *)(d))->Common.DescriptorType = (t))
 
#define ACPI_OP(Name, PArgs, IArgs, ObjType, Class, Type, Flags)   {(UINT32)(PArgs), (UINT32)(IArgs), (UINT32)(Flags), ObjType, Class, Type}
 
#define ARG_TYPE_WIDTH   5
 
#define ARG_1(x)   ((UINT32)(x))
 
#define ARG_2(x)   ((UINT32)(x) << (1 * ARG_TYPE_WIDTH))
 
#define ARG_3(x)   ((UINT32)(x) << (2 * ARG_TYPE_WIDTH))
 
#define ARG_4(x)   ((UINT32)(x) << (3 * ARG_TYPE_WIDTH))
 
#define ARG_5(x)   ((UINT32)(x) << (4 * ARG_TYPE_WIDTH))
 
#define ARG_6(x)   ((UINT32)(x) << (5 * ARG_TYPE_WIDTH))
 
#define ARGI_LIST1(a)   (ARG_1(a))
 
#define ARGI_LIST2(a, b)   (ARG_1(b)|ARG_2(a))
 
#define ARGI_LIST3(a, b, c)   (ARG_1(c)|ARG_2(b)|ARG_3(a))
 
#define ARGI_LIST4(a, b, c, d)   (ARG_1(d)|ARG_2(c)|ARG_3(b)|ARG_4(a))
 
#define ARGI_LIST5(a, b, c, d, e)   (ARG_1(e)|ARG_2(d)|ARG_3(c)|ARG_4(b)|ARG_5(a))
 
#define ARGI_LIST6(a, b, c, d, e, f)   (ARG_1(f)|ARG_2(e)|ARG_3(d)|ARG_4(c)|ARG_5(b)|ARG_6(a))
 
#define ARGP_LIST1(a)   (ARG_1(a))
 
#define ARGP_LIST2(a, b)   (ARG_1(a)|ARG_2(b))
 
#define ARGP_LIST3(a, b, c)   (ARG_1(a)|ARG_2(b)|ARG_3(c))
 
#define ARGP_LIST4(a, b, c, d)   (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d))
 
#define ARGP_LIST5(a, b, c, d, e)   (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e))
 
#define ARGP_LIST6(a, b, c, d, e, f)   (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e)|ARG_6(f))
 
#define GET_CURRENT_ARG_TYPE(List)   (List & ((UINT32) 0x1F))
 
#define INCREMENT_ARG_LIST(List)   (List >>= ((UINT32) ARG_TYPE_WIDTH))
 
#define ACPI_ERROR_NAMESPACE(s, p, e)   AcpiUtPrefixedNamespaceError (AE_INFO, s, p, e);
 
#define ACPI_ERROR_METHOD(s, n, p, e)   AcpiUtMethodError (AE_INFO, s, n, p, e);
 
#define ACPI_WARN_PREDEFINED(plist)   AcpiUtPredefinedWarning plist
 
#define ACPI_INFO_PREDEFINED(plist)   AcpiUtPredefinedInfo plist
 
#define ACPI_BIOS_ERROR_PREDEFINED(plist)   AcpiUtPredefinedBiosError plist
 
#define ACPI_ERROR_ONLY(s)   s
 
#define ACPI_HW_OPTIONAL_FUNCTION(addr)   addr
 
#define ACPI_INIT_UUID(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7)
 
#define ACPI_IS_OCTAL_DIGIT(d)   (((char)(d) >= '0') && ((char)(d) <= '7'))
 
#define ASL_CV_LABEL_FILENODE(a)
 
#define ASL_CV_CAPTURE_COMMENTS_ONLY(a)
 
#define ASL_CV_CAPTURE_COMMENTS(a)
 
#define ASL_CV_TRANSFER_COMMENTS(a)
 
#define ASL_CV_CLOSE_PAREN(a, b)   AcpiOsPrintf (")");
 
#define ASL_CV_CLOSE_BRACE(a, b)   AcpiOsPrintf ("}");
 
#define ASL_CV_SWITCH_FILES(a, b)
 
#define ASL_CV_CLEAR_OP_COMMENTS(a)
 
#define ASL_CV_PRINT_ONE_COMMENT(a, b, c, d)
 
#define ASL_CV_PRINT_ONE_COMMENT_LIST(a, b)
 
#define ASL_CV_FILE_HAS_SWITCHED(a)   0
 
#define ASL_CV_INIT_FILETREE(a, b, c)
 

Macro Definition Documentation

◆ __ACPI_FIND_FIRST_BIT_16

#define __ACPI_FIND_FIRST_BIT_16 (   a,
  r 
)
Value:
((((UINT16) (a)) & 0x00FF) ? \
__ACPI_FIND_FIRST_BIT_8 ((a), (r)) : \
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
#define __ACPI_FIND_FIRST_BIT_8(a, r)
Definition: acmacros.h:297
unsigned short UINT16
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 300 of file acmacros.h.

◆ __ACPI_FIND_FIRST_BIT_2

#define __ACPI_FIND_FIRST_BIT_2 (   a,
  r 
)    ((((UINT8) (a)) & 0x01) ? (r) : (r)+1)

Definition at line 293 of file acmacros.h.

◆ __ACPI_FIND_FIRST_BIT_32

#define __ACPI_FIND_FIRST_BIT_32 (   a,
  r 
)
Value:
((((UINT32) (a)) & 0x0000FFFF) ? \
__ACPI_FIND_FIRST_BIT_16 ((a), (r)) : \
__ACPI_FIND_FIRST_BIT_16 ((a)>>16, (r)+16))
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
unsigned int UINT32
#define __ACPI_FIND_FIRST_BIT_16(a, r)
Definition: acmacros.h:300
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 303 of file acmacros.h.

◆ __ACPI_FIND_FIRST_BIT_4

#define __ACPI_FIND_FIRST_BIT_4 (   a,
  r 
)
Value:
((((UINT8) (a)) & 0x03) ? \
__ACPI_FIND_FIRST_BIT_2 ((a), (r)) : \
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
#define __ACPI_FIND_FIRST_BIT_2(a, r)
Definition: acmacros.h:293
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
unsigned char UINT8

Definition at line 294 of file acmacros.h.

◆ __ACPI_FIND_FIRST_BIT_64

#define __ACPI_FIND_FIRST_BIT_64 (   a,
  r 
)
Value:
((((UINT64) (a)) & 0x00000000FFFFFFFF) ? \
__ACPI_FIND_FIRST_BIT_32 ((a), (r)) : \
__ACPI_FIND_FIRST_BIT_32 ((a)>>32, (r)+32))
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
unsigned long long UINT64
#define __ACPI_FIND_FIRST_BIT_32(a, r)
Definition: acmacros.h:303

Definition at line 306 of file acmacros.h.

◆ __ACPI_FIND_FIRST_BIT_8

#define __ACPI_FIND_FIRST_BIT_8 (   a,
  r 
)
Value:
((((UINT8) (a)) & 0x0F) ? \
__ACPI_FIND_FIRST_BIT_4 ((a), (r)) : \
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
#define __ACPI_FIND_FIRST_BIT_4(a, r)
Definition: acmacros.h:294
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
unsigned char UINT8

Definition at line 297 of file acmacros.h.

◆ __ACPI_FIND_LAST_BIT_16

#define __ACPI_FIND_LAST_BIT_16 (   a,
  r 
)
Value:
((((UINT16) (a)) & 0xFF00) ? \
__ACPI_FIND_LAST_BIT_8 ((a)>>8, (r)+8) : \
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
#define __ACPI_FIND_LAST_BIT_8(a, r)
Definition: acmacros.h:275
unsigned short UINT16
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 278 of file acmacros.h.

◆ __ACPI_FIND_LAST_BIT_2

#define __ACPI_FIND_LAST_BIT_2 (   a,
  r 
)    ((((UINT8) (a)) & 0x02) ? (r)+1 : (r))

Definition at line 271 of file acmacros.h.

◆ __ACPI_FIND_LAST_BIT_32

#define __ACPI_FIND_LAST_BIT_32 (   a,
  r 
)
Value:
((((UINT32) (a)) & 0xFFFF0000) ? \
__ACPI_FIND_LAST_BIT_16 ((a)>>16, (r)+16) : \
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
unsigned int UINT32
#define __ACPI_FIND_LAST_BIT_16(a, r)
Definition: acmacros.h:278
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 281 of file acmacros.h.

◆ __ACPI_FIND_LAST_BIT_4

#define __ACPI_FIND_LAST_BIT_4 (   a,
  r 
)
Value:
((((UINT8) (a)) & 0x0C) ? \
__ACPI_FIND_LAST_BIT_2 ((a)>>2, (r)+2) : \
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
#define __ACPI_FIND_LAST_BIT_2(a, r)
Definition: acmacros.h:271
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
unsigned char UINT8

Definition at line 272 of file acmacros.h.

◆ __ACPI_FIND_LAST_BIT_64

#define __ACPI_FIND_LAST_BIT_64 (   a,
  r 
)
Value:
((((UINT64) (a)) & 0xFFFFFFFF00000000) ? \
__ACPI_FIND_LAST_BIT_32 ((a)>>32, (r)+32) : \
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
#define __ACPI_FIND_LAST_BIT_32(a, r)
Definition: acmacros.h:281
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
unsigned long long UINT64

Definition at line 284 of file acmacros.h.

◆ __ACPI_FIND_LAST_BIT_8

#define __ACPI_FIND_LAST_BIT_8 (   a,
  r 
)
Value:
((((UINT8) (a)) & 0xF0) ? \
__ACPI_FIND_LAST_BIT_4 ((a)>>4, (r)+4) : \
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
#define __ACPI_FIND_LAST_BIT_4(a, r)
Definition: acmacros.h:272
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
unsigned char UINT8

Definition at line 275 of file acmacros.h.

◆ _ACPI_DIV

#define _ACPI_DIV (   value,
  PowerOf2 
)    ((UINT32) ((value) >> (PowerOf2)))

Definition at line 202 of file acmacros.h.

◆ _ACPI_MOD

#define _ACPI_MOD (   value,
  Divisor 
)    ((UINT32) ((value) & ((Divisor) -1)))

Definition at line 204 of file acmacros.h.

◆ _ACPI_MUL

#define _ACPI_MUL (   value,
  PowerOf2 
)    ((UINT32) ((value) << (PowerOf2)))

Definition at line 203 of file acmacros.h.

◆ ACPI_16BIT_MASK

#define ACPI_16BIT_MASK   0x0000FFFF

Definition at line 382 of file acmacros.h.

◆ ACPI_1BIT_MASK

#define ACPI_1BIT_MASK   0x00000001

Definition at line 374 of file acmacros.h.

◆ ACPI_24BIT_MASK

#define ACPI_24BIT_MASK   0x00FFFFFF

Definition at line 383 of file acmacros.h.

◆ ACPI_2BIT_MASK

#define ACPI_2BIT_MASK   0x00000003

Definition at line 375 of file acmacros.h.

◆ ACPI_3BIT_MASK

#define ACPI_3BIT_MASK   0x00000007

Definition at line 376 of file acmacros.h.

◆ ACPI_4BIT_MASK

#define ACPI_4BIT_MASK   0x0000000F

Definition at line 377 of file acmacros.h.

◆ ACPI_5BIT_MASK

#define ACPI_5BIT_MASK   0x0000001F

Definition at line 378 of file acmacros.h.

◆ ACPI_6BIT_MASK

#define ACPI_6BIT_MASK   0x0000003F

Definition at line 379 of file acmacros.h.

◆ ACPI_7BIT_MASK

#define ACPI_7BIT_MASK   0x0000007F

Definition at line 380 of file acmacros.h.

◆ ACPI_8BIT_MASK

#define ACPI_8BIT_MASK   0x000000FF

Definition at line 381 of file acmacros.h.

◆ ACPI_BIOS_ERROR_PREDEFINED

#define ACPI_BIOS_ERROR_PREDEFINED (   plist)    AcpiUtPredefinedBiosError plist

Definition at line 466 of file acmacros.h.

◆ ACPI_CAST16

#define ACPI_CAST16 (   ptr)    ACPI_CAST_PTR (UINT16, (ptr))

Definition at line 54 of file acmacros.h.

◆ ACPI_CAST32

#define ACPI_CAST32 (   ptr)    ACPI_CAST_PTR (UINT32, (ptr))

Definition at line 55 of file acmacros.h.

◆ ACPI_CAST64

#define ACPI_CAST64 (   ptr)    ACPI_CAST_PTR (UINT64, (ptr))

Definition at line 56 of file acmacros.h.

◆ ACPI_CAST8

#define ACPI_CAST8 (   ptr)    ACPI_CAST_PTR (UINT8, (ptr))

Definition at line 53 of file acmacros.h.

◆ ACPI_DIV_16

#define ACPI_DIV_16 (   a)    _ACPI_DIV(a, 4)

Definition at line 218 of file acmacros.h.

◆ ACPI_DIV_2

#define ACPI_DIV_2 (   a)    _ACPI_DIV(a, 1)

Definition at line 206 of file acmacros.h.

◆ ACPI_DIV_32

#define ACPI_DIV_32 (   a)    _ACPI_DIV(a, 5)

Definition at line 222 of file acmacros.h.

◆ ACPI_DIV_4

#define ACPI_DIV_4 (   a)    _ACPI_DIV(a, 2)

Definition at line 210 of file acmacros.h.

◆ ACPI_DIV_8

#define ACPI_DIV_8 (   a)    _ACPI_DIV(a, 3)

Definition at line 214 of file acmacros.h.

◆ ACPI_ERROR_METHOD

#define ACPI_ERROR_METHOD (   s,
  n,
  p,
  e 
)    AcpiUtMethodError (AE_INFO, s, n, p, e);

Definition at line 463 of file acmacros.h.

◆ ACPI_ERROR_NAMESPACE

#define ACPI_ERROR_NAMESPACE (   s,
  p,
  e 
)    AcpiUtPrefixedNamespaceError (AE_INFO, s, p, e);

Definition at line 462 of file acmacros.h.

◆ ACPI_ERROR_ONLY

#define ACPI_ERROR_ONLY (   s)    s

Definition at line 467 of file acmacros.h.

◆ ACPI_EXTRACT_1BIT_FLAG

#define ACPI_EXTRACT_1BIT_FLAG (   Field,
  Position 
)    (ACPI_GET_1BIT_FLAG ((Field) >> Position))

Definition at line 394 of file acmacros.h.

◆ ACPI_EXTRACT_2BIT_FLAG

#define ACPI_EXTRACT_2BIT_FLAG (   Field,
  Position 
)    (ACPI_GET_2BIT_FLAG ((Field) >> Position))

Definition at line 395 of file acmacros.h.

◆ ACPI_EXTRACT_3BIT_FLAG

#define ACPI_EXTRACT_3BIT_FLAG (   Field,
  Position 
)    (ACPI_GET_3BIT_FLAG ((Field) >> Position))

Definition at line 396 of file acmacros.h.

◆ ACPI_EXTRACT_4BIT_FLAG

#define ACPI_EXTRACT_4BIT_FLAG (   Field,
  Position 
)    (ACPI_GET_4BIT_FLAG ((Field) >> Position))

Definition at line 397 of file acmacros.h.

◆ ACPI_FIND_FIRST_BIT_16

#define ACPI_FIND_FIRST_BIT_16 (   a)    ((a) ? __ACPI_FIND_FIRST_BIT_16 (a, 1) : 0)

Definition at line 311 of file acmacros.h.

◆ ACPI_FIND_FIRST_BIT_32

#define ACPI_FIND_FIRST_BIT_32 (   a)    ((a) ? __ACPI_FIND_FIRST_BIT_32 (a, 1) : 0)

Definition at line 312 of file acmacros.h.

◆ ACPI_FIND_FIRST_BIT_64

#define ACPI_FIND_FIRST_BIT_64 (   a)    ((a) ? __ACPI_FIND_FIRST_BIT_64 (a, 1) : 0)

Definition at line 313 of file acmacros.h.

◆ ACPI_FIND_FIRST_BIT_8

#define ACPI_FIND_FIRST_BIT_8 (   a)    ((a) ? __ACPI_FIND_FIRST_BIT_8 (a, 1) : 0)

Definition at line 310 of file acmacros.h.

◆ ACPI_FIND_LAST_BIT_16

#define ACPI_FIND_LAST_BIT_16 (   a)    ((a) ? __ACPI_FIND_LAST_BIT_16 (a, 1) : 0)

Definition at line 289 of file acmacros.h.

◆ ACPI_FIND_LAST_BIT_32

#define ACPI_FIND_LAST_BIT_32 (   a)    ((a) ? __ACPI_FIND_LAST_BIT_32 (a, 1) : 0)

Definition at line 290 of file acmacros.h.

◆ ACPI_FIND_LAST_BIT_64

#define ACPI_FIND_LAST_BIT_64 (   a)    ((a) ? __ACPI_FIND_LAST_BIT_64 (a, 1) : 0)

Definition at line 291 of file acmacros.h.

◆ ACPI_FIND_LAST_BIT_8

#define ACPI_FIND_LAST_BIT_8 (   a)    ((a) ? __ACPI_FIND_LAST_BIT_8 (a, 1) : 0)

Definition at line 288 of file acmacros.h.

◆ ACPI_FORMAT_UINT64

#define ACPI_FORMAT_UINT64 (   i)    ACPI_HIDWORD(i), ACPI_LODWORD(i)

Definition at line 71 of file acmacros.h.

◆ ACPI_GET16

#define ACPI_GET16 (   ptr)    (*ACPI_CAST16 (ptr))

Definition at line 58 of file acmacros.h.

◆ ACPI_GET32

#define ACPI_GET32 (   ptr)    (*ACPI_CAST32 (ptr))

Definition at line 59 of file acmacros.h.

◆ ACPI_GET64

#define ACPI_GET64 (   ptr)    (*ACPI_CAST64 (ptr))

Definition at line 60 of file acmacros.h.

◆ ACPI_GET8

#define ACPI_GET8 (   ptr)    (*ACPI_CAST8 (ptr))

Definition at line 57 of file acmacros.h.

◆ ACPI_GET_1BIT_FLAG

#define ACPI_GET_1BIT_FLAG (   Value)    ((Value) & ACPI_1BIT_MASK)

Definition at line 387 of file acmacros.h.

◆ ACPI_GET_2BIT_FLAG

#define ACPI_GET_2BIT_FLAG (   Value)    ((Value) & ACPI_2BIT_MASK)

Definition at line 388 of file acmacros.h.

◆ ACPI_GET_3BIT_FLAG

#define ACPI_GET_3BIT_FLAG (   Value)    ((Value) & ACPI_3BIT_MASK)

Definition at line 389 of file acmacros.h.

◆ ACPI_GET_4BIT_FLAG

#define ACPI_GET_4BIT_FLAG (   Value)    ((Value) & ACPI_4BIT_MASK)

Definition at line 390 of file acmacros.h.

◆ ACPI_GET_BITS

#define ACPI_GET_BITS (   SourcePtr,
  Position,
  Mask 
)    ((*(SourcePtr) >> (Position)) & (Mask))

Definition at line 368 of file acmacros.h.

◆ ACPI_GET_DESCRIPTOR_PTR

#define ACPI_GET_DESCRIPTOR_PTR (   d)    (((ACPI_DESCRIPTOR *)(void *)(d))->Common.CommonPointer)

Definition at line 412 of file acmacros.h.

◆ ACPI_GET_DESCRIPTOR_TYPE

#define ACPI_GET_DESCRIPTOR_TYPE (   d)    (((ACPI_DESCRIPTOR *)(void *)(d))->Common.DescriptorType)

Definition at line 414 of file acmacros.h.

◆ ACPI_HW_OPTIONAL_FUNCTION

#define ACPI_HW_OPTIONAL_FUNCTION (   addr)    addr

Definition at line 483 of file acmacros.h.

◆ ACPI_INFO_PREDEFINED

#define ACPI_INFO_PREDEFINED (   plist)    AcpiUtPredefinedInfo plist

Definition at line 465 of file acmacros.h.

◆ ACPI_INIT_UUID

#define ACPI_INIT_UUID (   a,
  b,
  c,
  d0,
  d1,
  d2,
  d3,
  d4,
  d5,
  d6,
  d7 
)
Value:
(a) & 0xFF, ((a) >> 8) & 0xFF, ((a) >> 16) & 0xFF, ((a) >> 24) & 0xFF, \
(b) & 0xFF, ((b) >> 8) & 0xFF, \
(c) & 0xFF, ((c) >> 8) & 0xFF, \
(d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7)
#define a
Definition: ke_i.h:78
#define b
Definition: ke_i.h:79
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
const GLubyte * c
Definition: glext.h:8905
#define c
Definition: ke_i.h:80
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 495 of file acmacros.h.

◆ ACPI_INSERT_BITS

#define ACPI_INSERT_BITS (   Target,
  Mask,
  Source 
)    Target = ((Target & (~(Mask))) | (Source & Mask))

Definition at line 363 of file acmacros.h.

◆ ACPI_IS_ALIGNED

#define ACPI_IS_ALIGNED (   a,
  s 
)    (((a) & ((s) - 1)) == 0)

Definition at line 331 of file acmacros.h.

◆ ACPI_IS_ASCII

#define ACPI_IS_ASCII (   c)    ((c) < 0x80)

Definition at line 228 of file acmacros.h.

◆ ACPI_IS_MISALIGNED

#define ACPI_IS_MISALIGNED (   value)    (((ACPI_SIZE) value) & (sizeof(ACPI_SIZE)-1))

Definition at line 265 of file acmacros.h.

◆ ACPI_IS_OCTAL_DIGIT

#define ACPI_IS_OCTAL_DIGIT (   d)    (((char)(d) >= '0') && ((char)(d) <= '7'))

Definition at line 501 of file acmacros.h.

◆ ACPI_IS_PARENT_PREFIX

#define ACPI_IS_PARENT_PREFIX (   c)    ((c) == (UINT8) 0x5E) /* Carat */

Definition at line 402 of file acmacros.h.

◆ ACPI_IS_PATH_SEPARATOR

#define ACPI_IS_PATH_SEPARATOR (   c)    ((c) == (UINT8) 0x2E) /* Period (dot) */

Definition at line 403 of file acmacros.h.

◆ ACPI_IS_POWER_OF_TWO

#define ACPI_IS_POWER_OF_TWO (   a)    ACPI_IS_ALIGNED(a, a)

Definition at line 332 of file acmacros.h.

◆ ACPI_IS_ROOT_PREFIX

#define ACPI_IS_ROOT_PREFIX (   c)    ((c) == (UINT8) 0x5C) /* Backslash */

Definition at line 401 of file acmacros.h.

◆ ACPI_MASK_BITS_ABOVE

#define ACPI_MASK_BITS_ABOVE (   position)    (~((ACPI_UINT64_MAX) << ((UINT32) (position))))

Definition at line 344 of file acmacros.h.

◆ ACPI_MASK_BITS_ABOVE_32

#define ACPI_MASK_BITS_ABOVE_32 (   width)    ((UINT32) ACPI_MASK_BITS_ABOVE(width))

Definition at line 346 of file acmacros.h.

◆ ACPI_MASK_BITS_ABOVE_64

#define ACPI_MASK_BITS_ABOVE_64 (   width)
Value:
GLint GLint GLsizei width
Definition: gl.h:1546
#define ACPI_INTEGER_BIT_SIZE
Definition: actypes.h:490
#define ACPI_MASK_BITS_ABOVE(position)
Definition: acmacros.h:344
#define ACPI_UINT64_MAX
Definition: actypes.h:67

Definition at line 348 of file acmacros.h.

◆ ACPI_MASK_BITS_BELOW

#define ACPI_MASK_BITS_BELOW (   position)    ((ACPI_UINT64_MAX) << ((UINT32) (position)))

Definition at line 345 of file acmacros.h.

◆ ACPI_MASK_BITS_BELOW_32

#define ACPI_MASK_BITS_BELOW_32 (   width)    ((UINT32) ACPI_MASK_BITS_BELOW(width))

Definition at line 347 of file acmacros.h.

◆ ACPI_MASK_BITS_BELOW_64

#define ACPI_MASK_BITS_BELOW_64 (   width)
Value:
(UINT64) 0 : \
ACPI_MASK_BITS_BELOW(width))
GLint GLint GLsizei width
Definition: gl.h:1546
#define ACPI_INTEGER_BIT_SIZE
Definition: actypes.h:490
unsigned long long UINT64

Definition at line 351 of file acmacros.h.

◆ ACPI_MOD_16

#define ACPI_MOD_16 (   a)    _ACPI_MOD(a, 16)

Definition at line 220 of file acmacros.h.

◆ ACPI_MOD_2

#define ACPI_MOD_2 (   a)    _ACPI_MOD(a, 2)

Definition at line 208 of file acmacros.h.

◆ ACPI_MOD_32

#define ACPI_MOD_32 (   a)    _ACPI_MOD(a, 32)

Definition at line 224 of file acmacros.h.

◆ ACPI_MOD_4

#define ACPI_MOD_4 (   a)    _ACPI_MOD(a, 4)

Definition at line 212 of file acmacros.h.

◆ ACPI_MOD_8

#define ACPI_MOD_8 (   a)    _ACPI_MOD(a, 8)

Definition at line 216 of file acmacros.h.

◆ ACPI_MOVE_16_TO_16

#define ACPI_MOVE_16_TO_16 (   d,
  s 
)    *(UINT16 *)(void *)(d) = *(UINT16 *)(void *)(s)

Definition at line 141 of file acmacros.h.

◆ ACPI_MOVE_16_TO_32

#define ACPI_MOVE_16_TO_32 (   d,
  s 
)    *(UINT32 *)(void *)(d) = *(UINT16 *)(void *)(s)

Definition at line 142 of file acmacros.h.

◆ ACPI_MOVE_16_TO_64

#define ACPI_MOVE_16_TO_64 (   d,
  s 
)    *(UINT64 *)(void *)(d) = *(UINT16 *)(void *)(s)

Definition at line 143 of file acmacros.h.

◆ ACPI_MOVE_32_TO_16

#define ACPI_MOVE_32_TO_16 (   d,
  s 
)    ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */

Definition at line 147 of file acmacros.h.

◆ ACPI_MOVE_32_TO_32

#define ACPI_MOVE_32_TO_32 (   d,
  s 
)    *(UINT32 *)(void *)(d) = *(UINT32 *)(void *)(s)

Definition at line 148 of file acmacros.h.

◆ ACPI_MOVE_32_TO_64

#define ACPI_MOVE_32_TO_64 (   d,
  s 
)    *(UINT64 *)(void *)(d) = *(UINT32 *)(void *)(s)

Definition at line 149 of file acmacros.h.

◆ ACPI_MOVE_64_TO_16

#define ACPI_MOVE_64_TO_16 (   d,
  s 
)    ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */

Definition at line 153 of file acmacros.h.

◆ ACPI_MOVE_64_TO_32

#define ACPI_MOVE_64_TO_32 (   d,
  s 
)    ACPI_MOVE_32_TO_32(d, s) /* Truncate to 32 */

Definition at line 154 of file acmacros.h.

◆ ACPI_MOVE_64_TO_64

#define ACPI_MOVE_64_TO_64 (   d,
  s 
)    *(UINT64 *)(void *)(d) = *(UINT64 *)(void *)(s)

Definition at line 155 of file acmacros.h.

◆ ACPI_MUL_16

#define ACPI_MUL_16 (   a)    _ACPI_MUL(a, 4)

Definition at line 219 of file acmacros.h.

◆ ACPI_MUL_2

#define ACPI_MUL_2 (   a)    _ACPI_MUL(a, 1)

Definition at line 207 of file acmacros.h.

◆ ACPI_MUL_32

#define ACPI_MUL_32 (   a)    _ACPI_MUL(a, 5)

Definition at line 223 of file acmacros.h.

◆ ACPI_MUL_4

#define ACPI_MUL_4 (   a)    _ACPI_MUL(a, 2)

Definition at line 211 of file acmacros.h.

◆ ACPI_MUL_8

#define ACPI_MUL_8 (   a)    _ACPI_MUL(a, 3)

Definition at line 215 of file acmacros.h.

◆ ACPI_OP

#define ACPI_OP (   Name,
  PArgs,
  IArgs,
  ObjType,
  Class,
  Type,
  Flags 
)    {(UINT32)(PArgs), (UINT32)(IArgs), (UINT32)(Flags), ObjType, Class, Type}

Definition at line 424 of file acmacros.h.

◆ ACPI_REGISTER_INSERT_VALUE

#define ACPI_REGISTER_INSERT_VALUE (   Reg,
  Pos,
  Mask,
  Val 
)    Reg = (Reg & (~(Mask))) | ACPI_REGISTER_PREPARE_BITS(Val, Pos, Mask)

Definition at line 360 of file acmacros.h.

◆ ACPI_REGISTER_PREPARE_BITS

#define ACPI_REGISTER_PREPARE_BITS (   Val,
  Pos,
  Mask 
)    ((Val << Pos) & Mask)

Definition at line 357 of file acmacros.h.

◆ ACPI_ROUND_BITS_DOWN_TO_BYTES

#define ACPI_ROUND_BITS_DOWN_TO_BYTES (   a)    ACPI_DIV_8((a))

Definition at line 257 of file acmacros.h.

◆ ACPI_ROUND_BITS_UP_TO_BYTES

#define ACPI_ROUND_BITS_UP_TO_BYTES (   a)    ACPI_DIV_8((a) + 7)

Definition at line 256 of file acmacros.h.

◆ ACPI_ROUND_DOWN

#define ACPI_ROUND_DOWN (   value,
  boundary 
)
Value:
(((ACPI_SIZE)(value)) & \
(~(((ACPI_SIZE) boundary)-1)))

Definition at line 239 of file acmacros.h.

◆ ACPI_ROUND_DOWN_POWER_OF_TWO_16

#define ACPI_ROUND_DOWN_POWER_OF_TWO_16 (   a)
Value:
((UINT16) \
(((UINT32) 1) << (ACPI_FIND_LAST_BIT_16 ((a)) - 1)))
#define ACPI_FIND_LAST_BIT_16(a)
Definition: acmacros.h:289
unsigned int UINT32
unsigned short UINT16
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 325 of file acmacros.h.

◆ ACPI_ROUND_DOWN_POWER_OF_TWO_32

#define ACPI_ROUND_DOWN_POWER_OF_TWO_32 (   a)
Value:
((UINT32) \
(((UINT64) 1) << (ACPI_FIND_LAST_BIT_32 ((a)) - 1)))
#define ACPI_FIND_LAST_BIT_32(a)
Definition: acmacros.h:290
unsigned int UINT32
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
unsigned long long UINT64

Definition at line 329 of file acmacros.h.

◆ ACPI_ROUND_DOWN_POWER_OF_TWO_8

#define ACPI_ROUND_DOWN_POWER_OF_TWO_8 (   a)
Value:
((UINT8) \
(((UINT16) 1) << (ACPI_FIND_LAST_BIT_8 ((a)) - 1)))
#define ACPI_FIND_LAST_BIT_8(a)
Definition: acmacros.h:288
unsigned short UINT16
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
unsigned char UINT8

Definition at line 321 of file acmacros.h.

◆ ACPI_ROUND_DOWN_TO_32BIT

#define ACPI_ROUND_DOWN_TO_32BIT (   a)    ACPI_ROUND_DOWN(a, 4)

Definition at line 248 of file acmacros.h.

◆ ACPI_ROUND_DOWN_TO_64BIT

#define ACPI_ROUND_DOWN_TO_64BIT (   a)    ACPI_ROUND_DOWN(a, 8)

Definition at line 249 of file acmacros.h.

◆ ACPI_ROUND_DOWN_TO_NATIVE_WORD

#define ACPI_ROUND_DOWN_TO_NATIVE_WORD (   a)    ACPI_ROUND_DOWN(a, sizeof(ACPI_SIZE))

Definition at line 250 of file acmacros.h.

◆ ACPI_ROUND_UP

#define ACPI_ROUND_UP (   value,
  boundary 
)
Value:
((((ACPI_SIZE)(value)) + \
(((ACPI_SIZE) boundary)-1)) & \
(~(((ACPI_SIZE) boundary)-1)))

Definition at line 242 of file acmacros.h.

◆ ACPI_ROUND_UP_POWER_OF_TWO_16

#define ACPI_ROUND_UP_POWER_OF_TWO_16 (   a)
Value:
((UINT16) \
(((UINT32) 1) << ACPI_FIND_LAST_BIT_16 ((a) - 1)))
#define ACPI_FIND_LAST_BIT_16(a)
Definition: acmacros.h:289
unsigned int UINT32
unsigned short UINT16
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 323 of file acmacros.h.

◆ ACPI_ROUND_UP_POWER_OF_TWO_32

#define ACPI_ROUND_UP_POWER_OF_TWO_32 (   a)
Value:
((UINT32) \
(((UINT64) 1) << ACPI_FIND_LAST_BIT_32 ((a) - 1)))
#define ACPI_FIND_LAST_BIT_32(a)
Definition: acmacros.h:290
unsigned int UINT32
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
unsigned long long UINT64

Definition at line 327 of file acmacros.h.

◆ ACPI_ROUND_UP_POWER_OF_TWO_8

#define ACPI_ROUND_UP_POWER_OF_TWO_8 (   a)
Value:
((UINT8) \
(((UINT16) 1) << ACPI_FIND_LAST_BIT_8 ((a) - 1)))
#define ACPI_FIND_LAST_BIT_8(a)
Definition: acmacros.h:288
unsigned short UINT16
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
unsigned char UINT8

Definition at line 319 of file acmacros.h.

◆ ACPI_ROUND_UP_TO

#define ACPI_ROUND_UP_TO (   value,
  boundary 
)    (((value) + ((boundary)-1)) / (boundary))

Definition at line 263 of file acmacros.h.

◆ ACPI_ROUND_UP_TO_1K

#define ACPI_ROUND_UP_TO_1K (   a)    (((a) + 1023) >> 10)

Definition at line 259 of file acmacros.h.

◆ ACPI_ROUND_UP_TO_32BIT

#define ACPI_ROUND_UP_TO_32BIT (   a)    ACPI_ROUND_UP(a, 4)

Definition at line 252 of file acmacros.h.

◆ ACPI_ROUND_UP_TO_64BIT

#define ACPI_ROUND_UP_TO_64BIT (   a)    ACPI_ROUND_UP(a, 8)

Definition at line 253 of file acmacros.h.

◆ ACPI_ROUND_UP_TO_NATIVE_WORD

#define ACPI_ROUND_UP_TO_NATIVE_WORD (   a)    ACPI_ROUND_UP(a, sizeof(ACPI_SIZE))

Definition at line 254 of file acmacros.h.

◆ ACPI_SET16

#define ACPI_SET16 (   ptr,
  val 
)    (*ACPI_CAST16 (ptr) = (UINT16) (val))

Definition at line 62 of file acmacros.h.

◆ ACPI_SET32

#define ACPI_SET32 (   ptr,
  val 
)    (*ACPI_CAST32 (ptr) = (UINT32) (val))

Definition at line 63 of file acmacros.h.

◆ ACPI_SET64

#define ACPI_SET64 (   ptr,
  val 
)    (*ACPI_CAST64 (ptr) = (UINT64) (val))

Definition at line 64 of file acmacros.h.

◆ ACPI_SET8

#define ACPI_SET8 (   ptr,
  val 
)    (*ACPI_CAST8 (ptr) = (UINT8) (val))

Definition at line 61 of file acmacros.h.

◆ ACPI_SET_BITS

#define ACPI_SET_BITS (   TargetPtr,
  Position,
  Mask,
  Value 
)    (*(TargetPtr) |= (((Value) & (Mask)) << (Position)))

Definition at line 371 of file acmacros.h.

◆ ACPI_SET_DESCRIPTOR_PTR

#define ACPI_SET_DESCRIPTOR_PTR (   d,
  p 
)    (((ACPI_DESCRIPTOR *)(void *)(d))->Common.CommonPointer = (p))

Definition at line 413 of file acmacros.h.

◆ ACPI_SET_DESCRIPTOR_TYPE

#define ACPI_SET_DESCRIPTOR_TYPE (   d,
  t 
)    (((ACPI_DESCRIPTOR *)(void *)(d))->Common.DescriptorType = (t))

Definition at line 415 of file acmacros.h.

◆ ACPI_SIGN_NEGATIVE

#define ACPI_SIGN_NEGATIVE   1

Definition at line 233 of file acmacros.h.

◆ ACPI_SIGN_POSITIVE

#define ACPI_SIGN_POSITIVE   0

Definition at line 232 of file acmacros.h.

◆ ACPI_WARN_PREDEFINED

#define ACPI_WARN_PREDEFINED (   plist)    AcpiUtPredefinedWarning plist

Definition at line 464 of file acmacros.h.

◆ ARG_1

#define ARG_1 (   x)    ((UINT32)(x))

Definition at line 429 of file acmacros.h.

◆ ARG_2

#define ARG_2 (   x)    ((UINT32)(x) << (1 * ARG_TYPE_WIDTH))

Definition at line 430 of file acmacros.h.

◆ ARG_3

#define ARG_3 (   x)    ((UINT32)(x) << (2 * ARG_TYPE_WIDTH))

Definition at line 431 of file acmacros.h.

◆ ARG_4

#define ARG_4 (   x)    ((UINT32)(x) << (3 * ARG_TYPE_WIDTH))

Definition at line 432 of file acmacros.h.

◆ ARG_5

#define ARG_5 (   x)    ((UINT32)(x) << (4 * ARG_TYPE_WIDTH))

Definition at line 433 of file acmacros.h.

◆ ARG_6

#define ARG_6 (   x)    ((UINT32)(x) << (5 * ARG_TYPE_WIDTH))

Definition at line 434 of file acmacros.h.

◆ ARG_TYPE_WIDTH

#define ARG_TYPE_WIDTH   5

Definition at line 428 of file acmacros.h.

◆ ARGI_LIST1

#define ARGI_LIST1 (   a)    (ARG_1(a))

Definition at line 436 of file acmacros.h.

◆ ARGI_LIST2

#define ARGI_LIST2 (   a,
  b 
)    (ARG_1(b)|ARG_2(a))

Definition at line 437 of file acmacros.h.

◆ ARGI_LIST3

#define ARGI_LIST3 (   a,
  b,
  c 
)    (ARG_1(c)|ARG_2(b)|ARG_3(a))

Definition at line 438 of file acmacros.h.

◆ ARGI_LIST4

#define ARGI_LIST4 (   a,
  b,
  c,
  d 
)    (ARG_1(d)|ARG_2(c)|ARG_3(b)|ARG_4(a))

Definition at line 439 of file acmacros.h.

◆ ARGI_LIST5

#define ARGI_LIST5 (   a,
  b,
  c,
  d,
  e 
)    (ARG_1(e)|ARG_2(d)|ARG_3(c)|ARG_4(b)|ARG_5(a))

Definition at line 440 of file acmacros.h.

◆ ARGI_LIST6

#define ARGI_LIST6 (   a,
  b,
  c,
  d,
  e,
  f 
)    (ARG_1(f)|ARG_2(e)|ARG_3(d)|ARG_4(c)|ARG_5(b)|ARG_6(a))

Definition at line 441 of file acmacros.h.

◆ ARGP_LIST1

#define ARGP_LIST1 (   a)    (ARG_1(a))

Definition at line 443 of file acmacros.h.

◆ ARGP_LIST2

#define ARGP_LIST2 (   a,
  b 
)    (ARG_1(a)|ARG_2(b))

Definition at line 444 of file acmacros.h.

◆ ARGP_LIST3

#define ARGP_LIST3 (   a,
  b,
  c 
)    (ARG_1(a)|ARG_2(b)|ARG_3(c))

Definition at line 445 of file acmacros.h.

◆ ARGP_LIST4

#define ARGP_LIST4 (   a,
  b,
  c,
  d 
)    (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d))

Definition at line 446 of file acmacros.h.

◆ ARGP_LIST5

#define ARGP_LIST5 (   a,
  b,
  c,
  d,
  e 
)    (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e))

Definition at line 447 of file acmacros.h.

◆ ARGP_LIST6

#define ARGP_LIST6 (   a,
  b,
  c,
  d,
  e,
  f 
)    (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e)|ARG_6(f))

Definition at line 448 of file acmacros.h.

◆ ASL_CV_CAPTURE_COMMENTS

#define ASL_CV_CAPTURE_COMMENTS (   a)

Definition at line 526 of file acmacros.h.

◆ ASL_CV_CAPTURE_COMMENTS_ONLY

#define ASL_CV_CAPTURE_COMMENTS_ONLY (   a)

Definition at line 525 of file acmacros.h.

◆ ASL_CV_CLEAR_OP_COMMENTS

#define ASL_CV_CLEAR_OP_COMMENTS (   a)

Definition at line 531 of file acmacros.h.

◆ ASL_CV_CLOSE_BRACE

#define ASL_CV_CLOSE_BRACE (   a,
  b 
)    AcpiOsPrintf ("}");

Definition at line 529 of file acmacros.h.

◆ ASL_CV_CLOSE_PAREN

#define ASL_CV_CLOSE_PAREN (   a,
  b 
)    AcpiOsPrintf (")");

Definition at line 528 of file acmacros.h.

◆ ASL_CV_FILE_HAS_SWITCHED

#define ASL_CV_FILE_HAS_SWITCHED (   a)    0

Definition at line 534 of file acmacros.h.

◆ ASL_CV_INIT_FILETREE

#define ASL_CV_INIT_FILETREE (   a,
  b,
  c 
)

Definition at line 535 of file acmacros.h.

◆ ASL_CV_LABEL_FILENODE

#define ASL_CV_LABEL_FILENODE (   a)

Definition at line 524 of file acmacros.h.

◆ ASL_CV_PRINT_ONE_COMMENT

#define ASL_CV_PRINT_ONE_COMMENT (   a,
  b,
  c,
  d 
)

Definition at line 532 of file acmacros.h.

◆ ASL_CV_PRINT_ONE_COMMENT_LIST

#define ASL_CV_PRINT_ONE_COMMENT_LIST (   a,
  b 
)

Definition at line 533 of file acmacros.h.

◆ ASL_CV_SWITCH_FILES

#define ASL_CV_SWITCH_FILES (   a,
  b 
)

Definition at line 530 of file acmacros.h.

◆ ASL_CV_TRANSFER_COMMENTS

#define ASL_CV_TRANSFER_COMMENTS (   a)

Definition at line 527 of file acmacros.h.

◆ GET_CURRENT_ARG_TYPE

#define GET_CURRENT_ARG_TYPE (   List)    (List & ((UINT32) 0x1F))

Definition at line 450 of file acmacros.h.

◆ INCREMENT_ARG_LIST

#define INCREMENT_ARG_LIST (   List)    (List >>= ((UINT32) ARG_TYPE_WIDTH))

Definition at line 451 of file acmacros.h.