if_bce.c (210270) | if_bce.c (210271) |
---|---|
1/*- 2 * Copyright (c) 2006-2010 Broadcom Corporation 3 * David Christensen <davidch@broadcom.com>. 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 * --- 15 unchanged lines hidden (view full) --- 24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28 * THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006-2010 Broadcom Corporation 3 * David Christensen <davidch@broadcom.com>. 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 * --- 15 unchanged lines hidden (view full) --- 24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28 * THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/bce/if_bce.c 210270 2010-07-19 23:41:45Z yongari $"); | 32__FBSDID("$FreeBSD: head/sys/dev/bce/if_bce.c 210271 2010-07-19 23:48:03Z yongari $"); |
33 34/* 35 * The following controllers are supported by this driver: 36 * BCM5706C A2, A3 37 * BCM5706S A2, A3 38 * BCM5708C B1, B2 39 * BCM5708S B1, B2 40 * BCM5709C A1, C0 --- 3378 unchanged lines hidden (view full) --- 3419#endif 3420 max_segments = 1; 3421 3422 DBPRINT(sc, BCE_INFO_LOAD, "%s(): Creating rx_mbuf_tag " 3423 "(max size = 0x%jX max segments = %d, max segment " 3424 "size = 0x%jX)\n", __FUNCTION__, (uintmax_t) max_size, 3425 max_segments, (uintmax_t) max_seg_size); 3426 | 33 34/* 35 * The following controllers are supported by this driver: 36 * BCM5706C A2, A3 37 * BCM5706S A2, A3 38 * BCM5708C B1, B2 39 * BCM5708S B1, B2 40 * BCM5709C A1, C0 --- 3378 unchanged lines hidden (view full) --- 3419#endif 3420 max_segments = 1; 3421 3422 DBPRINT(sc, BCE_INFO_LOAD, "%s(): Creating rx_mbuf_tag " 3423 "(max size = 0x%jX max segments = %d, max segment " 3424 "size = 0x%jX)\n", __FUNCTION__, (uintmax_t) max_size, 3425 max_segments, (uintmax_t) max_seg_size); 3426 |
3427 if (bus_dma_tag_create(sc->parent_tag, 1, | 3427 if (bus_dma_tag_create(sc->parent_tag, BCE_RX_BUF_ALIGN, |
3428 BCE_DMA_BOUNDARY, sc->max_bus_addr, BUS_SPACE_MAXADDR, NULL, NULL, 3429 max_size, max_segments, max_seg_size, 0, NULL, NULL, 3430 &sc->rx_mbuf_tag)) { 3431 BCE_PRINTF("%s(%d): Could not allocate RX mbuf DMA tag!\n", 3432 __FILE__, __LINE__); 3433 rc = ENOMEM; 3434 goto bce_dma_alloc_exit; 3435 } --- 7405 unchanged lines hidden --- | 3428 BCE_DMA_BOUNDARY, sc->max_bus_addr, BUS_SPACE_MAXADDR, NULL, NULL, 3429 max_size, max_segments, max_seg_size, 0, NULL, NULL, 3430 &sc->rx_mbuf_tag)) { 3431 BCE_PRINTF("%s(%d): Could not allocate RX mbuf DMA tag!\n", 3432 __FILE__, __LINE__); 3433 rc = ENOMEM; 3434 goto bce_dma_alloc_exit; 3435 } --- 7405 unchanged lines hidden --- |