From patchwork Wed Apr 23 09:53:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 28858 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 86DEA20534 for ; Wed, 23 Apr 2014 09:54:33 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id jy13sf2815328veb.2 for ; Wed, 23 Apr 2014 02:54:33 -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=cbpM6jbINe9BYIP6W89E1dhFcByF7g4ch27DUGbSiqQ=; b=fCTsKzgNuDCB1riAOAQwe8olTU73lS3X6uF/uXYdj+Kx7DArdnMMt5MrF8GXhxEYlB eUA4Ad6+rNjrQQ9rpRn6WFKOc+gRQUQUnkrGPzqMne4w/PYSbMcKmgWyoc0UYNuw2rFu gP5TjF6R913mMTvy9AXfNPdtir5oLl5CXCw4JXW8pqNzwvYzw0mZa1oIKvWzn1RLyJj6 qBLx57KafaeaCdv7qBHPTpR+6Uxtyj2hARVjtaZsYgCEUO8wRMuy4QAGtsNxEOXIDmxB cyi0fjHHZsmzT+sft7BdOtUq4x1sR7nyxQhBvPsKL3KjxRZyNw7MP717LV7XsQrf2mte HYPA== X-Gm-Message-State: ALoCoQlECMrLFDRYpwfQUKQBh1DsvYreEVqwDp5VQ4hut4KpHbyZO2meVtCu7/gKjvvP9tQB75qr X-Received: by 10.58.169.198 with SMTP id ag6mr26087264vec.22.1398246873286; Wed, 23 Apr 2014 02:54:33 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.42 with SMTP id g39ls515834qgd.25.gmail; Wed, 23 Apr 2014 02:54:33 -0700 (PDT) X-Received: by 10.52.26.161 with SMTP id m1mr11875895vdg.24.1398246873138; Wed, 23 Apr 2014 02:54:33 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id v8si72186vcs.176.2014.04.23.02.54.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Apr 2014 02:54:33 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id pa12so843081veb.15 for ; Wed, 23 Apr 2014 02:54:33 -0700 (PDT) X-Received: by 10.220.59.65 with SMTP id k1mr13513570vch.22.1398246873062; Wed, 23 Apr 2014 02:54:33 -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 ib8csp90694vcb; Wed, 23 Apr 2014 02:54:32 -0700 (PDT) X-Received: by 10.140.48.77 with SMTP id n71mr18469844qga.90.1398246872338; Wed, 23 Apr 2014 02:54:32 -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 m9si201620qge.21.2014.04.23.02.54.31 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 23 Apr 2014 02:54:32 -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 1WctsY-00059F-Tx; Wed, 23 Apr 2014 09:54:10 +0000 Received: from mail-ee0-f42.google.com ([74.125.83.42]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WctsK-00057k-St for lng-odp@lists.linaro.org; Wed, 23 Apr 2014 09:53:57 +0000 Received: by mail-ee0-f42.google.com with SMTP id d17so568842eek.29 for ; Wed, 23 Apr 2014 02:54:11 -0700 (PDT) X-Received: by 10.15.91.77 with SMTP id r53mr18397560eez.70.1398246851748; Wed, 23 Apr 2014 02:54:11 -0700 (PDT) Received: from uglx0153363.synapse.com ([195.238.92.128]) by mx.google.com with ESMTPSA id o4sm4757906eef.20.2014.04.23.02.54.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Apr 2014 02:54:10 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Wed, 23 Apr 2014 12:53:52 +0300 Message-Id: <1398246839-15554-3-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398246839-15554-1-git-send-email-taras.kondratiuk@linaro.org> References: <1398246839-15554-1-git-send-email-taras.kondratiuk@linaro.org> Subject: [lng-odp] [PATCH v3 2/9] 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: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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 | 11 +++++++++++ 3 files changed, 14 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 ec5d4a7..77269a4 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..1605324 --- /dev/null +++ b/platform/linux-generic/include/plat/odp_buffer.h @@ -0,0 +1,11 @@ +/* + * 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 */