diff options
Diffstat (limited to 'source/include/actypes.h')
| -rw-r--r-- | source/include/actypes.h | 26 | 
1 files changed, 23 insertions, 3 deletions
| diff --git a/source/include/actypes.h b/source/include/actypes.h index 611c41836af4..f28a7a4d3eb7 100644 --- a/source/include/actypes.h +++ b/source/include/actypes.h @@ -295,7 +295,7 @@ typedef UINT32                          ACPI_PHYSICAL_ADDRESS;  /*   * Some compilers complain about unused variables. Sometimes we don't want to   * use all the variables (for example, _AcpiModuleName). This allows us - * to to tell the compiler in a per-variable manner that a variable + * to tell the compiler in a per-variable manner that a variable   * is unused   */  #ifndef ACPI_UNUSED_VAR @@ -346,7 +346,7 @@ typedef UINT32                          ACPI_PHYSICAL_ADDRESS;  /* PM Timer ticks per second (HZ) */ -#define PM_TIMER_FREQUENCY              3579545 +#define ACPI_PM_TIMER_FREQUENCY         3579545  /******************************************************************************* @@ -381,6 +381,22 @@ typedef char *                          ACPI_STRING;    /* Null terminated ASCII  typedef void *                          ACPI_HANDLE;    /* Actually a ptr to a NS Node */ +/* Time constants for timer calculations */ + +#define ACPI_MSEC_PER_SEC               1000L + +#define ACPI_USEC_PER_MSEC              1000L +#define ACPI_USEC_PER_SEC               1000000L + +#define ACPI_100NSEC_PER_USEC           10L +#define ACPI_100NSEC_PER_MSEC           10000L +#define ACPI_100NSEC_PER_SEC            10000000L + +#define ACPI_NSEC_PER_USEC              1000L +#define ACPI_NSEC_PER_MSEC              1000000L +#define ACPI_NSEC_PER_SEC               1000000000L + +  /* Owner IDs are used to track namespace nodes for selective deletion */  typedef UINT8                           ACPI_OWNER_ID; @@ -596,7 +612,7 @@ typedef UINT32                          ACPI_OBJECT_TYPE;  /*   * These are special object types that never appear in - * a Namespace node, only in an ACPI_OPERAND_OBJECT + * a Namespace node, only in an object of ACPI_OPERAND_OBJECT   */  #define ACPI_TYPE_LOCAL_EXTRA           0x1C  #define ACPI_TYPE_LOCAL_DATA            0x1D @@ -904,6 +920,10 @@ typedef struct acpi_buffer  } ACPI_BUFFER; +/* Free a buffer created in an ACPI_BUFFER via ACPI_ALLOCATE_LOCAL_BUFFER */ + +#define ACPI_FREE_BUFFER(b)         ACPI_FREE(b.Pointer) +  /*   * NameType for AcpiGetName | 
