From patchwork Thu Jun 25 12:09:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 50315 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9463D228FC for ; Thu, 25 Jun 2015 12:09:49 +0000 (UTC) Received: by wiws10 with SMTP id s10sf21205705wiw.2 for ; Thu, 25 Jun 2015 05:09:48 -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=TEOWvaRMyeKusDQTTnWIKG+hiHl6tln0/wEI0geIdAc=; b=XhTOfC1FntjxQdqi3zUMevs6ZOSXubBW+t6xtMCeeZ98BpLx7Ad65GEPAXrL1dVIG0 yzljc2l5AmO5VNxVGxV/dS/jcQDAMl1dqSalr7SxhGamDzW7KWPxWvFIB6FnHJ14AmU9 Zl7vQe/L6dvLsNnUMpp1jvtnjadY3ApPWmpmltQQgUCAMTFpKj5G88LhoSbwXzWj0gxY VF9L8ABdTYRDmHcDvk4HqcvOguDZxKZB024JQ6LHoPoWsjxxpQvEfxTcwA4rmr6gM8rP /gcq4eXPWaz57d45kgb2pNrIR6tWaGPN4oH8UUgsnDci0D0AfgTcNjXbhlJp59bATcPd rfuA== X-Gm-Message-State: ALoCoQlM6wCoNicmjN9veFUvGeGPQoUKVB0L9pnjp3ix83xTwIee50sRyYVDQ/Bru7hxO9ORugFk X-Received: by 10.194.47.179 with SMTP id e19mr36789889wjn.4.1435234188925; Thu, 25 Jun 2015 05:09:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.168 with SMTP id w8ls353791lae.41.gmail; Thu, 25 Jun 2015 05:09:48 -0700 (PDT) X-Received: by 10.112.137.99 with SMTP id qh3mr44728448lbb.108.1435234188759; Thu, 25 Jun 2015 05:09:48 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id da7si24518496lad.99.2015.06.25.05.09.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2015 05:09:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbnk3 with SMTP id k3so44178384lbn.1 for ; Thu, 25 Jun 2015 05:09:48 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr44048680lay.72.1435234188579; Thu, 25 Jun 2015 05:09:48 -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 hn6csp558884lbb; Thu, 25 Jun 2015 05:09:47 -0700 (PDT) X-Received: by 10.140.89.164 with SMTP id v33mr57357099qgd.97.1435234187315; Thu, 25 Jun 2015 05:09:47 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id e144si29053703qhc.127.2015.06.25.05.09.46; Thu, 25 Jun 2015 05:09:47 -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 DC90061DD7; Thu, 25 Jun 2015 12:09:45 +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 9912A61D82; Thu, 25 Jun 2015 12:09:42 +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 0D17A61D82; Thu, 25 Jun 2015 12:09:41 +0000 (UTC) Received: from mail-ob0-f169.google.com (mail-ob0-f169.google.com [209.85.214.169]) by lists.linaro.org (Postfix) with ESMTPS id 00FD061C6C for ; Thu, 25 Jun 2015 12:09:40 +0000 (UTC) Received: by obbop1 with SMTP id op1so45567881obb.2 for ; Thu, 25 Jun 2015 05:09:39 -0700 (PDT) X-Received: by 10.60.175.72 with SMTP id by8mr39768234oec.35.1435234179511; Thu, 25 Jun 2015 05:09:39 -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 yw8sm15754454obb.29.2015.06.25.05.09.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Jun 2015 05:09:38 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 25 Jun 2015 07:09:27 -0500 Message-Id: <1435234172-2015-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 1/6] 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.170 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 | 10 ++++++---- 1 file changed, 6 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..34b8ceb 100644 --- a/platform/linux-generic/include/odp/plat/event_types.h +++ b/platform/linux-generic/include/odp/plat/event_types.h @@ -30,10 +30,12 @@ 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 +typedef enum odp_event_type_e { + ODP_EVENT_BUFFER = 1, + ODP_EVENT_PACKET = 2, + ODP_EVENT_TIMEOUT = 3, + ODP_EVENT_CRYPTO_COMPL = 4, +} odp_event_type_e; /** Get printable format of odp_event_t */ static inline uint64_t odp_event_to_u64(odp_event_t hdl)