Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Change (almost) all static to Static. The symbo...



details:   https://anonhg.NetBSD.org/src/rev/ee98c7f93c54
branches:  trunk
changeset: 484180:ee98c7f93c54
user:      augustss <augustss%NetBSD.org@localhost>
date:      Mon Mar 27 12:33:53 2000 +0000

description:
Change (almost) all static to Static.  The symbol `Static' can then be defined
to `' or `static' depending on if you want to debug or not.

diffstat:

 sys/dev/usb/hid.c        |    6 +-
 sys/dev/usb/if_aue.c     |  136 ++++++++++++++--------------
 sys/dev/usb/if_cue.c     |  110 +++++++++++-----------
 sys/dev/usb/if_kue.c     |   92 +++++++++---------
 sys/dev/usb/kue_fw.h     |    8 +-
 sys/dev/usb/ohci.c       |  222 +++++++++++++++++++++++-----------------------
 sys/dev/usb/uaudio.c     |  104 +++++++++++-----------
 sys/dev/usb/ucom.c       |   28 ++--
 sys/dev/usb/ugen.c       |   36 +++---
 sys/dev/usb/uhci.c       |  196 ++++++++++++++++++++--------------------
 sys/dev/usb/uhid.c       |   12 +-
 sys/dev/usb/uhub.c       |   16 +-
 sys/dev/usb/ukbd.c       |   22 ++--
 sys/dev/usb/ukbdmap.c    |    8 +-
 sys/dev/usb/ulpt.c       |   12 +-
 sys/dev/usb/umodem.c     |   28 ++--
 sys/dev/usb/ums.c        |   16 +-
 sys/dev/usb/usb.c        |   26 ++--
 sys/dev/usb/usb_mem.c    |   16 +-
 sys/dev/usb/usb_port.h   |   27 +++--
 sys/dev/usb/usb_quirks.c |    4 +-
 sys/dev/usb/usb_subr.c   |   26 ++--
 sys/dev/usb/usbdi.c      |   18 +-
 sys/dev/usb/usbdi_util.c |    6 +-
 24 files changed, 591 insertions(+), 584 deletions(-)

diffs (truncated from 2857 to 300 lines):

diff -r 51a43b9a2365 -r ee98c7f93c54 sys/dev/usb/hid.c
--- a/sys/dev/usb/hid.c Mon Mar 27 12:00:48 2000 +0000
+++ b/sys/dev/usb/hid.c Mon Mar 27 12:33:53 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hid.c,v 1.12 2000/03/17 18:16:18 augustss Exp $        */
+/*     $NetBSD: hid.c,v 1.13 2000/03/27 12:33:53 augustss Exp $        */
 /*     $FreeBSD: src/sys/dev/usb/hid.c,v 1.11 1999/11/17 22:33:39 n_hibma Exp $ */
 
 /*
@@ -59,7 +59,7 @@
 #define DPRINTFN(n,x)
 #endif
 
-static void hid_clear_local __P((struct hid_item *));
+Static void hid_clear_local __P((struct hid_item *));
 
 #define MAXUSAGE 100
 struct hid_data {
@@ -75,7 +75,7 @@
        int kindset;
 };
 
-static void
+Static void
 hid_clear_local(c)
        struct hid_item *c;
 {
diff -r 51a43b9a2365 -r ee98c7f93c54 sys/dev/usb/if_aue.c
--- a/sys/dev/usb/if_aue.c      Mon Mar 27 12:00:48 2000 +0000
+++ b/sys/dev/usb/if_aue.c      Mon Mar 27 12:33:53 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_aue.c,v 1.33 2000/03/24 22:03:28 augustss Exp $     */
+/*     $NetBSD: if_aue.c,v 1.34 2000/03/27 12:33:53 augustss Exp $     */
 /*
  * Copyright (c) 1997, 1998, 1999, 2000
  *     Bill Paul <wpaul%ee.columbia.edu@localhost>.  All rights reserved.
@@ -162,7 +162,7 @@
 /*
  * Various supported device vendors/products.
  */
-static struct aue_type aue_devs[] = {
+Static struct aue_type aue_devs[] = {
        { USB_VENDOR_BILLIONTON, USB_PRODUCT_BILLIONTON_USB100 },
        { USB_VENDOR_MELCO, USB_PRODUCT_MELCO_LUATX },
        { USB_VENDOR_LINKSYS, USB_PRODUCT_LINKSYS_USB100TX },
@@ -177,48 +177,48 @@
 
 USB_DECLARE_DRIVER(aue);
 
-static int aue_tx_list_init    __P((struct aue_softc *));
-static int aue_rx_list_init    __P((struct aue_softc *));
-static int aue_newbuf          __P((struct aue_softc *, struct aue_chain *,
+Static int aue_tx_list_init    __P((struct aue_softc *));
+Static int aue_rx_list_init    __P((struct aue_softc *));
+Static int aue_newbuf          __P((struct aue_softc *, struct aue_chain *,
                                    struct mbuf *));
-static int aue_send            __P((struct aue_softc *, struct mbuf *, int));
-static void aue_intr           __P((usbd_xfer_handle,
+Static int aue_send            __P((struct aue_softc *, struct mbuf *, int));
+Static void aue_intr           __P((usbd_xfer_handle,
                                    usbd_private_handle, usbd_status));
-static void aue_rxeof          __P((usbd_xfer_handle,
+Static void aue_rxeof          __P((usbd_xfer_handle,
                                    usbd_private_handle, usbd_status));
-static void aue_txeof          __P((usbd_xfer_handle,
+Static void aue_txeof          __P((usbd_xfer_handle,
                                    usbd_private_handle, usbd_status));
-static void aue_tick           __P((void *));
-static void aue_start          __P((struct ifnet *));
-static int aue_ioctl           __P((struct ifnet *, u_long, caddr_t));
-static void aue_init           __P((void *));
-static void aue_stop           __P((struct aue_softc *));
-static void aue_watchdog       __P((struct ifnet *));
+Static void aue_tick           __P((void *));
+Static void aue_start          __P((struct ifnet *));
+Static int aue_ioctl           __P((struct ifnet *, u_long, caddr_t));
+Static void aue_init           __P((void *));
+Static void aue_stop           __P((struct aue_softc *));
+Static void aue_watchdog       __P((struct ifnet *));
 #ifdef __FreeBSD__
-static void aue_shutdown       __P((device_ptr_t));
+Static void aue_shutdown       __P((device_ptr_t));
 #endif
-static int aue_openpipes       __P((struct aue_softc *));
-static int aue_ifmedia_upd     __P((struct ifnet *));
-static void aue_ifmedia_sts    __P((struct ifnet *, struct ifmediareq *));
+Static int aue_openpipes       __P((struct aue_softc *));
+Static int aue_ifmedia_upd     __P((struct ifnet *));
+Static void aue_ifmedia_sts    __P((struct ifnet *, struct ifmediareq *));
 
-static int aue_eeprom_getword  __P((struct aue_softc *, int));
-static void aue_read_mac       __P((struct aue_softc *, u_char *));
-static int aue_miibus_readreg  __P((device_ptr_t, int, int));
+Static int aue_eeprom_getword  __P((struct aue_softc *, int));
+Static void aue_read_mac       __P((struct aue_softc *, u_char *));
+Static int aue_miibus_readreg  __P((device_ptr_t, int, int));
 #if defined(__FreeBSD__)
-static int aue_miibus_writereg __P((device_ptr_t, int, int, int));
+Static int aue_miibus_writereg __P((device_ptr_t, int, int, int));
 #elif defined(__NetBSD__) || defined(__OpenBSD__)
-static void aue_miibus_writereg        __P((device_ptr_t, int, int, int));
+Static void aue_miibus_writereg        __P((device_ptr_t, int, int, int));
 #endif /* defined(__NetBSD__) || defined(__OpenBSD__) */
-static void aue_miibus_statchg __P((device_ptr_t));
+Static void aue_miibus_statchg __P((device_ptr_t));
 
-static void aue_setmulti       __P((struct aue_softc *));
-static u_int32_t aue_crc       __P((caddr_t));
-static void aue_reset          __P((struct aue_softc *));
+Static void aue_setmulti       __P((struct aue_softc *));
+Static u_int32_t aue_crc       __P((caddr_t));
+Static void aue_reset          __P((struct aue_softc *));
 
-static int aue_csr_read_1      __P((struct aue_softc *, int));
-static int aue_csr_write_1     __P((struct aue_softc *, int, int));
-static int aue_csr_read_2      __P((struct aue_softc *, int));
-static int aue_csr_write_2     __P((struct aue_softc *, int, int));
+Static int aue_csr_read_1      __P((struct aue_softc *, int));
+Static int aue_csr_write_1     __P((struct aue_softc *, int, int));
+Static int aue_csr_read_2      __P((struct aue_softc *, int));
+Static int aue_csr_write_2     __P((struct aue_softc *, int, int));
 
 #if defined(__FreeBSD__)
 #if !defined(lint)
@@ -226,11 +226,11 @@
   "$FreeBSD: src/sys/dev/usb/if_aue.c,v 1.11 2000/01/14 01:36:14 wpaul Exp $";
 #endif
 
-static void aue_rxstart                __P((struct ifnet *));
+Static void aue_rxstart                __P((struct ifnet *));
 
-static struct usb_qdat aue_qdat;
+Static struct usb_qdat aue_qdat;
 
-static device_method_t aue_methods[] = {
+Static device_method_t aue_methods[] = {
        /* Device interface */
        DEVMETHOD(device_probe,         aue_match),
        DEVMETHOD(device_attach,        aue_attach),
@@ -249,13 +249,13 @@
        { 0, 0 }
 };
 
-static driver_t aue_driver = {
+Static driver_t aue_driver = {
        "aue",
        aue_methods,
        sizeof(struct aue_softc)
 };
 
-static devclass_t aue_devclass;
+Static devclass_t aue_devclass;
 
 DRIVER_MODULE(if_aue, uhub, aue_driver, aue_devclass, usbd_driver_load, 0);
 DRIVER_MODULE(miibus, aue, miibus_driver, miibus_devclass, 0, 0);
@@ -271,7 +271,7 @@
 #define AUE_CLRBIT(sc, reg, x)                         \
        aue_csr_write_1(sc, reg, aue_csr_read_1(sc, reg) & ~(x))
 
-static int
+Static int
 aue_csr_read_1(sc, reg)
        struct aue_softc        *sc;
        int                     reg;
@@ -303,7 +303,7 @@
        return (val);
 }
 
-static int
+Static int
 aue_csr_read_2(sc, reg)
        struct aue_softc        *sc;
        int                     reg;
@@ -335,7 +335,7 @@
        return (UGETW(val));
 }
 
-static int
+Static int
 aue_csr_write_1(sc, reg, aval)
        struct aue_softc        *sc;
        int                     reg, aval;
@@ -368,7 +368,7 @@
        return (0);
 }
 
-static int
+Static int
 aue_csr_write_2(sc, reg, aval)
        struct aue_softc        *sc;
        int                     reg, aval;
@@ -404,7 +404,7 @@
 /*
  * Read a word of data stored in the EEPROM at address 'addr.'
  */
-static int
+Static int
 aue_eeprom_getword(sc, addr)
        struct aue_softc        *sc;
        int                     addr;
@@ -430,7 +430,7 @@
 /*
  * Read the MAC from the EEPROM.  It's at offset 0.
  */
-static void
+Static void
 aue_read_mac(sc, dest)
        struct aue_softc        *sc;
        u_char                  *dest;
@@ -448,7 +448,7 @@
        }
 }
 
-static int
+Static int
 aue_miibus_readreg(dev, phy, reg)
        device_ptr_t            dev;
        int                     phy, reg;
@@ -495,9 +495,9 @@
 }
 
 #if defined(__FreeBSD__)
-static int
+Static int
 #elif defined(__NetBSD__) || defined(__OpenBSD__)
-static void
+Static void
 #endif /* defined(__NetBSD__) || defined(__OpenBSD__) */
 aue_miibus_writereg(dev, phy, reg, data)
        device_ptr_t            dev;
@@ -538,7 +538,7 @@
 #endif
 }
 
-static void
+Static void
 aue_miibus_statchg(dev)
        device_ptr_t            dev;
 {
@@ -580,7 +580,7 @@
 #define AUE_POLY       0xEDB88320
 #define AUE_BITS       6
 
-static u_int32_t 
+Static u_int32_t 
 aue_crc(addr)
        caddr_t                 addr;
 {
@@ -597,7 +597,7 @@
        return (crc & ((1 << AUE_BITS) - 1));
 }
 
-static void
+Static void
 aue_setmulti(sc)
        struct aue_softc        *sc;
 {
@@ -652,7 +652,7 @@
 #endif /* defined(__NetBSD__) || defined(__OpenBSD__) */
 }
 
-static void
+Static void
 aue_reset(sc)
        struct aue_softc        *sc;
 {
@@ -992,7 +992,7 @@
 /*
  * Initialize an RX descriptor and attach an MBUF cluster.
  */
-static int
+Static int
 aue_newbuf(sc, c, m)
        struct aue_softc        *sc;
        struct aue_chain        *c;
@@ -1030,7 +1030,7 @@
        return (0);
 }
 
-static int 
+Static int 
 aue_rx_list_init(sc)
        struct aue_softc        *sc;
 {
@@ -1060,7 +1060,7 @@
        return (0);
 }
 
-static int
+Static int
 aue_tx_list_init(sc)
        struct aue_softc        *sc;
 {
@@ -1089,7 +1089,7 @@
        return (0);
 }
 
-static void
+Static void
 aue_intr(xfer, priv, status)



Home | Main Index | Thread Index | Old Index