Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Static -> static



details:   https://anonhg.NetBSD.org/src/rev/2457998d631c
branches:  trunk
changeset: 757142:2457998d631c
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Mon Aug 16 09:52:11 2010 +0000

description:
Static -> static

We can still preserve static function symbols for debug.
(they're also likely inlined but we can specify -fno-inline on debug)

diffstat:

 sys/dev/usb/if_kue.c |  74 ++++++++++++++++++++++++++--------------------------
 sys/dev/usb/kue_fw.h |   8 ++--
 2 files changed, 41 insertions(+), 41 deletions(-)

diffs (253 lines):

diff -r dd5904447d8f -r 2457998d631c sys/dev/usb/if_kue.c
--- a/sys/dev/usb/if_kue.c      Mon Aug 16 09:44:01 2010 +0000
+++ b/sys/dev/usb/if_kue.c      Mon Aug 16 09:52:11 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_kue.c,v 1.71 2010/08/16 09:44:01 tsutsui Exp $      */
+/*     $NetBSD: if_kue.c,v 1.72 2010/08/16 09:52:11 tsutsui Exp $      */
 /*
  * Copyright (c) 1997, 1998, 1999, 2000
  *     Bill Paul <wpaul%ee.columbia.edu@localhost>.  All rights reserved.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_kue.c,v 1.71 2010/08/16 09:44:01 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_kue.c,v 1.72 2010/08/16 09:52:11 tsutsui Exp $");
 
 #include "opt_inet.h"
 #include "rnd.h"
@@ -122,7 +122,7 @@
 /*
  * Various supported device vendors/products.
  */
-Static const struct usb_devno kue_devs[] = {
+static const struct usb_devno kue_devs[] = {
        { USB_VENDOR_3COM, USB_PRODUCT_3COM_3C19250 },
        { USB_VENDOR_3COM, USB_PRODUCT_3COM_3C460 },
        { USB_VENDOR_ABOCOM, USB_PRODUCT_ABOCOM_URE450 },
@@ -160,28 +160,28 @@
 
 USB_DECLARE_DRIVER(kue);
 
-Static int kue_tx_list_init(struct kue_softc *);
-Static int kue_rx_list_init(struct kue_softc *);
-Static int kue_newbuf(struct kue_softc *, struct kue_chain *,struct mbuf *);
-Static int kue_send(struct kue_softc *, struct mbuf *, int);
-Static int kue_open_pipes(struct kue_softc *);
-Static void kue_rxeof(usbd_xfer_handle, usbd_private_handle, usbd_status);
-Static void kue_txeof(usbd_xfer_handle, usbd_private_handle, usbd_status);
-Static void kue_start(struct ifnet *);
-Static int kue_ioctl(struct ifnet *, u_long, void *);
-Static void kue_init(void *);
-Static void kue_stop(struct kue_softc *);
-Static void kue_watchdog(struct ifnet *);
+static int kue_tx_list_init(struct kue_softc *);
+static int kue_rx_list_init(struct kue_softc *);
+static int kue_newbuf(struct kue_softc *, struct kue_chain *,struct mbuf *);
+static int kue_send(struct kue_softc *, struct mbuf *, int);
+static int kue_open_pipes(struct kue_softc *);
+static void kue_rxeof(usbd_xfer_handle, usbd_private_handle, usbd_status);
+static void kue_txeof(usbd_xfer_handle, usbd_private_handle, usbd_status);
+static void kue_start(struct ifnet *);
+static int kue_ioctl(struct ifnet *, u_long, void *);
+static void kue_init(void *);
+static void kue_stop(struct kue_softc *);
+static void kue_watchdog(struct ifnet *);
 
-Static void kue_setmulti(struct kue_softc *);
-Static void kue_reset(struct kue_softc *);
+static void kue_setmulti(struct kue_softc *);
+static void kue_reset(struct kue_softc *);
 
-Static usbd_status kue_ctl(struct kue_softc *, int, uint8_t,
+static usbd_status kue_ctl(struct kue_softc *, int, uint8_t,
                           uint16_t, void *, uint32_t);
-Static usbd_status kue_setword(struct kue_softc *, uint8_t, uint16_t);
-Static int kue_load_fw(struct kue_softc *);
+static usbd_status kue_setword(struct kue_softc *, uint8_t, uint16_t);
+static int kue_load_fw(struct kue_softc *);
 
-Static usbd_status
+static usbd_status
 kue_setword(struct kue_softc *sc, uint8_t breq, uint16_t word)
 {
        usb_device_request_t    req;
@@ -197,7 +197,7 @@
        return (usbd_do_request(sc->kue_udev, &req, NULL));
 }
 
-Static usbd_status
+static usbd_status
 kue_ctl(struct kue_softc *sc, int rw, uint8_t breq, uint16_t val,
        void *data, uint32_t len)
 {
@@ -219,7 +219,7 @@
        return (usbd_do_request(sc->kue_udev, &req, data));
 }
 
-Static int
+static int
 kue_load_fw(struct kue_softc *sc)
 {
        usb_device_descriptor_t dd;
@@ -308,7 +308,7 @@
        return (0);
 }
 
-Static void
+static void
 kue_setmulti(struct kue_softc *sc)
 {
        struct ifnet            *ifp = GET_IFP(sc);
@@ -356,7 +356,7 @@
  * done after the firmware is loaded into the adapter in order to
  * bring it into proper operation.
  */
-Static void
+static void
 kue_reset(struct kue_softc *sc)
 {
        DPRINTFN(5,("%s: %s: enter\n", USBDEVNAME(sc->kue_dev), __func__));
@@ -576,7 +576,7 @@
 /*
  * Initialize an RX descriptor and attach an MBUF cluster.
  */
-Static int
+static int
 kue_newbuf(struct kue_softc *sc, struct kue_chain *c, struct mbuf *m)
 {
        struct mbuf             *m_new = NULL;
@@ -610,7 +610,7 @@
        return (0);
 }
 
-Static int
+static int
 kue_rx_list_init(struct kue_softc *sc)
 {
        struct kue_cdata        *cd;
@@ -639,7 +639,7 @@
        return (0);
 }
 
-Static int
+static int
 kue_tx_list_init(struct kue_softc *sc)
 {
        struct kue_cdata        *cd;
@@ -671,7 +671,7 @@
  * A frame has been uploaded: pass the resulting mbuf chain up to
  * the higher level protocols.
  */
-Static void
+static void
 kue_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
 {
        struct kue_chain        *c = priv;
@@ -771,7 +771,7 @@
  * the list buffers.
  */
 
-Static void
+static void
 kue_txeof(usbd_xfer_handle xfer, usbd_private_handle priv,
     usbd_status status)
 {
@@ -816,7 +816,7 @@
        splx(s);
 }
 
-Static int
+static int
 kue_send(struct kue_softc *sc, struct mbuf *m, int idx)
 {
        int                     total_len;
@@ -860,7 +860,7 @@
        return (0);
 }
 
-Static void
+static void
 kue_start(struct ifnet *ifp)
 {
        struct kue_softc        *sc = ifp->if_softc;
@@ -899,7 +899,7 @@
        ifp->if_timer = 6;
 }
 
-Static void
+static void
 kue_init(void *xsc)
 {
        struct kue_softc        *sc = xsc;
@@ -966,7 +966,7 @@
        splx(s);
 }
 
-Static int
+static int
 kue_open_pipes(struct kue_softc *sc)
 {
        usbd_status             err;
@@ -1007,7 +1007,7 @@
        return (0);
 }
 
-Static int
+static int
 kue_ioctl(struct ifnet *ifp, u_long command, void *data)
 {
        struct kue_softc        *sc = ifp->if_softc;
@@ -1090,7 +1090,7 @@
        return (error);
 }
 
-Static void
+static void
 kue_watchdog(struct ifnet *ifp)
 {
        struct kue_softc        *sc = ifp->if_softc;
@@ -1120,7 +1120,7 @@
  * Stop the adapter and free any mbufs allocated to the
  * RX and TX lists.
  */
-Static void
+static void
 kue_stop(struct kue_softc *sc)
 {
        usbd_status             err;
diff -r dd5904447d8f -r 2457998d631c sys/dev/usb/kue_fw.h
--- a/sys/dev/usb/kue_fw.h      Mon Aug 16 09:44:01 2010 +0000
+++ b/sys/dev/usb/kue_fw.h      Mon Aug 16 09:52:11 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kue_fw.h,v 1.4 2010/08/16 09:44:01 tsutsui Exp $       */
+/*     $NetBSD: kue_fw.h,v 1.5 2010/08/16 09:52:11 tsutsui Exp $       */
 /*
  * Copyright (c) 1997, 1998, 1999, 2000
  *     Bill Paul <wpaul%ee.columbia.edu@localhost>.  All rights reserved.
@@ -86,7 +86,7 @@
 #define KUE_QTINTR_LOAD_CODE_HIGH      0x9C
 
 /* Firmware code segment */
-Static const uint8_t kue_code_seg[] =
+static const uint8_t kue_code_seg[] =
 {
     /******************************************/
     /* NOTE: B6/C3 is data header signature   */
@@ -578,7 +578,7 @@
 };
 
 /* Firmware fixup (data?) segment */
-Static const uint8_t kue_fix_seg[] =
+static const uint8_t kue_fix_seg[] =
 {
     /******************************************/
     /* NOTE: B6/C3 is data header signature   */
@@ -681,6 +681,6 @@
 
 /* Fixup command. */
 #define KUE_TRIGCMD_OFFSET     5
-Static const uint8_t kue_trig_seg[] = {
+static const uint8_t kue_trig_seg[] = {
     0xb6, 0xc3, 0x01, 0x00, 0x06, 0x64, 0x00, 0x00
 };



Home | Main Index | Thread Index | Old Index