From patchwork Tue Jun 17 17:55:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 32097 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f72.google.com (mail-qa0-f72.google.com [209.85.216.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A4B2120C81 for ; Tue, 17 Jun 2014 17:56:37 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id i13sf23173287qae.3 for ; Tue, 17 Jun 2014 10:56:37 -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=kM0ZEaTnrSbrcBvVJ6v1OrhHlWKpYHEBOUKNUJiRmZw=; b=CBT+yslvEqe57G9vg2Ee95opw7ybgtgUrOoca6VDDX/BMene5bicpKbJWKGIDN+d5q iCRpBL5ZajZt3H9mFJuXCCgfnPsa0AqhBN0BDEpXzWHUYngys2IC0yz2C4jN2T1RgqIL zSWnITTTJ/gFbKsuZhizL3KByyzNCbD7HdQfi2nO13pN0EoxkJo4oYhpYMJjPLoXEosy vx/ECGkbeIllWS44iuJDiKR9zIHN4G9Hc0aLantUcV3qV03zH28yXjFCziISa1O8z7Ut rZxYydXRoMJL8LdRpFmTF2WvzLAIvRDAf/LO3LEW5qUkR9FNRukK/fB9CnI6fctrLueK 5sqg== X-Gm-Message-State: ALoCoQmSKpSVpXmmL3nR5yhNJUHj1ibszVYge9BYyzQzCBmoJcjn5Z35cuMGgw25uftMMxS8Qcw5 X-Received: by 10.236.31.40 with SMTP id l28mr11440734yha.34.1403027797529; Tue, 17 Jun 2014 10:56:37 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.78 with SMTP id t72ls2266218qge.32.gmail; Tue, 17 Jun 2014 10:56:37 -0700 (PDT) X-Received: by 10.221.64.80 with SMTP id xh16mr2885775vcb.35.1403027797444; Tue, 17 Jun 2014 10:56:37 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id ot8si5769001vcb.95.2014.06.17.10.56.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:56:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id id10so6686898vcb.24 for ; Tue, 17 Jun 2014 10:56:37 -0700 (PDT) X-Received: by 10.58.152.234 with SMTP id vb10mr23161020veb.21.1403027797375; Tue, 17 Jun 2014 10:56:37 -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 vs6csp227586vcb; Tue, 17 Jun 2014 10:56:37 -0700 (PDT) X-Received: by 10.140.23.7 with SMTP id 7mr37153577qgo.0.1403027796927; Tue, 17 Jun 2014 10:56:36 -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 b3si17848028qak.97.2014.06.17.10.56.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:56:36 -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 1Wwxau-0004uX-Or; Tue, 17 Jun 2014 17:54:52 +0000 Received: from mail-la0-f46.google.com ([209.85.215.46]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Wwxa6-0004nP-S9 for lng-odp@lists.linaro.org; Tue, 17 Jun 2014 17:54:03 +0000 Received: by mail-la0-f46.google.com with SMTP id gl10so4174901lab.19 for ; Tue, 17 Jun 2014 10:55:39 -0700 (PDT) X-Received: by 10.112.210.165 with SMTP id mv5mr2399037lbc.68.1403027739759; Tue, 17 Jun 2014 10:55:39 -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.38 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:55:39 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Tue, 17 Jun 2014 20:55:14 +0300 Message-Id: <1403027720-9738-13-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 12/18] 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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 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_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 cfefac0..2e0bb84 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