On Tue, 4 Nov 2008 02:31:04 +0000 (UTC), Alfred Perlstein <[EMAIL PROTECTED]> wrote: > Author: alfred > Date: Tue Nov 4 02:31:03 2008 > New Revision: 184610 > URL: http://svn.freebsd.org/changeset/base/184610 > > Log: > Bring in USB4BSD, Hans Petter Selasky rework of the USB stack > that includes significant features and SMP safety.
The tinderbox complains about `if_zyd2.c' on i386/pc98 and powerpc; we may have to commit something like: %%% --- if_zyd2.c.orig 2008-11-04 11:25:45.000000000 +0200 +++ if_zyd2.c 2008-11-04 11:31:24.000000000 +0200 @@ -378,6 +378,7 @@ struct zyd_softc *sc = xfer->priv_sc; struct zyd_cmd *cmd = &sc->sc_intr_ibuf; uint32_t actlen; + uint16_t code; switch (USB_GET_STATE(xfer)) { case USB_ST_TRANSFERRED: @@ -392,14 +393,14 @@ usb2_copy_out(xfer->frbuffers, 0, &sc->sc_intr_ibuf, actlen); - switch (cmd->code) { - case htole16(ZYD_NOTIF_RETRYSTATUS): + code = le16toh(cmd->code); + switch (code) { + case ZYD_NOTIF_RETRYSTATUS: goto handle_notif_retrystatus; - case htole16(ZYD_NOTIF_IORD): + case ZYD_NOTIF_IORD: goto handle_notif_iord; default: - DPRINTFN(2, "unknown indication: 0x%04x\n", - le16toh(cmd->code)); + DPRINTFN(2, "unknown indication: 0x%04x\n", code); } /* fallthrough */ %%% _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"