 01c43405d6
			
		
	
	
		01c43405d6
		
	
	
	
	
		
			
			"hw/ide.h" is a mixed bag of lost IDE declarations. Extract mmio_ide_init_drives() and the TYPE_MMIO_IDE QOM declarations to a new "hw/ide/mmio.h" header. Document the SysBus interface. Message-Id: <20230215112712.23110-4-philmd@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
		
			
				
	
	
		
			27 lines
		
	
	
		
			586 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			586 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * QEMU IDE Emulation: mmio support (for embedded).
 | |
|  *
 | |
|  * Copyright (c) 2003 Fabrice Bellard
 | |
|  * Copyright (c) 2006 Openedhand Ltd.
 | |
|  *
 | |
|  * SPDX-License-Identifier: MIT
 | |
|  */
 | |
| 
 | |
| #ifndef HW_IDE_MMIO_H
 | |
| #define HW_IDE_MMIO_H
 | |
| 
 | |
| #include "qom/object.h"
 | |
| 
 | |
| /*
 | |
|  * QEMU interface:
 | |
|  *  + sysbus IRQ 0: asserted by the IDE channel
 | |
|  *  + sysbus MMIO region 0: data registers
 | |
|  *  + sysbus MMIO region 1: status & control registers
 | |
|  */
 | |
| #define TYPE_MMIO_IDE "mmio-ide"
 | |
| OBJECT_DECLARE_SIMPLE_TYPE(MMIOIDEState, MMIO_IDE)
 | |
| 
 | |
| void mmio_ide_init_drives(DeviceState *dev, DriveInfo *hd0, DriveInfo *hd1);
 | |
| 
 | |
| #endif
 |