Deleted Added
full compact
if_hme.c (108976) if_hme.c (109623)
1/*-
2 * Copyright (c) 1999 The NetBSD Foundation, Inc.
3 * Copyright (c) 2001-2003 Thomas Moestl <tmm@FreeBSD.org>.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to The NetBSD Foundation
7 * by Paul Kranenburg.
8 *

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

31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 * POSSIBILITY OF SUCH DAMAGE.
36 *
37 * from: NetBSD: hme.c,v 1.20 2000/12/14 06:27:25 thorpej Exp
38 *
1/*-
2 * Copyright (c) 1999 The NetBSD Foundation, Inc.
3 * Copyright (c) 2001-2003 Thomas Moestl <tmm@FreeBSD.org>.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to The NetBSD Foundation
7 * by Paul Kranenburg.
8 *

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

31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 * POSSIBILITY OF SUCH DAMAGE.
36 *
37 * from: NetBSD: hme.c,v 1.20 2000/12/14 06:27:25 thorpej Exp
38 *
39 * $FreeBSD: head/sys/dev/hme/if_hme.c 108976 2003-01-09 00:45:10Z tmm $
39 * $FreeBSD: head/sys/dev/hme/if_hme.c 109623 2003-01-21 08:56:16Z alfred $
40 */
41
42/*
43 * HME Ethernet module driver.
44 *
45 * The HME is e.g. part of the PCIO PCI multi function device.
46 * It supports TX gathering and TX and RX checksum offloading.
47 * RX buffers must be aligned at a programmable offset modulo 16. We choose 2

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

488 if (unmap && keepold) {
489 /*
490 * Reinitialize the descriptor flags, as they may have been
491 * altered by the hardware.
492 */
493 hme_discard_rxbuf(sc, ri, 0);
494 return (0);
495 }
40 */
41
42/*
43 * HME Ethernet module driver.
44 *
45 * The HME is e.g. part of the PCIO PCI multi function device.
46 * It supports TX gathering and TX and RX checksum offloading.
47 * RX buffers must be aligned at a programmable offset modulo 16. We choose 2

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

488 if (unmap && keepold) {
489 /*
490 * Reinitialize the descriptor flags, as they may have been
491 * altered by the hardware.
492 */
493 hme_discard_rxbuf(sc, ri, 0);
494 return (0);
495 }
496 if ((m = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR)) == NULL)
496 if ((m = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR)) == NULL)
497 return (ENOBUFS);
498 m->m_len = m->m_pkthdr.len = m->m_ext.ext_size;
499 b = mtod(m, uintptr_t);
500 /*
501 * Required alignment boundary. At least 16 is needed, but since
502 * the mapping must be done in a way that a burst can start on a
503 * natural boundary we might need to extend this.
504 */

--- 978 unchanged lines hidden ---
497 return (ENOBUFS);
498 m->m_len = m->m_pkthdr.len = m->m_ext.ext_size;
499 b = mtod(m, uintptr_t);
500 /*
501 * Required alignment boundary. At least 16 is needed, but since
502 * the mapping must be done in a way that a burst can start on a
503 * natural boundary we might need to extend this.
504 */

--- 978 unchanged lines hidden ---