Deleted Added
full compact
if_ep.c (199559) if_ep.c (201794)
1/*-
2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep.c 199559 2009-11-19 22:06:40Z jhb $");
32__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep.c 201794 2010-01-08 15:44:49Z trasz $");
33
34/*
35 * Modified from the FreeBSD 1.1.5.1 version by:
36 * Andres Vega Garcia
37 * INRIA - Sophia Antipolis, France
38 * avega@sophia.inria.fr
39 */
40

--- 769 unchanged lines hidden (view full) ---

810 /* we haven't received the complete packet */
811 sc->mcur = m;
812#ifdef EP_LOCAL_STATS
813 /* to know how often we come here */
814 sc->rx_no_first++;
815#endif
816 EP_FRST(sc, F_RX_FIRST);
817 status = CSR_READ_2(sc, EP_W1_RX_STATUS);
33
34/*
35 * Modified from the FreeBSD 1.1.5.1 version by:
36 * Andres Vega Garcia
37 * INRIA - Sophia Antipolis, France
38 * avega@sophia.inria.fr
39 */
40

--- 769 unchanged lines hidden (view full) ---

810 /* we haven't received the complete packet */
811 sc->mcur = m;
812#ifdef EP_LOCAL_STATS
813 /* to know how often we come here */
814 sc->rx_no_first++;
815#endif
816 EP_FRST(sc, F_RX_FIRST);
817 status = CSR_READ_2(sc, EP_W1_RX_STATUS);
818 if (!status & ERR_RX_INCOMPLETE) {
818 if (!(status & ERR_RX_INCOMPLETE)) {
819 /*
820 * We see if by now, the packet has completly
821 * arrived
822 */
823 goto read_again;
824 }
825 CSR_WRITE_2(sc, EP_COMMAND,
826 SET_RX_EARLY_THRESH | RX_NEXT_EARLY_THRESH);

--- 197 unchanged lines hidden ---
819 /*
820 * We see if by now, the packet has completly
821 * arrived
822 */
823 goto read_again;
824 }
825 CSR_WRITE_2(sc, EP_COMMAND,
826 SET_RX_EARLY_THRESH | RX_NEXT_EARLY_THRESH);

--- 197 unchanged lines hidden ---