From patchwork Mon Apr 28 11:41: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: 29219 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f72.google.com (mail-qg0-f72.google.com [209.85.192.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8F26D20553 for ; Mon, 28 Apr 2014 11:42:39 +0000 (UTC) Received: by mail-qg0-f72.google.com with SMTP id q108sf16351662qgd.3 for ; Mon, 28 Apr 2014 04:42:39 -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=8HKfrBfx/HIzBCOieViImjmzI9SS0dyejiydDS/pC2w=; b=AelfvRbSs5LECRchs6DmuLdNmXRMerVKVOqNIWQSMszIV/VemAA3Fdwm8tJ08zrvRb PsCzqvxuznVFPdh6qaE5nlPRdrWcG22ovDoXxsw/BOt2+Ip/cjJOKlGhON2ZLF2F4oyo c69N6DcKK6NZl34uSXScxisaZkvPK7aNQuxPSi6T9PvvcKX91vzlhaau+7H9lWxTy51u w3rqr9Kcmf875xU8Chkx3+E2L09xBm+Gqil6IB38r9frcfB7AOH9xeXdJBQsjYhv+awp 87N1+0bA4pHllxBymR5EwJBbJmVkcT5a4b8RrxS0gbH5hOa1qEJwf+9nCjGBga5nOdHw 6bZA== X-Gm-Message-State: ALoCoQm6ILCCNb298jLCThyJSF9drytobFsS7Lm19skM4VkrvePCj9v1pIwjf5DTrfCTc77FImz7 X-Received: by 10.58.46.240 with SMTP id y16mr12426100vem.2.1398685359339; Mon, 28 Apr 2014 04:42:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.90.51 with SMTP id w48ls2322413qgd.6.gmail; Mon, 28 Apr 2014 04:42:39 -0700 (PDT) X-Received: by 10.52.37.130 with SMTP id y2mr353273vdj.38.1398685359195; Mon, 28 Apr 2014 04:42:39 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id q1si3555306ves.9.2014.04.28.04.42.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 04:42:39 -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.181; Received: by mail-ve0-f181.google.com with SMTP id oy12so7654716veb.26 for ; Mon, 28 Apr 2014 04:42:39 -0700 (PDT) X-Received: by 10.52.251.199 with SMTP id zm7mr20268386vdc.21.1398685359121; Mon, 28 Apr 2014 04:42:39 -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 ib8csp110833vcb; Mon, 28 Apr 2014 04:42:38 -0700 (PDT) X-Received: by 10.224.22.65 with SMTP id m1mr1968952qab.103.1398685358728; Mon, 28 Apr 2014 04:42: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 x1si1152322qal.211.2014.04.28.04.42.37 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 28 Apr 2014 04:42:38 -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 1Wejwn-0002qX-B4; Mon, 28 Apr 2014 11:42:09 +0000 Received: from mail-lb0-f178.google.com ([209.85.217.178]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Wejw0-0002m0-Lw for lng-odp@lists.linaro.org; Mon, 28 Apr 2014 11:41:20 +0000 Received: by mail-lb0-f178.google.com with SMTP id s7so4818245lbd.23 for ; Mon, 28 Apr 2014 04:41:42 -0700 (PDT) X-Received: by 10.112.46.225 with SMTP id y1mr17933984lbm.12.1398685302788; Mon, 28 Apr 2014 04:41:42 -0700 (PDT) Received: from uglx0153363.itg.ti.com ([195.238.92.128]) by mx.google.com with ESMTPSA id x10sm9873857lad.1.2014.04.28.04.41.41 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 04:41:42 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Mon, 28 Apr 2014 14:41:09 +0300 Message-Id: <1398685276-4610-11-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398685276-4610-1-git-send-email-taras.kondratiuk@linaro.org> References: <1398685276-4610-1-git-send-email-taras.kondratiuk@linaro.org> X-Topics: patch Cc: linaro-networking@linaro.org Subject: [lng-odp] [RFC PATCH 10/17] 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=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 --- 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 4a16e11..e34e143 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 ((size_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..55ec326 --- /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 ((size_t)-1) + + +#endif