aboutsummaryrefslogtreecommitdiff
path: root/include/hw/ide/mmio.h
blob: d726a49848f651dda52ba3227ba093cc61dadd1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * 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