blob: ef5818bff180d99dbe945541c49fa60d947321a1 [file] [log] [blame]
Alex Elderee3e6be2021-03-26 10:11:11 -05001/* SPDX-License-Identifier: GPL-2.0 */
2
3/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
4 * Copyright (C) 2019-2021 Linaro Ltd.
5 */
6#ifndef _IPA_RESOURCE_H_
7#define _IPA_RESOURCE_H_
8
9struct ipa;
10struct ipa_resource_data;
11
12/**
13 * ipa_resource_config() - Configure resources
14 * @ipa: IPA pointer
15 * @data: IPA resource configuration data
16 *
Alex Elder74858b62021-04-09 13:07:20 -050017 * There is no need for a matching ipa_resource_deconfig() function.
18 *
Alex Elderee3e6be2021-03-26 10:11:11 -050019 * Return: true if all regions are valid, false otherwise
20 */
21int ipa_resource_config(struct ipa *ipa, const struct ipa_resource_data *data);
22
Alex Elderee3e6be2021-03-26 10:11:11 -050023#endif /* _IPA_RESOURCE_H_ */