.. | .. |
---|
24 | 24 | } guc; |
---|
25 | 25 | }; |
---|
26 | 26 | |
---|
| 27 | +/** |
---|
| 28 | + * intel_wopcm_guc_base() |
---|
| 29 | + * @wopcm: intel_wopcm structure |
---|
| 30 | + * |
---|
| 31 | + * Returns the base of the WOPCM shadowed region. |
---|
| 32 | + * |
---|
| 33 | + * Returns: |
---|
| 34 | + * 0 if GuC is not present or not in use. |
---|
| 35 | + * Otherwise, the GuC WOPCM base. |
---|
| 36 | + */ |
---|
| 37 | +static inline u32 intel_wopcm_guc_base(struct intel_wopcm *wopcm) |
---|
| 38 | +{ |
---|
| 39 | + return wopcm->guc.base; |
---|
| 40 | +} |
---|
| 41 | + |
---|
| 42 | +/** |
---|
| 43 | + * intel_wopcm_guc_size() |
---|
| 44 | + * @wopcm: intel_wopcm structure |
---|
| 45 | + * |
---|
| 46 | + * Returns size of the WOPCM shadowed region. |
---|
| 47 | + * |
---|
| 48 | + * Returns: |
---|
| 49 | + * 0 if GuC is not present or not in use. |
---|
| 50 | + * Otherwise, the GuC WOPCM size. |
---|
| 51 | + */ |
---|
| 52 | +static inline u32 intel_wopcm_guc_size(struct intel_wopcm *wopcm) |
---|
| 53 | +{ |
---|
| 54 | + return wopcm->guc.size; |
---|
| 55 | +} |
---|
| 56 | + |
---|
27 | 57 | void intel_wopcm_init_early(struct intel_wopcm *wopcm); |
---|
28 | | -int intel_wopcm_init(struct intel_wopcm *wopcm); |
---|
29 | | -int intel_wopcm_init_hw(struct intel_wopcm *wopcm); |
---|
| 58 | +void intel_wopcm_init(struct intel_wopcm *wopcm); |
---|
30 | 59 | |
---|
31 | 60 | #endif |
---|