if_ed_sic.c (149558) | if_ed_sic.c (154924) |
---|---|
1/*- 2 * Copyright (c) 2005, M. Warner Losh 3 * All rights reserved. 4 * Copyright (c) 1995, David Greenman 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2005, M. Warner Losh 3 * All rights reserved. 4 * Copyright (c) 1995, David Greenman 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/ed/if_ed_sic.c 149558 2005-08-28 23:56:25Z imp $"); | 31__FBSDID("$FreeBSD: head/sys/dev/ed/if_ed_sic.c 154924 2006-01-27 19:10:13Z imp $"); |
32 33#include "opt_ed.h" 34 35#ifdef ED_SIC 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/sockio.h> 39#include <sys/mbuf.h> --- 105 unchanged lines hidden (view full) --- 145 sc->txb_cnt = 2; 146 sc->tx_page_start = 0; 147 148 sc->rec_page_start = sc->tx_page_start + ED_TXBUF_SIZE * sc->txb_cnt; 149 sc->rec_page_stop = sc->tx_page_start + sc->mem_size / ED_PAGE_SIZE; 150 151 sc->mem_ring = sc->mem_start + sc->txb_cnt * ED_PAGE_SIZE * ED_TXBUF_SIZE; 152 | 32 33#include "opt_ed.h" 34 35#ifdef ED_SIC 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/sockio.h> 39#include <sys/mbuf.h> --- 105 unchanged lines hidden (view full) --- 145 sc->txb_cnt = 2; 146 sc->tx_page_start = 0; 147 148 sc->rec_page_start = sc->tx_page_start + ED_TXBUF_SIZE * sc->txb_cnt; 149 sc->rec_page_stop = sc->tx_page_start + sc->mem_size / ED_PAGE_SIZE; 150 151 sc->mem_ring = sc->mem_start + sc->txb_cnt * ED_PAGE_SIZE * ED_TXBUF_SIZE; 152 |
153 sc->sc_write_mbufs = ed_shmem_write_mbufs; |
|
153 return (0); 154} 155 156#endif /* ED_SIC */ | 154 return (0); 155} 156 157#endif /* ED_SIC */ |