From patchwork Tue Jun 17 17:55:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 32103 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2190B20C81 for ; Tue, 17 Jun 2014 17:57:04 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id m20sf26815924qcx.9 for ; Tue, 17 Jun 2014 10:57:04 -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=+oPou2rH16K9prISuytLSPnYCQRjQh78C8jRO1utLi0=; b=A3qKGd9GZ6pVztFlfTCavj7ZVirLf7FBJSoJaUxkvzM5yxgeBVAOQc+O8G1AUrBpOa edi+8g7fTrbOr5TuB6XIerYKm2UkafMkme4vKjhITPqc4YSN7OSg2zBzeU6PYIrts7wj PgvGYSjwisFn97K2e09QkIk0HmjLeYEYHVsgtIP021FFvDeS0il1LH4U2KbFxW2iRUiV /LbgCtc9IiwgAEfivUfILFQZTKq57l/bd1Az4uEYuP3IrSOVk1eK6wxZ7eTonDUBzB+0 E0gdWDWTR73oMilfdDM6ZJsgr3f2/mKcN6F5J/VoJ4ep+SGd/QH83/W0chIpplOtMivT hT6g== X-Gm-Message-State: ALoCoQnehGGsyLtmLfltImKuUJYqJqNSqMiEM/aibqIVf3kba0efp+JdhRzWfVTACxDhA115TQwt X-Received: by 10.236.228.98 with SMTP id e92mr67806yhq.58.1403027823976; Tue, 17 Jun 2014 10:57:03 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.72 with SMTP id e66ls871931qgd.24.gmail; Tue, 17 Jun 2014 10:57:03 -0700 (PDT) X-Received: by 10.58.211.229 with SMTP id nf5mr17956831vec.19.1403027823908; Tue, 17 Jun 2014 10:57:03 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id 6si5772505vct.68.2014.06.17.10.57.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:57:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id la4so6767296vcb.14 for ; Tue, 17 Jun 2014 10:57:03 -0700 (PDT) X-Received: by 10.220.253.132 with SMTP id na4mr2318500vcb.39.1403027823817; Tue, 17 Jun 2014 10:57:03 -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 vs6csp227624vcb; Tue, 17 Jun 2014 10:57:03 -0700 (PDT) X-Received: by 10.140.88.112 with SMTP id s103mr14993744qgd.113.1403027823408; Tue, 17 Jun 2014 10:57:03 -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 k96si9858981qgk.39.2014.06.17.10.57.02 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:57:03 -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 1WwxbL-0004yv-KI; Tue, 17 Jun 2014 17:55:19 +0000 Received: from mail-lb0-f182.google.com ([209.85.217.182]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WwxaC-0004o8-8V for lng-odp@lists.linaro.org; Tue, 17 Jun 2014 17:54:08 +0000 Received: by mail-lb0-f182.google.com with SMTP id c11so1939703lbj.13 for ; Tue, 17 Jun 2014 10:55:45 -0700 (PDT) X-Received: by 10.112.35.136 with SMTP id h8mr18533393lbj.8.1403027745281; Tue, 17 Jun 2014 10:55:45 -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.44 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:55:44 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Tue, 17 Jun 2014 20:55:20 +0300 Message-Id: <1403027720-9738-19-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: timers patch Subject: [lng-odp] [PATCH v2 18/18] 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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 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_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