diff options
| author | msaitoh <msaitoh@NetBSD.org> | 2015-07-11 03:06:25 +0000 |
|---|---|---|
| committer | msaitoh <msaitoh@NetBSD.org> | 2015-07-11 03:06:25 +0000 |
| commit | a21483fe87ade08196fa395cb04e8f00547158aa (patch) | |
| tree | e6189f19f3789d180fc53bb71e168b42d5167381 /sys/dev/usb | |
| parent | eadeff647b6e17011eef3f2cc6bd2a0368c5d54b (diff) | |
Use correct E[O]{READ,WRITE} function.
Diffstat (limited to 'sys/dev/usb')
| -rw-r--r-- | sys/dev/usb/ehci.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c index b51802e2c05..7025f99311f 100644 --- a/sys/dev/usb/ehci.c +++ b/sys/dev/usb/ehci.c @@ -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 @@ ehci_init(ehci_softc_t *sc) 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 @@ ehci_init(ehci_softc_t *sc) * 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 */ |
