diff options
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_crtc.h | 2 | ||||
-rw-r--r-- | include/drm/drm_dp_helper.h | 5 | ||||
-rw-r--r-- | include/drm/drm_dp_mst_helper.h | 2 | ||||
-rw-r--r-- | include/drm/drm_fb_helper.h | 19 |
4 files changed, 27 insertions, 1 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index adc9ea5acf02..7b5c661b37d8 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -915,7 +915,7 @@ struct drm_bridge { | |||
915 | }; | 915 | }; |
916 | 916 | ||
917 | /** | 917 | /** |
918 | * struct struct drm_atomic_state - the global state object for atomic updates | 918 | * struct drm_atomic_state - the global state object for atomic updates |
919 | * @dev: parent DRM device | 919 | * @dev: parent DRM device |
920 | * @allow_modeset: allow full modeset | 920 | * @allow_modeset: allow full modeset |
921 | * @legacy_cursor_update: hint to enforce legacy cursor ioctl semantics | 921 | * @legacy_cursor_update: hint to enforce legacy cursor ioctl semantics |
diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index c5fdc2d3ca97..523f04c90dea 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h | |||
@@ -42,6 +42,8 @@ | |||
42 | * 1.2 formally includes both eDP and DPI definitions. | 42 | * 1.2 formally includes both eDP and DPI definitions. |
43 | */ | 43 | */ |
44 | 44 | ||
45 | #define DP_AUX_MAX_PAYLOAD_BYTES 16 | ||
46 | |||
45 | #define DP_AUX_I2C_WRITE 0x0 | 47 | #define DP_AUX_I2C_WRITE 0x0 |
46 | #define DP_AUX_I2C_READ 0x1 | 48 | #define DP_AUX_I2C_READ 0x1 |
47 | #define DP_AUX_I2C_STATUS 0x2 | 49 | #define DP_AUX_I2C_STATUS 0x2 |
@@ -680,6 +682,9 @@ struct drm_dp_aux_msg { | |||
680 | * transactions. The drm_dp_aux_register_i2c_bus() function registers an | 682 | * transactions. The drm_dp_aux_register_i2c_bus() function registers an |
681 | * I2C adapter that can be passed to drm_probe_ddc(). Upon removal, drivers | 683 | * I2C adapter that can be passed to drm_probe_ddc(). Upon removal, drivers |
682 | * should call drm_dp_aux_unregister_i2c_bus() to remove the I2C adapter. | 684 | * should call drm_dp_aux_unregister_i2c_bus() to remove the I2C adapter. |
685 | * The I2C adapter uses long transfers by default; if a partial response is | ||
686 | * received, the adapter will drop down to the size given by the partial | ||
687 | * response for this transaction only. | ||
683 | * | 688 | * |
684 | * Note that the aux helper code assumes that the .transfer() function | 689 | * Note that the aux helper code assumes that the .transfer() function |
685 | * only modifies the reply field of the drm_dp_aux_msg structure. The | 690 | * only modifies the reply field of the drm_dp_aux_msg structure. The |
diff --git a/include/drm/drm_dp_mst_helper.h b/include/drm/drm_dp_mst_helper.h index 00c1da927245..a2507817be41 100644 --- a/include/drm/drm_dp_mst_helper.h +++ b/include/drm/drm_dp_mst_helper.h | |||
@@ -486,6 +486,8 @@ int drm_dp_calc_pbn_mode(int clock, int bpp); | |||
486 | 486 | ||
487 | bool drm_dp_mst_allocate_vcpi(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port, int pbn, int *slots); | 487 | bool drm_dp_mst_allocate_vcpi(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port, int pbn, int *slots); |
488 | 488 | ||
489 | int drm_dp_mst_get_vcpi_slots(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port); | ||
490 | |||
489 | 491 | ||
490 | void drm_dp_mst_reset_vcpi_slots(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port); | 492 | void drm_dp_mst_reset_vcpi_slots(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port); |
491 | 493 | ||
diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h index 21b944c456f6..0dfd94def593 100644 --- a/include/drm/drm_fb_helper.h +++ b/include/drm/drm_fb_helper.h | |||
@@ -44,6 +44,25 @@ struct drm_fb_helper_crtc { | |||
44 | int x, y; | 44 | int x, y; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | /** | ||
48 | * struct drm_fb_helper_surface_size - describes fbdev size and scanout surface size | ||
49 | * @fb_width: fbdev width | ||
50 | * @fb_height: fbdev height | ||
51 | * @surface_width: scanout buffer width | ||
52 | * @surface_height: scanout buffer height | ||
53 | * @surface_bpp: scanout buffer bpp | ||
54 | * @surface_depth: scanout buffer depth | ||
55 | * | ||
56 | * Note that the scanout surface width/height may be larger than the fbdev | ||
57 | * width/height. In case of multiple displays, the scanout surface is sized | ||
58 | * according to the largest width/height (so it is large enough for all CRTCs | ||
59 | * to scanout). But the fbdev width/height is sized to the minimum width/ | ||
60 | * height of all the displays. This ensures that fbcon fits on the smallest | ||
61 | * of the attached displays. | ||
62 | * | ||
63 | * So what is passed to drm_fb_helper_fill_var() should be fb_width/fb_height, | ||
64 | * rather than the surface size. | ||
65 | */ | ||
47 | struct drm_fb_helper_surface_size { | 66 | struct drm_fb_helper_surface_size { |
48 | u32 fb_width; | 67 | u32 fb_width; |
49 | u32 fb_height; | 68 | u32 fb_height; |