1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 #ifndef SOC_MEDIATEK_PCIE_COMMON_H 4 #define SOC_MEDIATEK_PCIE_COMMON_H 5 6 #include <device/device.h> 7 #include <types.h> 8 9 struct mtk_pcie_mmio_res { 10 uint32_t cpu_addr; 11 uint32_t pci_addr; 12 uint32_t size; 13 unsigned long type; 14 }; 15 16 struct mtk_pcie_config { 17 uintptr_t base; /* MAC physical address */ 18 const struct mtk_pcie_mmio_res mmio_res_io; 19 const struct mtk_pcie_mmio_res mmio_res_mem; 20 }; 21 22 void mtk_pcie_domain_read_resources(struct device *dev); 23 void mtk_pcie_domain_set_resources(struct device *dev); 24 void mtk_pcie_domain_enable(struct device *dev); 25 26 #endif 27