hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/x86/include/asm/intel_telemetry.h
....@@ -1,23 +1,16 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Intel SOC Telemetry Driver Header File
34 * Copyright (C) 2015, Intel Corporation.
45 * All Rights Reserved.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms and conditions of the GNU General Public License,
8
- * version 2, as published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope it will be useful, but WITHOUT
11
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
- * more details.
14
- *
156 */
167 #ifndef INTEL_TELEMETRY_H
178 #define INTEL_TELEMETRY_H
189
1910 #define TELEM_MAX_EVENTS_SRAM 28
2011 #define TELEM_MAX_OS_ALLOCATED_EVENTS 20
12
+
13
+#include <asm/intel_scu_ipc.h>
2114
2215 enum telemetry_unit {
2316 TELEM_PSS = 0,
....@@ -49,13 +42,10 @@
4942 struct telemetry_unit_config {
5043 struct telemetry_evtmap *telem_evts;
5144 void __iomem *regmap;
52
- u32 ssram_base_addr;
5345 u8 ssram_evts_used;
5446 u8 curr_period;
5547 u8 max_period;
5648 u8 min_period;
57
- u32 ssram_size;
58
-
5949 };
6050
6151 struct telemetry_plt_config {
....@@ -63,6 +53,8 @@
6353 struct telemetry_unit_config ioss_config;
6454 struct mutex telem_trace_lock;
6555 struct mutex telem_lock;
56
+ struct intel_pmc_dev *pmc;
57
+ struct intel_scu_ipc_dev *scu;
6658 bool telem_in_use;
6759 };
6860
....@@ -104,7 +96,7 @@
10496
10597 int telemetry_clear_pltdata(void);
10698
107
-int telemetry_pltconfig_valid(void);
99
+struct telemetry_plt_config *telemetry_get_pltdata(void);
108100
109101 int telemetry_get_evtname(enum telemetry_unit telem_unit,
110102 const char **name, int len);