diff options
author | msmith <msmith@FreeBSD.org> | 2000-12-21 06:56:46 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2000-12-21 06:56:46 +0000 |
commit | 68d9171019852e7a4325965a2539a5a2eb7571da (patch) | |
tree | 2458e6231a59dcc15edb1bbd6f34f1d68982dc76 /sys/contrib/dev/acpica/acmacros.h | |
parent | f4b6d0429cccf6d1c0e3d90a616abbeacd13ad15 (diff) | |
download | FreeBSD-src-68d9171019852e7a4325965a2539a5a2eb7571da.zip FreeBSD-src-68d9171019852e7a4325965a2539a5a2eb7571da.tar.gz |
Update to the Intel 20001215 ACPI CA snapshot.
Diffstat (limited to 'sys/contrib/dev/acpica/acmacros.h')
-rw-r--r-- | sys/contrib/dev/acpica/acmacros.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/sys/contrib/dev/acpica/acmacros.h b/sys/contrib/dev/acpica/acmacros.h index 2cfcf11..5ecb027 100644 --- a/sys/contrib/dev/acpica/acmacros.h +++ b/sys/contrib/dev/acpica/acmacros.h @@ -1,7 +1,7 @@ /****************************************************************************** * * Name: acmacros.h - C macros for the entire subsystem. - * $Revision: 56 $ + * $Revision: 59 $ * *****************************************************************************/ @@ -9,8 +9,8 @@ * * 1. Copyright Notice * - * Some or all of this work - Copyright (c) 1999, Intel Corp. All rights - * reserved. + * Some or all of this work - Copyright (c) 1999, 2000, Intel Corp. + * All rights reserved. * * 2. License * @@ -154,6 +154,15 @@ #define HI_LIMIT(b) ((UINT8) (((b) & 0x00FF0000) >> 16)) +#ifdef _IA16 +#define ACPI_GET_ADDRESS(a) ((a).Lo) +#define ACPI_STORE_ADDRESS(a,b) {(a).Hi=0;(a).Lo=(b);} +#define ACPI_VALID_ADDRESS(a) ((a).Hi && (a).Lo) +#else +#define ACPI_GET_ADDRESS(a) (a) +#define ACPI_STORE_ADDRESS(a,b) ((a)=(b)) +#define ACPI_VALID_ADDRESS(a) (a) +#endif /* * Extract a byte of data using a pointer. Any more than a byte and we * get into potential aligment issues -- see the STORE macros below @@ -258,9 +267,16 @@ #define ACPI_PCI_FUNCTION(a) (UINT32) ((((a) & ACPI_PCI_FUNCTION_MASK) >> 16)) #define ACPI_PCI_DEVICE(a) (UINT32) ((((a) & ACPI_PCI_DEVICE_MASK) >> 32)) + +#ifndef _IA16 #define ACPI_PCI_REGISTER(a) (UINT32) (((a) & ACPI_PCI_REGISTER_MASK)) #define ACPI_PCI_DEVFUN(a) (UINT32) ((ACPI_PCI_DEVICE(a) << 16) | ACPI_PCI_FUNCTION(a)) +#else +#define ACPI_PCI_REGISTER(a) (UINT32) (((a) & 0x0000FFFF)) +#define ACPI_PCI_DEVFUN(a) (UINT32) ((((a) & 0xFFFF0000) >> 16)) + +#endif /* * An ACPI_HANDLE (which is actually an ACPI_NAMESPACE_NODE *) can appear in some contexts, |