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