Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb read mac address of ure version 4c10 from URE_PL...
details: https://anonhg.NetBSD.org/src/rev/415714bb31e4
branches: trunk
changeset: 464668:415714bb31e4
user: bad <bad%NetBSD.org@localhost>
date: Wed Oct 16 13:02:51 2019 +0000
description:
read mac address of ure version 4c10 from URE_PLA_IDR, save as 4c00.
from ganbold@freebsd r346052.
XXX pullup-9
diffstat:
sys/dev/usb/if_ure.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 878ef1bb7f61 -r 415714bb31e4 sys/dev/usb/if_ure.c
--- a/sys/dev/usb/if_ure.c Wed Oct 16 11:16:30 2019 +0000
+++ b/sys/dev/usb/if_ure.c Wed Oct 16 13:02:51 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ure.c,v 1.31 2019/08/23 04:32:57 mrg Exp $ */
+/* $NetBSD: if_ure.c,v 1.32 2019/10/16 13:02:51 bad Exp $ */
/* $OpenBSD: if_ure.c,v 1.10 2018/11/02 21:32:30 jcs Exp $ */
/*-
@@ -30,7 +30,7 @@
/* RealTek RTL8152/RTL8153 10/100/Gigabit USB Ethernet device */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ure.c,v 1.31 2019/08/23 04:32:57 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ure.c,v 1.32 2019/10/16 13:02:51 bad Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -941,7 +941,8 @@
else
ure_rtl8153_init(un);
- if (un->un_flags & URE_FLAG_VER_4C00)
+ if ((un->un_flags & URE_FLAG_VER_4C00) ||
+ (un->un_flags & URE_FLAG_VER_4C10))
ure_read_mem(un, URE_PLA_IDR, URE_MCU_TYPE_PLA, eaddr,
sizeof(eaddr));
else
Home |
Main Index |
Thread Index |
Old Index