Loading...
Note: File does not exist in v3.1.
1/* SPDX-License-Identifier: MIT */
2/*
3 * Copyright © 2019 Intel Corporation
4 */
5
6#ifndef __INTEL_SPRITE_H__
7#define __INTEL_SPRITE_H__
8
9#include <linux/types.h>
10
11struct drm_i915_private;
12struct intel_crtc_state;
13struct intel_plane_state;
14enum pipe;
15
16#ifdef I915
17struct intel_plane *intel_sprite_plane_create(struct drm_i915_private *dev_priv,
18 enum pipe pipe, int plane);
19int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state);
20int chv_plane_check_rotation(const struct intel_plane_state *plane_state);
21
22int ivb_plane_min_cdclk(const struct intel_crtc_state *crtc_state,
23 const struct intel_plane_state *plane_state);
24int hsw_plane_min_cdclk(const struct intel_crtc_state *crtc_state,
25 const struct intel_plane_state *plane_state);
26int vlv_plane_min_cdclk(const struct intel_crtc_state *crtc_state,
27 const struct intel_plane_state *plane_state);
28#else
29static inline struct intel_plane *intel_sprite_plane_create(struct drm_i915_private *dev_priv,
30 int pipe, int plane)
31{
32 return NULL;
33}
34#endif
35
36#endif /* __INTEL_SPRITE_H__ */