Module Name: src
Committed By: tsutsui
Date: Sat Sep 26 16:07:51 UTC 2009
Modified Files:
src/sys/arch/sun3/dev: fd.c
Log Message:
Make local functions static.
To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sys/arch/sun3/dev/fd.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/arch/sun3/dev/fd.c
diff -u src/sys/arch/sun3/dev/fd.c:1.70 src/sys/arch/sun3/dev/fd.c:1.71
--- src/sys/arch/sun3/dev/fd.c:1.70 Sat Sep 26 16:03:45 2009
+++ src/sys/arch/sun3/dev/fd.c Sat Sep 26 16:07:51 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: fd.c,v 1.70 2009/09/26 16:03:45 tsutsui Exp $ */
+/* $NetBSD: fd.c,v 1.71 2009/09/26 16:07:51 tsutsui Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.70 2009/09/26 16:03:45 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.71 2009/09/26 16:07:51 tsutsui Exp $");
#include "opt_ddb.h"
@@ -185,13 +185,13 @@
};
/* controller driver configuration */
-int fdcmatch(device_t, cfdata_t, void *);
-void fdcattach(device_t, device_t, void *);
+static int fdcmatch(device_t, cfdata_t, void *);
+static void fdcattach(device_t, device_t, void *);
CFATTACH_DECL_NEW(fdc, sizeof(struct fdc_softc),
fdcmatch, fdcattach, NULL, NULL);
-inline struct fd_type *fd_dev_to_type(struct fd_softc *, dev_t);
+static inline struct fd_type *fd_dev_to_type(struct fd_softc *, dev_t);
/*
* Floppies come in various flavors, e.g., 1.2MB vs 1.44MB; here is how
@@ -216,7 +216,7 @@
};
/* The order of entries in the following table is important -- BEWARE! */
-struct fd_type fd_types[] = {
+static struct fd_type fd_types[] = {
{ 18, 2, 36, 2, 0xff, 0xcf, 0x18, 0x50, 80, 2880, 1,
FDC_500KBPS, 0xf6, 1, "1.44MB" }, /* 1.44MB diskette */
{ 15, 2, 30, 2, 0xff, 0xdf, 0x1b, 0x54, 80, 2400, 1,
@@ -265,8 +265,8 @@
};
/* floppy driver configuration */
-int fdmatch(device_t, cfdata_t, void *);
-void fdattach(device_t, device_t, void *);
+static int fdmatch(device_t, cfdata_t, void *);
+static void fdattach(device_t, device_t, void *);
CFATTACH_DECL_NEW(fd, sizeof(struct fd_softc),
fdmatch, fdattach, NULL, NULL);
@@ -288,33 +288,31 @@
};
static bool fd_shutdown(device_t, int);
-void fdgetdisklabel(dev_t);
-int fd_get_parms(struct fd_softc *);
-void fdstart(struct fd_softc *);
-int fdprint(void *, const char *);
+static void fdgetdisklabel(dev_t);
+static void fdstart(struct fd_softc *);
+static int fdprint(void *, const char *);
struct dkdriver fddkdriver = { fdstrategy };
-struct fd_type *fd_nvtotype(char *, int, int);
-void fd_set_motor(struct fdc_softc *);
-void fd_motor_off(void *);
-void fd_motor_on(void *);
-int fdcresult(struct fdc_softc *);
-int out_fdc(struct fdc_softc *, u_char);
-void fdcstart(struct fdc_softc *);
-void fdcstatus(device_t, int, const char *);
-void fdc_reset(struct fdc_softc *);
-void fdctimeout(void *);
-void fdcpseudointr(void *);
-int fdchwintr(void *);
-void fdcswintr(void *);
-int fdcstate(struct fdc_softc *);
-void fdcretry(struct fdc_softc *);
-void fdfinish(struct fd_softc *, struct buf *);
-int fdformat(dev_t, struct ne7_fd_formb *, struct proc *);
-void fd_do_eject(struct fdc_softc *, int);
-void fd_mountroot_hook(device_t);
-static void fdconf(struct fdc_softc *);
+static void fd_set_motor(struct fdc_softc *);
+static void fd_motor_off(void *);
+static void fd_motor_on(void *);
+static int fdcresult(struct fdc_softc *);
+static int out_fdc(struct fdc_softc *, u_char);
+static void fdcstart(struct fdc_softc *);
+static void fdcstatus(device_t, int, const char *);
+static void fdc_reset(struct fdc_softc *);
+static void fdctimeout(void *);
+static void fdcpseudointr(void *);
+static int fdchwintr(void *);
+static void fdcswintr(void *);
+static int fdcstate(struct fdc_softc *);
+static void fdcretry(struct fdc_softc *);
+static void fdfinish(struct fd_softc *, struct buf *);
+static int fdformat(dev_t, struct ne7_fd_formb *, struct proc *);
+static void fd_do_eject(struct fdc_softc *, int);
+static void fd_mountroot_hook(device_t);
+static void fdconf(struct fdc_softc *);
#define IPL_SOFTFD IPL_BIO
#define FDC_SOFTPRI 2