diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-01-13 10:25:32 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-01-13 10:25:32 +0000 |
commit | b169986d816056d0c94287e92d0a5140b5fd6f90 (patch) | |
tree | b53fa00a1fd5c66e3e734841e042c5eacd4d95c9 /sys/dev/i2c/ihidev.h | |
parent | a0bff336b62d3a47c1600f5a64346f905f41764d (diff) |
Don't confuse the HID descriptor address (which really is an office into the
register space of the i2c device) with the i2c address. For i2c busses
enumerated by ACPI we get the address from the I2C Serial Bus Connection
Resource Descriptor returned by the _CRS methide of the i2c device. Pass the
HID descriptor address in the ia_size member.
ok jcs@
Diffstat (limited to 'sys/dev/i2c/ihidev.h')
-rw-r--r-- | sys/dev/i2c/ihidev.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/i2c/ihidev.h b/sys/dev/i2c/ihidev.h index d65498735cd..47c0e153c11 100644 --- a/sys/dev/i2c/ihidev.h +++ b/sys/dev/i2c/ihidev.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ihidev.h,v 1.1 2016/01/12 01:11:15 jcs Exp $ */ +/* $OpenBSD: ihidev.h,v 1.2 2016/01/13 10:25:31 kettenis Exp $ */ /* * HID-over-i2c driver * @@ -71,6 +71,7 @@ struct ihidev_softc { i2c_addr_t sc_addr; void *sc_ih; + u_int sc_hid_desc_addr; union { uint8_t hid_desc_buf[sizeof(struct i2c_hid_desc)]; struct i2c_hid_desc hid_desc; |