Files
Yaya48 cf256aa081 Import QEMU upstream snapshot d2e570c
Upstream: https://gitlab.com/qemu-project/qemu.git

Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
2026-08-31 02:15:30 +02:00

38 lines
826 B
C

/*
* ASPEED I3C Controller
*
* Copyright (C) 2021 ASPEED Technology Inc.
* Copyright (C) 2023 Google, LLC
*
* This code is licensed under the GPL version 2 or later. See
* the COPYING file in the top-level directory.
*/
#ifndef ASPEED_I3C_H
#define ASPEED_I3C_H
#include "hw/i3c/dw-i3c.h"
#include "hw/core/sysbus.h"
#define TYPE_ASPEED_I3C "aspeed.i3c"
OBJECT_DECLARE_TYPE(AspeedI3CState, AspeedI3CClass, ASPEED_I3C)
#define ASPEED_I3C_NR_REGS (0x70 >> 2)
#define ASPEED_I3C_NR_DEVICES 6
struct AspeedI3CState {
SysBusDevice parent_obj;
MemoryRegion iomem;
MemoryRegion iomem_container;
qemu_irq irq;
uint32_t regs[ASPEED_I3C_NR_REGS];
DWI3C devices[ASPEED_I3C_NR_DEVICES];
uint8_t id;
};
I3CBus *aspeed_i3c_get_bus(AspeedI3CState *s, uint8_t bus_num);
#endif /* ASPEED_I3C_H */