From patchwork Fri Jan 30 04:27:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44012 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2B3EC24128 for ; Fri, 30 Jan 2015 04:28:29 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id b6sf26741959lbj.0 for ; Thu, 29 Jan 2015 20:28:28 -0800 (PST) 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:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=DNmNjG5u1cD1AyJffnv0yoEd5dLDXR0/4H7xj12qySA=; b=lBAB4VDQr/9tkjxmXPhYIwBWspRc8Hw6r300vv5TGmA7nXzqq7WjrJaDcl4eHoxR8p ftMvEuSjN0ZLFJRn+TYc9whdSRhcvnogpDInR0vMFGq7fyXtjdNLHDTBVfANB7DnBwlB f2MSeYDn6qEZzm0D6e1FNBqCJOXTtx6Uno7wnrYEPSzfU6WzGFNdws70Fb+t/txjbasf vU0orRz8TpoWY2OHgrO2TbU1DRDa0qxscj6iR4IOPiawTPj7WTY1JbWUU1sYR8AwILIc yK+qvkpFYWWpLcrRX3YVeVVhjxgE45ECjAQ1CkF5Jy3INNsykLaMz0NmFlIxlOulBYgH /rkQ== X-Gm-Message-State: ALoCoQmwe7Aue/iFVHTAA6onr4q7ZJbGVnwTsXQMa1s3i8ih2cgLpiOJiftZtQio6rk+vLNOMlmS X-Received: by 10.112.161.201 with SMTP id xu9mr522324lbb.11.1422592108120; Thu, 29 Jan 2015 20:28:28 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.1.6 with SMTP id 6ls389730lai.30.gmail; Thu, 29 Jan 2015 20:28:27 -0800 (PST) X-Received: by 10.112.25.104 with SMTP id b8mr4491005lbg.69.1422592107909; Thu, 29 Jan 2015 20:28:27 -0800 (PST) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id ob7si9195061lbb.127.2015.01.29.20.28.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 Jan 2015 20:28:27 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by mail-lb0-f171.google.com with SMTP id u14so34405722lbd.2 for ; Thu, 29 Jan 2015 20:28:27 -0800 (PST) X-Received: by 10.152.182.235 with SMTP id eh11mr4636357lac.9.1422592107494; Thu, 29 Jan 2015 20:28:27 -0800 (PST) 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.112.35.133 with SMTP id h5csp159178lbj; Thu, 29 Jan 2015 20:28:26 -0800 (PST) X-Received: by 10.140.28.54 with SMTP id 51mr5003767qgy.6.1422592106213; Thu, 29 Jan 2015 20:28:26 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id b3si13018307qai.12.2015.01.29.20.28.24 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 29 Jan 2015 20:28:26 -0800 (PST) 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-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YH3Bu-0007PO-Tf; Fri, 30 Jan 2015 04:28:22 +0000 Received: from mail-oi0-f44.google.com ([209.85.218.44]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YH3Be-0007Lp-31 for lng-odp@lists.linaro.org; Fri, 30 Jan 2015 04:28:06 +0000 Received: by mail-oi0-f44.google.com with SMTP id a3so32961955oib.3 for ; Thu, 29 Jan 2015 20:28:00 -0800 (PST) X-Received: by 10.182.56.165 with SMTP id b5mr2740433obq.4.1422592080853; Thu, 29 Jan 2015 20:28:00 -0800 (PST) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id x21sm4737369oix.24.2015.01.29.20.28.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Jan 2015 20:28:00 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 29 Jan 2015 22:27:40 -0600 Message-Id: <1422592065-15875-5-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1422592065-15875-1-git-send-email-bill.fischofer@linaro.org> References: <1422592065-15875-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [patch 4/9] linux-generic: events: add strong typing support 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: bill.fischofer@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.217.171 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: Bill Fischofer --- platform/linux-generic/include/odp/plat/event_types.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/linux-generic/include/odp/plat/event_types.h b/platform/linux-generic/include/odp/plat/event_types.h index aa73c51..c01cc5c 100644 --- a/platform/linux-generic/include/odp/plat/event_types.h +++ b/platform/linux-generic/include/odp/plat/event_types.h @@ -18,17 +18,17 @@ extern "C" { #endif - -#include +#include +#include /** @defgroup odp_event ODP EVENT * Operations on an event. * @{ */ -typedef odp_buffer_t odp_event_t; +typedef odp_handle_t odp_event_t; -#define ODP_EVENT_INVALID ODP_BUFFER_INVALID +#define ODP_EVENT_INVALID _odp_cast_scalar(odp_event_t, 0xffffffff) #define ODP_EVENT_TYPE_INVALID (-1) #define ODP_EVENT_BUFFER 1