/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright(c) 2023 Huawei * CXL Specification rev 3.0 Setion 8.2.7 (CPMU Register Interface) */ #ifndef CXL_PMU_H #define CXL_PMU_H #include <linux/device.h> enum cxl_pmu_type { … }; #define CXL_PMU_REGMAP_SIZE … struct cxl_pmu { … }; #define to_cxl_pmu(dev) … struct cxl_pmu_regs; int devm_cxl_pmu_add(struct device *parent, struct cxl_pmu_regs *regs, int assoc_id, int idx, enum cxl_pmu_type type); #endif