Subversion Repositories Kolibri OS

Rev

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

Rev 3031 Rev 3192
Line 44... Line 44...
44
 * LOCKING:
44
 * LOCKING:
45
 * None.
45
 * None.
46
 *
46
 *
47
 * Describe @mode using DRM_DEBUG.
47
 * Describe @mode using DRM_DEBUG.
48
 */
48
 */
49
void drm_mode_debug_printmodeline(struct drm_display_mode *mode)
49
void drm_mode_debug_printmodeline(const struct drm_display_mode *mode)
50
{
50
{
51
	DRM_DEBUG_KMS("Modeline %d:\"%s\" %d %d %d %d %d %d %d %d %d %d "
51
	DRM_DEBUG_KMS("Modeline %d:\"%s\" %d %d %d %d %d %d %d %d %d %d "
52
			"0x%x 0x%x\n",
52
			"0x%x 0x%x\n",
53
		mode->base.id, mode->name, mode->vrefresh, mode->clock,
53
		mode->base.id, mode->name, mode->vrefresh, mode->clock,
54
		mode->hdisplay, mode->hsync_start,
54
		mode->hdisplay, mode->hsync_start,
Line 556... Line 556...
556
 * FIXME: is this needed?
556
 * FIXME: is this needed?
557
 *
557
 *
558
 * RETURNS:
558
 * RETURNS:
559
 * @mode->hdisplay
559
 * @mode->hdisplay
560
 */
560
 */
561
int drm_mode_width(struct drm_display_mode *mode)
561
int drm_mode_width(const struct drm_display_mode *mode)
562
{
562
{
563
	return mode->hdisplay;
563
	return mode->hdisplay;
Line 564... Line 564...
564
 
564
 
565
}
565
}
Line 577... Line 577...
577
 * FIXME: is this needed?
577
 * FIXME: is this needed?
578
 *
578
 *
579
 * RETURNS:
579
 * RETURNS:
580
 * @mode->vdisplay
580
 * @mode->vdisplay
581
 */
581
 */
582
int drm_mode_height(struct drm_display_mode *mode)
582
int drm_mode_height(const struct drm_display_mode *mode)
583
{
583
{
584
	return mode->vdisplay;
584
	return mode->vdisplay;
585
}
585
}
586
EXPORT_SYMBOL(drm_mode_height);
586
EXPORT_SYMBOL(drm_mode_height);
Line 766... Line 766...
766
 * Check to see if @mode1 and @mode2 are equivalent.
766
 * Check to see if @mode1 and @mode2 are equivalent.
767
 *
767
 *
768
 * RETURNS:
768
 * RETURNS:
769
 * True if the modes are equal, false otherwise.
769
 * True if the modes are equal, false otherwise.
770
 */
770
 */
771
bool drm_mode_equal(struct drm_display_mode *mode1, struct drm_display_mode *mode2)
771
bool drm_mode_equal(const struct drm_display_mode *mode1, const struct drm_display_mode *mode2)
772
{
772
{
773
	/* do clock check convert to PICOS so fb modes get matched
773
	/* do clock check convert to PICOS so fb modes get matched
774
	 * the same */
774
	 * the same */
775
	if (mode1->clock && mode2->clock) {
775
	if (mode1->clock && mode2->clock) {
776
		if (KHZ2PICOS(mode1->clock) != KHZ2PICOS(mode2->clock))
776
		if (KHZ2PICOS(mode1->clock) != KHZ2PICOS(mode2->clock))