Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/playstation2/dev Adopt to device_t/struct ifnet* ch...
details: https://anonhg.NetBSD.org/src/rev/99ade691e34a
branches: trunk
changeset: 344527:99ade691e34a
user: martin <martin%NetBSD.org@localhost>
date: Sun Apr 03 10:03:04 2016 +0000
description:
Adopt to device_t/struct ifnet* changes
diffstat:
sys/arch/playstation2/dev/emac3.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (49 lines):
diff -r 9d1c85cd4532 -r 99ade691e34a sys/arch/playstation2/dev/emac3.c
--- a/sys/arch/playstation2/dev/emac3.c Sun Apr 03 10:01:52 2016 +0000
+++ b/sys/arch/playstation2/dev/emac3.c Sun Apr 03 10:03:04 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: emac3.c,v 1.10 2014/07/07 10:12:24 martin Exp $ */
+/* $NetBSD: emac3.c,v 1.11 2016/04/03 10:03:04 martin Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: emac3.c,v 1.10 2014/07/07 10:12:24 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emac3.c,v 1.11 2016/04/03 10:03:04 martin Exp $");
#include "debug_playstation2.h"
@@ -309,7 +309,7 @@
* PHY/MII
*/
void
-emac3_phy_writereg(struct device *self, int phy, int reg, int data)
+emac3_phy_writereg(device_t self, int phy, int reg, int data)
{
if (emac3_phy_ready() != 0)
@@ -325,7 +325,7 @@
}
int
-emac3_phy_readreg(struct device *self, int phy, int reg)
+emac3_phy_readreg(device_t self, int phy, int reg)
{
if (emac3_phy_ready() != 0)
@@ -342,10 +342,10 @@
}
void
-emac3_phy_statchg(struct device *dev)
+emac3_phy_statchg(struct ifnet *ifp)
{
#define EMAC3_FDX (MR1_FDE | MR1_EIFC | MR1_APP)
- struct emac3_softc *sc = (void *)dev;
+ struct emac3_softc *sc = ifp->if_softc;
int media;
u_int32_t r;
Home |
Main Index |
Thread Index |
Old Index