mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-27 06:50:37 +00:00

Alive Clock and Power Manager (ACPM) Message Protocol is defined for the purpose of communication between the ACPM firmware and masters (AP, AOC, ...). ACPM firmware operates on the Active Power Management (APM) module that handles overall power activities. ACPM and masters regard each other as independent hardware component and communicate with each other using mailbox messages and shared memory. This protocol driver provides the interface for all the client drivers making use of the features offered by the APM. Add ACPM protocol support. Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org> Link: https://lore.kernel.org/r/20250213-gs101-acpm-v9-2-8b0281b93c8b@linaro.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
24 lines
459 B
C
24 lines
459 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright 2020 Samsung Electronics Co., Ltd.
|
|
* Copyright 2020 Google LLC.
|
|
* Copyright 2024 Linaro Ltd.
|
|
*/
|
|
#ifndef __EXYNOS_ACPM_H__
|
|
#define __EXYNOS_ACPM_H__
|
|
|
|
struct acpm_xfer {
|
|
const u32 *txd;
|
|
u32 *rxd;
|
|
size_t txlen;
|
|
size_t rxlen;
|
|
unsigned int acpm_chan_id;
|
|
};
|
|
|
|
struct acpm_handle;
|
|
|
|
int acpm_do_xfer(const struct acpm_handle *handle,
|
|
const struct acpm_xfer *xfer);
|
|
|
|
#endif /* __EXYNOS_ACPM_H__ */
|