mips.h (95a9457fd44ad97c518858a4e1586a5498f9773c) mips.h (acab36ca25101930b263dd9e8afd9b244354d338)
1#ifndef HW_MIPS_H
2#define HW_MIPS_H
3/* Definitions for mips board emulation. */
4
1#ifndef HW_MIPS_H
2#define HW_MIPS_H
3/* Definitions for mips board emulation. */
4
5#include "qemu/units.h"
6
5/* Kernels can be configured with 64KB pages */
7/* Kernels can be configured with 64KB pages */
6#define INITRD_PAGE_MASK (~((1 << 16) - 1))
8#define INITRD_PAGE_SIZE (64 * KiB)
7
8#include "exec/memory.h"
9
10/* gt64xxx.c */
11PCIBus *gt64120_register(qemu_irq *pic);
12
13/* bonito.c */
14PCIBus *bonito_init(qemu_irq *pic);
15
16/* rc4030.c */
17typedef struct rc4030DMAState *rc4030_dma;
18void rc4030_dma_read(void *dma, uint8_t *buf, int len);
19void rc4030_dma_write(void *dma, uint8_t *buf, int len);
20
21DeviceState *rc4030_init(rc4030_dma **dmas, IOMMUMemoryRegion **dma_mr);
22
23#endif
9
10#include "exec/memory.h"
11
12/* gt64xxx.c */
13PCIBus *gt64120_register(qemu_irq *pic);
14
15/* bonito.c */
16PCIBus *bonito_init(qemu_irq *pic);
17
18/* rc4030.c */
19typedef struct rc4030DMAState *rc4030_dma;
20void rc4030_dma_read(void *dma, uint8_t *buf, int len);
21void rc4030_dma_write(void *dma, uint8_t *buf, int len);
22
23DeviceState *rc4030_init(rc4030_dma **dmas, IOMMUMemoryRegion **dma_mr);
24
25#endif