From patchwork Mon Apr 28 11:41:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 29220 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f200.google.com (mail-pd0-f200.google.com [209.85.192.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1337520553 for ; Mon, 28 Apr 2014 11:42:45 +0000 (UTC) Received: by mail-pd0-f200.google.com with SMTP id x10sf10645727pdj.3 for ; Mon, 28 Apr 2014 04:42:45 -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=C9kvRm+Gv8i2Mgys4BpplLuQEkBG7oVJZJFQYE5jVv0=; b=jH4kTnoPhYAaHtV8884YHFreqrOckDyjfhvJnJGO96MUt8qO3FoyledL4Q9OhKkwxB 6gIJCAJIVSX5nS4+e83KpoKuKiPYVJ84QpE3Y6F3tcfKH25hDhIKyGf9Lmu/4osaRYXb EI/OONqTLsuxltDBYVnN9HRwqR8Kt2csOUpIzk7smZLRKy/PsHRHnJqIasif2r9Quhcs vkSzltKNhz1Isf7zkX7TkVo0P7csEheztQ3WGrTdWHoPhzpaLIvXklp8RxUubEZjVHR3 6SSMRxx5BHRZGuvb2yZ4crEoFIkyjjf7sl2T2GzVsaJZrtZWAdF0cCc9yaG0GD9+I/G7 oJ1g== X-Gm-Message-State: ALoCoQkzeHk71xHa8kR0H9KF8JP5N/o+osgXkru8GDuZ+ES9yoCbldc/gt1FgjhXhByz3i2oX1BX X-Received: by 10.67.5.165 with SMTP id cn5mr12856980pad.9.1398685365287; Mon, 28 Apr 2014 04:42:45 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.104.163 with SMTP id a32ls2635001qgf.73.gmail; Mon, 28 Apr 2014 04:42:45 -0700 (PDT) X-Received: by 10.220.163.3 with SMTP id y3mr23430913vcx.7.1398685365125; Mon, 28 Apr 2014 04:42:45 -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 kj3si3548579vdb.6.2014.04.28.04.42.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 04:42:45 -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 pa12so8063618veb.29 for ; Mon, 28 Apr 2014 04:42:45 -0700 (PDT) X-Received: by 10.220.147.16 with SMTP id j16mr23463292vcv.14.1398685365060; Mon, 28 Apr 2014 04:42:45 -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 ib8csp110836vcb; Mon, 28 Apr 2014 04:42:44 -0700 (PDT) X-Received: by 10.224.20.72 with SMTP id e8mr31834221qab.86.1398685364674; Mon, 28 Apr 2014 04:42:44 -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 k9si4592103qan.81.2014.04.28.04.42.44 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 28 Apr 2014 04:42:44 -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 1Wejwt-0002r1-Q3; Mon, 28 Apr 2014 11:42:15 +0000 Received: from mail-lb0-f171.google.com ([209.85.217.171]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Wejw2-0002mG-96 for lng-odp@lists.linaro.org; Mon, 28 Apr 2014 11:41:22 +0000 Received: by mail-lb0-f171.google.com with SMTP id u14so2004866lbd.30 for ; Mon, 28 Apr 2014 04:41:44 -0700 (PDT) X-Received: by 10.152.197.98 with SMTP id it2mr585577lac.53.1398685304240; Mon, 28 Apr 2014 04:41:44 -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.42 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 04:41:43 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Mon, 28 Apr 2014 14:41:10 +0300 Message-Id: <1398685276-4610-12-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 11/17] Split out platform-specific part of odp_packet_io.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_io.h | 5 ++-- .../linux-generic/include/plat/odp_packet_io.h | 26 ++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 platform/linux-generic/include/plat/odp_packet_io.h diff --git a/include/odp_packet_io.h b/include/odp_packet_io.h index 0002b1e..96391ef 100644 --- a/include/odp_packet_io.h +++ b/include/odp_packet_io.h @@ -24,12 +24,13 @@ extern "C" { #include #include +#include /** ODP packet IO handle */ -typedef uint32_t odp_pktio_t; +typedef plat_odp_pktio_t odp_pktio_t; /** Invalid packet IO handle */ -#define ODP_PKTIO_INVALID 0 +#define ODP_PKTIO_INVALID PLAT_ODP_PKTIO_INVALID /** * Open an ODP packet IO instance diff --git a/platform/linux-generic/include/plat/odp_packet_io.h b/platform/linux-generic/include/plat/odp_packet_io.h new file mode 100644 index 0000000..7358611 --- /dev/null +++ b/platform/linux-generic/include/plat/odp_packet_io.h @@ -0,0 +1,26 @@ +/* Copyright (c) 2013, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + + +/** + * @file + * + * ODP Packet IO + */ + +#ifndef ODP_PACKET_IO_H_ +#error This file should be included only into corresponding top level header +#else + +#include + +/** ODP packet IO handle */ +typedef uint32_t plat_odp_pktio_t; + +/** Invalid packet IO handle */ +#define PLAT_ODP_PKTIO_INVALID 0 + +#endif