ReactOS  0.4.15-dev-5462-g4d0d22a
acpredef.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define METHOD_PREDEF_ARGS_MAX   5
 
#define METHOD_ARG_BIT_WIDTH   3
 
#define METHOD_ARG_MASK   0x0007
 
#define ARG_COUNT_IS_MINIMUM   0x8000
 
#define METHOD_MAX_ARG_TYPE   ACPI_TYPE_PACKAGE
 
#define METHOD_GET_ARG_COUNT(ArgList)   ((ArgList) & METHOD_ARG_MASK)
 
#define METHOD_GET_NEXT_TYPE(ArgList)   (((ArgList) >>= METHOD_ARG_BIT_WIDTH) & METHOD_ARG_MASK)
 
#define METHOD_0ARGS   0
 
#define METHOD_1ARGS(a1)   (1 | (a1 << 3))
 
#define METHOD_2ARGS(a1, a2)   (2 | (a1 << 3) | (a2 << 6))
 
#define METHOD_3ARGS(a1, a2, a3)   (3 | (a1 << 3) | (a2 << 6) | (a3 << 9))
 
#define METHOD_4ARGS(a1, a2, a3, a4)   (4 | (a1 << 3) | (a2 << 6) | (a3 << 9) | (a4 << 12))
 
#define METHOD_5ARGS(a1, a2, a3, a4, a5)   (5 | (a1 << 3) | (a2 << 6) | (a3 << 9) | (a4 << 12) | (a5 << 15))
 
#define METHOD_RETURNS(type)   (type)
 
#define METHOD_NO_RETURN_VALUE   0
 
#define PACKAGE_INFO(a, b, c, d, e, f)   {{{(a),(b),(c),(d)}, ((((UINT16)(f)) << 8) | (e)), 0}}
 
#define WIDTH_1   0x0001
 
#define WIDTH_2   0x0002
 
#define WIDTH_3   0x0004
 
#define WIDTH_8   0x0008
 
#define WIDTH_16   0x0010
 
#define WIDTH_32   0x0020
 
#define WIDTH_64   0x0040
 
#define VARIABLE_DATA   0x0080
 
#define NUM_RESOURCE_WIDTHS   8
 
#define WIDTH_ADDRESS   WIDTH_16 | WIDTH_32 | WIDTH_64
 

Enumerations

enum  AcpiReturnPackageTypes {
  ACPI_PTYPE1_FIXED = 1, ACPI_PTYPE1_VAR = 2, ACPI_PTYPE1_OPTION = 3, ACPI_PTYPE2 = 4,
  ACPI_PTYPE2_COUNT = 5, ACPI_PTYPE2_PKG_COUNT = 6, ACPI_PTYPE2_FIXED = 7, ACPI_PTYPE2_MIN = 8,
  ACPI_PTYPE2_REV_FIXED = 9, ACPI_PTYPE2_FIX_VAR = 10, ACPI_PTYPE2_VAR_VAR = 11, ACPI_PTYPE2_UUID_PAIR = 12,
  ACPI_PTYPE_CUSTOM = 13
}
 

Variables

const ACPI_PREDEFINED_INFO AcpiGbl_PredefinedMethods []
 
const ACPI_PREDEFINED_INFO AcpiGbl_ResourceNames []
 

Macro Definition Documentation

◆ ARG_COUNT_IS_MINIMUM

#define ARG_COUNT_IS_MINIMUM   0x8000

Definition at line 144 of file acpredef.h.

◆ METHOD_0ARGS

#define METHOD_0ARGS   0

Definition at line 152 of file acpredef.h.

◆ METHOD_1ARGS

#define METHOD_1ARGS (   a1)    (1 | (a1 << 3))

Definition at line 153 of file acpredef.h.

◆ METHOD_2ARGS

#define METHOD_2ARGS (   a1,
  a2 
)    (2 | (a1 << 3) | (a2 << 6))

Definition at line 154 of file acpredef.h.

◆ METHOD_3ARGS

#define METHOD_3ARGS (   a1,
  a2,
  a3 
)    (3 | (a1 << 3) | (a2 << 6) | (a3 << 9))

Definition at line 155 of file acpredef.h.

◆ METHOD_4ARGS

#define METHOD_4ARGS (   a1,
  a2,
  a3,
  a4 
)    (4 | (a1 << 3) | (a2 << 6) | (a3 << 9) | (a4 << 12))

Definition at line 156 of file acpredef.h.

◆ METHOD_5ARGS

#define METHOD_5ARGS (   a1,
  a2,
  a3,
  a4,
  a5 
)    (5 | (a1 << 3) | (a2 << 6) | (a3 << 9) | (a4 << 12) | (a5 << 15))

Definition at line 157 of file acpredef.h.

◆ METHOD_ARG_BIT_WIDTH

#define METHOD_ARG_BIT_WIDTH   3

Definition at line 142 of file acpredef.h.

◆ METHOD_ARG_MASK

#define METHOD_ARG_MASK   0x0007

Definition at line 143 of file acpredef.h.

◆ METHOD_GET_ARG_COUNT

#define METHOD_GET_ARG_COUNT (   ArgList)    ((ArgList) & METHOD_ARG_MASK)

Definition at line 147 of file acpredef.h.

◆ METHOD_GET_NEXT_TYPE

#define METHOD_GET_NEXT_TYPE (   ArgList)    (((ArgList) >>= METHOD_ARG_BIT_WIDTH) & METHOD_ARG_MASK)

Definition at line 148 of file acpredef.h.

◆ METHOD_MAX_ARG_TYPE

#define METHOD_MAX_ARG_TYPE   ACPI_TYPE_PACKAGE

Definition at line 145 of file acpredef.h.

◆ METHOD_NO_RETURN_VALUE

#define METHOD_NO_RETURN_VALUE   0

Definition at line 160 of file acpredef.h.

◆ METHOD_PREDEF_ARGS_MAX

#define METHOD_PREDEF_ARGS_MAX   5

Definition at line 141 of file acpredef.h.

◆ METHOD_RETURNS

#define METHOD_RETURNS (   type)    (type)

Definition at line 159 of file acpredef.h.

◆ NUM_RESOURCE_WIDTHS

#define NUM_RESOURCE_WIDTHS   8

Definition at line 175 of file acpredef.h.

◆ PACKAGE_INFO

#define PACKAGE_INFO (   a,
  b,
  c,
  d,
  e,
  f 
)    {{{(a),(b),(c),(d)}, ((((UINT16)(f)) << 8) | (e)), 0}}

Definition at line 162 of file acpredef.h.

◆ VARIABLE_DATA

#define VARIABLE_DATA   0x0080

Definition at line 174 of file acpredef.h.

◆ WIDTH_1

#define WIDTH_1   0x0001

Definition at line 167 of file acpredef.h.

◆ WIDTH_16

#define WIDTH_16   0x0010

Definition at line 171 of file acpredef.h.

◆ WIDTH_2

#define WIDTH_2   0x0002

Definition at line 168 of file acpredef.h.

◆ WIDTH_3

#define WIDTH_3   0x0004

Definition at line 169 of file acpredef.h.

◆ WIDTH_32

#define WIDTH_32   0x0020

Definition at line 172 of file acpredef.h.

◆ WIDTH_64

#define WIDTH_64   0x0040

Definition at line 173 of file acpredef.h.

◆ WIDTH_8

#define WIDTH_8   0x0008

Definition at line 170 of file acpredef.h.

◆ WIDTH_ADDRESS

#define WIDTH_ADDRESS   WIDTH_16 | WIDTH_32 | WIDTH_64

Definition at line 177 of file acpredef.h.

Enumeration Type Documentation

◆ AcpiReturnPackageTypes

Enumerator
ACPI_PTYPE1_FIXED 
ACPI_PTYPE1_VAR 
ACPI_PTYPE1_OPTION 
ACPI_PTYPE2 
ACPI_PTYPE2_COUNT 
ACPI_PTYPE2_PKG_COUNT 
ACPI_PTYPE2_FIXED 
ACPI_PTYPE2_MIN 
ACPI_PTYPE2_REV_FIXED 
ACPI_PTYPE2_FIX_VAR 
ACPI_PTYPE2_VAR_VAR 
ACPI_PTYPE2_UUID_PAIR 
ACPI_PTYPE_CUSTOM 

Definition at line 121 of file acpredef.h.

Variable Documentation

◆ AcpiGbl_PredefinedMethods

const ACPI_PREDEFINED_INFO AcpiGbl_PredefinedMethods[]

◆ AcpiGbl_ResourceNames

const ACPI_PREDEFINED_INFO AcpiGbl_ResourceNames[]