From patchwork Tue Jun 17 17:55:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 32096 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8D8D220C81 for ; Tue, 17 Jun 2014 17:56:33 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id r10sf15093350pdi.10 for ; Tue, 17 Jun 2014 10:56:32 -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=uV0i4EGd5wxE6iu7vccQv8qe9SNVsKo6aCyEgO/Gwp0=; b=XYuULvyj7L1se+yFjha3p6bQTQLfWhtw0Qf/QEZMlFYq9D9OW9Qjhze/+5ZJkiDXf9 sp8L+vKomW7W/a84/1VeqURwzKseZYqVrPq3f8lLqaKEu8xD0BF/pMcpgPIvnfGqqAPS AvLzmkWHTKVJOLkJN4lawKNql1SL2yGJP7zgEgT4wSLCfYFf4O3HFaFjY5UAG7ZrbHjf /SAQR6zGpuGXeE/0nxZIefktHl3kZsfASdbiG0dsTyzXGJLNlZu3tJJCkyURufZzBs6b PljUBZVmESDDSCKt8Um2QoqJ8IaItToUg/nBWUqCGYZkxHaerWr9aSly8Av9Kut23+4c w8Qg== X-Gm-Message-State: ALoCoQkO0fyGeqWsfFOzmkZN0c1Rn4UKzC1L3WTFQ2erIdRbX1ZxqBFz1fm6na2L9coNND0dhhsf X-Received: by 10.68.135.200 with SMTP id pu8mr1490908pbb.9.1403027792880; Tue, 17 Jun 2014 10:56:32 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.90.48 with SMTP id w45ls4810320qgd.73.gmail; Tue, 17 Jun 2014 10:56:32 -0700 (PDT) X-Received: by 10.58.38.34 with SMTP id d2mr1656145vek.58.1403027792717; Tue, 17 Jun 2014 10:56:32 -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 fp5si5771476vcb.75.2014.06.17.10.56.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:56:32 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.170 as permitted sender) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id i13so4457219veh.29 for ; Tue, 17 Jun 2014 10:56:32 -0700 (PDT) X-Received: by 10.58.82.106 with SMTP id h10mr1638067vey.60.1403027792639; Tue, 17 Jun 2014 10:56:32 -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 vs6csp227583vcb; Tue, 17 Jun 2014 10:56:32 -0700 (PDT) X-Received: by 10.224.166.201 with SMTP id n9mr39375209qay.62.1403027792232; Tue, 17 Jun 2014 10:56: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 z64si14723555qge.52.2014.06.17.10.56.31 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:56: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 1Wwxaq-0004u0-Ca; Tue, 17 Jun 2014 17:54:48 +0000 Received: from mail-la0-f54.google.com ([209.85.215.54]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Wwxa5-0004nK-Rh for lng-odp@lists.linaro.org; Tue, 17 Jun 2014 17:54:02 +0000 Received: by mail-la0-f54.google.com with SMTP id mc6so3574406lab.41 for ; Tue, 17 Jun 2014 10:55:38 -0700 (PDT) X-Received: by 10.112.73.234 with SMTP id o10mr18124082lbv.41.1403027738831; Tue, 17 Jun 2014 10:55:38 -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.37 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:55:38 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Tue, 17 Jun 2014 20:55:13 +0300 Message-Id: <1403027720-9738-12-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 11/18] Split out platform-specific part of odp_packet.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.170 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_packet.h | 8 +++--- platform/linux-generic/include/plat/odp_packet.h | 32 ++++++++++++++++++++++ 2 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 platform/linux-generic/include/plat/odp_packet.h diff --git a/include/odp_packet.h b/include/odp_packet.h index 932b009..77b0c30 100644 --- a/include/odp_packet.h +++ b/include/odp_packet.h @@ -19,18 +19,18 @@ extern "C" { #endif #include - +#include /** * ODP packet descriptor */ -typedef uint32_t odp_packet_t; +typedef plat_odp_packet_t odp_packet_t; /** Invalid packet */ -#define ODP_PACKET_INVALID ODP_BUFFER_INVALID +#define ODP_PACKET_INVALID PLAT_ODP_PACKET_INVALID /** Invalid offset */ -#define ODP_PACKET_OFFSET_INVALID ((uint32_t)-1) +#define ODP_PACKET_OFFSET_INVALID PLAT_ODP_PACKET_OFFSET_INVALID /** diff --git a/platform/linux-generic/include/plat/odp_packet.h b/platform/linux-generic/include/plat/odp_packet.h new file mode 100644 index 0000000..62a3c55 --- /dev/null +++ b/platform/linux-generic/include/plat/odp_packet.h @@ -0,0 +1,32 @@ +/* Copyright (c) 2013, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + + +/** + * @file + * + * ODP packet descriptor + */ + +#ifndef ODP_PACKET_H_ +#error This file should be included only into corresponding top level header +#else + +#include + +/** + * ODP packet descriptor + */ +typedef uint32_t plat_odp_packet_t; + +/** Invalid packet */ +#define PLAT_ODP_PACKET_INVALID ODP_BUFFER_INVALID + +/** Invalid offset */ +#define PLAT_ODP_PACKET_OFFSET_INVALID ((uint32_t)-1) + + +#endif