Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic No functional change.



details:   https://anonhg.NetBSD.org/src/rev/73176ab0d747
branches:  trunk
changeset: 447382:73176ab0d747
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Jan 09 07:55:23 2019 +0000

description:
No functional change.
- u_int{16,32}_t -> uint{16,32}_t
- KNF.

diffstat:

 sys/dev/ic/gem.c |  53 +++++++++++++++++++++++++++--------------------------
 1 files changed, 27 insertions(+), 26 deletions(-)

diffs (195 lines):

diff -r 9fab367fd10c -r 73176ab0d747 sys/dev/ic/gem.c
--- a/sys/dev/ic/gem.c  Wed Jan 09 07:49:22 2019 +0000
+++ b/sys/dev/ic/gem.c  Wed Jan 09 07:55:23 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gem.c,v 1.111 2018/09/03 16:29:31 riastradh Exp $ */
+/*     $NetBSD: gem.c,v 1.112 2019/01/09 07:55:23 msaitoh Exp $ */
 
 /*
  *
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.111 2018/09/03 16:29:31 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.112 2019/01/09 07:55:23 msaitoh Exp $");
 
 #include "opt_inet.h"
 
@@ -98,7 +98,7 @@
 static int     gem_meminit(struct gem_softc *);
 void           gem_mifinit(struct gem_softc *);
 static int     gem_bitwait(struct gem_softc *sc, bus_space_handle_t, int,
-                   u_int32_t, u_int32_t);
+                   uint32_t, uint32_t);
 void           gem_reset(struct gem_softc *);
 int            gem_reset_rx(struct gem_softc *sc);
 static void    gem_reset_rxdma(struct gem_softc *sc);
@@ -248,7 +248,7 @@
        bus_space_handle_t h = sc->sc_h1;
        struct ifmedia_entry *ifm;
        int i, error, phyaddr;
-       u_int32_t v;
+       uint32_t v;
        char *nullbuf;
 
        /* Make sure the chip is stopped. */
@@ -647,10 +647,11 @@
 }
 
 static int
-gem_bitwait(struct gem_softc *sc, bus_space_handle_t h, int r, u_int32_t clr, u_int32_t set)
+gem_bitwait(struct gem_softc *sc, bus_space_handle_t h, int r, uint32_t clr,
+    uint32_t set)
 {
        int i;
-       u_int32_t reg;
+       uint32_t reg;
 
        for (i = TRIES; i--; DELAY(100)) {
                reg = bus_space_read_4(sc->sc_bustag, h, r);
@@ -832,7 +833,7 @@
 {
        bus_space_tag_t t = sc->sc_bustag;
        bus_space_handle_t h = sc->sc_h1;
-       u_int32_t v;
+       uint32_t v;
 
        /* Encode Receive Descriptor ring size: four possible values */
        v = gem_ringsize(GEM_NRXDESC /*XXX*/);
@@ -901,7 +902,7 @@
 {
        bus_space_tag_t t = sc->sc_bustag;
        bus_space_handle_t h = sc->sc_h1;
-       u_int32_t cfg;
+       uint32_t cfg;
 
        /* Flip the enable bit */
        cfg = bus_space_read_4(t, h, GEM_MAC_RX_CONFIG);
@@ -920,7 +921,7 @@
 {
        bus_space_tag_t t = sc->sc_bustag;
        bus_space_handle_t h = sc->sc_h1;
-       u_int32_t cfg;
+       uint32_t cfg;
 
        /* Flip the enable bit */
        cfg = bus_space_read_4(t, h, GEM_MAC_TX_CONFIG);
@@ -1120,7 +1121,7 @@
        bus_space_handle_t h = sc->sc_h1;
        int rc = 0, s;
        u_int max_frame_size;
-       u_int32_t v;
+       uint32_t v;
 
        s = splnet();
 
@@ -1242,7 +1243,7 @@
        bus_space_tag_t t = sc->sc_bustag;
        bus_space_handle_t h = sc->sc_h1;
        const u_char *laddr = CLLADDR(ifp->if_sadl);
-       u_int32_t v;
+       uint32_t v;
 
        /* These regs are not cleared on reset */
        if (!sc->sc_inited) {
@@ -1639,7 +1640,7 @@
        struct gem_txsoft *txs;
        int txlast;
        int progress = 0;
-       u_int32_t v;
+       uint32_t v;
 
        DPRINTF(sc, ("%s: gem_tint\n", device_xname(sc->sc_dev)));
 
@@ -1761,8 +1762,8 @@
        bus_space_handle_t h = sc->sc_h1;
        struct gem_rxsoft *rxs;
        struct mbuf *m;
-       u_int64_t rxstat;
-       u_int32_t rxcomp;
+       uint64_t rxstat;
+       uint32_t rxcomp;
        int i, len, progress = 0;
 
        DPRINTF(sc, ("%s: gem_rint\n", device_xname(sc->sc_dev)));
@@ -2049,7 +2050,7 @@
 gem_eint(struct gem_softc *sc, u_int status)
 {
        char bits[128];
-       u_int32_t r, v;
+       uint32_t r, v;
 
        if ((status & GEM_INTR_MIF) != 0) {
                printf("%s: XXXlink status changed\n", device_xname(sc->sc_dev));
@@ -2091,7 +2092,7 @@
        struct ifnet *ifp = &sc->sc_ethercom.ec_if;
        bus_space_tag_t t = sc->sc_bustag;
        bus_space_handle_t h = sc->sc_h1;
-       u_int32_t v, v2;
+       uint32_t v, v2;
 
        /*
         * Clear the PCS interrupt from GEM_STATUS.  The PCS register is
@@ -2170,7 +2171,7 @@
        struct ifnet *ifp = &sc->sc_ethercom.ec_if;
        bus_space_tag_t t = sc->sc_bustag;
        bus_space_handle_t h = sc->sc_h1;
-       u_int32_t status;
+       uint32_t status;
        int r = 0;
 #ifdef GEM_DEBUG
        char bits[128];
@@ -2263,9 +2264,9 @@
        struct ifnet *ifp = &sc->sc_ethercom.ec_if;
        bus_space_tag_t t = sc->sc_bustag;
        bus_space_handle_t h = sc->sc_h1;
-       u_int32_t rx_fifo_wr_ptr;
-       u_int32_t rx_fifo_rd_ptr;
-       u_int32_t state;
+       uint32_t rx_fifo_wr_ptr;
+       uint32_t rx_fifo_rd_ptr;
+       uint32_t state;
 
        if ((ifp->if_flags & IFF_RUNNING) == 0) {
                aprint_error_dev(sc->sc_dev, "receiver not running\n");
@@ -2367,7 +2368,7 @@
        bus_space_tag_t t = sc->sc_bustag;
        bus_space_handle_t mif = sc->sc_h1;
        int n;
-       u_int32_t v;
+       uint32_t v;
 
 #ifdef GEM_DEBUG1
        if (sc->sc_debug)
@@ -2397,7 +2398,7 @@
        bus_space_tag_t t = sc->sc_bustag;
        bus_space_handle_t mif = sc->sc_h1;
        int n;
-       u_int32_t v;
+       uint32_t v;
 
 #ifdef GEM_DEBUG1
        if (sc->sc_debug)
@@ -2448,7 +2449,7 @@
        bus_space_tag_t t = sc->sc_bustag;
        bus_space_handle_t mac = sc->sc_h1;
        int gigabit;
-       u_int32_t rxcfg, txcfg, v;
+       uint32_t rxcfg, txcfg, v;
 
        if ((sc->sc_mii.mii_media_status & IFM_ACTIVE) != 0 &&
            IFM_SUBTYPE(sc->sc_mii.mii_media_active) != IFM_NONE)
@@ -2708,9 +2709,9 @@
        struct ether_multistep step;
        bus_space_tag_t t = sc->sc_bustag;
        bus_space_handle_t h = sc->sc_h1;
-       u_int32_t crc;
-       u_int32_t hash[16];
-       u_int32_t v;
+       uint32_t crc;
+       uint32_t hash[16];
+       uint32_t v;
        int i;
 
        /* Get current RX configuration */



Home | Main Index | Thread Index | Old Index