xref: /openbmc/linux/drivers/net/ipa/ipa_resource.h (revision 8b0adbe3e38dbe5aae9edf6f5159ffdca7cfbdf1)
1 /* 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 
9 struct ipa;
10 struct ipa_resource_data;
11 
12 /**
13  * ipa_resource_config() - Configure resources
14  * @ipa:	IPA pointer
15  * @data:	IPA resource configuration data
16  *
17  * Return:	true if all regions are valid, false otherwise
18  */
19 int ipa_resource_config(struct ipa *ipa, const struct ipa_resource_data *data);
20 
21 /**
22  * ipa_resource_deconfig() - Inverse of ipa_resource_config()
23  * @ipa:	IPA pointer
24  */
25 void ipa_resource_deconfig(struct ipa *ipa);
26 
27 #endif /* _IPA_RESOURCE_H_ */
28