From patchwork Thu Apr 17 23:03:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 28596 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 17F742188F for ; Thu, 17 Apr 2014 23:09:54 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id a41sf4040731yho.10 for ; Thu, 17 Apr 2014 16:09:53 -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:cc: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=JwLaEFr+crEv+NatA0KTuNXmMGdgvfArt2LJttKAuSU=; b=Epjimd0ajq+W8cIa15z3pXm1xmWKrIkmqv/bXAZWAFZ4mOH2xDoPzF7rJedtphjR1q IBuLv123QmNzsnjGbLBH4SnDGOC6C9MZuh8Ic0bYNOcvVcWo0olGvaYE7oQ5nTUK2Hyo FsKZD/bGcUJhPgLeKjQbnnkzUX76FLhd3D4PIy8L5H9Lzn1y+rQ/ve12yWnCNYyrBFYu w846kr7FA2RUL5W7goVUlmWaNaJcyKO1qe1qDcvGIvw38EYvIoRxr2wJ55Y7oeKXBGte CL5JR3Qz4K+/7B7P5NRQmEmkRBDYumksJmrH4ojvTb5OspBJYZN8AdfB5qE1a4GLhqjW u21Q== X-Gm-Message-State: ALoCoQnaTrQ+P0bTc6n9A+ec6SPQWSWPucLFTSgOQLcgeNetnYpxL3aW8NasK2wIxZBhRou3e8Oe X-Received: by 10.58.228.201 with SMTP id sk9mr8898400vec.35.1397776193833; Thu, 17 Apr 2014 16:09:53 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.179 with SMTP id q48ls1254495qga.21.gmail; Thu, 17 Apr 2014 16:09:53 -0700 (PDT) X-Received: by 10.52.123.39 with SMTP id lx7mr8280325vdb.22.1397776193714; Thu, 17 Apr 2014 16:09:53 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id ui2si4682390vdc.190.2014.04.17.16.09.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 17 Apr 2014 16:09:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id jw12so1552201veb.9 for ; Thu, 17 Apr 2014 16:09:53 -0700 (PDT) X-Received: by 10.58.38.166 with SMTP id h6mr9743243vek.22.1397776193632; Thu, 17 Apr 2014 16:09:53 -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.220.221.72 with SMTP id ib8csp70811vcb; Thu, 17 Apr 2014 16:09:53 -0700 (PDT) X-Received: by 10.140.28.227 with SMTP id 90mr20882229qgz.11.1397775878766; Thu, 17 Apr 2014 16:04:38 -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 z8si2586790qar.134.2014.04.17.16.04.08 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 17 Apr 2014 16:04:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) 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 1WavLX-0000Me-Nj; Thu, 17 Apr 2014 23:03:55 +0000 Received: from mail-ee0-f43.google.com ([74.125.83.43]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WavLL-0000MG-TC for lng-odp@lists.linaro.org; Thu, 17 Apr 2014 23:03:44 +0000 Received: by mail-ee0-f43.google.com with SMTP id e53so1088703eek.16 for ; Thu, 17 Apr 2014 16:03:50 -0700 (PDT) X-Received: by 10.14.218.193 with SMTP id k41mr17144644eep.16.1397775830785; Thu, 17 Apr 2014 16:03:50 -0700 (PDT) Received: from uglx0153363.synapse.com ([195.238.92.128]) by mx.google.com with ESMTPSA id a4sm71248693eep.12.2014.04.17.16.03.49 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 17 Apr 2014 16:03:49 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Fri, 18 Apr 2014 02:03:41 +0300 Message-Id: <1397775822-26517-2-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397775822-26517-1-git-send-email-taras.kondratiuk@linaro.org> References: <1397775822-26517-1-git-send-email-taras.kondratiuk@linaro.org> Cc: linaro-networking@linaro.org Subject: [lng-odp] [RFC PATCH 1/2] Split odp_buffer.h into API and platform parts 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=neutral (google.com: 209.85.128.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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 Keep platform specific values in separate header file. Signed-off-by: Taras Kondratiuk --- include/odp_buffer.h | 15 +-------------- platform/linux-generic/Makefile | 2 ++ platform/linux-generic/include/plat/odp_buffer.h | 12 ++++++++++++ 3 files changed, 15 insertions(+), 14 deletions(-) create mode 100644 platform/linux-generic/include/plat/odp_buffer.h diff --git a/include/odp_buffer.h b/include/odp_buffer.h index 2d2c25a..7e1108c 100644 --- a/include/odp_buffer.h +++ b/include/odp_buffer.h @@ -18,21 +18,8 @@ extern "C" { #endif - - #include - - - - - -/** - * ODP buffer - */ -typedef uint32_t odp_buffer_t; - -#define ODP_BUFFER_INVALID (0xffffffff) /**< Invalid buffer */ - +#include /** * Buffer start address diff --git a/platform/linux-generic/Makefile b/platform/linux-generic/Makefile index 15e2a2c..2789fe8 100644 --- a/platform/linux-generic/Makefile +++ b/platform/linux-generic/Makefile @@ -137,5 +137,7 @@ headers_install: libs $(ECHO) Installing headers to $(DESTDIR)/include $(COPY) $(ODP_ROOT)/include $(DESTDIR) $(COPY) include/api/* $(DESTDIR)/include/ + $(MKDIR) $(DESTDIR)/include/plat + $(COPY) include/plat/* $(DESTDIR)/include/plat install: lib_install headers_install diff --git a/platform/linux-generic/include/plat/odp_buffer.h b/platform/linux-generic/include/plat/odp_buffer.h new file mode 100644 index 0000000..01a96c5 --- /dev/null +++ b/platform/linux-generic/include/plat/odp_buffer.h @@ -0,0 +1,12 @@ +/* + * No protector. + * This file should be included only in one corresponding top level header. + */ + +/** + * ODP buffer + */ +typedef uint32_t odp_buffer_t; + +#define ODP_BUFFER_INVALID (0xffffffff) /**< Invalid buffer */ +