Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Uncomment /*static*/ function declarations,



details:   https://anonhg.NetBSD.org/src/rev/6c63694f9945
branches:  trunk
changeset: 747037:6c63694f9945
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Aug 29 06:05:39 2009 +0000

description:
Uncomment /*static*/ function declarations,
and #ifdef'ed out an unused function.

diffstat:

 sys/dev/ic/ncr53c9x.c |  40 ++++++++++++++++++++++------------------
 1 files changed, 22 insertions(+), 18 deletions(-)

diffs (76 lines):

diff -r f5411bbd1932 -r 6c63694f9945 sys/dev/ic/ncr53c9x.c
--- a/sys/dev/ic/ncr53c9x.c     Sat Aug 29 00:09:02 2009 +0000
+++ b/sys/dev/ic/ncr53c9x.c     Sat Aug 29 06:05:39 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ncr53c9x.c,v 1.138 2009/05/01 03:18:20 martin Exp $    */
+/*     $NetBSD: ncr53c9x.c,v 1.139 2009/08/29 06:05:39 tsutsui Exp $   */
 
 /*-
  * Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.138 2009/05/01 03:18:20 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.139 2009/08/29 06:05:39 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -100,23 +100,25 @@
 int ncr53c9x_notag = 0;
 #endif
 
-/*static*/ void        ncr53c9x_readregs(struct ncr53c9x_softc *);
-/*static*/ void        ncr53c9x_select(struct ncr53c9x_softc *, struct ncr53c9x_ecb *);
-/*static*/ int ncr53c9x_reselect(struct ncr53c9x_softc *, int, int, int);
-/*static*/ void        ncr53c9x_scsi_reset(struct ncr53c9x_softc *);
-/*static*/ void ncr53c9x_clear(struct ncr53c9x_softc *, scsipi_xfer_result_t);
-/*static*/ int ncr53c9x_poll(struct ncr53c9x_softc *,
+static void    ncr53c9x_readregs(struct ncr53c9x_softc *);
+static void    ncr53c9x_select(struct ncr53c9x_softc *, struct ncr53c9x_ecb *);
+static int     ncr53c9x_reselect(struct ncr53c9x_softc *, int, int, int);
+#if 0
+static void    ncr53c9x_scsi_reset(struct ncr53c9x_softc *);
+#endif
+static void    ncr53c9x_clear(struct ncr53c9x_softc *, scsipi_xfer_result_t);
+static int     ncr53c9x_poll(struct ncr53c9x_softc *,
                              struct scsipi_xfer *, int);
-/*static*/ void        ncr53c9x_sched(struct ncr53c9x_softc *);
-/*static*/ void        ncr53c9x_done(struct ncr53c9x_softc *, struct ncr53c9x_ecb *);
-/*static*/ void        ncr53c9x_msgin(struct ncr53c9x_softc *);
-/*static*/ void        ncr53c9x_msgout(struct ncr53c9x_softc *);
-/*static*/ void        ncr53c9x_timeout(void *arg);
-/*static*/ void        ncr53c9x_watch(void *arg);
-/*static*/ void        ncr53c9x_abort(struct ncr53c9x_softc *, struct ncr53c9x_ecb *);
-/*static*/ void ncr53c9x_dequeue(struct ncr53c9x_softc *,
-                               struct ncr53c9x_ecb *);
-/*static*/ int ncr53c9x_ioctl(struct scsipi_channel *, u_long,
+static void    ncr53c9x_sched(struct ncr53c9x_softc *);
+static void    ncr53c9x_done(struct ncr53c9x_softc *, struct ncr53c9x_ecb *);
+static void    ncr53c9x_msgin(struct ncr53c9x_softc *);
+static void    ncr53c9x_msgout(struct ncr53c9x_softc *);
+static void    ncr53c9x_timeout(void *arg);
+static void    ncr53c9x_watch(void *arg);
+static void    ncr53c9x_abort(struct ncr53c9x_softc *, struct ncr53c9x_ecb *);
+static void    ncr53c9x_dequeue(struct ncr53c9x_softc *,
+                                struct ncr53c9x_ecb *);
+static int     ncr53c9x_ioctl(struct scsipi_channel *, u_long,
                               void *, int, struct proc *);
 
 void ncr53c9x_sense(struct ncr53c9x_softc *, struct ncr53c9x_ecb *);
@@ -422,6 +424,7 @@
 #endif
 }
 
+#if 0
 /*
  * Reset the SCSI bus, but not the chip
  */
@@ -434,6 +437,7 @@
        printf("%s: resetting SCSI bus\n", device_xname(sc->sc_dev));
        NCRCMD(sc, NCRCMD_RSTSCSI);
 }
+#endif
 
 /*
  * Clear all commands



Home | Main Index | Thread Index | Old Index