Module Name:    src
Committed By:   tsutsui
Date:           Tue Sep 22 16:44:08 UTC 2009

Modified Files:
        src/sys/dev/ic: cs89x0.c
        src/sys/dev/isa: if_cs_isa.c if_tscs_isa.c
        src/sys/dev/isapnp: if_cs_isapnp.c
        src/sys/dev/ofisa: if_cs_ofisa.c

Log Message:
Make local functions static.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/ic/cs89x0.c
cvs rdiff -u -r1.24 -r1.25 src/sys/dev/isa/if_cs_isa.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/isa/if_tscs_isa.c
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/isapnp/if_cs_isapnp.c
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/ofisa/if_cs_ofisa.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/cs89x0.c
diff -u src/sys/dev/ic/cs89x0.c:1.27 src/sys/dev/ic/cs89x0.c:1.28
--- src/sys/dev/ic/cs89x0.c:1.27	Tue Sep 22 15:25:12 2009
+++ src/sys/dev/ic/cs89x0.c	Tue Sep 22 16:44:08 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: cs89x0.c,v 1.27 2009/09/22 15:25:12 tsutsui Exp $	*/
+/*	$NetBSD: cs89x0.c,v 1.28 2009/09/22 16:44:08 tsutsui Exp $	*/
 
 /*
  * Copyright (c) 2004 Christopher Gilbert
@@ -212,7 +212,7 @@
 */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cs89x0.c,v 1.27 2009/09/22 15:25:12 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cs89x0.c,v 1.28 2009/09/22 16:44:08 tsutsui Exp $");
 
 #include "opt_inet.h"
 
@@ -265,26 +265,26 @@
 /*
  * FUNCTION PROTOTYPES
  */
-void	cs_get_default_media(struct cs_softc *);
-int	cs_get_params(struct cs_softc *);
-int	cs_get_enaddr(struct cs_softc *);
-int	cs_reset_chip(struct cs_softc *);
-void	cs_reset(struct cs_softc *);
-int	cs_ioctl(struct ifnet *, u_long, void *);
-void	cs_initChip(struct cs_softc *);
-void	cs_buffer_event(struct cs_softc *, u_int16_t);
-void	cs_transmit_event(struct cs_softc *, u_int16_t);
-void	cs_receive_event(struct cs_softc *, u_int16_t);
-void	cs_process_receive(struct cs_softc *);
-void	cs_process_rx_early(struct cs_softc *);
-void	cs_start_output(struct ifnet *);
-void	cs_copy_tx_frame(struct cs_softc *, struct mbuf *);
-void	cs_set_ladr_filt(struct cs_softc *, struct ethercom *);
-u_int16_t cs_hash_index(char *);
-void	cs_counter_event(struct cs_softc *, u_int16_t);
+static void	cs_get_default_media(struct cs_softc *);
+static int	cs_get_params(struct cs_softc *);
+static int	cs_get_enaddr(struct cs_softc *);
+static int	cs_reset_chip(struct cs_softc *);
+static void	cs_reset(struct cs_softc *);
+static int	cs_ioctl(struct ifnet *, u_long, void *);
+static void	cs_initChip(struct cs_softc *);
+static void	cs_buffer_event(struct cs_softc *, u_int16_t);
+static void	cs_transmit_event(struct cs_softc *, u_int16_t);
+static void	cs_receive_event(struct cs_softc *, u_int16_t);
+static void	cs_process_receive(struct cs_softc *);
+static void	cs_process_rx_early(struct cs_softc *);
+static void	cs_start_output(struct ifnet *);
+static void	cs_copy_tx_frame(struct cs_softc *, struct mbuf *);
+static void	cs_set_ladr_filt(struct cs_softc *, struct ethercom *);
+static u_int16_t cs_hash_index(char *);
+static void	cs_counter_event(struct cs_softc *, u_int16_t);
 
-int	cs_mediachange(struct ifnet *);
-void	cs_mediastatus(struct ifnet *, struct ifmediareq *);
+static int	cs_mediachange(struct ifnet *);
+static void	cs_mediastatus(struct ifnet *, struct ifmediareq *);
 
 static bool cs_shutdown(device_t, int);
 static int cs_enable(struct cs_softc *);

Index: src/sys/dev/isa/if_cs_isa.c
diff -u src/sys/dev/isa/if_cs_isa.c:1.24 src/sys/dev/isa/if_cs_isa.c:1.25
--- src/sys/dev/isa/if_cs_isa.c:1.24	Tue Sep 22 14:55:19 2009
+++ src/sys/dev/isa/if_cs_isa.c	Tue Sep 22 16:44:08 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_cs_isa.c,v 1.24 2009/09/22 14:55:19 tsutsui Exp $	*/
+/*	$NetBSD: if_cs_isa.c,v 1.25 2009/09/22 16:44:08 tsutsui Exp $	*/
 
 /*
  * Copyright 1997
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cs_isa.c,v 1.24 2009/09/22 14:55:19 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cs_isa.c,v 1.25 2009/09/22 16:44:08 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -61,8 +61,8 @@
 #include <dev/ic/cs89x0var.h>
 #include <dev/isa/cs89x0isavar.h>
 
-int	cs_isa_probe(device_t, cfdata_t, void *);
-void	cs_isa_attach(device_t, device_t, void *);
+static int	cs_isa_probe(device_t, cfdata_t, void *);
+static void	cs_isa_attach(device_t, device_t, void *);
 
 CFATTACH_DECL_NEW(cs_isa, sizeof(struct cs_softc_isa),
     cs_isa_probe, cs_isa_attach, NULL, NULL);

Index: src/sys/dev/isa/if_tscs_isa.c
diff -u src/sys/dev/isa/if_tscs_isa.c:1.13 src/sys/dev/isa/if_tscs_isa.c:1.14
--- src/sys/dev/isa/if_tscs_isa.c:1.13	Tue Sep 22 14:55:19 2009
+++ src/sys/dev/isa/if_tscs_isa.c	Tue Sep 22 16:44:08 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_tscs_isa.c,v 1.13 2009/09/22 14:55:19 tsutsui Exp $	*/
+/*	$NetBSD: if_tscs_isa.c,v 1.14 2009/09/22 16:44:08 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tscs_isa.c,v 1.13 2009/09/22 14:55:19 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tscs_isa.c,v 1.14 2009/09/22 16:44:08 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -57,8 +57,8 @@
 #include <dev/ic/cs89x0var.h>
 #include <dev/isa/cs89x0isavar.h>
 
-int	tscs_isa_probe(device_t, cfdata_t, void *);
-void	tscs_isa_attach(device_t, device_t, void *);
+static int	tscs_isa_probe(device_t, cfdata_t, void *);
+static void	tscs_isa_attach(device_t, device_t, void *);
 
 CFATTACH_DECL_NEW(tscs_isa, sizeof(struct cs_softc_isa),
     tscs_isa_probe, tscs_isa_attach, NULL, NULL);

Index: src/sys/dev/isapnp/if_cs_isapnp.c
diff -u src/sys/dev/isapnp/if_cs_isapnp.c:1.16 src/sys/dev/isapnp/if_cs_isapnp.c:1.17
--- src/sys/dev/isapnp/if_cs_isapnp.c:1.16	Tue Sep 22 14:55:19 2009
+++ src/sys/dev/isapnp/if_cs_isapnp.c	Tue Sep 22 16:44:08 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: if_cs_isapnp.c,v 1.16 2009/09/22 14:55:19 tsutsui Exp $ */
+/* $NetBSD: if_cs_isapnp.c,v 1.17 2009/09/22 16:44:08 tsutsui Exp $ */
 
 /*-
  * Copyright (c)2001 YAMAMOTO Takashi,
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cs_isapnp.c,v 1.16 2009/09/22 14:55:19 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cs_isapnp.c,v 1.17 2009/09/22 16:44:08 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -57,8 +57,8 @@
 
 #define DEVNAME(sc) device_xname((sc)->sc_dev)
 
-int cs_isapnp_match(device_t, cfdata_t, void *);
-void cs_isapnp_attach(device_t, device_t, void *);
+static int cs_isapnp_match(device_t, cfdata_t, void *);
+static void cs_isapnp_attach(device_t, device_t, void *);
 
 #ifdef notyet
 CFATTACH_DECL_NEW(cs_isapnp, sizeof(struct cs_softc_isa),

Index: src/sys/dev/ofisa/if_cs_ofisa.c
diff -u src/sys/dev/ofisa/if_cs_ofisa.c:1.23 src/sys/dev/ofisa/if_cs_ofisa.c:1.24
--- src/sys/dev/ofisa/if_cs_ofisa.c:1.23	Tue Sep 22 14:55:19 2009
+++ src/sys/dev/ofisa/if_cs_ofisa.c	Tue Sep 22 16:44:08 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_cs_ofisa.c,v 1.23 2009/09/22 14:55:19 tsutsui Exp $	*/
+/*	$NetBSD: if_cs_ofisa.c,v 1.24 2009/09/22 16:44:08 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cs_ofisa.c,v 1.23 2009/09/22 14:55:19 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cs_ofisa.c,v 1.24 2009/09/22 16:44:08 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -63,8 +63,8 @@
 #include <dev/ic/cs89x0var.h>
 #include <dev/isa/cs89x0isavar.h>
 
-int	cs_ofisa_match(device_t, cfdata_t, void *);
-void	cs_ofisa_attach(device_t, device_t, void *);
+static int	cs_ofisa_match(device_t, cfdata_t, void *);
+static void	cs_ofisa_attach(device_t, device_t, void *);
 
 CFATTACH_DECL_NEW(cs_ofisa, sizeof(struct cs_softc_isa),
     cs_ofisa_match, cs_ofisa_attach, NULL, NULL);

Reply via email to