summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2016-01-13 10:11:44 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2016-01-13 10:11:44 +0000
commita0bff336b62d3a47c1600f5a64346f905f41764d (patch)
tree163c7a7e8716e4ccde0094e4ea142851a15cd3fa /sys/dev
parent59c08c8cfddb41238676fa0d0c81581d6371dacf (diff)
Add data structures and defines for Generic and I2C Serial Bus Connection
descriptors. ok jcs@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/dsdt.h30
1 files changed, 29 insertions, 1 deletions
diff --git a/sys/dev/acpi/dsdt.h b/sys/dev/acpi/dsdt.h
index c1e1090038f..8f04ef2ad23 100644
--- a/sys/dev/acpi/dsdt.h
+++ b/sys/dev/acpi/dsdt.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsdt.h,v 1.65 2016/01/09 10:50:43 kettenis Exp $ */
+/* $OpenBSD: dsdt.h,v 1.66 2016/01/13 10:11:43 kettenis Exp $ */
/*
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
*
@@ -103,6 +103,7 @@ const char *aml_nodename(struct aml_node *);
#define LR_WORD 0x88
#define LR_EXTIRQ 0x89
#define LR_QWORD 0x8A
+#define LR_SERBUS 0x8E
#define __amlflagbit(v,s,l)
union acpi_resource {
@@ -225,6 +226,33 @@ union acpi_resource {
uint8_t src_index;
char src[1];
} __packed lr_qword;
+ struct {
+ uint8_t typecode;
+ uint16_t length;
+ uint8_t revid;
+ uint8_t residx;
+ uint8_t type;
+#define LR_SERBUS_I2C 1
+ uint8_t flags;
+ uint16_t tflags;
+ uint8_t trevid;
+ uint16_t tlength;
+ uint8_t tdata[1];
+ } __packed lr_serbus;
+ struct {
+ uint8_t typecode;
+ uint16_t length;
+ uint8_t revid;
+ uint8_t residx;
+ uint8_t type;
+ uint8_t flags;
+ uint16_t tflags;
+ uint8_t trevid;
+ uint16_t tlength;
+ uint32_t _spe;
+ uint16_t _adr;
+ uint8_t vdata[1];
+ } __packed lr_i2cbus;
uint8_t pad[64];
} __packed;