Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/atari/dev Remove unnecessary volatile keyword again...



details:   https://anonhg.NetBSD.org/src/rev/d27e2df17726
branches:  trunk
changeset: 753762:d27e2df17726
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Apr 09 12:34:25 2010 +0000

description:
Remove unnecessary volatile keyword against struct zschan.
(volatile against structure member is enough)

diffstat:

 sys/arch/atari/dev/zs.c    |  32 ++++++++++++++++----------------
 sys/arch/atari/dev/zsvar.h |   4 ++--
 2 files changed, 18 insertions(+), 18 deletions(-)

diffs (134 lines):

diff -r 1eebce483962 -r d27e2df17726 sys/arch/atari/dev/zs.c
--- a/sys/arch/atari/dev/zs.c   Fri Apr 09 12:09:29 2010 +0000
+++ b/sys/arch/atari/dev/zs.c   Fri Apr 09 12:34:25 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs.c,v 1.66 2010/04/09 12:09:29 tsutsui Exp $  */
+/*     $NetBSD: zs.c,v 1.67 2010/04/09 12:34:25 tsutsui Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.66 2010/04/09 12:09:29 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.67 2010/04/09 12:34:25 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -122,9 +122,9 @@
  * Software state per found chip.
  */
 struct zs_softc {
-       struct  device          zi_dev;    /* base device                 */
-       volatile struct zsdevice *zi_zs;   /* chip registers              */
-       struct  zs_chanstate    zi_cs[2];  /* chan A and B software state */
+       struct device zi_dev;           /* base device */
+       struct zsdevice *zi_zs;         /* chip registers */
+       struct zs_chanstate zi_cs[2];   /* chan A and B software state */
 };
 
 static void    *zs_softint_cookie;     /* for callback */
@@ -244,9 +244,9 @@
 /* Interrupt handlers. */
 int            zshard(long);
 static int     zssoft(long);
-static int     zsrint(struct zs_chanstate *, volatile struct zschan *);
-static int     zsxint(struct zs_chanstate *, volatile struct zschan *);
-static int     zssint(struct zs_chanstate *, volatile struct zschan *);
+static int     zsrint(struct zs_chanstate *, struct zschan *);
+static int     zsxint(struct zs_chanstate *, struct zschan *);
+static int     zssint(struct zs_chanstate *, struct zschan *);
 
 static struct zs_chanstate *zslist;
 
@@ -258,7 +258,7 @@
 static int     zsparam(struct tty *, struct termios *);
 static int     zsbaudrate(int, int, int *, int *, int *, int *);
 static int     zs_modem(struct zs_chanstate *, int, int);
-static void    zs_loadchannelregs(volatile struct zschan *, uint8_t *);
+static void    zs_loadchannelregs(struct zschan *, uint8_t *);
 static void    zs_shutdown(struct zs_chanstate *);
 
 static int
@@ -280,7 +280,7 @@
 {
        struct zs_softc *zi;
        struct zs_chanstate *cs;
-       volatile struct zsdevice *addr;
+       struct zsdevice *addr;
        uint8_t tmp;
 
        addr      = (struct zsdevice *)AD_SCC;
@@ -559,7 +559,7 @@
 {
        struct zs_chanstate *a;
 #define        b (a + 1)
-       volatile struct zschan *zc;
+       struct zschan *zc;
        int rr3, intflags = 0, v, i;
 
        do {
@@ -621,7 +621,7 @@
 }
 
 static int
-zsrint(struct zs_chanstate *cs, volatile struct zschan *zc)
+zsrint(struct zs_chanstate *cs, struct zschan *zc)
 {
        int c;
 
@@ -640,7 +640,7 @@
 }
 
 static int
-zsxint(struct zs_chanstate *cs, volatile struct zschan *zc)
+zsxint(struct zs_chanstate *cs, struct zschan *zc)
 {
        int i = cs->cs_tbc;
 
@@ -656,7 +656,7 @@
 }
 
 static int
-zssint(struct zs_chanstate *cs, volatile struct zschan *zc)
+zssint(struct zs_chanstate *cs, struct zschan *zc)
 {
        int rr0;
 
@@ -707,7 +707,7 @@
 zssoft(long sr)
 {
        struct zs_chanstate *cs;
-       volatile struct zschan *zc;
+       struct zschan *zc;
        struct linesw *line;
        struct tty *tp;
        int get, n, c, cc, unit, s;
@@ -1280,7 +1280,7 @@
  * be disabled for the time it takes to write all the registers.
  */
 static void
-zs_loadchannelregs(volatile struct zschan *zc, uint8_t *reg)
+zs_loadchannelregs(struct zschan *zc, uint8_t *reg)
 {
        int i;
 
diff -r 1eebce483962 -r d27e2df17726 sys/arch/atari/dev/zsvar.h
--- a/sys/arch/atari/dev/zsvar.h        Fri Apr 09 12:09:29 2010 +0000
+++ b/sys/arch/atari/dev/zsvar.h        Fri Apr 09 12:34:25 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zsvar.h,v 1.14 2010/04/09 12:09:29 tsutsui Exp $       */
+/*     $NetBSD: zsvar.h,v 1.15 2010/04/09 12:34:25 tsutsui Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -119,7 +119,7 @@
 
 struct zs_chanstate {
        struct zs_chanstate     *cs_next;       /* linked list for zshard() */
-       volatile struct zschan  *cs_zc;         /* points to hardware regs */
+       struct zschan           *cs_zc;         /* points to hardware regs */
        int                     cs_unit;        /* unit number */
        struct  tty             *cs_ttyp;       /* ### */
 



Home | Main Index | Thread Index | Old Index