]>
Commit | Line | Data |
---|---|---|
87ecb68b PB |
1 | #ifndef QEMU_SH_H |
2 | #define QEMU_SH_H | |
3 | /* Definitions for SH board emulation. */ | |
4 | ||
5 | /* sh7750.c */ | |
6 | struct SH7750State; | |
7 | ||
8 | struct SH7750State *sh7750_init(CPUState * cpu); | |
9 | ||
10 | typedef 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 | ||
22 | int 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) | |
28 | void tmu012_init(uint32_t base, int feat, uint32_t freq); | |
29 | ||
30 | /* sh_serial.c */ | |
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); | |
34 | ||
35 | /* tc58128.c */ | |
36 | int tc58128_init(struct SH7750State *s, char *zone1, char *zone2); | |
37 | ||
38 | #endif |