aboutsummaryrefslogtreecommitdiff
path: root/include/chip.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-11-12 15:44:33 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-11-12 16:41:25 +1100
commit0859f799583daa5fac57ab3f9a1175aae4de3252 (patch)
treeae5f70cd26f3ecd13e9b44003be1ae2375797260 /include/chip.h
parenteec6e53ff88c0cb82f3624642390793cc0f8e3ce (diff)
downloadskiboot-0859f799583daa5fac57ab3f9a1175aae4de3252.zip
skiboot-0859f799583daa5fac57ab3f9a1175aae4de3252.tar.gz
skiboot-0859f799583daa5fac57ab3f9a1175aae4de3252.tar.bz2
i2c: Use new timer facility and improve interrupts handling
We only poll the masters for the chip that got the interrupt and we improve the running of the timers as well. We user the new TIMER_POLL facility to replace the use of the OPAL poller, which simplifies the code further. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/chip.h')
-rw-r--r--include/chip.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/chip.h b/include/chip.h
index 10623e6..fb2771e 100644
--- a/include/chip.h
+++ b/include/chip.h
@@ -20,6 +20,8 @@
#include <stdint.h>
#include <lock.h>
+#include <ccan/list/list.h>
+
/*
* Note on chip IDs:
*
@@ -132,6 +134,9 @@ struct proc_chip {
/* Used by hw/centaur.c */
struct centaur_chip *centaurs;
+
+ /* Used by hw/p8-i2c.c */
+ struct list_head i2cms;
};
extern uint32_t pir_to_chip_id(uint32_t pir);