From patchwork Fri Jan 8 20:29:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 59387 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp749341lbb; Fri, 8 Jan 2016 11:33:27 -0800 (PST) X-Received: by 10.140.251.11 with SMTP id w11mr95198816qhc.7.1452281607871; Fri, 08 Jan 2016 11:33:27 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id e97si9907953qkh.24.2016.01.08.11.33.27; Fri, 08 Jan 2016 11:33:27 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 779D061CCA; Fri, 8 Jan 2016 19:33:27 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=WZpederj; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,T_DKIM_INVALID,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 9F4786179B; Fri, 8 Jan 2016 19:31:43 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 0A697616B9; Fri, 8 Jan 2016 19:31:37 +0000 (UTC) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by lists.linaro.org (Postfix) with ESMTPS id 9831861665 for ; Fri, 8 Jan 2016 19:31:35 +0000 (UTC) Received: by mail-lb0-f175.google.com with SMTP id bc4so229214922lbc.2 for ; Fri, 08 Jan 2016 11:31:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gNYRKFAFjuPk51rKRu9YIH3GQ2ibutB2baGmHD+8r0E=; b=WZpederjFjQOpobod4itGjUFoPObMU9qPjhNfTLWZ+hGoSWhpOVeCFTJWZqaMbJC3F bLw3Cn+ZMuVuYsIz6uqpWGIiO5l/bGVmqJcPglaiqdxgSdFSNoZJkLvO3ylB17cyo61F bLFwGrD6K8Pw84HC7h04r4RHCihg6yGj87ea4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gNYRKFAFjuPk51rKRu9YIH3GQ2ibutB2baGmHD+8r0E=; b=QfoAhecnQ79A8Ef0eN1uFfHFyIrTpc/UtD85cUpHxvw0Esg3EiOZabECduTkM7sheY TEK04bGWLCV2qUobrQ7KHfMDtU0iO7jGGs8nkl4Ecq32Y1sSOfIRXT4ctkJ6d6KMC01L bUzvyy1vn3UrZGWdBRVk9/IC9CgYio5wakqN1kk4VXwOGtsQmIl42aBRq5HPIrultjJh hqOMdGSkD8wpKjYC8EKhgYScwmLdwGil/FN80fJEmIaykdZiDmpytk+8QgVoznsnwf+N vbB3KnTuVyUOjDIzIqXX0WpFSN/0N30Efl2Umqu4aV/PVEDgyNM853/PFSvlIypUiUEI ptTg== X-Gm-Message-State: ALoCoQlDqBnTM9PYPOUsMBIjHRNwKmPSZSvXNfX3ZO6YLuaUbd/y0+VcoEayANjQtLQZNlIAh9k0SKrHXdJidRuMwZ7+GFcf5Q== X-Received: by 10.112.52.38 with SMTP id q6mr8783376lbo.112.1452281494575; Fri, 08 Jan 2016 11:31:34 -0800 (PST) Received: from erachmi-ericsson.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id l204sm2085534lfg.49.2016.01.08.11.31.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Jan 2016 11:31:33 -0800 (PST) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org, bill.fischofer@linaro.org, petri.savolainen@linaro.org, edavis@broadcom.com Date: Fri, 8 Jan 2016 21:29:45 +0100 Message-Id: <1452285014-60320-3-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1452285014-60320-1-git-send-email-christophe.milard@linaro.org> References: <1452285014-60320-1-git-send-email-christophe.milard@linaro.org> Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [API-NEXT RFC 02/31] api: introducing the driver api definition file X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" 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" include/odp.h defines the ODP-application API (as before). include/odp_driver.h defines the new driver API. Note that the two APIs (application API and driver API) are partly overlapping: Some files such as byteorder.h, sync.h, hints.h... needs obviously to be part of both APIs. Signed-off-by: Christophe Milard --- include/odp.h | 2 +- include/odp_driver.h | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 include/odp_driver.h diff --git a/include/odp.h b/include/odp.h index 4a93c23..1c880df 100644 --- a/include/odp.h +++ b/include/odp.h @@ -7,7 +7,7 @@ /** * @file * - * The OpenDataPlane API + * The OpenDataPlane API to applications * */ diff --git a/include/odp_driver.h b/include/odp_driver.h new file mode 100644 index 0000000..b59f7df --- /dev/null +++ b/include/odp_driver.h @@ -0,0 +1,34 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/** + * @file + * + * The OpenDataPlane API to NIC drivers + * + */ + +#ifndef ODP_DRIVER_H_ +#define ODP_DRIVER_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include +#include +#include +#include +#include +#include +#include + +#ifdef __cplusplus +} +#endif + +#endif /*ODP_DRIVER_H_*/