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