Date: Sat, 7 Mar 2009 18:08:59 +0000 (UTC) From: Andrew Thompson <thompsa@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r189491 - head/sys/dev/usb/controller Message-ID: <200903071808.n27I8xIG059127@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: thompsa Date: Sat Mar 7 18:08:59 2009 New Revision: 189491 URL: http://svn.freebsd.org/changeset/base/189491 Log: Fix some missed htole32 conversions to htoehci32. Reviewed by: hps Modified: head/sys/dev/usb/controller/ehci.c Modified: head/sys/dev/usb/controller/ehci.c ============================================================================== --- head/sys/dev/usb/controller/ehci.c Sat Mar 7 17:07:29 2009 (r189490) +++ head/sys/dev/usb/controller/ehci.c Sat Mar 7 18:08:59 2009 (r189491) @@ -1776,8 +1776,8 @@ ehci_setup_standard_chain(struct usb2_xf temp.qtd_status &= htoehci32(temp.sc, EHCI_QTD_SET_CERR(3)); - temp.qtd_status |= htole32 - (EHCI_QTD_ACTIVE | + temp.qtd_status |= htoehci32(temp.sc, + EHCI_QTD_ACTIVE | EHCI_QTD_SET_PID(EHCI_QTD_PID_SETUP) | EHCI_QTD_SET_TOGGLE(0)); @@ -2591,13 +2591,13 @@ ehci_device_isoc_fs_enter(struct usb2_xf td->sitd_mask = htoehci32(sc, sitd_mask); if (nframes == 0) { - td->sitd_status = htole32 - (EHCI_SITD_IOC | + td->sitd_status = htoehci32(sc, + EHCI_SITD_IOC | EHCI_SITD_ACTIVE | EHCI_SITD_SET_LEN(*plen)); } else { - td->sitd_status = htole32 - (EHCI_SITD_ACTIVE | + td->sitd_status = htoehci32(sc, + EHCI_SITD_ACTIVE | EHCI_SITD_SET_LEN(*plen)); } usb2_pc_cpu_flush(td->page_cache); @@ -2670,8 +2670,8 @@ ehci_device_isoc_hs_open(struct usb2_xfe td->itd_status[7] = 0; /* set endpoint and address */ - td->itd_bp[0] = htole32 - (EHCI_ITD_SET_ADDR(xfer->address) | + td->itd_bp[0] = htoehci32(sc, + EHCI_ITD_SET_ADDR(xfer->address) | EHCI_ITD_SET_ENDPT(UE_GET_ADDR(xfer->endpoint))); temp =
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903071808.n27I8xIG059127>