Revision 2c1d9ecb hw/omap.h

b/hw/omap.h
61 61
int64_t omap_clk_getrate(omap_clk clk);
62 62
void omap_clk_reparent(omap_clk clk, omap_clk parent);
63 63

  
64
/* omap[123].c */
64
/* OMAP2 l4 Interconnect */
65 65
struct omap_l4_s;
66
struct omap_l4_region_s {
67
    target_phys_addr_t offset;
68
    size_t size;
69
    int access;
70
};
71
struct omap_l4_agent_info_s {
72
    int ta;
73
    int region;
74
    int regions;
75
    int ta_region;
76
};
77
struct omap_target_agent_s {
78
    struct omap_l4_s *bus;
79
    int regions;
80
    const struct omap_l4_region_s *start;
81
    target_phys_addr_t base;
82
    uint32_t component;
83
    uint32_t control;
84
    uint32_t status;
85
};
66 86
struct omap_l4_s *omap_l4_init(target_phys_addr_t base, int ta_num);
67 87

  
68 88
struct omap_target_agent_s;
69
struct omap_target_agent_s *omap_l4ta_get(struct omap_l4_s *bus, int cs);
89
struct omap_target_agent_s *omap_l4ta_get(
90
    struct omap_l4_s *bus,
91
    const struct omap_l4_region_s *regions,
92
    const struct omap_l4_agent_info_s *agents,
93
    int cs);
70 94
target_phys_addr_t omap_l4_attach(struct omap_target_agent_s *ta, int region,
71 95
                int iotype);
72
# define l4_register_io_memory	cpu_register_io_memory
96
int l4_register_io_memory(CPUReadMemoryFunc * const *mem_read,
97
                CPUWriteMemoryFunc * const *mem_write, void *opaque);
73 98

  
74 99
/* OMAP interrupt controller */
75 100
struct omap_intr_handler_s;
......
1146 1171
/* Define when we want to reduce the number of IO regions registered.  */
1147 1172
/*# define L4_MUX_HACK*/
1148 1173

  
1149
# ifdef L4_MUX_HACK
1150
#  undef l4_register_io_memory
1151
int l4_register_io_memory(CPUReadMemoryFunc * const *mem_read,
1152
                          CPUWriteMemoryFunc * const *mem_write, void *opaque);
1153
# endif
1154

  
1155 1174
#endif /* hw_omap_h */

Also available in: Unified diff