summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/mse.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-12-15 00:54:32 +0000
committerbde <bde@FreeBSD.org>1995-12-15 00:54:32 +0000
commit78ea2a381b4a1829338088dc12e054d05bd32b59 (patch)
tree0e4fed627017f370a1dc320465630b9b87d4f4af /sys/i386/isa/mse.c
parent54924772e9c10201de95bda5b1765dc4efc93604 (diff)
downloadFreeBSD-src-78ea2a381b4a1829338088dc12e054d05bd32b59.zip
FreeBSD-src-78ea2a381b4a1829338088dc12e054d05bd32b59.tar.gz
Completed function declarations and/or added prototypes and/or added
#includes to get prototypes.
Diffstat (limited to 'sys/i386/isa/mse.c')
-rw-r--r--sys/i386/isa/mse.c32
1 files changed, 20 insertions, 12 deletions
diff --git a/sys/i386/isa/mse.c b/sys/i386/isa/mse.c
index 99d0fae..01df850 100644
--- a/sys/i386/isa/mse.c
+++ b/sys/i386/isa/mse.c
@@ -11,7 +11,7 @@
* this software for any purpose. It is provided "as is"
* without express or implied warranty.
*
- * $Id: mse.c,v 1.22 1995/12/10 13:39:00 phk Exp $
+ * $Id: mse.c,v 1.23 1995/12/15 00:29:30 bde Exp $
*/
/*
* Driver for the Logitech and ATI Inport Bus mice for use with 386bsd and
@@ -94,9 +94,9 @@ static struct mse_softc {
int sc_mousetype;
struct selinfo sc_selp;
u_int sc_port;
- void (*sc_enablemouse)();
- void (*sc_disablemouse)();
- void (*sc_getmouse)();
+ void (*sc_enablemouse) __P((u_int port));
+ void (*sc_disablemouse) __P((u_int port));
+ void (*sc_getmouse) __P((u_int port, int *dx, int *dy, int *but));
int sc_deltax;
int sc_deltay;
int sc_obuttons;
@@ -163,8 +163,10 @@ static struct mse_softc {
#define MSE_DISINTR 0x10
#define MSE_INTREN 0x00
-static int mse_probelogi();
-static void mse_enablelogi(), mse_disablelogi(), mse_getlogi();
+static int mse_probelogi __P((struct isa_device *idp));
+static void mse_disablelogi __P((u_int port));
+static void mse_getlogi __P((u_int port, int *dx, int *dy, int *but));
+static void mse_enablelogi __P((u_int port));
/*
* ATI Inport mouse definitions
@@ -177,8 +179,10 @@ static void mse_enablelogi(), mse_disablelogi(), mse_getlogi();
#define MSE_INPORT_HOLD 0x20
#define MSE_INPORT_INTREN 0x09
-static int mse_probeati();
-static void mse_enableati(), mse_disableati(), mse_getati();
+static int mse_probeati __P((struct isa_device *idp));
+static void mse_enableati __P((u_int port));
+static void mse_disableati __P((u_int port));
+static void mse_getati __P((u_int port, int *dx, int *dy, int *but));
#define MSEPRI (PZERO + 3)
@@ -189,10 +193,14 @@ static void mse_enableati(), mse_disableati(), mse_getati();
*/
static struct mse_types {
int m_type; /* Type of bus mouse */
- int (*m_probe)(); /* Probe routine to test for it */
- void (*m_enable)(); /* Start routine */
- void (*m_disable)(); /* Disable interrupts routine */
- void (*m_get)(); /* and get mouse status */
+ int (*m_probe) __P((struct isa_device *idp));
+ /* Probe routine to test for it */
+ void (*m_enable) __P((u_int port));
+ /* Start routine */
+ void (*m_disable) __P((u_int port));
+ /* Disable interrupts routine */
+ void (*m_get) __P((u_int port, int *dx, int *dy, int *but));
+ /* and get mouse status */
} mse_types[] = {
{ MSE_ATIINPORT, mse_probeati, mse_enableati, mse_disableati, mse_getati },
{ MSE_LOGITECH, mse_probelogi, mse_enablelogi, mse_disablelogi, mse_getlogi },
OpenPOWER on IntegriCloud