if_lge.c (173839) | if_lge.c (175872) |
---|---|
1/*- 2 * Copyright (c) 2001 Wind River Systems 3 * Copyright (c) 1997, 1998, 1999, 2000, 2001 4 * Bill Paul <william.paul@windriver.com>. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31 * THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001 Wind River Systems 3 * Copyright (c) 1997, 1998, 1999, 2000, 2001 4 * Bill Paul <william.paul@windriver.com>. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31 * THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/dev/lge/if_lge.c 173839 2007-11-22 02:45:00Z yongari $"); | 35__FBSDID("$FreeBSD: head/sys/dev/lge/if_lge.c 175872 2008-02-01 19:36:27Z phk $"); |
36 37/* 38 * Level 1 LXT1001 gigabit ethernet driver for FreeBSD. Public 39 * documentation not available, but ask me nicely. 40 * 41 * The Level 1 chip is used on some D-Link, SMC and Addtron NICs. 42 * It's a 64-bit PCI part that supports TCP/IP checksum offload, 43 * VLAN tagging/insertion, GMII and TBI (1000baseX) ports. There --- 670 unchanged lines hidden (view full) --- 714#endif 715 m_freem(m_new); 716 return(ENOBUFS); 717 } 718 /* Attach the buffer to the mbuf */ 719 m_new->m_data = (void *)buf; 720 m_new->m_len = m_new->m_pkthdr.len = LGE_JUMBO_FRAMELEN; 721 MEXTADD(m_new, buf, LGE_JUMBO_FRAMELEN, lge_jfree, | 36 37/* 38 * Level 1 LXT1001 gigabit ethernet driver for FreeBSD. Public 39 * documentation not available, but ask me nicely. 40 * 41 * The Level 1 chip is used on some D-Link, SMC and Addtron NICs. 42 * It's a 64-bit PCI part that supports TCP/IP checksum offload, 43 * VLAN tagging/insertion, GMII and TBI (1000baseX) ports. There --- 670 unchanged lines hidden (view full) --- 714#endif 715 m_freem(m_new); 716 return(ENOBUFS); 717 } 718 /* Attach the buffer to the mbuf */ 719 m_new->m_data = (void *)buf; 720 m_new->m_len = m_new->m_pkthdr.len = LGE_JUMBO_FRAMELEN; 721 MEXTADD(m_new, buf, LGE_JUMBO_FRAMELEN, lge_jfree, |
722 (struct lge_softc *)sc, 0, EXT_NET_DRV); | 722 buf, (struct lge_softc *)sc, 0, EXT_NET_DRV); |
723 } else { 724 m_new = m; 725 m_new->m_len = m_new->m_pkthdr.len = LGE_JUMBO_FRAMELEN; 726 m_new->m_data = m_new->m_ext.ext_buf; 727 } 728 729 /* 730 * Adjust alignment so packet payload begins on a --- 866 unchanged lines hidden --- | 723 } else { 724 m_new = m; 725 m_new->m_len = m_new->m_pkthdr.len = LGE_JUMBO_FRAMELEN; 726 m_new->m_data = m_new->m_ext.ext_buf; 727 } 728 729 /* 730 * Adjust alignment so packet payload begins on a --- 866 unchanged lines hidden --- |