ipa_resource.h 606 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  3. * Copyright (C) 2019-2021 Linaro Ltd.
  4. */
  5. #ifndef _IPA_RESOURCE_H_
  6. #define _IPA_RESOURCE_H_
  7. struct ipa;
  8. struct ipa_resource_data;
  9. /**
  10. * ipa_resource_config() - Configure resources
  11. * @ipa: IPA pointer
  12. * @data: IPA resource configuration data
  13. *
  14. * There is no need for a matching ipa_resource_deconfig() function.
  15. *
  16. * Return: true if all regions are valid, false otherwise
  17. */
  18. int ipa_resource_config(struct ipa *ipa, const struct ipa_resource_data *data);
  19. #endif /* _IPA_RESOURCE_H_ */