Skip to content
Browse files

vioblk: Clean up the dma attrs.

  • Loading branch information...
1 parent 35c7a84 commit 2eae49c06dbfa8626941e2607b5ab153cd8a36ec @xl0 committed Sep 23, 2011
Showing with 8 additions and 7 deletions.
  1. +8 −7 virtio_blk/vioblk.c
View
15 virtio_blk/vioblk.c
@@ -214,37 +214,38 @@ static struct modlinkage modlinkage = {
ddi_device_acc_attr_t vioblk_attr = {
DDI_DEVICE_ATTR_V0,
DDI_NEVERSWAP_ACC, /* virtio is always native byte order */
- DDI_STORECACHING_OK_ACC
+ DDI_STORECACHING_OK_ACC,
+ DDI_DEFAULT_ACC
};
static ddi_dma_attr_t vioblk_req_dma_attr = {
DMA_ATTR_V0, /* dma_attr version */
0, /* dma_attr_addr_lo */
0xFFFFFFFFFFFFFFFFull, /* dma_attr_addr_hi */
0x00000000FFFFFFFFull, /* dma_attr_count_max */
- VIRTIO_PAGE_SIZE, /* dma_attr_align */
- 0x1, /* dma_attr_burstsizes */
- 0x1, /* dma_attr_minxfer */
+ 1, /* dma_attr_align */
+ 1, /* dma_attr_burstsizes */
+ 1, /* dma_attr_minxfer */
0x40000000, /* dma_attr_maxxfer */
0xFFFFFFFFFFFFFFFFull, /* dma_attr_seg */
1, /* dma_attr_sgllen */
1, /* dma_attr_granular */
- DDI_DMA_FORCE_PHYSICAL /* dma_attr_flags */
+ 0, /* dma_attr_flags */
};
static ddi_dma_attr_t vioblk_bd_dma_attr = {
DMA_ATTR_V0, /* dma_attr version */
0, /* dma_attr_addr_lo */
0xFFFFFFFFFFFFFFFFull, /* dma_attr_addr_hi */
0x00000000FFFFFFFFull, /* dma_attr_count_max */
- VIRTIO_PAGE_SIZE, /* dma_attr_align */
+ 1, /* dma_attr_align */
1, /* dma_attr_burstsizes */
1, /* dma_attr_minxfer */
0x40000000, /* dma_attr_maxxfer */
0xFFFFFFFFFFFFFFFFull, /* dma_attr_seg */
-1, /* dma_attr_sgllen */
1, /* dma_attr_granular */
- DDI_DMA_FORCE_PHYSICAL /* dma_attr_flags */
+ 0, /* dma_attr_flags */
};
static int

0 comments on commit 2eae49c

Please sign in to comment.
Something went wrong with that request. Please try again.