1/******************************************************************************
2 *
3 * Name: acmacros.h - C macros for the entire subsystem.
4 * $Revision: 150 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp.
--- 108 unchanged lines hidden (view full) ---
121/*
122 * Data manipulation macros
123 */
124#define ACPI_LOWORD(l) ((UINT16)(UINT32)(l))
125#define ACPI_HIWORD(l) ((UINT16)((((UINT32)(l)) >> 16) & 0xFFFF))
126#define ACPI_LOBYTE(l) ((UINT8)(UINT16)(l))
127#define ACPI_HIBYTE(l) ((UINT8)((((UINT16)(l)) >> 8) & 0xFF))
128
129
130#if ACPI_MACHINE_WIDTH == 16
131
132/*
133 * For 16-bit addresses, we have to assume that the upper 32 bits
134 * are zero.
135 */
136#define ACPI_LODWORD(l) ((UINT32)(l))
137#define ACPI_HIDWORD(l) ((UINT32)(0))
--- 620 unchanged lines hidden ---
2 *
3 * Name: acmacros.h - C macros for the entire subsystem.
4 * $Revision: 150 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp.
--- 108 unchanged lines hidden (view full) ---
121/*
122 * Data manipulation macros
123 */
124#define ACPI_LOWORD(l) ((UINT16)(UINT32)(l))
125#define ACPI_HIWORD(l) ((UINT16)((((UINT32)(l)) >> 16) & 0xFFFF))
126#define ACPI_LOBYTE(l) ((UINT8)(UINT16)(l))
127#define ACPI_HIBYTE(l) ((UINT8)((((UINT16)(l)) >> 8) & 0xFF))
128
129
130#if ACPI_MACHINE_WIDTH == 16
131
132/*
133 * For 16-bit addresses, we have to assume that the upper 32 bits
134 * are zero.
135 */
136#define ACPI_LODWORD(l) ((UINT32)(l))
137#define ACPI_HIDWORD(l) ((UINT32)(0))
--- 620 unchanged lines hidden ---