26 lines
617 B
C
26 lines
617 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 __counted_by_ptr(txcnt);
|
|
u32 *rxd __counted_by_ptr(rxcnt);
|
|
size_t txcnt;
|
|
size_t rxcnt;
|
|
unsigned int acpm_chan_id;
|
|
};
|
|
|
|
struct acpm_handle;
|
|
|
|
void acpm_set_xfer(struct acpm_xfer *xfer, u32 *cmd, size_t cmdcnt,
|
|
unsigned int acpm_chan_id, bool response);
|
|
int acpm_do_xfer(struct acpm_handle *handle,
|
|
const struct acpm_xfer *xfer);
|
|
|
|
#endif /* __EXYNOS_ACPM_H__ */
|