]> git.proxmox.com Git - qemu.git/blame - hw/sh.h
sh_serial: enable tx after reset (Magnus Damm).
[qemu.git] / hw / sh.h
CommitLineData
87ecb68b
PB
1#ifndef QEMU_SH_H
2#define QEMU_SH_H
3/* Definitions for SH board emulation. */
4
5/* sh7750.c */
6struct SH7750State;
7
8struct SH7750State *sh7750_init(CPUState * cpu);
9
10typedef struct {
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);
20} sh7750_io_device;
21
22int sh7750_register_io_device(struct SH7750State *s,
23 sh7750_io_device * device);
24/* sh_timer.c */
25#define TMU012_FEAT_TOCR (1 << 0)
26#define TMU012_FEAT_3CHAN (1 << 1)
27#define TMU012_FEAT_EXTCLK (1 << 2)
28void tmu012_init(uint32_t base, int feat, uint32_t freq);
29
30/* sh_serial.c */
31#define SH_SERIAL_FEAT_SCIF (1 << 0)
32void sh_serial_init (target_phys_addr_t base, int feat,
33 uint32_t freq, CharDriverState *chr);
34
35/* tc58128.c */
36int tc58128_init(struct SH7750State *s, char *zone1, char *zone2);
37
38#endif