From patchwork Mon Apr 28 11:41:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 29226 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f69.google.com (mail-qa0-f69.google.com [209.85.216.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DB46720553 for ; Mon, 28 Apr 2014 11:43:22 +0000 (UTC) Received: by mail-qa0-f69.google.com with SMTP id w8sf21411705qac.4 for ; Mon, 28 Apr 2014 04:43:22 -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=RkVg5KjNZMqfKWvc7/hoegvH8QT1zet2n/EcDnCgCdM=; b=jFCVj2BIaDXna317JG9v6yn+leI4K2uZ+qTNhhn4JtfvIVVDFNsgMIXRj3Z3mVtgJZ dblWGMACriWIi18vmsysiwn5/Pv6Cx6WqobtWoWfhiM1FcE3NIhfy7IQk0CgBn3+g989 YPwiex2OxLo/Z2KsZPWP1e3a93xTBmdbmn1ddrNMy8zxj1BKyhg7no0+cqMhwMpATREi LZqT5T9wGkntC3QHX1TEx+WXrO9RiUgMwAjjj1z9NFCKIy/nD/QEdjut085ln4Ir+AXD D3TewU/vLip/8AA3v6DFPtVGY7MoNjPMLXxqWEb20E92xoX71XoOio2Cxq492AoaWTIV bBQg== X-Gm-Message-State: ALoCoQkQDBJPPigIaRAYfEhQBIy8P1aAhb0NHbN9pHpv+gRikLznlfc+HY1BIH4Nc1OVsmPsOef7 X-Received: by 10.236.118.38 with SMTP id k26mr11342622yhh.35.1398685402590; Mon, 28 Apr 2014 04:43:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.20.138 with SMTP id 10ls2478896qgj.92.gmail; Mon, 28 Apr 2014 04:43:22 -0700 (PDT) X-Received: by 10.220.12.66 with SMTP id w2mr23090866vcw.15.1398685402484; Mon, 28 Apr 2014 04:43:22 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id de9si3548455vcb.213.2014.04.28.04.43.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 04:43:22 -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.220.175; Received: by mail-vc0-f175.google.com with SMTP id lh4so1155264vcb.6 for ; Mon, 28 Apr 2014 04:43:22 -0700 (PDT) X-Received: by 10.58.90.99 with SMTP id bv3mr172333veb.34.1398685402418; Mon, 28 Apr 2014 04:43:22 -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 ib8csp110880vcb; Mon, 28 Apr 2014 04:43:22 -0700 (PDT) X-Received: by 10.229.179.65 with SMTP id bp1mr32166107qcb.11.1398685402011; Mon, 28 Apr 2014 04:43:22 -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 w93si7662912qge.176.2014.04.28.04.43.21 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 28 Apr 2014 04:43:22 -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 1WejxV-0002tY-9L; Mon, 28 Apr 2014 11:42:53 +0000 Received: from mail-la0-f41.google.com ([209.85.215.41]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WejwB-0002nJ-7N for lng-odp@lists.linaro.org; Mon, 28 Apr 2014 11:41:31 +0000 Received: by mail-la0-f41.google.com with SMTP id el20so2522477lab.14 for ; Mon, 28 Apr 2014 04:41:53 -0700 (PDT) X-Received: by 10.112.147.36 with SMTP id th4mr1892214lbb.32.1398685313377; Mon, 28 Apr 2014 04:41:53 -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.52 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 04:41:52 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Mon, 28 Apr 2014 14:41:16 +0300 Message-Id: <1398685276-4610-18-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: timers patch Cc: linaro-networking@linaro.org Subject: [lng-odp] [RFC PATCH 17/17] Split out platform-specific part of odp_timer.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_timer.h | 10 +++--- platform/linux-generic/include/plat/odp_timer.h | 39 +++++++++++++++++++++++ 2 files changed, 44 insertions(+), 5 deletions(-) create mode 100644 platform/linux-generic/include/plat/odp_timer.h diff --git a/include/odp_timer.h b/include/odp_timer.h index 80babd1..417bf4a 100644 --- a/include/odp_timer.h +++ b/include/odp_timer.h @@ -22,24 +22,24 @@ extern "C" { #include #include #include - +#include /** * ODP timer handle */ -typedef uint32_t odp_timer_t; +typedef plat_odp_timer_t odp_timer_t; /** Invalid timer */ -#define ODP_TIMER_INVALID 0 +#define ODP_TIMER_INVALID PLAT_ODP_TIMER_INVALID /** * ODP timeout handle */ -typedef odp_buffer_t odp_timer_tmo_t; +typedef plat_odp_timer_tmo_t odp_timer_tmo_t; /** Invalid timeout */ -#define ODP_TIMER_TMO_INVALID 0 +#define ODP_TIMER_TMO_INVALID PLAT_ODP_TIMER_TMO_INVALID /** diff --git a/platform/linux-generic/include/plat/odp_timer.h b/platform/linux-generic/include/plat/odp_timer.h new file mode 100644 index 0000000..072608c --- /dev/null +++ b/platform/linux-generic/include/plat/odp_timer.h @@ -0,0 +1,39 @@ +/* Copyright (c) 2013, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + + +/** + * @file + * + * ODP timer + */ + +#ifndef ODP_TIMER_H_ +#error This file should be included only into corresponding top level header +#else + +#include +#include + + +/** +* ODP timer handle +*/ +typedef uint32_t plat_odp_timer_t; + +/** Invalid timer */ +#define PLAT_ODP_TIMER_INVALID 0 + + +/** +* ODP timeout handle +*/ +typedef odp_buffer_t plat_odp_timer_tmo_t; + +/** Invalid timeout */ +#define PLAT_ODP_TIMER_TMO_INVALID 0 + +#endif