Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/bouyer-sunxi-drm]: src/sys/arch/arm/sunxi sunxi_tcon1_set_videomode: use...
details: https://anonhg.NetBSD.org/src/rev/0e3df561240c
branches: bouyer-sunxi-drm
changeset: 371913:0e3df561240c
user: bouyer <bouyer%NetBSD.org@localhost>
date: Sun Oct 16 17:23:40 2022 +0000
description:
sunxi_tcon1_set_videomode: use DRM_MODE_FLAGS_*
diffstat:
sys/arch/arm/sunxi/sunxi_tcon.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r b50aaf8b2fbf -r 0e3df561240c sys/arch/arm/sunxi/sunxi_tcon.c
--- a/sys/arch/arm/sunxi/sunxi_tcon.c Sun Oct 16 17:21:46 2022 +0000
+++ b/sys/arch/arm/sunxi/sunxi_tcon.c Sun Oct 16 17:23:40 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_tcon.c,v 1.13.2.2 2022/10/16 17:21:46 bouyer Exp $ */
+/* $NetBSD: sunxi_tcon.c,v 1.13.2.3 2022/10/16 17:23:40 bouyer Exp $ */
/*-
* Copyright (c) 2018 Manuel Bouyer <bouyer%antioche.eu.org@localhost>
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_tcon.c,v 1.13.2.2 2022/10/16 17:21:46 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_tcon.c,v 1.13.2.3 2022/10/16 17:23:40 bouyer Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -822,9 +822,9 @@
sunxi_debe_set_videomode(fdt_endpoint_device(sc->sc_in_rep), mode);
if (mode) {
- const u_int interlace_p = !!(mode->flags & VID_INTERLACE);
- const u_int phsync_p = !!(mode->flags & VID_PHSYNC);
- const u_int pvsync_p = !!(mode->flags & VID_PVSYNC);
+ const u_int interlace_p = !!(mode->flags & DRM_MODE_FLAG_INTERLACE);
+ const u_int phsync_p = !!(mode->flags & DRM_MODE_FLAG_PHSYNC);
+ const u_int pvsync_p = !!(mode->flags & DRM_MODE_FLAG_PVSYNC);
const u_int hspw = mode->hsync_end - mode->hsync_start;
const u_int hbp = mode->htotal - mode->hsync_start;
const u_int vspw = mode->vsync_end - mode->vsync_start;
Home |
Main Index |
Thread Index |
Old Index