From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0040.outbound.protection.outlook.com [104.47.41.40]) by dpdk.org (Postfix) with ESMTP id EA0667CC4 for ; Thu, 11 Jan 2018 12:11:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pIPtty2PsmwdkSI0QYhbQiTFS9bCDlP7bddB++O0PgQ=; b=TGXa3X9/pGdn/nLnuno+X8ebNwAD4tu3bSw1EseaDC8weKdrUQO723oelNbYStV/SuCGjzRpx0admY0BcnCUMesmMeyZ8G/DwzxTzp63B+3cPTB2vNgRSWYVwZAEuNS4kDtltVs+Xnf9qzhMd9xptOQuDSDfN4YjK5p4a2G38E0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT (111.93.218.67) by CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Thu, 11 Jan 2018 11:11:04 +0000 Date: Thu, 11 Jan 2018 16:40:53 +0530 From: Pavan Nikhilesh To: Erik Gabriel Carrillo , jerin.jacob@caviumnetworks.com, nipun.gupta@nxp.com, hemant.agrawal@nxp.com Cc: dev@dpdk.org Message-ID: <20180111111053.ibndphowlmomjd5q@Pavan-LT> References: <1512158458-22661-1-git-send-email-erik.g.carrillo@intel.com> <1515630074-29020-1-git-send-email-erik.g.carrillo@intel.com> <1515630074-29020-2-git-send-email-erik.g.carrillo@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1515630074-29020-2-git-send-email-erik.g.carrillo@intel.com> User-Agent: NeoMutt/20170609 (1.8.3) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MWHPR04CA0051.namprd04.prod.outlook.com (10.173.46.13) To CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 51aa12a0-00b7-4916-79c4-08d558e40283 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:CY4PR07MB3464; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 3:qt98qxjUuKBVQDX0A6tU5Q1/8YYA3YADvEt6YbhMx1rasE6tefCUrQFXV7Nr5sGIc4u8r2ooZcGW26KWW9TMN4VAeRzhjn2bmsAUnX5D8qmgHMfhGy/B747m0d2mrK8xrIfhmDfhdwKVnNvHdE80EU99LSesu/YihgvsZsp/1kgFYQuxjwyS9rDYm15WjDeheVHjhlymBWjrvLN672Oa0TBXPCWZs4p1kcgH2qXL+lE6+VptcerEuRTB5hzbMjcT; 25:qYGfZIgq8qqWrVGo0SOBkOW8lzPs9ltC6m081z3AVWQlVvx+63Oz2pLjUz+9DSyaJpFfAbWM3oRU182/oNB+3hUVw7BevzX6WprmL95Ekngw2TGlsmZRpM+ptshydbK8JQ+TFjtc/Sh84zDTE+Ik4wa6QooYW7tYf2HdJ0SKVpmpQ2C+mCCevta7jdJwHts3fcsWtACOTG3Xpcf7iRaaDZ+k9TsBd+wb9N/VDkumxhZzFcUsrCOb2Yc7mF7O5kBHtbWqdfoSgvinahCENgkGN5ntFvBit0AsMF/RuxLJUKz/LNNz3mhcs/xUxUefLdYR1h12LWMqoKSGO0Oiy7lhnA==; 31:AIryqgYk47ChHfFOFHtnxQ8KcBV+ty9/zzxiNylkZrZp8AnkM7Ha0mugbNQl7PVIUyrZjFn3S9K/gJF+U3MZjUw0VIcNO2/Ey/1DmzdSe/RQbiTxz8bX+SMW5+pYq6xP/yCT11J+Uc27UGhZY1E74odg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XD9PF0 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(3231023)(944501075)(3002001)(10201501046)(6041268)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:CY4PR07MB3464; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR07MB3464; X-Forefront-PRVS: 0549E6FD50 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39860400002)(366004)(39380400002)(346002)(24454002)(199004)(189003)(3846002)(8656006)(81166006)(9686003)(6246003)(2950100002)(52116002)(42882006)(106356001)(33716001)(8936002)(83506002)(7736002)(6666003)(6306002)(50466002)(55016002)(305945005)(5660300001)(478600001)(4326008)(53376002)(23726003)(68736007)(105586002)(81156014)(5009440100003)(16526018)(72206003)(1076002)(53936002)(2906002)(6116002)(47776003)(97736004)(8676002)(33896004)(25786009)(316002)(58126008)(66066001)(6496006)(229853002)(59450400001)(966005)(16586007)(386003)(76176011)(107986001)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3464; H:Pavan-LT; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3464; 23:jbTyIGBSaE6oA9rqwvrCzsNmPp9AteN4j2IOiM4v7?= =?us-ascii?Q?A9AiNORzHn4g2Qn9PBSB+b228s8zRal0OGUHwcnnzhryCehj6w+QSes5U6mZ?= =?us-ascii?Q?u8d7jgSg1vYG6q6IQjkNF0+NPySCpjMD43Z9uQSnfAa94pAUS0d/NdPp4lGg?= =?us-ascii?Q?m2gVfbzpUO/srL7hYODhyBTCfNJvTvf/DmX2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 7:kY9RH4afgiRX/xsH49Z206e17iCJlyJOjv0nkajx7JjXJjEGay59INtm1B7jtcuxKrYR5LvvXyyAXHJOOKenUrRb89OozURl7Kr3cWunW/ZRdnQ52dxCtyNGdsXEEdIPwmMrfqR15SLt1F5ZO8LOj8FR0utUmmvvAzET4tGm1QKIeKJkZ0pTo91iYx4C3Y8EpscPWx1pycUM+xVFp8KgfMduvEzRwXvIld9aIR+SSIh1VzkJxpBWh393q36fG+uh SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2018 11:11:04.1532 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 51aa12a0-00b7-4916-79c4-08d558e40283 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3464 Subject: Re: [dpdk-dev] [PATCH v6 01/23] eventtimer: add event timer adapter API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2018 11:11:20 -0000 On Wed, Jan 10, 2018 at 06:20:52PM -0600, Erik Gabriel Carrillo wrote: > Signed-off-by: Erik Gabriel Carrillo Consider giving credit to the original authors. > --- > lib/librte_eventdev/Makefile | 1 + > lib/librte_eventdev/rte_event_timer_adapter.h | 566 ++++++++++++++++++++++++++ > lib/librte_eventdev/rte_eventdev.h | 4 +- > 3 files changed, 569 insertions(+), 2 deletions(-) > create mode 100644 lib/librte_eventdev/rte_event_timer_adapter.h > > diff --git a/lib/librte_eventdev/Makefile b/lib/librte_eventdev/Makefile > index 7fd78c7..685b474 100644 > --- a/lib/librte_eventdev/Makefile > +++ b/lib/librte_eventdev/Makefile > @@ -27,6 +27,7 @@ SYMLINK-y-include += rte_eventdev_pmd_pci.h > SYMLINK-y-include += rte_eventdev_pmd_vdev.h > SYMLINK-y-include += rte_event_ring.h > SYMLINK-y-include += rte_event_eth_rx_adapter.h > +SYMLINK-y-include += rte_event_timer_adapter.h > > # versioning export map > EXPORT_MAP := rte_eventdev_version.map > diff --git a/lib/librte_eventdev/rte_event_timer_adapter.h b/lib/librte_eventdev/rte_event_timer_adapter.h > new file mode 100644 > index 0000000..7d967e6 > --- /dev/null > +++ b/lib/librte_eventdev/rte_event_timer_adapter.h > @@ -0,0 +1,566 @@ > +/*- > + * BSD LICENSE > + * > + * Copyright 2017 Cavium, Inc. > + * Copyright(c) 2017 Intel Corporation. All rights reserved. > + * > + * Redistribution and use in source and binary forms, with or without > + * modification, are permitted provided that the following conditions > + * are met: > + * > + * * Redistributions of source code must retain the above copyright > + * notice, this list of conditions and the following disclaimer. > + * * Redistributions in binary form must reproduce the above copyright > + * notice, this list of conditions and the following disclaimer in > + * the documentation and/or other materials provided with the > + * distribution. > + * * Neither the name of Intel Corporation nor the names of its > + * contributors may be used to endorse or promote products derived > + * from this software without specific prior written permission. > + * > + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS > + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT > + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR > + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT > + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, > + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT > + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, > + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY > + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE > + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > + */ Use SPDX licence tags > +#ifndef __RTE_EVENT_TIMER_ADAPTER_H__ > +#define __RTE_EVENT_TIMER_ADAPTER_H__ > + > +/** > + * @file > + * > + * RTE Event Timer Adapter > + */ > + > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +#include > +#include > + > +#include "rte_eventdev.h" > + > +#define RTE_EVENT_TIMER_ADAPTER_NUM_MAX 64 > + > +/** > + * @warning > + * @b EXPERIMENTAL: this enum may change without prior notice Please make sure that Experimental tags usage is inline with the new tool http://dpdk.org/dev/patchwork/patch/32234. Cheers, Pavan > + * > + * Timer adapter clock source > + */ > +enum rte_event_timer_adapter_clk_src { > + RTE_EVENT_TIMER_ADAPTER_CPU_CLK, > + /**< Use CPU clock as the clock source. */ > + RTE_EVENT_TIMER_ADAPTER_EXT_CLK0, > + /**< Platform dependent external clock source 0. */ > + RTE_EVENT_TIMER_ADAPTER_EXT_CLK1, > + /**< Platform dependent external clock source 1. */ > + RTE_EVENT_TIMER_ADAPTER_EXT_CLK2, > + /**< Platform dependent external clock source 2. */ > + RTE_EVENT_TIMER_ADAPTER_EXT_CLK3, > + /**< Platform dependent external clock source 3. */ > +}; > +