Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Use correct E[O]{READ,WRITE} function.
details: https://anonhg.NetBSD.org/src/rev/dd69626d6ef0
branches: trunk
changeset: 339295:dd69626d6ef0
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Sat Jul 11 03:06:25 2015 +0000
description:
Use correct E[O]{READ,WRITE} function.
diffstat:
sys/dev/usb/ehci.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (40 lines):
diff -r 5105be02f7bd -r dd69626d6ef0 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c Fri Jul 10 22:03:12 2015 +0000
+++ b/sys/dev/usb/ehci.c Sat Jul 11 03:06:25 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci.c,v 1.241 2015/07/02 09:05:06 skrll Exp $ */
+/* $NetBSD: ehci.c,v 1.242 2015/07/11 03:06:25 msaitoh Exp $ */
/*
* Copyright (c) 2004-2012 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.241 2015/07/02 09:05:06 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.242 2015/07/11 03:06:25 msaitoh Exp $");
#include "ohci.h"
#include "uhci.h"
@@ -421,7 +421,7 @@
if (EHCI_HCC_64BIT(cparams)) {
/* MUST clear segment register if 64 bit capable. */
- EWRITE4(sc, EHCI_CTRLDSSEGMENT, 0);
+ EOWRITE4(sc, EHCI_CTRLDSSEGMENT, 0);
}
sc->sc_bus.usbrev = USBREV_2_0;
@@ -452,10 +452,10 @@
* the controller to host mode.
*/
if (sc->sc_flags & EHCIF_ETTF) {
- uint32_t usbmode = EREAD4(sc, EHCI_USBMODE);
+ uint32_t usbmode = EOREAD4(sc, EHCI_USBMODE);
usbmode &= ~EHCI_USBMODE_CM;
usbmode |= EHCI_USBMODE_CM_HOST;
- EWRITE4(sc, EHCI_USBMODE, usbmode);
+ EOWRITE4(sc, EHCI_USBMODE, usbmode);
}
/* XXX need proper intr scheduling */
Home |
Main Index |
Thread Index |
Old Index