Subversion Repositories Kolibri OS

Rev

Rev 3747 | Rev 4103 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3747 Rev 4065
Line 337... Line 337...
337
	void (*reset)(struct drm_crtc *crtc);
337
	void (*reset)(struct drm_crtc *crtc);
Line 338... Line 338...
338
 
338
 
339
	/* cursor controls */
339
	/* cursor controls */
340
	int (*cursor_set)(struct drm_crtc *crtc, struct drm_file *file_priv,
340
	int (*cursor_set)(struct drm_crtc *crtc, struct drm_file *file_priv,
-
 
341
			  uint32_t handle, uint32_t width, uint32_t height);
-
 
342
	int (*cursor_set2)(struct drm_crtc *crtc, struct drm_file *file_priv,
-
 
343
			   uint32_t handle, uint32_t width, uint32_t height,
341
			  uint32_t handle, uint32_t width, uint32_t height);
344
			   int32_t hot_x, int32_t hot_y);
Line 342... Line 345...
342
	int (*cursor_move)(struct drm_crtc *crtc, int x, int y);
345
	int (*cursor_move)(struct drm_crtc *crtc, int x, int y);
343
 
346
 
344
	/* Set gamma on the CRTC */
347
	/* Set gamma on the CRTC */
Line 407... Line 410...
407
	struct drm_mode_object base;
410
	struct drm_mode_object base;
Line 408... Line 411...
408
 
411
 
409
	/* framebuffer the connector is currently bound to */
412
	/* framebuffer the connector is currently bound to */
Line -... Line 413...
-
 
413
	struct drm_framebuffer *fb;
-
 
414
 
-
 
415
	/* Temporary tracking of the old fb while a modeset is ongoing. Used
-
 
416
	 * by drm_mode_set_config_internal to implement correct refcounting. */
410
	struct drm_framebuffer *fb;
417
	struct drm_framebuffer *old_fb;
Line 411... Line 418...
411
 
418
 
412
	bool enabled;
419
	bool enabled;
Line 652... Line 659...
652
 * @possible_crtcs: pipes this plane can be bound to
659
 * @possible_crtcs: pipes this plane can be bound to
653
 * @format_types: array of formats supported by this plane
660
 * @format_types: array of formats supported by this plane
654
 * @format_count: number of formats supported
661
 * @format_count: number of formats supported
655
 * @crtc: currently bound CRTC
662
 * @crtc: currently bound CRTC
656
 * @fb: currently bound fb
663
 * @fb: currently bound fb
657
 * @gamma_size: size of gamma table
-
 
658
 * @gamma_store: gamma correction table
-
 
659
 * @enabled: enabled flag
-
 
660
 * @funcs: helper functions
664
 * @funcs: helper functions
661
 * @helper_private: storage for drver layer
-
 
662
 * @properties: property tracking for this plane
665
 * @properties: property tracking for this plane
663
 */
666
 */
664
struct drm_plane {
667
struct drm_plane {
665
	struct drm_device *dev;
668
	struct drm_device *dev;
666
	struct list_head head;
669
	struct list_head head;
Line 672... Line 675...
672
	uint32_t format_count;
675
	uint32_t format_count;
Line 673... Line 676...
673
 
676
 
674
	struct drm_crtc *crtc;
677
	struct drm_crtc *crtc;
Line 675... Line -...
675
	struct drm_framebuffer *fb;
-
 
676
 
-
 
677
	/* CRTC gamma size for reporting to userspace */
-
 
678
	uint32_t gamma_size;
-
 
679
	uint16_t *gamma_store;
-
 
680
 
-
 
681
	bool enabled;
678
	struct drm_framebuffer *fb;
682
 
-
 
Line 683... Line 679...
683
	const struct drm_plane_funcs *funcs;
679
 
684
	void *helper_private;
680
	const struct drm_plane_funcs *funcs;
Line 685... Line 681...
685
 
681
 
Line 892... Line 888...
892
			  unsigned long possible_crtcs,
888
			  unsigned long possible_crtcs,
893
			  const struct drm_plane_funcs *funcs,
889
			  const struct drm_plane_funcs *funcs,
894
			  const uint32_t *formats, uint32_t format_count,
890
			  const uint32_t *formats, uint32_t format_count,
895
			  bool priv);
891
			  bool priv);
896
extern void drm_plane_cleanup(struct drm_plane *plane);
892
extern void drm_plane_cleanup(struct drm_plane *plane);
-
 
893
extern void drm_plane_force_disable(struct drm_plane *plane);
Line 897... Line 894...
897
 
894
 
Line 898... Line 895...
898
extern void drm_encoder_cleanup(struct drm_encoder *encoder);
895
extern void drm_encoder_cleanup(struct drm_encoder *encoder);
-
 
896
 
899
 
897
extern const char *drm_get_connector_name(const struct drm_connector *connector);
900
extern char *drm_get_connector_name(struct drm_connector *connector);
898
extern const char *drm_get_connector_status_name(enum drm_connector_status status);
901
extern char *drm_get_dpms_name(int val);
899
extern const char *drm_get_dpms_name(int val);
902
extern char *drm_get_dvi_i_subconnector_name(int val);
900
extern const char *drm_get_dvi_i_subconnector_name(int val);
903
extern char *drm_get_dvi_i_select_name(int val);
901
extern const char *drm_get_dvi_i_select_name(int val);
904
extern char *drm_get_tv_subconnector_name(int val);
902
extern const char *drm_get_tv_subconnector_name(int val);
905
extern char *drm_get_tv_select_name(int val);
903
extern const char *drm_get_tv_select_name(int val);
906
extern void drm_fb_release(struct drm_file *file_priv);
904
extern void drm_fb_release(struct drm_file *file_priv);
907
extern int drm_mode_group_init_legacy_group(struct drm_device *dev, struct drm_mode_group *group);
905
extern int drm_mode_group_init_legacy_group(struct drm_device *dev, struct drm_mode_group *group);
908
extern bool drm_probe_ddc(struct i2c_adapter *adapter);
906
extern bool drm_probe_ddc(struct i2c_adapter *adapter);
Line 992... Line 990...
992
extern int drm_mode_create_tv_properties(struct drm_device *dev, int num_formats,
990
extern int drm_mode_create_tv_properties(struct drm_device *dev, int num_formats,
993
				     char *formats[]);
991
				     char *formats[]);
994
extern int drm_mode_create_scaling_mode_property(struct drm_device *dev);
992
extern int drm_mode_create_scaling_mode_property(struct drm_device *dev);
995
extern int drm_mode_create_dithering_property(struct drm_device *dev);
993
extern int drm_mode_create_dithering_property(struct drm_device *dev);
996
extern int drm_mode_create_dirty_info_property(struct drm_device *dev);
994
extern int drm_mode_create_dirty_info_property(struct drm_device *dev);
997
extern char *drm_get_encoder_name(struct drm_encoder *encoder);
995
extern const char *drm_get_encoder_name(const struct drm_encoder *encoder);
Line 998... Line 996...
998
 
996
 
999
extern int drm_mode_connector_attach_encoder(struct drm_connector *connector,
997
extern int drm_mode_connector_attach_encoder(struct drm_connector *connector,
1000
					     struct drm_encoder *encoder);
998
					     struct drm_encoder *encoder);
1001
extern void drm_mode_connector_detach_encoder(struct drm_connector *connector,
999
extern void drm_mode_connector_detach_encoder(struct drm_connector *connector,
Line 1020... Line 1018...
1020
			       void *data, struct drm_file *file_priv);
1018
			       void *data, struct drm_file *file_priv);
1021
extern int drm_mode_setplane(struct drm_device *dev,
1019
extern int drm_mode_setplane(struct drm_device *dev,
1022
			       void *data, struct drm_file *file_priv);
1020
			       void *data, struct drm_file *file_priv);
1023
extern int drm_mode_cursor_ioctl(struct drm_device *dev,
1021
extern int drm_mode_cursor_ioctl(struct drm_device *dev,
1024
				void *data, struct drm_file *file_priv);
1022
				void *data, struct drm_file *file_priv);
-
 
1023
extern int drm_mode_cursor2_ioctl(struct drm_device *dev,
-
 
1024
				void *data, struct drm_file *file_priv);
1025
extern int drm_mode_addfb(struct drm_device *dev,
1025
extern int drm_mode_addfb(struct drm_device *dev,
1026
			  void *data, struct drm_file *file_priv);
1026
			  void *data, struct drm_file *file_priv);
1027
extern int drm_mode_addfb2(struct drm_device *dev,
1027
extern int drm_mode_addfb2(struct drm_device *dev,
1028
			   void *data, struct drm_file *file_priv);
1028
			   void *data, struct drm_file *file_priv);
1029
extern uint32_t drm_mode_legacy_fb_format(uint32_t bpp, uint32_t depth);
1029
extern uint32_t drm_mode_legacy_fb_format(uint32_t bpp, uint32_t depth);
Line 1092... Line 1092...
1092
				 int *bpp);
1092
				 int *bpp);
1093
extern int drm_format_num_planes(uint32_t format);
1093
extern int drm_format_num_planes(uint32_t format);
1094
extern int drm_format_plane_cpp(uint32_t format, int plane);
1094
extern int drm_format_plane_cpp(uint32_t format, int plane);
1095
extern int drm_format_horz_chroma_subsampling(uint32_t format);
1095
extern int drm_format_horz_chroma_subsampling(uint32_t format);
1096
extern int drm_format_vert_chroma_subsampling(uint32_t format);
1096
extern int drm_format_vert_chroma_subsampling(uint32_t format);
-
 
1097
extern const char *drm_get_format_name(uint32_t format);
Line 1097... Line 1098...
1097
 
1098