summaryrefslogtreecommitdiffstats
path: root/include/hw/i2c
diff options
context:
space:
mode:
authorCorey Minyard2018-08-20 22:26:06 +0200
committerPaolo Bonzini2018-08-23 18:46:25 +0200
commite724385a7071483b95c3cc8a33d130f781daa217 (patch)
treebdfc43938cc97676fd6919685e4175530871a0b6 /include/hw/i2c
parenti2c: pm_smbus: Add block transfer capability (diff)
downloadqemu-e724385a7071483b95c3cc8a33d130f781daa217.tar.gz
qemu-e724385a7071483b95c3cc8a33d130f781daa217.tar.xz
qemu-e724385a7071483b95c3cc8a33d130f781daa217.zip
i2c: pm_smbus: Add interrupt handling
Add the necessary code so that interrupts actually work from the pm_smbus device. Signed-off-by: Corey Minyard <cminyard@mvista.com> Cc: Michael S. Tsirkin <mst@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1534796770-10295-7-git-send-email-minyard@acm.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/i2c')
-rw-r--r--include/hw/i2c/pm_smbus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/i2c/pm_smbus.h b/include/hw/i2c/pm_smbus.h
index 99d5489e1b..1afa3cfacd 100644
--- a/include/hw/i2c/pm_smbus.h
+++ b/include/hw/i2c/pm_smbus.h
@@ -23,6 +23,8 @@ typedef struct PMSMBus {
/* Set by the user. */
bool i2c_enable;
+ void (*set_irq)(struct PMSMBus *s, bool enabled);
+ void *opaque;
/* Internally used by pm_smbus. */