aboutsummaryrefslogtreecommitdiff
path: root/hw/omap.h
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-03 00:51:03 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-03 00:51:03 +0000
commit4a2c8ac2bc67d689bc7df130d3105af52fa36b18 (patch)
treef22ed9b0b182f5b865d9fe717bb2527b3653490d /hw/omap.h
parentf34c417ba63cd379ad7e1953bc3f520454601e27 (diff)
Initial OMAP I^2C controller implementation (communication not tested).
Correct an i2c_start_transfer comment. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3514 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/omap.h')
-rw-r--r--hw/omap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/omap.h b/hw/omap.h
index 0735fcc7e0..4b5b579736 100644
--- a/hw/omap.h
+++ b/hw/omap.h
@@ -475,6 +475,11 @@ struct omap_uwire_s *omap_uwire_init(target_phys_addr_t base,
void omap_uwire_attach(struct omap_uwire_s *s,
struct uwire_slave_s *slave, int chipselect);
+struct omap_i2c_s;
+struct omap_i2c_s *omap_i2c_init(target_phys_addr_t base,
+ qemu_irq irq, qemu_irq *dma, omap_clk clk);
+i2c_bus *omap_i2c_bus(struct omap_i2c_s *s);
+
/* omap_lcdc.c */
struct omap_lcd_panel_s;
void omap_lcdc_reset(struct omap_lcd_panel_s *s);
@@ -550,6 +555,8 @@ struct omap_mpu_state_s {
omap_clk clk;
} pwt;
+ struct omap_i2c_s *i2c;
+
/* MPU private TIPB peripherals */
struct omap_intr_handler_s *ih[2];