Module Name: src Committed By: tsutsui Date: Sat Aug 29 06:05:40 UTC 2009
Modified Files: src/sys/dev/ic: ncr53c9x.c Log Message: Uncomment /*static*/ function declarations, and #ifdef'ed out an unused function. To generate a diff of this commit: cvs rdiff -u -r1.138 -r1.139 src/sys/dev/ic/ncr53c9x.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ic/ncr53c9x.c diff -u src/sys/dev/ic/ncr53c9x.c:1.138 src/sys/dev/ic/ncr53c9x.c:1.139 --- src/sys/dev/ic/ncr53c9x.c:1.138 Fri May 1 03:18:20 2009 +++ src/sys/dev/ic/ncr53c9x.c Sat Aug 29 06:05:39 2009 @@ -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