3 /* Definitions for SH board emulation. */
10 struct SH7750State
*sh7750_init(CPUState
* cpu
);
13 /* The callback will be triggered if any of the designated lines change */
14 uint16_t portamask_trigger
;
15 uint16_t portbmask_trigger
;
16 /* Return 0 if no action was taken */
17 int (*port_change_cb
) (uint16_t porta
, uint16_t portb
,
18 uint16_t * periph_pdtra
,
19 uint16_t * periph_portdira
,
20 uint16_t * periph_pdtrb
,
21 uint16_t * periph_portdirb
);
24 int sh7750_register_io_device(struct SH7750State
*s
,
25 sh7750_io_device
* device
);
27 #define TMU012_FEAT_TOCR (1 << 0)
28 #define TMU012_FEAT_3CHAN (1 << 1)
29 #define TMU012_FEAT_EXTCLK (1 << 2)
30 void tmu012_init(target_phys_addr_t base
, int feat
, uint32_t freq
,
31 struct intc_source
*ch0_irq
, struct intc_source
*ch1_irq
,
32 struct intc_source
*ch2_irq0
, struct intc_source
*ch2_irq1
);
36 #define SH_SERIAL_FEAT_SCIF (1 << 0)
37 void sh_serial_init (target_phys_addr_t base
, int feat
,
38 uint32_t freq
, CharDriverState
*chr
);
41 int tc58128_init(struct SH7750State
*s
, char *zone1
, char *zone2
);