Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/kdump Extend the scripts to handle the X drm ioctls.



details:   https://anonhg.NetBSD.org/src/rev/404cdeab763c
branches:  trunk
changeset: 336011:404cdeab763c
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Feb 06 20:08:23 2015 +0000

description:
Extend the scripts to handle the X drm ioctls.

diffstat:

 usr.bin/kdump/mkioctls |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (41 lines):

diff -r ca1aeadd1785 -r 404cdeab763c usr.bin/kdump/mkioctls
--- a/usr.bin/kdump/mkioctls    Fri Feb 06 20:07:45 2015 +0000
+++ b/usr.bin/kdump/mkioctls    Fri Feb 06 20:08:23 2015 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: mkioctls,v 1.41 2013/04/04 22:32:12 dsl Exp $
+#      $NetBSD: mkioctls,v 1.42 2015/02/06 20:08:23 christos Exp $
 #
 # Copyright (c) 1994
 #      The Regents of the University of California.  All rights reserved.
@@ -48,6 +48,7 @@
 echo "typedef struct crap videomemory_t;" # XXX arm video lossage
 echo "typedef struct crap RF_AccTotals_t;" # XXX Raidframe lossage
 echo "struct rf_test_acc { int _xxx; };" # XXX Raidframe lossage
+echo "struct map_info { int _xxx[22]; };" # XXX Xorg lossage
 echo "#include <stdio.h>"
 echo "#include <sys/types.h>"
 echo "#include <sys/param.h>"
@@ -82,7 +83,12 @@
        echo "#include <$i>"
 done | ${SED} -e "s,${DESTDIR}/usr/include/,,g"
 
-${CC} -E -nostdinc -isystem ${DESTDIR}/usr/include -dM ${1+"$@"} | \
+${CC} -E -nostdinc -isystem ${DESTDIR}/usr/include \
+    -I${DESTDIR}/usr/X11R7/include \
+    -I${DESTDIR}/usr/X11R7/include/pixman-1 \
+    -I${DESTDIR}/usr/X11R7/include/libdrm \
+    -D_VIA_DRM_H_ \
+    -dM ${1+"$@"} | \
 ${AWK} '
 BEGIN {
        keep["SLIOCGUNIT"] = 1; # Same as PPPIOCGASYNCMAP
@@ -170,7 +176,7 @@
        print "\tswitch (val) {\n"
 }
 
-/^#[   ]*define[       ]*[A-Z0-9_]*[   ]*_IO[W]*[R]*[  ]*\(/ {
+/^#[   ]*define[       ]*[A-Z0-9_]*[   ]*[D]*[R]*[M]*_IO[W]*[R]*[      ]*\(/ {
        
        # find where the name starts
        for (i = 1; i <= NF; i++)



Home | Main Index | Thread Index | Old Index