|
@@ -554,6 +554,13 @@ typedef u64 acpi_integer;
|
|
|
#define ACPI_VALIDATE_RSDP_SIG(a) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_SIG_RSDP, 8))
|
|
|
#define ACPI_MAKE_RSDP_SIG(dest) (memcpy (ACPI_CAST_PTR (char, (dest)), ACPI_SIG_RSDP, 8))
|
|
|
|
|
|
+/*
|
|
|
+ * Algorithm to obtain access bit width.
|
|
|
+ * Can be used with access_width of struct acpi_generic_address and access_size of
|
|
|
+ * struct acpi_resource_generic_register.
|
|
|
+ */
|
|
|
+#define ACPI_ACCESS_BIT_WIDTH(size) (1 << ((size) + 2))
|
|
|
+
|
|
|
/*******************************************************************************
|
|
|
*
|
|
|
* Miscellaneous constants
|