From e4cdaf2f25e753a8ee14d2113c3f14b1b5b1564c Mon Sep 17 00:00:00 2001 From: nate Date: Fri, 15 Nov 1996 06:22:48 +0000 Subject: [PATCH] KNF'ify. --- sys/alpha/include/mouse.h | 16 +++++++++++----- sys/i386/include/mouse.h | 16 +++++++++++----- sys/sys/mouse.h | 16 +++++++++++----- 3 files changed, 33 insertions(+), 15 deletions(-) diff --git a/sys/alpha/include/mouse.h b/sys/alpha/include/mouse.h index a7322b737571..1303a3186403 100644 --- a/sys/alpha/include/mouse.h +++ b/sys/alpha/include/mouse.h @@ -19,7 +19,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: mouse.h,v 1.1 1994/09/09 11:27:31 dfr Exp $ + * $Id: mouse.h,v 1.2 1996/11/14 22:18:25 sos Exp $ */ #ifndef _MACHINE_MOUSE_H_ @@ -28,10 +28,12 @@ #include #include -/* NOTE: MOUSEIOC and MOUSEIOCREAD are now obsolete, but will stay - for compatibility reasons. But, remember, the MOUSEIOCREAD ioctl - command doesn't work and never worked before. Some day we shall - get rid of these... */ +/* + * NOTE: MOUSEIOC and MOUSEIOCREAD are now obsolete, but will stay + * for compatibility reasons. But, remember, the MOUSEIOCREAD ioctl + * command doesn't work and never worked before. Some day we shall + * get rid of these... + */ #define MOUSEIOC ('M'<<8) #define MOUSEIOCREAD (MOUSEIOC|60) @@ -46,6 +48,7 @@ typedef struct mouseinfo { char xmotion; char ymotion; } mouseinfo_t; + /* status */ #define BUTSTATMASK 0x07 /* Any mouse button down if any bit set */ #define BUTCHNGMASK 0x38 /* Any mouse button changed if any bit set */ @@ -64,11 +67,13 @@ typedef struct mousehw { int hwid; /* I/F dependent hardware ID for the PS/2 mouse, it will be PSM_XXX_ID */ } mousehw_t; + /* iftype */ #define MOUSE_IF_SERIAL 0 #define MOUSE_IF_BUS 1 #define MOUSE_IF_INPORT 2 #define MOUSE_IF_PS2 3 + /* type */ #define MOUSE_UNKNOWN (-1) /* should be treated as a mouse */ #define MOUSE_MOUSE 0 @@ -82,6 +87,7 @@ typedef struct mousemode { int resolution; /* ppi, -1 if unknown */ int accelfactor; /* accelation factor (must be 1 or greater) */ } mousemode_t; + /* protocol */ #define MOUSE_PROTO_MS 0 /* Microsoft Serial, 3 bytes */ #define MOUSE_PROTO_MSC 1 /* Mouse Systems, 5 bytes */ diff --git a/sys/i386/include/mouse.h b/sys/i386/include/mouse.h index a7322b737571..1303a3186403 100644 --- a/sys/i386/include/mouse.h +++ b/sys/i386/include/mouse.h @@ -19,7 +19,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: mouse.h,v 1.1 1994/09/09 11:27:31 dfr Exp $ + * $Id: mouse.h,v 1.2 1996/11/14 22:18:25 sos Exp $ */ #ifndef _MACHINE_MOUSE_H_ @@ -28,10 +28,12 @@ #include #include -/* NOTE: MOUSEIOC and MOUSEIOCREAD are now obsolete, but will stay - for compatibility reasons. But, remember, the MOUSEIOCREAD ioctl - command doesn't work and never worked before. Some day we shall - get rid of these... */ +/* + * NOTE: MOUSEIOC and MOUSEIOCREAD are now obsolete, but will stay + * for compatibility reasons. But, remember, the MOUSEIOCREAD ioctl + * command doesn't work and never worked before. Some day we shall + * get rid of these... + */ #define MOUSEIOC ('M'<<8) #define MOUSEIOCREAD (MOUSEIOC|60) @@ -46,6 +48,7 @@ typedef struct mouseinfo { char xmotion; char ymotion; } mouseinfo_t; + /* status */ #define BUTSTATMASK 0x07 /* Any mouse button down if any bit set */ #define BUTCHNGMASK 0x38 /* Any mouse button changed if any bit set */ @@ -64,11 +67,13 @@ typedef struct mousehw { int hwid; /* I/F dependent hardware ID for the PS/2 mouse, it will be PSM_XXX_ID */ } mousehw_t; + /* iftype */ #define MOUSE_IF_SERIAL 0 #define MOUSE_IF_BUS 1 #define MOUSE_IF_INPORT 2 #define MOUSE_IF_PS2 3 + /* type */ #define MOUSE_UNKNOWN (-1) /* should be treated as a mouse */ #define MOUSE_MOUSE 0 @@ -82,6 +87,7 @@ typedef struct mousemode { int resolution; /* ppi, -1 if unknown */ int accelfactor; /* accelation factor (must be 1 or greater) */ } mousemode_t; + /* protocol */ #define MOUSE_PROTO_MS 0 /* Microsoft Serial, 3 bytes */ #define MOUSE_PROTO_MSC 1 /* Mouse Systems, 5 bytes */ diff --git a/sys/sys/mouse.h b/sys/sys/mouse.h index a7322b737571..1303a3186403 100644 --- a/sys/sys/mouse.h +++ b/sys/sys/mouse.h @@ -19,7 +19,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: mouse.h,v 1.1 1994/09/09 11:27:31 dfr Exp $ + * $Id: mouse.h,v 1.2 1996/11/14 22:18:25 sos Exp $ */ #ifndef _MACHINE_MOUSE_H_ @@ -28,10 +28,12 @@ #include #include -/* NOTE: MOUSEIOC and MOUSEIOCREAD are now obsolete, but will stay - for compatibility reasons. But, remember, the MOUSEIOCREAD ioctl - command doesn't work and never worked before. Some day we shall - get rid of these... */ +/* + * NOTE: MOUSEIOC and MOUSEIOCREAD are now obsolete, but will stay + * for compatibility reasons. But, remember, the MOUSEIOCREAD ioctl + * command doesn't work and never worked before. Some day we shall + * get rid of these... + */ #define MOUSEIOC ('M'<<8) #define MOUSEIOCREAD (MOUSEIOC|60) @@ -46,6 +48,7 @@ typedef struct mouseinfo { char xmotion; char ymotion; } mouseinfo_t; + /* status */ #define BUTSTATMASK 0x07 /* Any mouse button down if any bit set */ #define BUTCHNGMASK 0x38 /* Any mouse button changed if any bit set */ @@ -64,11 +67,13 @@ typedef struct mousehw { int hwid; /* I/F dependent hardware ID for the PS/2 mouse, it will be PSM_XXX_ID */ } mousehw_t; + /* iftype */ #define MOUSE_IF_SERIAL 0 #define MOUSE_IF_BUS 1 #define MOUSE_IF_INPORT 2 #define MOUSE_IF_PS2 3 + /* type */ #define MOUSE_UNKNOWN (-1) /* should be treated as a mouse */ #define MOUSE_MOUSE 0 @@ -82,6 +87,7 @@ typedef struct mousemode { int resolution; /* ppi, -1 if unknown */ int accelfactor; /* accelation factor (must be 1 or greater) */ } mousemode_t; + /* protocol */ #define MOUSE_PROTO_MS 0 /* Microsoft Serial, 3 bytes */ #define MOUSE_PROTO_MSC 1 /* Mouse Systems, 5 bytes */