xref: /openbmc/qemu/include/hw/ide/mmio.h (revision 2e1cacfb)
1 /*
2  * QEMU IDE Emulation: mmio support (for embedded).
3  *
4  * Copyright (c) 2003 Fabrice Bellard
5  * Copyright (c) 2006 Openedhand Ltd.
6  *
7  * SPDX-License-Identifier: MIT
8  */
9 
10 #ifndef HW_IDE_MMIO_H
11 #define HW_IDE_MMIO_H
12 
13 #include "qom/object.h"
14 
15 /*
16  * QEMU interface:
17  *  + sysbus IRQ 0: asserted by the IDE channel
18  *  + sysbus MMIO region 0: data registers
19  *  + sysbus MMIO region 1: status & control registers
20  */
21 #define TYPE_MMIO_IDE "mmio-ide"
22 OBJECT_DECLARE_SIMPLE_TYPE(MMIOIDEState, MMIO_IDE)
23 
24 void mmio_ide_init_drives(DeviceState *dev, DriveInfo *hd0, DriveInfo *hd1);
25 
26 #endif
27