intel_wopcm.h 646 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * SPDX-License-Identifier: MIT
  3. *
  4. * Copyright © 2017-2018 Intel Corporation
  5. */
  6. #ifndef _INTEL_WOPCM_H_
  7. #define _INTEL_WOPCM_H_
  8. #include <linux/types.h>
  9. /**
  10. * struct intel_wopcm - Overall WOPCM info and WOPCM regions.
  11. * @size: Size of overall WOPCM.
  12. * @guc: GuC WOPCM Region info.
  13. * @guc.base: GuC WOPCM base which is offset from WOPCM base.
  14. * @guc.size: Size of the GuC WOPCM region.
  15. */
  16. struct intel_wopcm {
  17. u32 size;
  18. struct {
  19. u32 base;
  20. u32 size;
  21. } guc;
  22. };
  23. void intel_wopcm_init_early(struct intel_wopcm *wopcm);
  24. int intel_wopcm_init(struct intel_wopcm *wopcm);
  25. int intel_wopcm_init_hw(struct intel_wopcm *wopcm);
  26. #endif