Use trap shell builtin to remove temporary files
[qemu/mini2440.git] / hw / sh.h
blob15c58cb91c7c35f37c8e967794e4c9c696232d61
1 #ifndef QEMU_SH_H
2 #define QEMU_SH_H
3 /* Definitions for SH board emulation. */
5 #include "sh_intc.h"
7 /* sh7750.c */
8 struct SH7750State;
10 struct SH7750State *sh7750_init(CPUState * cpu);
12 typedef struct {
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);
22 } sh7750_io_device;
24 int sh7750_register_io_device(struct SH7750State *s,
25 sh7750_io_device * device);
26 /* sh_timer.c */
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 qemu_irq ch0_irq, qemu_irq ch1_irq,
32 qemu_irq ch2_irq0, qemu_irq ch2_irq1);
35 /* sh_serial.c */
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,
39 qemu_irq eri_source,
40 qemu_irq rxi_source,
41 qemu_irq txi_source,
42 qemu_irq tei_source,
43 qemu_irq bri_source);
45 /* tc58128.c */
46 int tc58128_init(struct SH7750State *s, const char *zone1, const char *zone2);
48 #endif