Subversion Repositories Kolibri OS

Rev

Rev 6082 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6082 Rev 7143
Line 401... Line 401...
401
static inline int drm_eld_size(const uint8_t *eld)
401
static inline int drm_eld_size(const uint8_t *eld)
402
{
402
{
403
	return DRM_ELD_HEADER_BLOCK_SIZE + eld[DRM_ELD_BASELINE_ELD_LEN] * 4;
403
	return DRM_ELD_HEADER_BLOCK_SIZE + eld[DRM_ELD_BASELINE_ELD_LEN] * 4;
404
}
404
}
Line -... Line 405...
-
 
405
 
-
 
406
/**
-
 
407
 * drm_eld_get_conn_type - Get device type hdmi/dp connected
-
 
408
 * @eld: pointer to an ELD memory structure
-
 
409
 *
-
 
410
 * The caller need to use %DRM_ELD_CONN_TYPE_HDMI or %DRM_ELD_CONN_TYPE_DP to
-
 
411
 * identify the display type connected.
-
 
412
 */
-
 
413
static inline u8 drm_eld_get_conn_type(const uint8_t *eld)
-
 
414
{
-
 
415
	return eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_CONN_TYPE_MASK;
-
 
416
}
405
 
417
 
406
struct edid *drm_do_get_edid(struct drm_connector *connector,
418
struct edid *drm_do_get_edid(struct drm_connector *connector,
407
	int (*get_edid_block)(void *data, u8 *buf, unsigned int block,
419
	int (*get_edid_block)(void *data, u8 *buf, unsigned int block,
408
			      size_t len),
420
			      size_t len),