| 1 | /* |
| 2 | * i.MX8 PCIe PHY emulation |
| 3 | * |
| 4 | * Copyright (c) 2025 Bernhard Beschow <shentey@gmail.com> |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 7 | */ |
| 8 | |
| 9 | #ifndef HW_PCIHOST_FSLIMX8MPCIEPHY_H |
| 10 | #define HW_PCIHOST_FSLIMX8MPCIEPHY_H |
| 11 | |
| 12 | #include "hw/core/sysbus.h" |
| 13 | #include "qom/object.h" |
| 14 | #include "system/memory.h" |
| 15 | |
| 16 | #define TYPE_FSL_IMX8M_PCIE_PHY "fsl-imx8m-pcie-phy" |
| 17 | OBJECT_DECLARE_SIMPLE_TYPE(FslImx8mPciePhyState, FSL_IMX8M_PCIE_PHY) |
| 18 | |
| 19 | #define FSL_IMX8M_PCIE_PHY_DATA_SIZE 0x800 |
| 20 | |
| 21 | struct FslImx8mPciePhyState { |
| 22 | SysBusDevice parent_obj; |
| 23 | |
| 24 | MemoryRegion iomem; |
| 25 | uint8_t data[FSL_IMX8M_PCIE_PHY_DATA_SIZE]; |
| 26 | }; |
| 27 | |
| 28 | #endif |