From patchwork Sat Jul 4 23:12:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 50657 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 6832222916 for ; Sat, 4 Jul 2015 23:13:18 +0000 (UTC) Received: by wipp2 with SMTP id p2sf21439086wip.2 for ; Sat, 04 Jul 2015 16:13:17 -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=ZeGEFnA5dX3L9Hs3cU71hTYDI0u/uw545ohTb9Uda/tbQZSp7nSQ22wy3uYILEDrMk yPXY7IaDapG1m2WYjVRNIxgnVl6SHKPM0I8nZrDvp3P1ZY6iK0DrCuBIS3z2aNpB4sCK zNrMUeiGP8wIGzOaM4O9i0k1HtQhNa/A/Mr9e4yJDhvrJUNtEThuAko4m5XnAZt0XeAa GERfEN0WZXV5gHU5YbAI2jkXFKJYSHQHLBA4Gn1zwqz4aBSyIIRFLC9Q5YVWFLmLtTCn 1RwLysRlja478jUTZEHbwxpZX7dcaV8TQwY0QmFpxZtfDhHjQnSrquYtNa/e0IsalnqC boYQ== X-Gm-Message-State: ALoCoQlebiaN6/yOg24B/K1zTYK0HYzGTNLn529mgYsQJfwij75M0XsNOl6cgvoHUCzPKb7fz5nQ X-Received: by 10.112.200.163 with SMTP id jt3mr26278190lbc.17.1436051597582; Sat, 04 Jul 2015 16:13:17 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.131 with SMTP id w3ls598818lal.81.gmail; Sat, 04 Jul 2015 16:13:17 -0700 (PDT) X-Received: by 10.152.21.168 with SMTP id w8mr41487262lae.22.1436051597198; Sat, 04 Jul 2015 16:13:17 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id ds10si11194419lbc.133.2015.07.04.16.13.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Jul 2015 16:13:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by lagx9 with SMTP id x9so118282073lag.1 for ; Sat, 04 Jul 2015 16:13:16 -0700 (PDT) X-Received: by 10.152.18.162 with SMTP id x2mr23058990lad.73.1436051596424; Sat, 04 Jul 2015 16:13:16 -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 hn6csp853102lbb; Sat, 4 Jul 2015 16:13:15 -0700 (PDT) X-Received: by 10.55.20.168 with SMTP id 40mr84054607qku.104.1436051595136; Sat, 04 Jul 2015 16:13:15 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o7si15669616qko.19.2015.07.04.16.13.14; Sat, 04 Jul 2015 16:13:15 -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 5CACF61DAD; Sat, 4 Jul 2015 23:13:14 +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 C221E61CD3; Sat, 4 Jul 2015 23:12:32 +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 53AB161CCE; Sat, 4 Jul 2015 23:12:15 +0000 (UTC) Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by lists.linaro.org (Postfix) with ESMTPS id EFE0A61CCD for ; Sat, 4 Jul 2015 23:12:13 +0000 (UTC) Received: by oiaf66 with SMTP id f66so65396131oia.3 for ; Sat, 04 Jul 2015 16:12:13 -0700 (PDT) X-Received: by 10.202.185.133 with SMTP id j127mr19474907oif.9.1436051533602; Sat, 04 Jul 2015 16:12:13 -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 c9sm7563182oih.11.2015.07.04.16.12.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 04 Jul 2015 16:12:13 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Sat, 4 Jul 2015 18:12:02 -0500 Message-Id: <1436051526-15926-2-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1436051526-15926-1-git-send-email-bill.fischofer@linaro.org> References: <1436051526-15926-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv3 2/6] 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.215.54 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) {