Date: Thu, 27 Dec 2012 19:13:00 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r244741 - projects/altix2/sys/dev/mpt Message-ID: <201212271913.qBRJD0pP039610@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marcel Date: Thu Dec 27 19:13:00 2012 New Revision: 244741 URL: http://svnweb.freebsd.org/changeset/base/244741 Log: Add the datarate. Specify as 0 for now. Modified: projects/altix2/sys/dev/mpt/mpt.c projects/altix2/sys/dev/mpt/mpt_pci.c projects/altix2/sys/dev/mpt/mpt_user.c Modified: projects/altix2/sys/dev/mpt/mpt.c ============================================================================== --- projects/altix2/sys/dev/mpt/mpt.c Thu Dec 27 19:10:02 2012 (r244740) +++ projects/altix2/sys/dev/mpt/mpt.c Thu Dec 27 19:13:00 2012 (r244741) @@ -2510,7 +2510,7 @@ mpt_dma_buf_alloc(struct mpt_softc *mpt) /* Create a child tag for data buffers */ error = busdma_tag_derive(mpt->parent_dmat, 1, 0, BUS_SPACE_MAXADDR, (mpt->max_cam_seg_cnt - 1) * PAGE_SIZE, mpt->max_cam_seg_cnt, - BUS_SPACE_MAXSIZE_32BIT, 0, &mpt->buffer_dmat); + BUS_SPACE_MAXSIZE_32BIT, 0, 0, &mpt->buffer_dmat); if (error != 0) { mpt_prt(mpt, "cannot create a dma tag for data buffers\n"); return (error); @@ -2519,7 +2519,7 @@ mpt_dma_buf_alloc(struct mpt_softc *mpt) /* Create a child tag for request buffers */ error = busdma_tag_derive(mpt->parent_dmat, PAGE_SIZE, 0, BUS_SPACE_MAXADDR_32BIT, MPT_REQ_MEM_SIZE(mpt), 1, - BUS_SPACE_MAXSIZE_32BIT, 0, &mpt->request_dmat); + BUS_SPACE_MAXSIZE_32BIT, 0, 0, &mpt->request_dmat); if (error != 0) { mpt_prt(mpt, "cannot create a dma tag for requests\n"); return (error); @@ -2717,7 +2717,7 @@ mpt_configure_ioc(struct mpt_softc *mpt, mpt->fw_image_size = mpt->ioc_facts.FWImageSize; error = busdma_tag_derive(mpt->parent_dmat, 1, 0, BUS_SPACE_MAXADDR_32BIT, mpt->fw_image_size, 1, - mpt->fw_image_size, 0, &mpt->fw_dmat); + mpt->fw_image_size, 0, 0, &mpt->fw_dmat); if (error != 0) { mpt_prt(mpt, "cannot create firmware dma tag\n"); return (ENOMEM); Modified: projects/altix2/sys/dev/mpt/mpt_pci.c ============================================================================== --- projects/altix2/sys/dev/mpt/mpt_pci.c Thu Dec 27 19:10:02 2012 (r244740) +++ projects/altix2/sys/dev/mpt/mpt_pci.c Thu Dec 27 19:13:00 2012 (r244741) @@ -697,7 +697,7 @@ mpt_dma_mem_alloc(struct mpt_softc *mpt) */ error = busdma_tag_create(mpt->dev, 1, 0, BUS_SPACE_MAXADDR, BUS_SPACE_MAXSIZE_32BIT, BUS_SPACE_UNRESTRICTED, - BUS_SPACE_MAXSIZE_32BIT, 0, &mpt->parent_dmat); + BUS_SPACE_MAXSIZE_32BIT, 0, 0, &mpt->parent_dmat); if (error != 0) { mpt_prt(mpt, "cannot create parent dma tag\n"); return (error); @@ -706,7 +706,7 @@ mpt_dma_mem_alloc(struct mpt_softc *mpt) /* Create a child tag for reply buffers */ error = busdma_tag_derive(mpt->parent_dmat, PAGE_SIZE, 0, BUS_SPACE_MAXADDR_32BIT, 2 * PAGE_SIZE, 1, BUS_SPACE_MAXSIZE_32BIT, - 0, &mpt->reply_dmat); + 0, 0, &mpt->reply_dmat); if (error != 0) { mpt_prt(mpt, "cannot create a dma tag for replies\n"); return (error); Modified: projects/altix2/sys/dev/mpt/mpt_user.c ============================================================================== --- projects/altix2/sys/dev/mpt/mpt_user.c Thu Dec 27 19:10:02 2012 (r244740) +++ projects/altix2/sys/dev/mpt/mpt_user.c Thu Dec 27 19:13:00 2012 (r244741) @@ -200,7 +200,7 @@ mpt_alloc_buffer(struct mpt_softc *mpt, if (len > 16 * 1024 * 1024) return (ENOSPC); error = busdma_tag_derive(mpt->parent_dmat, 1, 0, - BUS_SPACE_MAXADDR_32BIT, len, 1, len, 0, &page_mem->tag); + BUS_SPACE_MAXADDR_32BIT, len, 1, len, 0, 0, &page_mem->tag); if (error) return (error); error = busdma_mem_alloc(page_mem->tag,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212271913.qBRJD0pP039610>