diff options
author | 2016-01-13 10:11:43 +0000 | |
---|---|---|
committer | 2016-01-13 10:11:43 +0000 | |
commit | 93923c0f930b554a52044f27cf5220089d3037fc (patch) | |
tree | 933dbc8d64d9b70d68869754faa88b96eb3c5b5c | |
parent | Implement VFS read clustering for MSDOSFS. (diff) | |
download | wireguard-openbsd-93923c0f930b554a52044f27cf5220089d3037fc.tar.xz wireguard-openbsd-93923c0f930b554a52044f27cf5220089d3037fc.zip |
Add data structures and defines for Generic and I2C Serial Bus Connection
descriptors.
ok jcs@
-rw-r--r-- | sys/dev/acpi/dsdt.h | 30 |
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; |