Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/include/drm Use only C99...



details:   https://anonhg.NetBSD.org/src/rev/fff23cd579fb
branches:  riastradh-drm2
changeset: 788118:fff23cd579fb
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 02:19:30 2013 +0000

description:
Use only C99-style initializers in DRM_MODE in drm_crtc.h.

diffstat:

 sys/external/bsd/drm2/dist/include/drm/drm_crtc.h |  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (27 lines):

diff -r 1392bcbcb9bf -r fff23cd579fb sys/external/bsd/drm2/dist/include/drm/drm_crtc.h
--- a/sys/external/bsd/drm2/dist/include/drm/drm_crtc.h Wed Jul 24 02:19:15 2013 +0000
+++ b/sys/external/bsd/drm2/dist/include/drm/drm_crtc.h Wed Jul 24 02:19:30 2013 +0000
@@ -114,6 +114,15 @@
 #define DRM_MODE_TYPE_CLOCK_CRTC_C (DRM_MODE_TYPE_CLOCK_C | \
                                    DRM_MODE_TYPE_CRTC_C)
 
+#ifdef __NetBSD__
+#define DRM_MODE(nm, t, c, hd, hss, hse, ht, hsk, vd, vss, vse, vt, vs, f) \
+       .name = nm, .status = 0, .type = (t), .clock = (c), \
+       .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \
+       .htotal = (ht), .hskew = (hsk), .vdisplay = (vd), \
+       .vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), \
+       .vscan = (vs), .flags = (f), .vrefresh = 0, \
+       .base = { .type = DRM_MODE_OBJECT_MODE }
+#else
 #define DRM_MODE(nm, t, c, hd, hss, hse, ht, hsk, vd, vss, vse, vt, vs, f) \
        .name = nm, .status = 0, .type = (t), .clock = (c), \
        .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \
@@ -121,6 +130,7 @@
        .vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), \
        .vscan = (vs), .flags = (f), .vrefresh = 0, \
        .base.type = DRM_MODE_OBJECT_MODE
+#endif
 
 #define CRTC_INTERLACE_HALVE_V 0x1 /* halve V values for interlacing */
 



Home | Main Index | Thread Index | Old Index