1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright(c) 2023 Huawei
4 * CXL Specification rev 3.0 Setion 8.2.7 (CPMU Register Interface)
8 #include <linux/device.h>
14 #define CXL_PMU_REGMAP_SIZE 0xe00 /* Table 8-32 CXL 3.0 specification */
20 enum cxl_pmu_type type
;
23 #define to_cxl_pmu(dev) container_of(dev, struct cxl_pmu, dev)
25 int devm_cxl_pmu_add(struct device
*parent
, struct cxl_pmu_regs
*regs
,
26 int assoc_id
, int idx
, enum cxl_pmu_type type
);