ANSIfy, un-__P, clean comments a little.
This commit is contained in:
parent
26f6ad6038
commit
cccb2d97a7
|
@ -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 @@ static struct wsmouse_accessops wsqms_accessops = {
|
|||
|
||||
|
||||
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 @@ wsqms_attach(sc, self)
|
|||
|
||||
|
||||
static int
|
||||
wsqms_enable(cookie)
|
||||
void *cookie;
|
||||
wsqms_enable(void *cookie)
|
||||
{
|
||||
struct wsqms_softc *sc = cookie;
|
||||
|
||||
|
@ -117,8 +112,7 @@ wsqms_enable(cookie)
|
|||
|
||||
|
||||
static void
|
||||
wsqms_disable(cookie)
|
||||
void *cookie;
|
||||
wsqms_disable(void *cookie)
|
||||
{
|
||||
struct wsqms_softc *sc = cookie;
|
||||
|
||||
|
@ -129,13 +123,9 @@ wsqms_disable(cookie)
|
|||
|
||||
|
||||
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 @@ wsqms_ioctl(cookie, cmd, data, flag, p)
|
|||
|
||||
|
||||
static void
|
||||
wsqms_intr(arg)
|
||||
void *arg;
|
||||
wsqms_intr(void *arg)
|
||||
{
|
||||
struct wsqms_softc *sc = arg;
|
||||
int x, y, b;
|
||||
|
|
|
@ -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 @@ struct cfattach wsqms_iomd_ca = {
|
|||
|
||||
|
||||
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 @@ wsqms_iomd_probe(parent, cf, aux)
|
|||
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue