pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 1 | #ifndef HW_MIPS_H |
| 2 | #define HW_MIPS_H |
| 3 | /* Definitions for mips board emulation. */ |
| 4 | |
| 5 | /* gt64xxx.c */ |
| 6 | PCIBus *pci_gt64120_init(qemu_irq *pic); |
| 7 | |
| 8 | /* ds1225y.c */ |
aurel32 | 02cb158 | 2008-03-13 19:23:00 +0000 | [diff] [blame] | 9 | void *ds1225y_init(target_phys_addr_t mem_base, const char *filename); |
| 10 | void ds1225y_set_protection(void *opaque, int protection); |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 11 | |
aurel32 | 4ce7ff6 | 2008-04-07 19:47:14 +0000 | [diff] [blame] | 12 | /* g364fb.c */ |
Paul Brook | fbe1b59 | 2009-05-13 17:56:25 +0100 | [diff] [blame] | 13 | int g364fb_mm_init(target_phys_addr_t vram_base, |
aurel32 | 0add30c | 2009-01-16 21:13:58 +0000 | [diff] [blame] | 14 | target_phys_addr_t ctrl_base, int it_shift, |
| 15 | qemu_irq irq); |
aurel32 | 4ce7ff6 | 2008-04-07 19:47:14 +0000 | [diff] [blame] | 16 | |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 17 | /* mipsnet.c */ |
| 18 | void mipsnet_init(int base, qemu_irq irq, NICInfo *nd); |
| 19 | |
| 20 | /* jazz_led.c */ |
aliguori | 3023f33 | 2009-01-16 19:04:14 +0000 | [diff] [blame] | 21 | extern void jazz_led_init(target_phys_addr_t base); |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 22 | |
| 23 | /* mips_int.c */ |
| 24 | extern void cpu_mips_irq_init_cpu(CPUState *env); |
| 25 | |
| 26 | /* mips_timer.c */ |
| 27 | extern void cpu_mips_clock_init(CPUState *); |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 28 | |
aurel32 | 4ce7ff6 | 2008-04-07 19:47:14 +0000 | [diff] [blame] | 29 | /* rc4030.c */ |
aurel32 | c6945b1 | 2009-01-01 13:03:36 +0000 | [diff] [blame] | 30 | typedef struct rc4030DMAState *rc4030_dma; |
aurel32 | 68238a9 | 2009-04-10 21:26:55 +0000 | [diff] [blame] | 31 | void rc4030_dma_memory_rw(void *opaque, target_phys_addr_t addr, uint8_t *buf, int len, int is_write); |
| 32 | void rc4030_dma_read(void *dma, uint8_t *buf, int len); |
| 33 | void rc4030_dma_write(void *dma, uint8_t *buf, int len); |
| 34 | |
| 35 | void *rc4030_init(qemu_irq timer, qemu_irq jazz_bus, |
| 36 | qemu_irq **irqs, rc4030_dma **dmas); |
aurel32 | 4ce7ff6 | 2008-04-07 19:47:14 +0000 | [diff] [blame] | 37 | |
aurel32 | a65f56e | 2009-04-15 14:57:54 +0000 | [diff] [blame] | 38 | /* dp8393x.c */ |
| 39 | void dp83932_init(NICInfo *nd, target_phys_addr_t base, int it_shift, |
| 40 | qemu_irq irq, void* mem_opaque, |
| 41 | void (*memory_rw)(void *opaque, target_phys_addr_t addr, uint8_t *buf, int len, int is_write)); |
| 42 | |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 43 | #endif |