Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci No functional change:



details:   https://anonhg.NetBSD.org/src/rev/fd9520c065e7
branches:  trunk
changeset: 935626:fd9520c065e7
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Jul 07 06:27:37 2020 +0000

description:
No functional change:

 - u_int32_t -> uint32_t
 - KNF.

diffstat:

 sys/dev/pci/if_tl.c      |   7 ++++---
 sys/dev/pci/if_tlp_pci.c |   9 +++++----
 sys/dev/pci/if_tlregs.h  |  14 +++++++-------
 sys/dev/pci/if_tlvar.h   |  10 +++++-----
 4 files changed, 21 insertions(+), 19 deletions(-)

diffs (142 lines):

diff -r 99338d7db727 -r fd9520c065e7 sys/dev/pci/if_tl.c
--- a/sys/dev/pci/if_tl.c       Tue Jul 07 03:38:45 2020 +0000
+++ b/sys/dev/pci/if_tl.c       Tue Jul 07 06:27:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tl.c,v 1.121 2020/06/11 02:39:30 thorpej Exp $      */
+/*     $NetBSD: if_tl.c,v 1.122 2020/07/07 06:27:37 msaitoh Exp $      */
 
 /*
  * Copyright (c) 1997 Manuel Bouyer.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tl.c,v 1.121 2020/06/11 02:39:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tl.c,v 1.122 2020/07/07 06:27:37 msaitoh Exp $");
 
 #undef TLDEBUG
 #define TL_PRIV_STATS
@@ -645,7 +645,8 @@
            "tl-dma-page-boundary");
        if (prop_boundary != NULL) {
                KASSERT(prop_object_type(prop_boundary) == PROP_TYPE_NUMBER);
-               boundary = (bus_size_t)prop_number_unsigned_value(prop_boundary);
+               boundary
+                   = (bus_size_t)prop_number_unsigned_value(prop_boundary);
        } else {
                boundary = 0;
        }
diff -r 99338d7db727 -r fd9520c065e7 sys/dev/pci/if_tlp_pci.c
--- a/sys/dev/pci/if_tlp_pci.c  Tue Jul 07 03:38:45 2020 +0000
+++ b/sys/dev/pci/if_tlp_pci.c  Tue Jul 07 06:27:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tlp_pci.c,v 1.128 2020/07/02 09:07:10 msaitoh Exp $ */
+/*     $NetBSD: if_tlp_pci.c,v 1.129 2020/07/07 06:27:37 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.128 2020/07/02 09:07:10 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.129 2020/07/07 06:27:37 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -659,7 +659,8 @@
                                for (i = 0; i < TULIP_ROM_SIZE(6); i++) {
                                        if ((i % 8) == 0)
                                                aprint_normal("\n\t");
-                                       aprint_normal("0x%02x ", sc->sc_srom[i]);
+                                       aprint_normal("0x%02x ",
+                                           sc->sc_srom[i]);
                                }
                                aprint_normal("\n");
                        }
@@ -1545,7 +1546,7 @@
 
                case 0x13:
                        strcpy(psc->sc_tulip.sc_name, "Cogent ???");
-                       sc->sc_mediasw = &tlp_cogent_em1x0_mediasw;
+                       sc->sc_mediasw = &tlp_cogent_em1x0_mediasw;
                        psc->sc_flags |= TULIP_PCI_SHAREDINTR |
                            TULIP_PCI_SHAREDROM;
                        break;
diff -r 99338d7db727 -r fd9520c065e7 sys/dev/pci/if_tlregs.h
--- a/sys/dev/pci/if_tlregs.h   Tue Jul 07 03:38:45 2020 +0000
+++ b/sys/dev/pci/if_tlregs.h   Tue Jul 07 06:27:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tlregs.h,v 1.11 2014/10/18 08:33:28 snj Exp $       */
+/*     $NetBSD: if_tlregs.h,v 1.12 2020/07/07 06:27:37 msaitoh Exp $   */
 
 /*
  * Copyright (c) 1997 Manuel Bouyer.  All rights reserved.
@@ -147,14 +147,14 @@
 /* Linked lists for receive/transmit of datagrams */
 
 struct tl_data_seg {
-       u_int32_t data_count;
-       u_int32_t data_addr;
+       uint32_t data_count;
+       uint32_t data_addr;
 } __packed;
 
 /* Receive list (one_frag = 1) */
 struct tl_Rx_list {
-       u_int32_t fwd;
-       u_int32_t stat;
+       uint32_t fwd;
+       uint32_t stat;
        struct tl_data_seg seg;
 }__packed;
 
@@ -166,8 +166,8 @@
 #define TL_NSEG 10
 #define TL_LAST_SEG 0x80000000
 struct tl_Tx_list {
-       u_int32_t fwd;
-       u_int32_t stat;
+       uint32_t fwd;
+       uint32_t stat;
        struct tl_data_seg seg[TL_NSEG];
 }__packed;
 
diff -r 99338d7db727 -r fd9520c065e7 sys/dev/pci/if_tlvar.h
--- a/sys/dev/pci/if_tlvar.h    Tue Jul 07 03:38:45 2020 +0000
+++ b/sys/dev/pci/if_tlvar.h    Tue Jul 07 06:27:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tlvar.h,v 1.17 2015/04/13 16:33:25 riastradh Exp $  */
+/*     $NetBSD: if_tlvar.h,v 1.18 2020/07/07 06:27:37 msaitoh Exp $    */
 
 /*
  * Copyright (c) 1997 Manuel Bouyer.  All rights reserved.
@@ -35,7 +35,7 @@
 #include <dev/i2c/i2cvar.h>
 
 struct tl_product_desc {
-       u_int32_t tp_product;
+       uint32_t tp_product;
        int tp_tlphymedia;
        const char *tp_desc;
 };
@@ -50,7 +50,7 @@
        struct ethercom tl_ec;
        struct callout tl_tick_ch;      /* tick callout */
        struct callout tl_restart_ch;   /* restart callout */
-       u_int8_t tl_enaddr[ETHER_ADDR_LEN];     /* hardware address */
+       uint8_t tl_enaddr[ETHER_ADDR_LEN];      /* hardware address */
        struct i2c_controller sc_i2c;   /* i2c controller info, for eeprom */
        mii_data_t tl_mii;              /* mii bus */
        bus_dma_segment_t ctrl_segs; /* bus-dma memory for control blocks */
@@ -82,8 +82,8 @@
 #endif
        krndsource_t rnd_source;
 };
-#define tl_if            tl_ec.ec_if
-#define tl_bpf   tl_if.if_bpf
+#define tl_if  tl_ec.ec_if
+#define tl_bpf tl_if.if_bpf
 
 typedef struct tl_softc tl_softc_t;
 typedef u_long ioctl_cmd_t;



Home | Main Index | Thread Index | Old Index