diff options
| author | Pyun YongHyeon <yongari@FreeBSD.org> | 2010-08-15 23:56:57 +0000 |
|---|---|---|
| committer | Pyun YongHyeon <yongari@FreeBSD.org> | 2010-08-15 23:56:57 +0000 |
| commit | b7d4557b7b16a60373d80b28a55df835458fa069 (patch) | |
| tree | 79c45cfb35d272ff2623d5c80a0466b84003c7d2 /sys/dev/bce | |
| parent | af7714cb8a481b536c961dbf68b63115c1caaaf2 (diff) | |
Notes
Diffstat (limited to 'sys/dev/bce')
| -rw-r--r-- | sys/dev/bce/if_bce.c | 2 | ||||
| -rw-r--r-- | sys/dev/bce/if_bcereg.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/bce/if_bce.c b/sys/dev/bce/if_bce.c index 43b8837fa991..1272cd5f02e7 100644 --- a/sys/dev/bce/if_bce.c +++ b/sys/dev/bce/if_bce.c @@ -3424,7 +3424,7 @@ bce_dma_alloc(device_t dev) "size = 0x%jX)\n", __FUNCTION__, (uintmax_t) max_size, max_segments, (uintmax_t) max_seg_size); - if (bus_dma_tag_create(sc->parent_tag, 1, + if (bus_dma_tag_create(sc->parent_tag, BCE_RX_BUF_ALIGN, BCE_DMA_BOUNDARY, sc->max_bus_addr, BUS_SPACE_MAXADDR, NULL, NULL, max_size, max_segments, max_seg_size, 0, NULL, NULL, &sc->rx_mbuf_tag)) { diff --git a/sys/dev/bce/if_bcereg.h b/sys/dev/bce/if_bcereg.h index d6e7c242d638..2bb589fcc7a2 100644 --- a/sys/dev/bce/if_bcereg.h +++ b/sys/dev/bce/if_bcereg.h @@ -6316,6 +6316,7 @@ struct fw_info { #define BCE_DMA_ALIGN 8 #define BCE_DMA_BOUNDARY 0 +#define BCE_RX_BUF_ALIGN 16 #define BCE_MAX_CONTEXT 4 |
