From patchwork Wed Jul 1 01:39:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 50495 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B036A229DF for ; Wed, 1 Jul 2015 01:41:30 +0000 (UTC) Received: by lbbpo10 with SMTP id po10sf1755037lbb.1 for ; Tue, 30 Jun 2015 18:41:30 -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: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=eOaQapNk9OVabk3exDtqoa7IbkkH4ypKFD0ws1Dd9ek=; b=a9QTRu83wx/02KXMM4VlByDuz7+C037Hx0fmmlZm2OQEevXBret0rjTjjR2/ACqGdn 8Z3Mqs0ZT8XnXF3kPk9vo8HqKhjUt33OgZMEfzBX+J/VkFI6v3hQ56jXQ71NBqXRo0gE DQjH17vakgEFJueMEhAuvIR6dj+nlqW7u/zO4eL7mjhhKFx/WiphvH4FgxAfb9vq04jB uEPwBFhDAw4Lk8oQcc4VHbvIotlbpuyhYjfYP2oCrxd3KfPg4q1scQ4264rZk5o1aVWq apttfXx8jBGfwy0qTjSAW3NiUdiGhccb2bNZvjs0M0uvRYEH0zGPksEjK2Ukt86pDQvo Wukw== X-Gm-Message-State: ALoCoQl7Ad0yOvGBAt0RxejRDVXyzf0oFMuipXOM6n/HSlNGnhqItGuox3epdT2ex8ItzVfo8pku X-Received: by 10.152.2.196 with SMTP id 4mr15656370law.10.1435714890099; Tue, 30 Jun 2015 18:41:30 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.201 with SMTP id p9ls122987lae.42.gmail; Tue, 30 Jun 2015 18:41:29 -0700 (PDT) X-Received: by 10.112.97.145 with SMTP id ea17mr22055356lbb.49.1435714889951; Tue, 30 Jun 2015 18:41:29 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id lm6si266743lac.29.2015.06.30.18.41.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jun 2015 18:41:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbcui10 with SMTP id ui10so4020479lbc.0 for ; Tue, 30 Jun 2015 18:41:29 -0700 (PDT) X-Received: by 10.112.126.101 with SMTP id mx5mr22924641lbb.35.1435714889820; Tue, 30 Jun 2015 18:41:29 -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 hn6csp270138lbb; Tue, 30 Jun 2015 18:41:29 -0700 (PDT) X-Received: by 10.140.29.202 with SMTP id b68mr17558072qgb.2.1435714888576; Tue, 30 Jun 2015 18:41:28 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 80si435440qhu.26.2015.06.30.18.41.27; Tue, 30 Jun 2015 18:41:28 -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 63D1961B53; Wed, 1 Jul 2015 01:41:27 +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 C9DB161F16; Wed, 1 Jul 2015 01:39:47 +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 DB95961EB1; Wed, 1 Jul 2015 01:39:34 +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 D433F61D5A for ; Wed, 1 Jul 2015 01:39:33 +0000 (UTC) Received: by oiax193 with SMTP id x193so21380946oia.2 for ; Tue, 30 Jun 2015 18:39:33 -0700 (PDT) X-Received: by 10.202.209.74 with SMTP id i71mr21324327oig.109.1435714773881; Tue, 30 Jun 2015 18:39:33 -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.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Jun 2015 18:39:33 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 30 Jun 2015 20:39:16 -0500 Message-Id: <1435714761-23951-5-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1435714761-23951-1-git-send-email-bill.fischofer@linaro.org> References: <1435714761-23951-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 05/10] linux-generic: pool: add odp_pool_type_t 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.176 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/pool_types.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/platform/linux-generic/include/odp/plat/pool_types.h b/platform/linux-generic/include/odp/plat/pool_types.h index 568556f..4b32c29 100644 --- a/platform/linux-generic/include/odp/plat/pool_types.h +++ b/platform/linux-generic/include/odp/plat/pool_types.h @@ -15,6 +15,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { @@ -29,6 +30,15 @@ typedef ODP_HANDLE_T(odp_pool_t); #define ODP_POOL_INVALID _odp_cast_scalar(odp_pool_t, 0xffffffff) +/** + * Pool type + */ +typedef enum odp_pool_type_t { + ODP_POOL_BUFFER = ODP_EVENT_BUFFER, + ODP_POOL_PACKET = ODP_EVENT_PACKET, + ODP_POOL_TIMEOUT = ODP_EVENT_TIMEOUT, +} odp_pool_type_t; + /** Get printable format of odp_pool_t */ static inline uint64_t odp_pool_to_u64(odp_pool_t hdl) {