From owner-svn-src-projects@FreeBSD.ORG Thu Dec 27 19:13:01 2012 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5F68F404; Thu, 27 Dec 2012 19:13:01 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 448398FC08; Thu, 27 Dec 2012 19:13:01 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBRJD1Rn039614; Thu, 27 Dec 2012 19:13:01 GMT (envelope-from marcel@svn.freebsd.org) Received: (from marcel@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBRJD0pP039610; Thu, 27 Dec 2012 19:13:00 GMT (envelope-from marcel@svn.freebsd.org) Message-Id: <201212271913.qBRJD0pP039610@svn.freebsd.org> From: Marcel Moolenaar Date: Thu, 27 Dec 2012 19:13:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r244741 - projects/altix2/sys/dev/mpt X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2012 19:13:01 -0000 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,