fbb5945e85
Keep "hw/ide/ahci.h" AHCI-generic. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <20240213081201.78951-10-philmd@linaro.org>
36 lines
738 B
C
36 lines
738 B
C
/*
|
|
* QEMU AHCI Emulation (MMIO-mapped devices)
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
#ifndef HW_IDE_AHCI_SYSBUS_H
|
|
#define HW_IDE_AHCI_SYSBUS_H
|
|
|
|
#include "qom/object.h"
|
|
#include "hw/sysbus.h"
|
|
#include "hw/ide/ahci.h"
|
|
|
|
#define TYPE_SYSBUS_AHCI "sysbus-ahci"
|
|
OBJECT_DECLARE_SIMPLE_TYPE(SysbusAHCIState, SYSBUS_AHCI)
|
|
|
|
struct SysbusAHCIState {
|
|
SysBusDevice parent_obj;
|
|
|
|
AHCIState ahci;
|
|
};
|
|
|
|
#define TYPE_ALLWINNER_AHCI "allwinner-ahci"
|
|
OBJECT_DECLARE_SIMPLE_TYPE(AllwinnerAHCIState, ALLWINNER_AHCI)
|
|
|
|
#define ALLWINNER_AHCI_MMIO_OFF 0x80
|
|
#define ALLWINNER_AHCI_MMIO_SIZE 0x80
|
|
|
|
struct AllwinnerAHCIState {
|
|
SysbusAHCIState parent_obj;
|
|
|
|
MemoryRegion mmio;
|
|
uint32_t regs[ALLWINNER_AHCI_MMIO_SIZE / 4];
|
|
};
|
|
|
|
#endif
|