[Intel-gfx] [RFC 1/4] drm/i915/uc: Add ops to intel_uc

Chris Wilson chris at chris-wilson.co.uk
Tue Dec 10 20:55:13 UTC 2019


Quoting Michal Wajdeczko (2019-12-10 20:47:41)
> @@ -628,3 +651,15 @@ int intel_uc_runtime_resume(struct intel_uc *uc)
>          */
>         return __uc_resume(uc, true);
>  }
> +
> +const struct intel_uc_ops uc_ops_none = {
> +};
> +
> +const struct intel_uc_ops uc_ops_off = {
> +       .init_hw = __uc_check_hw,
> +};
> +
> +const struct intel_uc_ops uc_ops_on = {
> +       .init_hw = __uc_init_hw,
> +       .fini_hw = __uc_fini_hw,
> +};

No externs in the headers, so should these be static?
-Chris


More information about the Intel-gfx mailing list