Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb usbnet: Make usbnet_mii_readreg/writereg/statchg...



details:   https://anonhg.NetBSD.org/src/rev/9e648b25e85e
branches:  trunk
changeset: 362539:9e648b25e85e
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Mar 03 05:54:28 2022 +0000

description:
usbnet: Make usbnet_mii_readreg/writereg/statchg private to usbnet.c.

No drivers need to use these.

diffstat:

 sys/dev/usb/usbnet.c |  10 +++++-----
 sys/dev/usb/usbnet.h |   7 +------
 2 files changed, 6 insertions(+), 11 deletions(-)

diffs (66 lines):

diff -r b1cafed90310 -r 9e648b25e85e sys/dev/usb/usbnet.c
--- a/sys/dev/usb/usbnet.c      Thu Mar 03 05:54:21 2022 +0000
+++ b/sys/dev/usb/usbnet.c      Thu Mar 03 05:54:28 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbnet.c,v 1.82 2022/03/03 05:53:23 riastradh Exp $    */
+/*     $NetBSD: usbnet.c,v 1.83 2022/03/03 05:54:28 riastradh Exp $    */
 
 /*
  * Copyright (c) 2019 Matthew R. Green
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbnet.c,v 1.82 2022/03/03 05:53:23 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbnet.c,v 1.83 2022/03/03 05:54:28 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -899,7 +899,7 @@
 
 /* MII management. */
 
-int
+static int
 usbnet_mii_readreg(device_t dev, int phy, int reg, uint16_t *val)
 {
        USBNETHIST_FUNC();
@@ -923,7 +923,7 @@
        return 0;
 }
 
-int
+static int
 usbnet_mii_writereg(device_t dev, int phy, int reg, uint16_t val)
 {
        USBNETHIST_FUNC();
@@ -947,7 +947,7 @@
        return 0;
 }
 
-void
+static void
 usbnet_mii_statchg(struct ifnet *ifp)
 {
        USBNETHIST_FUNC(); USBNETHIST_CALLED();
diff -r b1cafed90310 -r 9e648b25e85e sys/dev/usb/usbnet.h
--- a/sys/dev/usb/usbnet.h      Thu Mar 03 05:54:21 2022 +0000
+++ b/sys/dev/usb/usbnet.h      Thu Mar 03 05:54:28 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbnet.h,v 1.26 2022/03/03 05:52:20 riastradh Exp $    */
+/*     $NetBSD: usbnet.h,v 1.27 2022/03/03 05:54:28 riastradh Exp $    */
 
 /*
  * Copyright (c) 2019 Matthew R. Green
@@ -326,11 +326,6 @@
  */
 int    usbnet_init_rx_tx(struct usbnet * const);
 
-/* MII. */
-int    usbnet_mii_readreg(device_t, int, int, uint16_t *);
-int    usbnet_mii_writereg(device_t, int, int, uint16_t);
-void   usbnet_mii_statchg(struct ifnet *);
-
 /* interrupt handling */
 void   usbnet_enqueue(struct usbnet * const, uint8_t *, size_t, int,
                       uint32_t, int);



Home | Main Index | Thread Index | Old Index