Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/iomd ANSIfy, un-__P, clean comments a little.
details: https://anonhg.NetBSD.org/src/rev/2a4b105aae60
branches: trunk
changeset: 533050:2a4b105aae60
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Wed Jun 19 23:12:14 2002 +0000
description:
ANSIfy, un-__P, clean comments a little.
diffstat:
sys/arch/arm/iomd/wsqms.c | 33 +++++++++++----------------------
sys/arch/arm/iomd/wsqms_iomd.c | 18 ++++++------------
2 files changed, 17 insertions(+), 34 deletions(-)
diffs (138 lines):
diff -r 07a8adf3d7f2 -r 2a4b105aae60 sys/arch/arm/iomd/wsqms.c
--- a/sys/arch/arm/iomd/wsqms.c Wed Jun 19 23:05:07 2002 +0000
+++ b/sys/arch/arm/iomd/wsqms.c Wed Jun 19 23:12:14 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsqms.c,v 1.5 2002/06/19 23:02:58 bjh21 Exp $ */
+/* $NetBSD: wsqms.c,v 1.6 2002/06/19 23:12:14 bjh21 Exp $ */
/*-
* Copyright (c) 2001 Reinoud Zandijk
@@ -69,14 +69,12 @@
#define QMS_MOUSEY 1 /* 16 bits Y register */
#define QMS_BUTTONS 0 /* mouse buttons in bits 4,5,6 */
-#define MAX_XYREG 4096
-
/* forward declarations */
-static int wsqms_enable __P((void *cookie));
-static int wsqms_ioctl __P((void *cookie, u_long cmd, caddr_t data, int flag, struct proc *p));
-static void wsqms_disable __P((void *cookie));
-static void wsqms_intr __P((void *arg));
+static int wsqms_enable(void *);
+static int wsqms_ioctl(void *, u_long, caddr_t, int, struct proc *);
+static void wsqms_disable(void *cookie);
+static void wsqms_intr(void *arg);
static struct wsmouse_accessops wsqms_accessops = {
@@ -85,9 +83,7 @@
void
-wsqms_attach(sc, self)
- struct wsqms_softc *sc;
- struct device *self;
+wsqms_attach(struct wsqms_softc *sc, struct device *self)
{
struct wsmousedev_attach_args wsmouseargs;
@@ -104,8 +100,7 @@
static int
-wsqms_enable(cookie)
- void *cookie;
+wsqms_enable(void *cookie)
{
struct wsqms_softc *sc = cookie;
@@ -117,8 +112,7 @@
static void
-wsqms_disable(cookie)
- void *cookie;
+wsqms_disable(void *cookie)
{
struct wsqms_softc *sc = cookie;
@@ -129,13 +123,9 @@
static int
-wsqms_ioctl(cookie, cmd, data, flag, p)
- void *cookie;
- u_long cmd;
- caddr_t data;
- int flag;
- struct proc *p;
+wsqms_ioctl(void *cookie, u_long cmd, caddr_t data, int flag, struct proc *p)
{
+
switch (cmd) {
case WSMOUSEIO_GTYPE:
*(int *)data = WSMOUSE_TYPE_ARCHIMEDES;
@@ -147,8 +137,7 @@
static void
-wsqms_intr(arg)
- void *arg;
+wsqms_intr(void *arg)
{
struct wsqms_softc *sc = arg;
int x, y, b;
diff -r 07a8adf3d7f2 -r 2a4b105aae60 sys/arch/arm/iomd/wsqms_iomd.c
--- a/sys/arch/arm/iomd/wsqms_iomd.c Wed Jun 19 23:05:07 2002 +0000
+++ b/sys/arch/arm/iomd/wsqms_iomd.c Wed Jun 19 23:12:14 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsqms_iomd.c,v 1.3 2002/06/19 23:02:58 bjh21 Exp $ */
+/* $NetBSD: wsqms_iomd.c,v 1.4 2002/06/19 23:12:14 bjh21 Exp $ */
/*-
* Copyright (c) 2001 Reinoud Zandijk
@@ -36,7 +36,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
*
- * Quadratic mouse driver for the wscons as used in the IOMD; config glue...
+ * Quadrature mouse driver for the wscons as used in the IOMD; config glue...
*/
@@ -54,8 +54,8 @@
#include <arm/iomd/wsqmsvar.h>
#include <arm/iomd/iomdvar.h>
-static int wsqms_iomd_probe __P((struct device *, struct cfdata *, void *));
-static void wsqms_iomd_attach __P((struct device *, struct device *, void *));
+static int wsqms_iomd_probe(struct device *, struct cfdata *, void *);
+static void wsqms_iomd_attach(struct device *, struct device *, void *);
struct cfattach wsqms_iomd_ca = {
@@ -64,10 +64,7 @@
static int
-wsqms_iomd_probe(parent, cf, aux)
- struct device *parent;
- struct cfdata *cf;
- void *aux;
+wsqms_iomd_probe(struct device *parent, struct cfdata *cf, void *aux)
{
struct qms_attach_args *qa = aux;
@@ -79,10 +76,7 @@
static void
-wsqms_iomd_attach(parent, self, aux)
- struct device *parent;
- struct device *self;
- void *aux;
+wsqms_iomd_attach(struct device *parent, struct device *self, void *aux)
{
struct wsqms_softc *sc = (void *)self;
struct qms_attach_args *qa = aux;
Home |
Main Index |
Thread Index |
Old Index