u-boot/arch/sandbox/include/asm/interconnect.h
Neil Armstrong 9ab7163710 interconnect: add DM test suite
Add a test suite exercising the whole lifetime and callbacks
of interconnect with a fake 5 providers with a split node graph.

The test suite checks the calculus are right and goes to the correct
nodes, and the lifetime of the node is correct.

Link: https://patch.msgid.link/20251120-topic-interconnect-next-v5-2-e8a82720da5d@linaro.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2025-11-20 09:17:58 +01:00

20 lines
651 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2025 Linaro Limited
*/
#ifndef __SANDBOX_INTERCONNECT_H
#define __SANDBOX_INTERCONNECT_H
struct udevice;
int sandbox_interconnect_get_bw(struct udevice *dev, u64 *avg, u64 *peak);
int sandbox_interconnect_test_get(struct udevice *dev, char *name);
int sandbox_interconnect_test_get_index(struct udevice *dev, int index);
int sandbox_interconnect_test_enable(struct udevice *dev);
int sandbox_interconnect_test_disable(struct udevice *dev);
int sandbox_interconnect_test_set_bw(struct udevice *dev, u32 avg_bw, u32 peak_bw);
int sandbox_interconnect_test_put(struct udevice *dev);
#endif