intel_sprite.h (1444B)
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 11#include "intel_display.h" 12 13struct drm_device; 14struct drm_display_mode; 15struct drm_file; 16struct drm_i915_private; 17struct intel_crtc_state; 18struct intel_plane_state; 19 20/* 21 * FIXME: We should instead only take spinlocks once for the entire update 22 * instead of once per mmio. 23 */ 24#if IS_ENABLED(CONFIG_PROVE_LOCKING) 25#define VBLANK_EVASION_TIME_US 250 26#else 27#define VBLANK_EVASION_TIME_US 100 28#endif 29 30struct intel_plane *intel_sprite_plane_create(struct drm_i915_private *dev_priv, 31 enum pipe pipe, int plane); 32int intel_sprite_set_colorkey_ioctl(struct drm_device *dev, void *data, 33 struct drm_file *file_priv); 34int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state); 35int chv_plane_check_rotation(const struct intel_plane_state *plane_state); 36 37static inline u8 icl_hdr_plane_mask(void) 38{ 39 return BIT(PLANE_PRIMARY) | 40 BIT(PLANE_SPRITE0) | BIT(PLANE_SPRITE1); 41} 42 43int ivb_plane_min_cdclk(const struct intel_crtc_state *crtc_state, 44 const struct intel_plane_state *plane_state); 45int hsw_plane_min_cdclk(const struct intel_crtc_state *crtc_state, 46 const struct intel_plane_state *plane_state); 47int vlv_plane_min_cdclk(const struct intel_crtc_state *crtc_state, 48 const struct intel_plane_state *plane_state); 49 50#endif /* __INTEL_SPRITE_H__ */