From patchwork Tue Feb 3 04:44:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44185 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1323A2034D for ; Tue, 3 Feb 2015 04:45:32 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id ge10sf18882503lab.1 for ; Mon, 02 Feb 2015 20:45:31 -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=45UvjkvoRHNJRUzmxqpPpM21dHVS3E/fKvXAEQD5FCc=; b=Lgmo/LviBEPi+K5GN5qcOgi9SfTOk/lP/OYwPX6Hg5qhgZ3+4g+grdE0x1oobsejp9 M+7rhbpWbjQghZHDWjTYnP9EFf/P5mT35P3+NIcuD4hGXrQhqPKsTkORG4uCftje3hej 037DKUSLsX9xdyjTxM6FFd1jlcvPQZuFM7N2hSv9TBFpz4r2WJ8JOAV1k2MjjwsD7pzJ qyQokThJujRdNK1MuGYR3fDJF4PvRXpVkbFQ+uz4a6CNHxq2rv3m+OSL5zUazdtDkw3f EhkHDF0clRIzlXq4CDTIGlrcQ1mPgHxe7OHoufvqKSMoDhBr5DB7rSJlsP045SMTdf/p 8Ksg== X-Gm-Message-State: ALoCoQnGvO5AlKmVQOTd3yuqtd7UeDaDVvjRLCYiS2mXWjXqZ1TEWXvdBlhMGKujHQNtgMQdp8VK X-Received: by 10.112.163.42 with SMTP id yf10mr2767949lbb.8.1422938730976; Mon, 02 Feb 2015 20:45:30 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.166 with SMTP id t6ls395344lat.89.gmail; Mon, 02 Feb 2015 20:45:30 -0800 (PST) X-Received: by 10.112.37.197 with SMTP id a5mr5866008lbk.19.1422938730693; Mon, 02 Feb 2015 20:45:30 -0800 (PST) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id v6si18398984laj.52.2015.02.02.20.45.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Feb 2015 20:45:30 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id pv20so47777466lab.7 for ; Mon, 02 Feb 2015 20:45:30 -0800 (PST) X-Received: by 10.152.3.70 with SMTP id a6mr22695543laa.71.1422938730610; Mon, 02 Feb 2015 20:45:30 -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 h5csp1712218lbj; Mon, 2 Feb 2015 20:45:30 -0800 (PST) X-Received: by 10.224.28.198 with SMTP id n6mr48995174qac.15.1422938729405; Mon, 02 Feb 2015 20:45:29 -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 j8si27740194qas.27.2015.02.02.20.45.28 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 02 Feb 2015 20:45:29 -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 1YIVMc-00060E-OL; Tue, 03 Feb 2015 04:45:26 +0000 Received: from mail-oi0-f49.google.com ([209.85.218.49]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIVMS-0005zB-Ie for lng-odp@lists.linaro.org; Tue, 03 Feb 2015 04:45:16 +0000 Received: by mail-oi0-f49.google.com with SMTP id a3so47352507oib.8 for ; Mon, 02 Feb 2015 20:45:11 -0800 (PST) X-Received: by 10.202.213.131 with SMTP id m125mr13231318oig.87.1422938711210; Mon, 02 Feb 2015 20:45:11 -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 vs5sm10277537oeb.14.2015.02.02.20.45.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Feb 2015 20:45:10 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Mon, 2 Feb 2015 22:44:42 -0600 Message-Id: <1422938699-12877-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1422938699-12877-1-git-send-email-bill.fischofer@linaro.org> References: <1422938699-12877-1-git-send-email-bill.fischofer@linaro.org> X-Topics: Classification patch Subject: [lng-odp] [PATCHv5 02/19] api: classification: add strong typing handle display functions 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.215.48 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 Add functions odp_cos_to_u64(), odp_pmr_to_u64() and odp_pmr_set_to_u64() Signed-off-by: Bill Fischofer --- include/odp/api/classification.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/include/odp/api/classification.h b/include/odp/api/classification.h index 5c6636f..3479754 100644 --- a/include/odp/api/classification.h +++ b/include/odp/api/classification.h @@ -391,6 +391,45 @@ int odp_pktio_pmr_match_set_cos(odp_pmr_set_t pmr_set_id, odp_pktio_t src_pktio, odp_cos_t dst_cos); /** + * Get printable value for an odp_cos_t + * + * @param hdl odp_cos_t handle to be printed + * @return uint64_t value that can be used to print/display this + * handle + * + * @note This routine is intended to be used for diagnostic purposes + * to enable applications to generate a printable value that represents + * an odp_cos_t handle. + */ +uint64_t odp_cos_to_u64(odp_cos_t hdl); + +/** + * Get printable value for an odp_pmr_t + * + * @param hdl odp_pmr_t handle to be printed + * @return uint64_t value that can be used to print/display this + * handle + * + * @note This routine is intended to be used for diagnostic purposes + * to enable applications to generate a printable value that represents + * an odp_pmr_t handle. + */ +uint64_t odp_pmr_to_u64(odp_pmr_t hdl); + +/** + * Get printable value for an odp_pmr_set_t + * + * @param hdl odp_pmr_set_t handle to be printed + * @return uint64_t value that can be used to print/display this + * handle + * + * @note This routine is intended to be used for diagnostic purposes + * to enable applications to generate a printable value that represents + * an odp_pmr_set_t handle. + */ +uint64_t odp_pmr_set_to_u64(odp_pmr_set_t hdl); + +/** * @} */