summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorJoshua Stein <jcs@cvs.openbsd.org>2019-03-16 02:40:44 +0000
committerJoshua Stein <jcs@cvs.openbsd.org>2019-03-16 02:40:44 +0000
commit900bce9fbf0e363afa46e0f581d1e16ea11182bf (patch)
tree3c1ca9c6f453002f473c4047ffca45b8acc4e635 /sys/dev/ic
parent8dbdf67c8a66140f39431162ac96988391560c96 (diff)
fetch timing parameters from ACPI like the ACPI attachment does
since those fetched from the controller may not be correct also attach on intel 300 series devices ok kettenis
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/dwiicvar.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/ic/dwiicvar.h b/sys/dev/ic/dwiicvar.h
index 92126f66b8b..1c2e3c5faf0 100644
--- a/sys/dev/ic/dwiicvar.h
+++ b/sys/dev/ic/dwiicvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwiicvar.h,v 1.2 2018/01/19 18:20:38 jcs Exp $ */
+/* $OpenBSD: dwiicvar.h,v 1.3 2019/03/16 02:40:43 jcs Exp $ */
/*
* Synopsys DesignWare I2C controller
*
@@ -34,6 +34,8 @@
#include <dev/ic/dwiicreg.h>
+#include "acpi.h"
+
/* #define DWIIC_DEBUG */
#ifdef DWIIC_DEBUG
@@ -99,4 +101,8 @@ void dwiic_write(struct dwiic_softc *, int, uint32_t);
int dwiic_i2c_exec(void *, i2c_op_t, i2c_addr_t, const void *,
size_t, void *, size_t, int);
-int dwiic_acpi_found_hid(struct aml_node *node, void *arg);
+#if NACPI > 0
+int dwiic_acpi_found_hid(struct aml_node *, void *);
+void dwiic_acpi_get_params(struct dwiic_softc *, char *, uint16_t *,
+ uint16_t *, uint32_t *);
+#endif