Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/zaurus/dev Fix build errors with options WSDISPLAY_...



details:   https://anonhg.NetBSD.org/src/rev/190bdcdbf2da
branches:  trunk
changeset: 460760:190bdcdbf2da
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Nov 02 23:03:53 2019 +0000

description:
Fix build errors with options WSDISPLAY_COMPAT_RAWKBD.

- Add missing RAWKEY_* macro definitions (taken from OpenBSD)
- Explicitly include "opt_wsdisplay_compat.h" for
  #ifdef WSDISPLAY_COMPAT_RAWKBD conditionals.
  (it is not properly pulled at least in netbsd-8)
 https://mail-index.netbsd.org/port-zaurus/2019/11/02/msg000083.html

Should be pulled up to netbsd-8 and netbsd-9.

diffstat:

 sys/arch/zaurus/dev/zrc.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 6cc26f404b86 -r 190bdcdbf2da sys/arch/zaurus/dev/zrc.c
--- a/sys/arch/zaurus/dev/zrc.c Sat Nov 02 22:55:57 2019 +0000
+++ b/sys/arch/zaurus/dev/zrc.c Sat Nov 02 23:03:53 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zrc.c,v 1.9 2012/10/27 17:18:14 chs Exp $      */
+/*     $NetBSD: zrc.c,v 1.10 2019/11/02 23:03:53 tsutsui Exp $ */
 /*     $OpenBSD: zaurus_remote.c,v 1.1 2005/11/17 05:26:31 uwe Exp $   */
 
 /*
@@ -17,8 +17,10 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include "opt_wsdisplay_compat.h"
+
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zrc.c,v 1.9 2012/10/27 17:18:14 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zrc.c,v 1.10 2019/11/02 23:03:53 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -131,6 +133,11 @@
 };
 
 #ifdef WSDISPLAY_COMPAT_RAWKBD
+/* XXX see OpenBSD's <sys/dev/wscons/wskbdraw.h> */
+#define        RAWKEY_Null             0x00
+#define        RAWKEY_AudioMute        0x85
+#define        RAWKEY_AudioLower       0x86
+#define        RAWKEY_AudioRaise       0x87
 #define        RAWKEY_AudioRewind      0xa0
 #define        RAWKEY_AudioForward     0xa1
 #define        RAWKEY_AudioPlay        0xa2



Home | Main Index | Thread Index | Old Index