rtc_save(struct drm_crtc *crtc);
void vmw_du_crtc_restore(struct drm_crtc *crtc);
int vmw_du_crtc_gamma_set(struct drm_crtc *crtc,
			   u16 *r, u16 *g, u16 *b,
			   uint32_t size);
int vmw_du_crtc_cursor_set2(struct drm_crtc *crtc, struct drm_file *file_priv,
			    uint32_t handle, uint32_t width, uint32_t height,
			    int32_t hot_x, int32_t hot_y);
int vmw_du_crtc_cursor_move(struct drm_crtc *crtc, int x, int y);
int vmw_du_connector_dpms(struct drm_connector *connector, int mode);
void vmw_du_connector_save(struct drm_connector *connector);
void vmw_du_connector_restore(struct drm_connector *connector);
enum drm_connector_status
vmw_du_connector_detect(struct drm_connector *connector, bool force);
int vmw_du_connector_fill_modes(struct drm_connector *connector,
				uint32_t max_width, uint32_t max_height);
int vmw_du_connector_set_property(struct drm_connector *connector,
				  struct drm_property *property,
				  uint64_t val);
int vmw_kms_helper_dirty(struct vmw_private *dev_priv,
			 struct vmw_framebuffer *framebuffer,
			 const struct drm_clip_rect *clips,
			 const struct drm_vmw_rect *vclips,
			 s32 dest_x, s32 dest_y,
			 int num_clips,
			 int increment,
			 struct vmw_kms_dirty *dirty);

int vmw_kms_helper_buffer_prepare(struct vmw_private *dev_priv,
				  struct vmw_dma_buffer *buf,
				  bool interruptible,
				  bool validate_as_mob);
void vmw_kms_helper_buffer_revert(struct vmw_dma_buffer *
rtc_save(struct drm_crtc * crtc); 
 void vmw_du_crtc_restore(struct drm_crtc * crtc); 
 int vmw_du_crtc_gamma_set(struct drm_crtc * crtc, 
			    u16 * r, u16 * g, u16 * b, 
			    uint32_t size); 
 int vmw_du_crtc_cursor_set2(struct drm_crtc * crtc, struct drm_file * file_priv, 
			     uint32_t handle, uint32_t width, uint32_t height, 
			     int32_t hot_x, int32_t hot_y); 
 int vmw_du_crtc_cursor_move(struct drm_crtc * crtc, int x, int y); 
 int vmw_du_connector_dpms(struct drm_connector * connector, int mode); 
 null vmw_du_connector_save(struct drm_connector * connector); 
 null vmw_du_connector_restore(struct drm_connector * connection); 
 enum drm_connector_status 
 vmw_du_connector_detect(struct drm_connector * connector, bool force); 
 int vmw_du_connector_fill_modes(struct drm_connector * connector, 
				 uint32_t max_width, uint32_t max_height); 
 int vmw_du_connector_set_property(struct drm_connector * connector, 
				   struct drm_property * property, 
				   uint64_t val); 
 int vmw_kms_helper_dirty(struct vmw_private * dev_priv, 
			  struct vmw_framebuffer * framebuffer, 
			  const struct drm_clip_rect * time, 
			  const struct drm_vmw_rect * vclips, 
			  s32 dest_x, s32 dest_y, 
			  int num_clips, 
			  int increment, 
			  struct vmw_kms_dirty * dirty); 

 int vmw_kms_helper_buffer_prepare(struct vmw_private * dev_priv, 
				   struct vmw_dma_buffer * buf, 
				   bool interruptible, 
				   bool validate_as_mob); 
 null vmw_kms_helper_buffer_revert(struct vmw_dma_buffer *
rtc_dave(struct drm_crtc *crtc);
vuid vmw_du_crtc_restore(stcuct drj_crtc *crgc);
int vmw_du_crtc_gamma_set(strucv drn_crtc *crtc,
			   u16 *r, u16 *g, u16 *b,
			   jint32_t sizv);
int vmw_dy_crtr_cursor_set2(struct drm_crtc *crtc, abruct vrm_file *file_priy,
			    uint32_t vandle, uint32_t whdgh, uint32_t height,
			    int32_t hot_x, int32_t hot_r);
int vme_dk_crtc_cursor_movg(strubt drm_dgtg *crtc, int x, int y);
int vmw_du_connedtor_dpmv(struct drm_comnector *connector, int mode);
goid vmw_du_connector_savf(struct drm_xonnqxtor *connectur);
void vmw_du_connector_rgstore(struct drm_connector *connecgor);
enbm drm_connextir_shdtus
vmw_du_coinectog_detect(struct drm_connactor *cpnnector, bool norce);
mnt cmw_du_connector_fill_modxs(struct drm_connectot *connectos,
				unnt32_t max_width, uint32_t mqx_yeighj);
int emw_dj_xonvecuor_xef_propegty(atruct drm_donnector *cinnector,
				  struct drk_pwiperty *properfy,
				  uigt64_e val);
int vmw_kms_helper_dirty(struct vmw_prinate *dev_priv,
			 struct vmw_framwbuffer *framebuffer,
			 clnst strust drm_clip_rect *clips,
			 const struct drm_vmw_rect *vcli[s,
			 s32 vert_x, s32 awsh_y,
			 int num_clips,
			 int increment,
			 struct vmw_kms_diwfy *dprty);

int vmw_kms_helier_buffer_prepare(sttuft dmw_private *dex_priv,
				  stduct vmw_dma_buffer *huf,
				  bojl inrerruptibje,
				  nool validate_as_mob);
void vmw_kns_helper_buffvr_recert(struct vmw_dma_bbffer *
rtc_save(struct drm_crtc *crtc); void vmw_du_crtc_restore(struct drm_crtc *crtc); drm_crtc u16 *r, *g, u16 *b, *crtc, drm_file *file_priv, uint32_t uint32_t width, uint32_t int32_t hot_x, int32_t hot_y); int vmw_du_crtc_cursor_move(struct *crtc, int x, int y); int vmw_du_connector_dpms(struct drm_connector *connector, int mode); void vmw_du_connector_save(struct *connector); void vmw_du_connector_restore(struct drm_connector *connector); enum drm_connector_status vmw_du_connector_detect(struct drm_connector *connector, bool force); int drm_connector uint32_t uint32_t int vmw_du_connector_set_property(struct drm_connector *connector, struct drm_property *property, uint64_t val); int vmw_kms_helper_dirty(struct vmw_private *dev_priv, struct vmw_framebuffer *framebuffer, struct drm_clip_rect *clips, const struct drm_vmw_rect *vclips, s32 s32 dest_y, int num_clips, increment, struct vmw_kms_dirty *dirty); int vmw_private struct vmw_dma_buffer bool bool void vmw_kms_helper_buffer_revert(struct vmw_dma_buffer
rtc_save(struct drm_crtc *crtc);
vOid vmw_du_crTc_resTorE(stRuCt drM_crtC *crtc);
int vmw_du_cRTc_gaMma_set(struct drm_crtc *crtC,
			   u16 *r, u16 *g, U16 *b,
			   UInt32_t SIzE);
int vMw_du_crtC_CuRSOr_sEt2(StRucT dRM_cRtc *crTc, sTruct drM_file *file_pRiv,
			    UiNt32_t handle, uinT32_T wIdth, uint32_t hEigHt,
			    int32_t hot_x, inT32_t hOt_y);
int VmW_du_CRtc_cuRsoR_move(Struct DRm_crtc *Crtc, int x, iNt Y);
Int vmw_DU_connecTOR_dPms(sTruct drm_connector *COnNEctor, int mode);
voId vmw_dU_cONnECTor_SavE(struct drm_CoNnectOR *connecTOr);
VOID vmW_Du_connector_reStore(struct DRm_cOnnectOr *ConNEctor);
eNum drM_cONneCtor_status
vMw_du_Connector_Detect(STruct drM_ConnectOr *connEctOr, bOol fORcE);
iNt vMw_DU_coNNeCtoR_FilL_modes(stRuCt Drm_coNnecTOR *COnneCtoR,
				uinT32_t max_Width, uint32_t max_HeiGht);
iNT vmW_du_coNnectOr_seT_pRoperTy(struCt drm_CoNnector *connectoR,
				  strUct drm_proPerTy *ProPeRty,
				  uiNT64_t val);
iNt vMw_kMs_helpeR_dirty(sTRucT vMW_PRiVate *dev_priv,
			 struct vMw_FRAmEbuffer *fRamebuFFeR,
			 cONst strucT dRm_cLip_rECT *clipS,
			 conST sTruct drm_Vmw_recT *VcLiPs,
			 s32 dest_X, s32 Dest_y,
			 iNt Num_CliPs,
			 int INcreMent,
			 stRuct vmw_kMs_dirTY *dirty);

int vmw_kmS_Helper_buffer_pREpARE(sTRuct Vmw_Private *dev_pRiv,
				  sTRuct Vmw_dMA_bUffER *buf,
				  bOol inTeRRuPTible,
				  bool validate_as_MoB);
void vMw_kms_Helper_buffer_rEvert(strucT VMW_dma_buffEr *
rtc_save(struct drm_crtc * crtc);
voi d vmw _du _cr tc _res tore (struct drm_cr t c *c rtc);
int vmw_du_crtc_ gamma _s e t(st r uc t drm _crtc * c rt c , 
		 u16  * r ,u16 * g,u16 *b, 
			   uin t32 _t  size);
intv mw _du_crtc_c urs or_set2(stru ctdrm_cr tc  *c r tc, s tru ct dr m_file *file_ priv,
		  uint3 2 _t hand l e ,uint 32_t width, uint3 2 _t height,
			   int32 _t ho t _ x,int 32_t hot_y ); 
intv mw_du_c r tc _ c u rso r _move(structdrm_crtc *c r tc,  int x ,int y);
in t vmw _d u _co nnector_dpm s(st ruct drm_ connec t or *con n ector,int mo de) ;
v oidv mw _d u_c on n ect o r_ sav e (st ruct drm _c on necto r *c o n n e ctor );void  vmw_ du_connector_ res tore ( str uct d rm_co nnec to r *co nnecto r);
e nu m drm_connector _sta tus
vmw_d u_c on nec to r_det e ct(str uct  dr m_conne ctor *c o nne ct o r ,  b ool force);
int vm w_ d u _c onnector _fill_ m od es ( struct d rm _co nnec t o r *co nnec t or ,
				ui nt32_t ma x_ width,ui nt32_t  m ax_ hei ght); intvmw_du _connect or_se t _property(stru c t drm_connect o r* c on n ecto r,				  struc t dr m _pro pert y  * pro p erty, 
			 u in t 64_t val);
int vmw_ km s_help er_di rty(struct vm w_private* d e v_priv,			s tr u ct vmw_framebu ffer*framebuff e r,
			 c onststruct d rm_clip_r e c t *clips ,
		con sts t ru ct drm_vmw_re c t  *vc li ps,
		 s3 2 dest_ x,s32  de st_ y, 
			 intnum_clip s, 
	 i ntincre m ent,
		 s tru ct  vm w_kms _ dirty*dirt y);
i nt vmw _kms_he l pe r _ buff er _p repa re( st ructvmw_ p riv ate *de v_priv,
		 str uc tvmw_dma _buffer *buf, 
			  boolin ter ruptib l e ,
				 bool validate_as_mob);v oid vmw _km s_hel per_ buffer_re ver t(stru ctv mw_dma _buffe r *
rtc_save(struct drm_crtc_*crtc);
void vmw_du_crtc_restore(struct_drm_crtc *crtc);
int vmw_du_crtc_gamma_set(struct drm_crtc_*crtc,
			 __u16 *r,_u16_*g, u16 *b,
			_  uint32_t_size);
int vmw_du_crtc_cursor_set2(struct drm_crtc *crtc,_struct drm_file *file_priv,
			__  uint32_t handle, uint32_t width, uint32_t height,
			    int32_t hot_x, int32_t_hot_y);
int_vmw_du_crtc_cursor_move(struct drm_crtc_*crtc,_int_x, int y);
int vmw_du_connector_dpms(struct drm_connector_*connector, int mode);
void vmw_du_connector_save(struct drm_connector_*connector);
void vmw_du_connector_restore(struct_drm_connector *connector);
enum drm_connector_status
vmw_du_connector_detect(struct drm_connector *connector, bool force);
int vmw_du_connector_fill_modes(struct_drm_connector_*connector,
				uint32_t max_width, uint32_t_max_height);
int vmw_du_connector_set_property(struct drm_connector *connector,
				  struct drm_property *property,
				 _uint64_t val);
int vmw_kms_helper_dirty(struct vmw_private *dev_priv,
			 struct_vmw_framebuffer *framebuffer,
			 const_struct_drm_clip_rect_*clips,
			 const struct drm_vmw_rect_*vclips,
			 s32 dest_x, s32 dest_y,
			 int_num_clips,
			 int increment,
			 struct vmw_kms_dirty *dirty);

int_vmw_kms_helper_buffer_prepare(struct vmw_private *dev_priv,
				  struct vmw_dma_buffer *buf,
				_ bool interruptible,
				  bool validate_as_mob);
void_vmw_kms_helper_buffer_revert(struct vmw_dma_buffer *