Now that gt64120_register() lost its pic parameter, there is an opportunity to remove it. gt64120_register() is old style by wrapping qdev API, and the new style is to use qdev directly. So take the opportunity and modernize the code. Suggested-by: BALATON Zoltan <balaton@eik.bme.hu> Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu> Message-Id: <20220217101924.15347-8-shentey@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
		
			
				
	
	
		
			23 lines
		
	
	
		
			523 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			523 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef HW_MIPS_H
 | |
| #define HW_MIPS_H
 | |
| /* Definitions for mips board emulation.  */
 | |
| 
 | |
| #include "qemu/units.h"
 | |
| 
 | |
| /* Kernels can be configured with 64KB pages */
 | |
| #define INITRD_PAGE_SIZE (64 * KiB)
 | |
| 
 | |
| #include "exec/memory.h"
 | |
| 
 | |
| /* bonito.c */
 | |
| PCIBus *bonito_init(qemu_irq *pic);
 | |
| 
 | |
| /* rc4030.c */
 | |
| typedef struct rc4030DMAState *rc4030_dma;
 | |
| void rc4030_dma_read(void *dma, uint8_t *buf, int len);
 | |
| void rc4030_dma_write(void *dma, uint8_t *buf, int len);
 | |
| 
 | |
| DeviceState *rc4030_init(rc4030_dma **dmas, IOMMUMemoryRegion **dma_mr);
 | |
| 
 | |
| #endif
 |