Module Name: src
Committed By: matt
Date: Fri Jul 20 02:14:02 UTC 2012
Modified Files:
src/sys/arch/arm/gemini: obio_ehci.c
src/sys/arch/arm/imx: imxusb.c
src/sys/arch/arm/omap: omap3_ehci.c
src/sys/arch/mips/atheros/dev: ehci_arbus.c
src/sys/arch/mips/ralink: ralink_ehci.c
src/sys/arch/mips/rmi: rmixl_ehci.c
src/sys/arch/powerpc/booke/dev: pq3ehci.c
Log Message:
EHCI_USBINTR is 4 bytes long so use EOWRITE4
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/gemini/obio_ehci.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/imx/imxusb.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/omap/omap3_ehci.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/mips/atheros/dev/ehci_arbus.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/mips/ralink/ralink_ehci.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/mips/rmi/rmixl_ehci.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/powerpc/booke/dev/pq3ehci.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/gemini/obio_ehci.c
diff -u src/sys/arch/arm/gemini/obio_ehci.c:1.2 src/sys/arch/arm/gemini/obio_ehci.c:1.3
--- src/sys/arch/arm/gemini/obio_ehci.c:1.2 Fri Oct 24 17:31:24 2008
+++ src/sys/arch/arm/gemini/obio_ehci.c Fri Jul 20 02:14:01 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: obio_ehci.c,v 1.2 2008/10/24 17:31:24 matt Exp $ */
+/* $NetBSD: obio_ehci.c,v 1.3 2012/07/20 02:14:01 matt Exp $ */
/*
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: obio_ehci.c,v 1.2 2008/10/24 17:31:24 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obio_ehci.c,v 1.3 2012/07/20 02:14:01 matt Exp $");
#include "locators.h"
@@ -122,7 +122,7 @@ ehci_obio_attach(device_t parent, device
/* Disable interrupts, so we don't get any spurious ones. */
sc->sc_offs = EREAD1(sc, EHCI_CAPLENGTH);
DPRINTF(("%s: offs=%d\n", devname, sc->sc_offs));
- EOWRITE2(sc, EHCI_USBINTR, 0);
+ EOWRITE4(sc, EHCI_USBINTR, 0);
bus_space_write_4(sc->iot, sc->ioh, EHCI_HCOTGDEV_INTR_MASK,
OTG_INT|DEV_INT);
Index: src/sys/arch/arm/imx/imxusb.c
diff -u src/sys/arch/arm/imx/imxusb.c:1.1 src/sys/arch/arm/imx/imxusb.c:1.2
--- src/sys/arch/arm/imx/imxusb.c:1.1 Tue Nov 30 13:05:27 2010
+++ src/sys/arch/arm/imx/imxusb.c Fri Jul 20 02:14:01 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: imxusb.c,v 1.1 2010/11/30 13:05:27 bsh Exp $ */
+/* $NetBSD: imxusb.c,v 1.2 2012/07/20 02:14:01 matt Exp $ */
/*
* Copyright (c) 2009, 2010 Genetec Corporation. All rights reserved.
* Written by Hashimoto Kenichi and Hiroyuki Bessho for Genetec Corporation.
@@ -25,7 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: imxusb.c,v 1.1 2010/11/30 13:05:27 bsh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imxusb.c,v 1.2 2012/07/20 02:14:01 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -186,7 +186,7 @@ imxehci_attach(device_t parent, device_t
}
/* Disable interrupts, so we don't get any spurious ones. */
- EOWRITE2(hsc, EHCI_USBINTR, 0);
+ EOWRITE4(hsc, EHCI_USBINTR, 0);
intr_establish(aa->aa_irq, IPL_USB, IST_LEVEL, ehci_intr, hsc);
Index: src/sys/arch/arm/omap/omap3_ehci.c
diff -u src/sys/arch/arm/omap/omap3_ehci.c:1.1 src/sys/arch/arm/omap/omap3_ehci.c:1.2
--- src/sys/arch/arm/omap/omap3_ehci.c:1.1 Thu Jul 12 03:38:50 2012
+++ src/sys/arch/arm/omap/omap3_ehci.c Fri Jul 20 02:14:01 2012
@@ -1,7 +1,7 @@
-/* $Id: omap3_ehci.c,v 1.1 2012/07/12 03:38:50 matt Exp $ */
+/* $Id: omap3_ehci.c,v 1.2 2012/07/20 02:14:01 matt Exp $ */
/* adapted from: */
-/* $NetBSD: omap3_ehci.c,v 1.1 2012/07/12 03:38:50 matt Exp $ */
+/* $NetBSD: omap3_ehci.c,v 1.2 2012/07/20 02:14:01 matt Exp $ */
/* $OpenBSD: pxa2x0_ehci.c,v 1.19 2005/04/08 02:32:54 dlg Exp $ */
/*
@@ -23,7 +23,7 @@
#include "opt_omap.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: omap3_ehci.c,v 1.1 2012/07/12 03:38:50 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: omap3_ehci.c,v 1.2 2012/07/20 02:14:01 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -136,7 +136,7 @@ obioehci_attach(device_t parent, device_
sc->sc.sc_offs = EREAD1(&sc->sc, EHCI_CAPLENGTH);
/* Disable interrupts, so we don't get any spurious ones. */
- EOWRITE2(&sc->sc, EHCI_USBINTR, 0);
+ EOWRITE4(&sc->sc, EHCI_USBINTR, 0);
#if 1
sc->sc_ih = intr_establish(obio->obio_intr, IPL_USB, IST_LEVEL,
Index: src/sys/arch/mips/atheros/dev/ehci_arbus.c
diff -u src/sys/arch/mips/atheros/dev/ehci_arbus.c:1.1 src/sys/arch/mips/atheros/dev/ehci_arbus.c:1.2
--- src/sys/arch/mips/atheros/dev/ehci_arbus.c:1.1 Sun Jul 10 06:26:02 2011
+++ src/sys/arch/mips/atheros/dev/ehci_arbus.c Fri Jul 20 02:14:02 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci_arbus.c,v 1.1 2011/07/10 06:26:02 matt Exp $ */
+/* $NetBSD: ehci_arbus.c,v 1.2 2012/07/20 02:14:02 matt Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci_arbus.c,v 1.1 2011/07/10 06:26:02 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci_arbus.c,v 1.2 2012/07/20 02:14:02 matt Exp $");
#include "locators.h"
@@ -110,7 +110,7 @@ ehci_arbus_attach(device_t parent, devic
aprint_normal("\n");
/* Disable EHCI interrupts */
- EOWRITE2(sc, EHCI_USBINTR, 0);
+ EOWRITE4(sc, EHCI_USBINTR, 0);
/* establish interrupt */
ih = arbus_intr_establish(aa->aa_cirq, aa->aa_mirq, ehci_intr, sc);
Index: src/sys/arch/mips/ralink/ralink_ehci.c
diff -u src/sys/arch/mips/ralink/ralink_ehci.c:1.2 src/sys/arch/mips/ralink/ralink_ehci.c:1.3
--- src/sys/arch/mips/ralink/ralink_ehci.c:1.2 Thu Jul 28 15:38:49 2011
+++ src/sys/arch/mips/ralink/ralink_ehci.c Fri Jul 20 02:14:02 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: ralink_ehci.c,v 1.2 2011/07/28 15:38:49 matt Exp $ */
+/* $NetBSD: ralink_ehci.c,v 1.3 2012/07/20 02:14:02 matt Exp $ */
/*-
* Copyright (c) 2011 CradlePoint Technology, Inc.
* All rights reserved.
@@ -29,7 +29,7 @@
/* ralink_ehci.c -- Ralink EHCI USB Driver */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ralink_ehci.c,v 1.2 2011/07/28 15:38:49 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ralink_ehci.c,v 1.3 2012/07/20 02:14:02 matt Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -147,7 +147,7 @@ ralink_ehci_attach(device_t parent, devi
/* Disable EHCI interrupts. */
sc->sc_ehci.sc_offs = EREAD1(&sc->sc_ehci, EHCI_CAPLENGTH);
- EOWRITE2(&sc->sc_ehci, EHCI_USBINTR, 0);
+ EOWRITE4(&sc->sc_ehci, EHCI_USBINTR, 0);
#ifdef RALINK_EHCI_DEBUG
printf("%s: EHCI USBCMD=0x%x\n", devname,
Index: src/sys/arch/mips/rmi/rmixl_ehci.c
diff -u src/sys/arch/mips/rmi/rmixl_ehci.c:1.4 src/sys/arch/mips/rmi/rmixl_ehci.c:1.5
--- src/sys/arch/mips/rmi/rmixl_ehci.c:1.4 Fri Jul 1 19:01:30 2011
+++ src/sys/arch/mips/rmi/rmixl_ehci.c Fri Jul 20 02:14:01 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: rmixl_ehci.c,v 1.4 2011/07/01 19:01:30 dyoung Exp $ */
+/* $NetBSD: rmixl_ehci.c,v 1.5 2012/07/20 02:14:01 matt Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2002, 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rmixl_ehci.c,v 1.4 2011/07/01 19:01:30 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rmixl_ehci.c,v 1.5 2012/07/20 02:14:01 matt Exp $");
#include "locators.h"
@@ -119,7 +119,7 @@ rmixl_ehci_attach(device_t parent, devic
sc->sc_offs = EREAD1(sc, EHCI_CAPLENGTH);
/* Disable EHCI interrupts */
- EOWRITE2(sc, EHCI_USBINTR, 0);
+ EOWRITE4(sc, EHCI_USBINTR, 0);
/* establish interrupt */
if (usbi->usbi_intr != RMIXL_USBICF_INTR_DEFAULT) {
Index: src/sys/arch/powerpc/booke/dev/pq3ehci.c
diff -u src/sys/arch/powerpc/booke/dev/pq3ehci.c:1.4 src/sys/arch/powerpc/booke/dev/pq3ehci.c:1.5
--- src/sys/arch/powerpc/booke/dev/pq3ehci.c:1.4 Sun Jun 12 05:29:13 2011
+++ src/sys/arch/powerpc/booke/dev/pq3ehci.c Fri Jul 20 02:14:01 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: pq3ehci.c,v 1.4 2011/06/12 05:29:13 matt Exp $ */
+/* $NetBSD: pq3ehci.c,v 1.5 2012/07/20 02:14:01 matt Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pq3ehci.c,v 1.4 2011/06/12 05:29:13 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pq3ehci.c,v 1.5 2012/07/20 02:14:01 matt Exp $");
#include "opt_usb.h"
@@ -138,7 +138,7 @@ pq3ehci_attach(device_t parent, device_t
/* Disable interrupts, so we don't get any spurious ones. */
DPRINTF(("%s: offs=%d\n", device_xname(self), sc->sc.sc_offs));
- EOWRITE2(&sc->sc, EHCI_USBINTR, 0);
+ EOWRITE4(&sc->sc, EHCI_USBINTR, 0);
error = ehci_init(&sc->sc);
if (error != USBD_NORMAL_COMPLETION) {