kgsl_bus.h 823 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  5. */
  6. #ifndef _KGSL_BUS_H
  7. #define _KGSL_BUS_H
  8. enum kgsl_bus_vote {
  9. KGSL_BUS_VOTE_OFF = 0,
  10. KGSL_BUS_VOTE_ON,
  11. KGSL_BUS_VOTE_MINIMUM,
  12. KGSL_BUS_VOTE_RT_HINT_OFF,
  13. KGSL_BUS_VOTE_RT_HINT_ON,
  14. };
  15. struct kgsl_device;
  16. struct platform_device;
  17. struct kgsl_pwrctrl;
  18. int kgsl_bus_init(struct kgsl_device *device, struct platform_device *pdev);
  19. void kgsl_bus_close(struct kgsl_device *device);
  20. int kgsl_bus_update(struct kgsl_device *device, enum kgsl_bus_vote vote_state);
  21. void kgsl_icc_set_tag(struct kgsl_pwrctrl *pwr, int buslevel);
  22. u32 *kgsl_bus_get_table(struct platform_device *pdev,
  23. const char *name, int *count);
  24. #endif