From patchwork Wed Jul 1 01:39:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 50491 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 61AB9229DF for ; Wed, 1 Jul 2015 01:39:45 +0000 (UTC) Received: by wgbbj7 with SMTP id bj7sf8989478wgb.2 for ; Tue, 30 Jun 2015 18:39:45 -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:delivered-to:from:to:date :message-id: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=C9eBjpm9x22I7BLM17E5b7jTiEopqaTKzrrxv1EnTPY=; b=ZtwleL5HgQY+ZeDnUuP3b+TDjJsOlYeueI+GhHmlWXx8oaT54LT3urfPgjPWGaD35b S+wRbb6TvJ6nOQHZVuKFM4wAy4wqfQmEaNgJNhGuX0QmFWOj6r3MDDWCLRPZqJGLTAVA HRfTWpBaKoIlQ9RW9a5nl5iiLHxTScNzvOWRL0kVBv1IPmAJG6WZpq6OE+DvDdDAar1J mN7fI/hQZl3SGKRJB2rKni8lkCGYj2/gYGbG2Y+2WQqKDb45mNNHcb/ceu2a84R+uhmj f/MGBkk7KpNHwVVquR39LxsH2BEBoX3JNGRhvu/rLKDYUA7eilYpZqE3OKHNaBaYfWtZ K8ig== X-Gm-Message-State: ALoCoQmTVmb3B6S5naIruSpWu3CvJDQvmXfuk+RdN+zEckE6qbfUoZ4LdpuSXHQSJS8QkLTx9F0c X-Received: by 10.180.87.201 with SMTP id ba9mr407512wib.3.1435714785018; Tue, 30 Jun 2015 18:39:45 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.36 with SMTP id g4ls129264lah.33.gmail; Tue, 30 Jun 2015 18:39:44 -0700 (PDT) X-Received: by 10.152.4.98 with SMTP id j2mr22598669laj.42.1435714784468; Tue, 30 Jun 2015 18:39:44 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id j8si267464lah.14.2015.06.30.18.39.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jun 2015 18:39:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by lbnk3 with SMTP id k3so4015530lbn.1 for ; Tue, 30 Jun 2015 18:39:44 -0700 (PDT) X-Received: by 10.152.5.167 with SMTP id t7mr17304950lat.112.1435714783727; Tue, 30 Jun 2015 18:39:43 -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.112.108.230 with SMTP id hn6csp269395lbb; Tue, 30 Jun 2015 18:39:42 -0700 (PDT) X-Received: by 10.55.25.84 with SMTP id k81mr50277839qkh.85.1435714782429; Tue, 30 Jun 2015 18:39:42 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f10si395428qga.90.2015.06.30.18.39.41; Tue, 30 Jun 2015 18:39:42 -0700 (PDT) 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; Received: by lists.linaro.org (Postfix, from userid 109) id C12FE61F05; Wed, 1 Jul 2015 01:39:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 82A6B61EB1; Wed, 1 Jul 2015 01:39:37 +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 334FC61EB1; Wed, 1 Jul 2015 01:39:28 +0000 (UTC) Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by lists.linaro.org (Postfix) with ESMTPS id 7788E61D5A for ; Wed, 1 Jul 2015 01:39:27 +0000 (UTC) Received: by oigx81 with SMTP id x81so21388516oig.1 for ; Tue, 30 Jun 2015 18:39:27 -0700 (PDT) X-Received: by 10.60.142.170 with SMTP id rx10mr22154990oeb.28.1435714767465; Tue, 30 Jun 2015 18:39:27 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id p184sm226149oig.10.2015.06.30.18.39.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Jun 2015 18:39:26 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 30 Jun 2015 20:39:12 -0500 Message-Id: <1435714761-23951-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 01/10] linux-generic: event: convert event types to typedef enum X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 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" 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.179 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 | 13 +++++++++---- 1 file changed, 9 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 d91937d..06b15cd 100644 --- a/platform/linux-generic/include/odp/plat/event_types.h +++ b/platform/linux-generic/include/odp/plat/event_types.h @@ -30,10 +30,15 @@ typedef ODP_HANDLE_T(odp_event_t); #define ODP_EVENT_INVALID _odp_cast_scalar(odp_event_t, 0xffffffff) -#define ODP_EVENT_BUFFER 1 -#define ODP_EVENT_PACKET 2 -#define ODP_EVENT_TIMEOUT 3 -#define ODP_EVENT_CRYPTO_COMPL 4 +/** + * Event types + */ +typedef enum odp_event_type_t { + ODP_EVENT_BUFFER = 1, + ODP_EVENT_PACKET = 2, + ODP_EVENT_TIMEOUT = 3, + ODP_EVENT_CRYPTO_COMPL = 4, +} odp_event_type_t; /** Get printable format of odp_event_t */ static inline uint64_t odp_event_to_u64(odp_event_t hdl)