Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / interconnect / mediatek / icc-emi.h
blob9512a50db6fa2649b281854e5bb3bf60baf04e6f
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (c) 2021 MediaTek Inc.
4 * Copyright (c) 2024 Collabora Ltd.
5 * AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
6 */
8 #ifndef __DRIVERS_INTERCONNECT_MEDIATEK_ICC_EMI_H
9 #define __DRIVERS_INTERCONNECT_MEDIATEK_ICC_EMI_H
11 /**
12 * struct mtk_icc_node - Mediatek EMI Interconnect Node
13 * @name: The interconnect node name which is shown in debugfs
14 * @ep: Type of this endpoint
15 * @id: Unique node identifier
16 * @sum_avg: Current sum aggregate value of all average bw requests in kBps
17 * @max_peak: Current max aggregate value of all peak bw requests in kBps
18 * @num_links: The total number of @links
19 * @links: Array of @id linked to this node
21 struct mtk_icc_node {
22 unsigned char *name;
23 int ep;
24 u16 id;
25 u64 sum_avg;
26 u64 max_peak;
28 u16 num_links;
29 u16 links[] __counted_by(num_links);
32 struct mtk_icc_desc {
33 struct mtk_icc_node **nodes;
34 size_t num_nodes;
37 int mtk_emi_icc_probe(struct platform_device *pdev);
38 void mtk_emi_icc_remove(struct platform_device *pdev);
40 #endif /* __DRIVERS_INTERCONNECT_MEDIATEK_ICC_EMI_H */