Make local functions static.
This commit is contained in:
parent
30d1cde9f5
commit
df90eec26b
@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: cs89x0.c,v 1.27 2009/09/22 15:25:12 tsutsui Exp $");
|
||||
/*
|
||||
* 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 *);
|
||||
|
@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: if_cs_isa.c,v 1.24 2009/09/22 14:55:19 tsutsui Exp $
|
||||
#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);
|
||||
|
@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: if_tscs_isa.c,v 1.13 2009/09/22 14:55:19 tsutsui Exp
|
||||
#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);
|
||||
|
@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: if_cs_isapnp.c,v 1.16 2009/09/22 14:55:19 tsutsui Ex
|
||||
|
||||
#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),
|
||||
|
@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: if_cs_ofisa.c,v 1.23 2009/09/22 14:55:19 tsutsui Exp
|
||||
#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);
|
||||
|
Loading…
Reference in New Issue
Block a user