.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Intel SOC Telemetry Driver Header File |
---|
3 | 4 | * Copyright (C) 2015, Intel Corporation. |
---|
4 | 5 | * 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 | | - * |
---|
15 | 6 | */ |
---|
16 | 7 | #ifndef INTEL_TELEMETRY_H |
---|
17 | 8 | #define INTEL_TELEMETRY_H |
---|
18 | 9 | |
---|
19 | 10 | #define TELEM_MAX_EVENTS_SRAM 28 |
---|
20 | 11 | #define TELEM_MAX_OS_ALLOCATED_EVENTS 20 |
---|
| 12 | + |
---|
| 13 | +#include <asm/intel_scu_ipc.h> |
---|
21 | 14 | |
---|
22 | 15 | enum telemetry_unit { |
---|
23 | 16 | TELEM_PSS = 0, |
---|
.. | .. |
---|
49 | 42 | struct telemetry_unit_config { |
---|
50 | 43 | struct telemetry_evtmap *telem_evts; |
---|
51 | 44 | void __iomem *regmap; |
---|
52 | | - u32 ssram_base_addr; |
---|
53 | 45 | u8 ssram_evts_used; |
---|
54 | 46 | u8 curr_period; |
---|
55 | 47 | u8 max_period; |
---|
56 | 48 | u8 min_period; |
---|
57 | | - u32 ssram_size; |
---|
58 | | - |
---|
59 | 49 | }; |
---|
60 | 50 | |
---|
61 | 51 | struct telemetry_plt_config { |
---|
.. | .. |
---|
63 | 53 | struct telemetry_unit_config ioss_config; |
---|
64 | 54 | struct mutex telem_trace_lock; |
---|
65 | 55 | struct mutex telem_lock; |
---|
| 56 | + struct intel_pmc_dev *pmc; |
---|
| 57 | + struct intel_scu_ipc_dev *scu; |
---|
66 | 58 | bool telem_in_use; |
---|
67 | 59 | }; |
---|
68 | 60 | |
---|
.. | .. |
---|
104 | 96 | |
---|
105 | 97 | int telemetry_clear_pltdata(void); |
---|
106 | 98 | |
---|
107 | | -int telemetry_pltconfig_valid(void); |
---|
| 99 | +struct telemetry_plt_config *telemetry_get_pltdata(void); |
---|
108 | 100 | |
---|
109 | 101 | int telemetry_get_evtname(enum telemetry_unit telem_unit, |
---|
110 | 102 | const char **name, int len); |
---|