From patchwork Tue Jun 17 17:55:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 32092 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 92B3420C81 for ; Tue, 17 Jun 2014 17:56:15 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id f10sf33272559yha.3 for ; Tue, 17 Jun 2014 10:56:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=gf2x1vU/sBGoWfeUDdE34fMuibkYxovqPXSx9Csp1oc=; b=Sv12a4ypKWSEi7yEZ3YplvEaaPQ50Hbc6XX5ITmSAHTR1E2Y8/zx1JgQ6qb09ooAle 65tBByMRZwYdARin7hTv9tD7eb2D1KeSITLuxXWRfe5DFq5ku22uqSee3t4tvsE8AZDB rCq/RKrrm+wqymOi/IN+aIGwzT5wSfps37ztqjUWCBEP+4YSkGQuT4b6/HsTVTyKu8b7 vflwFi+1qSrcr2MAzGtvP7jXUN9aIOC0A+Nin32N9yF7BXqTxp6LJAGCQg6yMDHUC4PU 2bHdH1ggQoENyU55N1yce/9P36WAD1ZPRrkfCMswKLqmbcOyCG4x7DD/GSVqzq/RKCIA Uz5w== X-Gm-Message-State: ALoCoQkxQ7f/2oOVt20YWJ2r1feo53eDk4l2B24LkjuLLQtf+9vaW6eTirwdfN+Heh46AXxCGz/F X-Received: by 10.58.37.164 with SMTP id z4mr462967vej.28.1403027775400; Tue, 17 Jun 2014 10:56:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.10 with SMTP id l10ls568910qga.72.gmail; Tue, 17 Jun 2014 10:56:15 -0700 (PDT) X-Received: by 10.220.162.196 with SMTP id w4mr1623595vcx.58.1403027775238; Tue, 17 Jun 2014 10:56:15 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id ij19si5768428vec.99.2014.06.17.10.56.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:56:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.176 as permitted sender) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id db12so7915679veb.35 for ; Tue, 17 Jun 2014 10:56:15 -0700 (PDT) X-Received: by 10.58.1.228 with SMTP id 4mr1711176vep.46.1403027775159; Tue, 17 Jun 2014 10:56:15 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.54.6 with SMTP id vs6csp227567vcb; Tue, 17 Jun 2014 10:56:14 -0700 (PDT) X-Received: by 10.140.29.139 with SMTP id b11mr36342321qgb.44.1403027774735; Tue, 17 Jun 2014 10:56:14 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id a9si17853452qaj.70.2014.06.17.10.56.13 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:56:14 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WwxaY-0004rW-33; Tue, 17 Jun 2014 17:54:30 +0000 Received: from mail-la0-f41.google.com ([209.85.215.41]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Wwxa1-0004mt-MQ for lng-odp@lists.linaro.org; Tue, 17 Jun 2014 17:53:57 +0000 Received: by mail-la0-f41.google.com with SMTP id hz20so4247728lab.28 for ; Tue, 17 Jun 2014 10:55:34 -0700 (PDT) X-Received: by 10.112.27.139 with SMTP id t11mr2075639lbg.84.1403027734638; Tue, 17 Jun 2014 10:55:34 -0700 (PDT) Received: from localhost.localdomain (176-241-155-136-dynamic.retail.datagroup.ua. [176.241.155.136]) by mx.google.com with ESMTPSA id d3sm11646351lbw.2.2014.06.17.10.55.33 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:55:34 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Tue, 17 Jun 2014 20:55:09 +0300 Message-Id: <1403027720-9738-8-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1403027720-9738-1-git-send-email-taras.kondratiuk@linaro.org> References: <1403027720-9738-1-git-send-email-taras.kondratiuk@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH v2 07/18] Split out platform-specific part of odp_buffer_pool.h X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: taras.kondratiuk@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Taras Kondratiuk --- include/odp_buffer_pool.h | 13 +++------- .../linux-generic/include/plat/odp_buffer_pool.h | 26 ++++++++++++++++++++ 2 files changed, 30 insertions(+), 9 deletions(-) create mode 100644 platform/linux-generic/include/plat/odp_buffer_pool.h diff --git a/include/odp_buffer_pool.h b/include/odp_buffer_pool.h index 9112489..767aa08 100644 --- a/include/odp_buffer_pool.h +++ b/include/odp_buffer_pool.h @@ -18,20 +18,18 @@ extern "C" { #endif - - #include #include +#include /** Maximum queue name lenght in chars */ -#define ODP_BUFFER_POOL_NAME_LEN 32 +#define ODP_BUFFER_POOL_NAME_LEN PLAT_ODP_BUFFER_POOL_NAME_LEN /** Invalid buffer pool */ -#define ODP_BUFFER_POOL_INVALID (0xffffffff) +#define ODP_BUFFER_POOL_INVALID PLAT_ODP_BUFFER_POOL_INVALID /** ODP buffer pool */ -typedef uint32_t odp_buffer_pool_t; - +typedef plat_odp_buffer_pool_t odp_buffer_pool_t; /** * Create a buffer pool @@ -89,9 +87,6 @@ odp_buffer_t odp_buffer_alloc(odp_buffer_pool_t pool); */ void odp_buffer_free(odp_buffer_t buf); - - - #ifdef __cplusplus } #endif diff --git a/platform/linux-generic/include/plat/odp_buffer_pool.h b/platform/linux-generic/include/plat/odp_buffer_pool.h new file mode 100644 index 0000000..7f68142 --- /dev/null +++ b/platform/linux-generic/include/plat/odp_buffer_pool.h @@ -0,0 +1,26 @@ +/* Copyright (c) 2013, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + + +/** + * @file + * + * ODP buffer pool + */ + +#ifndef ODP_BUFFER_POOL_H_ +#error This file should be included only into corresponding top level header +#else + +/** Maximum queue name lenght in chars */ +#define PLAT_ODP_BUFFER_POOL_NAME_LEN 32 + +/** Invalid buffer pool */ +#define PLAT_ODP_BUFFER_POOL_INVALID (0xffffffff) + +/** ODP buffer pool */ +typedef uint32_t plat_odp_buffer_pool_t; +#endif