summaryrefslogtreecommitdiff
path: root/source/include/acbuffer.h
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2014-11-10 21:30:04 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2014-11-10 21:30:04 +0000
commite8991236d498c9646c20a8acf0236cf3342dad6f (patch)
treeb4bd3052883fca1145eaa389311d46371584f6d9 /source/include/acbuffer.h
parentd4e301bc21b6911ed7f5d6a86659c4882fa7ab55 (diff)
Notes
Diffstat (limited to 'source/include/acbuffer.h')
-rw-r--r--source/include/acbuffer.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/source/include/acbuffer.h b/source/include/acbuffer.h
index a36a980aa954..1adb4b125e7c 100644
--- a/source/include/acbuffer.h
+++ b/source/include/acbuffer.h
@@ -119,7 +119,9 @@ typedef struct acpi_pld_info
{
UINT8 Revision;
UINT8 IgnoreColor;
- UINT32 Color;
+ UINT8 Red;
+ UINT8 Green;
+ UINT8 Blue;
UINT16 Width;
UINT16 Height;
UINT8 UserVisible;
@@ -165,8 +167,14 @@ typedef struct acpi_pld_info
#define ACPI_PLD_GET_IGNORE_COLOR(dword) ACPI_GET_BITS (dword, 7, ACPI_1BIT_MASK)
#define ACPI_PLD_SET_IGNORE_COLOR(dword,value) ACPI_SET_BITS (dword, 7, ACPI_1BIT_MASK, value) /* Offset 7, Len 1 */
-#define ACPI_PLD_GET_COLOR(dword) ACPI_GET_BITS (dword, 8, ACPI_24BIT_MASK)
-#define ACPI_PLD_SET_COLOR(dword,value) ACPI_SET_BITS (dword, 8, ACPI_24BIT_MASK, value) /* Offset 8, Len 24 */
+#define ACPI_PLD_GET_RED(dword) ACPI_GET_BITS (dword, 8, ACPI_8BIT_MASK)
+#define ACPI_PLD_SET_RED(dword,value) ACPI_SET_BITS (dword, 8, ACPI_8BIT_MASK, value) /* Offset 8, Len 8 */
+
+#define ACPI_PLD_GET_GREEN(dword) ACPI_GET_BITS (dword, 16, ACPI_8BIT_MASK)
+#define ACPI_PLD_SET_GREEN(dword,value) ACPI_SET_BITS (dword, 16, ACPI_8BIT_MASK, value) /* Offset 16, Len 8 */
+
+#define ACPI_PLD_GET_BLUE(dword) ACPI_GET_BITS (dword, 24, ACPI_8BIT_MASK)
+#define ACPI_PLD_SET_BLUE(dword,value) ACPI_SET_BITS (dword, 24, ACPI_8BIT_MASK, value) /* Offset 24, Len 8 */
/* Second 32-bit dword, bits 33:63 */