summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-08-10 23:44:17 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-08-10 23:44:17 +0000
commit0de261f0b1985cec13037f1fcfb3a60fe3441332 (patch)
tree519b70b5b0dc7918805fb75807596210ad327a75 /sys/dev
parent8a596106583caf04a0a0cd2cb83b2eab07d90be6 (diff)
Embed device list comments in generated hildevs_data.h file; no functional
change.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/hil/devlist2h.awk18
-rw-r--r--sys/dev/hil/hildevs4
2 files changed, 14 insertions, 8 deletions
diff --git a/sys/dev/hil/devlist2h.awk b/sys/dev/hil/devlist2h.awk
index 4663efae4b9..773c97ebaac 100644
--- a/sys/dev/hil/devlist2h.awk
+++ b/sys/dev/hil/devlist2h.awk
@@ -1,5 +1,5 @@
#! /usr/bin/awk -f
-# $OpenBSD: devlist2h.awk,v 1.3 2005/05/13 14:54:44 miod Exp $
+# $OpenBSD: devlist2h.awk,v 1.4 2006/08/10 23:44:16 miod Exp $
#
# Copyright (c) 2003, Miodrag Vallat.
# All rights reserved.
@@ -52,18 +52,24 @@ $1 == "keyboard" || $1 == "mouse" || $1 == "idmodule" || $1 == "buttonbox" {
$2, $3, toupper($1))
# description, with optional ``#''-prefixed comments
+ comment = 0
i = 4
f = i
while (f <= NF) {
if ($f == "#") {
- break
+ comment = 1
+ printf ("\" },\t/*")
+ } else {
+ if (f > i)
+ printf(" ")
+ printf("%s", $f)
}
- if (f > i)
- printf(" ")
- printf("%s", $f)
f++
}
- printf("\" },\n")
+ if (comment)
+ printf(" */\n");
+ else
+ printf("\" },\n")
next
}
diff --git a/sys/dev/hil/hildevs b/sys/dev/hil/hildevs
index 169ac8eb53f..00881ae6f60 100644
--- a/sys/dev/hil/hildevs
+++ b/sys/dev/hil/hildevs
@@ -1,4 +1,4 @@
-$OpenBSD: hildevs,v 1.2 2005/05/13 14:54:44 miod Exp $
+$OpenBSD: hildevs,v 1.3 2006/08/10 23:44:16 miod Exp $
/*
* Copyright (c) 2003, Miodrag Vallat.
* All rights reserved.
@@ -33,7 +33,7 @@ idmodule 34 34 ID module
buttonbox 35 3f Button box
buttonbox 5c 5f Barcode reader
mouse 60 60 Single knob
-mouse 61 61 Nine knob
+mouse 61 61 Nine knob # can also be quadrature
mouse 62 67 Quadrature
mouse 68 6b Mouse
mouse 6c 6f Trackball