From patchwork Tue Jun 17 17:55:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 32094 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 434E820C81 for ; Tue, 17 Jun 2014 17:56:24 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id hy10sf26096905vcb.5 for ; Tue, 17 Jun 2014 10:56:24 -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: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:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=QFCFrgA5W2o8ImRxgr7sLvoKpC6w3CFWdIk8Xc/vaQQ=; b=Ky2E51Z4QBlaH2TToKo/DbrXK7m+I21AvMtMZ4/QCYil4PiAMqBq7ZKzCiXMAiUxFw BekRu4/Px4SwmoLeflvZDoX5VtxwoVsMg2c30pSK3wcgeqmtIG6Bix3tUuAdH+FZ7id1 F4/M3amoEyPbbqsC0mT5/mJT9iAXvIjVE2MmEm7iHzBNFZeVrjATAX8AEoNny1kgtj6v x0SssiN10opAJEY+OOQTV3uIn/4dVgaPkhZnl6nYvk5DgvEctVbF0v0jtUaLlYmvukKe BRGzaHNSckAFuK9QVGEEaTKE4Lir7YpygJ4B3SQFZjOUnu4t/r37zKlrXCIBEA1w+dw4 tPcg== X-Gm-Message-State: ALoCoQkTRUABB1oTyBBvK323XDU7S38UjwWyez9fSXvyZO3OGmaRmW31CGVHh0aEqgrs0pxIqfP/ X-Received: by 10.224.43.202 with SMTP id x10mr1473062qae.0.1403027784069; Tue, 17 Jun 2014 10:56:24 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.78 with SMTP id t72ls2266190qge.32.gmail; Tue, 17 Jun 2014 10:56:24 -0700 (PDT) X-Received: by 10.220.159.4 with SMTP id h4mr23215836vcx.1.1403027783983; Tue, 17 Jun 2014 10:56:23 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id r2si5777914vcl.10.2014.06.17.10.56.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:56:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id la4so6950680vcb.0 for ; Tue, 17 Jun 2014 10:56:23 -0700 (PDT) X-Received: by 10.58.1.228 with SMTP id 4mr1711641vep.46.1403027783901; Tue, 17 Jun 2014 10:56:23 -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.221.54.6 with SMTP id vs6csp227575vcb; Tue, 17 Jun 2014 10:56:23 -0700 (PDT) X-Received: by 10.224.156.132 with SMTP id x4mr16526106qaw.101.1403027783494; Tue, 17 Jun 2014 10:56:23 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id k12si1847425qav.129.2014.06.17.10.56.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:56:23 -0700 (PDT) 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-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Wwxah-0004se-Af; Tue, 17 Jun 2014 17:54:39 +0000 Received: from mail-la0-f42.google.com ([209.85.215.42]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Wwxa3-0004nA-SG for lng-odp@lists.linaro.org; Tue, 17 Jun 2014 17:54:00 +0000 Received: by mail-la0-f42.google.com with SMTP id pn19so216354lab.1 for ; Tue, 17 Jun 2014 10:55:36 -0700 (PDT) X-Received: by 10.112.134.138 with SMTP id pk10mr1772613lbb.92.1403027736887; Tue, 17 Jun 2014 10:55:36 -0700 (PDT) Received: from localhost.localdomain (176-241-155-136-dynamic.retail.datagroup.ua. [176.241.155.136]) by mx.google.com with ESMTPSA id d3sm11646351lbw.2.2014.06.17.10.55.35 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:55:36 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Tue, 17 Jun 2014 20:55:11 +0300 Message-Id: <1403027720-9738-10-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1403027720-9738-1-git-send-email-taras.kondratiuk@linaro.org> References: <1403027720-9738-1-git-send-email-taras.kondratiuk@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH v2 09/18] Split out platform-specific part of odp_config.h 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: taras.kondratiuk@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.220.169 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: Taras Kondratiuk --- include/odp_config.h | 11 +++--- platform/linux-generic/include/plat/odp_config.h | 44 ++++++++++++++++++++++ 2 files changed, 50 insertions(+), 5 deletions(-) create mode 100644 platform/linux-generic/include/plat/odp_config.h diff --git a/include/odp_config.h b/include/odp_config.h index 7a15ff9..e6d0cae 100644 --- a/include/odp_config.h +++ b/include/odp_config.h @@ -18,31 +18,32 @@ extern "C" { #endif +#include /** * Maximum number of threads */ -#define ODP_CONFIG_MAX_THREADS 128 +#define ODP_CONFIG_MAX_THREADS PLAT_ODP_CONFIG_MAX_THREADS /** * Maximum number of buffer pools */ -#define ODP_CONFIG_BUFFER_POOLS 16 +#define ODP_CONFIG_BUFFER_POOLS PLAT_ODP_CONFIG_BUFFER_POOLS /** * Maximum number of queues */ -#define ODP_CONFIG_QUEUES 1024 +#define ODP_CONFIG_QUEUES PLAT_ODP_CONFIG_QUEUES /** * Number of scheduling priorities */ -#define ODP_CONFIG_SCHED_PRIOS 8 +#define ODP_CONFIG_SCHED_PRIOS PLAT_ODP_CONFIG_SCHED_PRIOS /** * Maximum number of packet IO resources */ -#define ODP_CONFIG_PKTIO_ENTRIES 64 +#define ODP_CONFIG_PKTIO_ENTRIES PLAT_ODP_CONFIG_PKTIO_ENTRIES #ifdef __cplusplus } diff --git a/platform/linux-generic/include/plat/odp_config.h b/platform/linux-generic/include/plat/odp_config.h new file mode 100644 index 0000000..7230925 --- /dev/null +++ b/platform/linux-generic/include/plat/odp_config.h @@ -0,0 +1,44 @@ +/* Copyright (c) 2013, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + + +/** + * @file + * + * ODP configuration + */ + +#ifndef ODP_CONFIG_H_ +#error This file should be included only into corresponding top level header +#else + +/** + * Maximum number of threads + */ +#define PLAT_ODP_CONFIG_MAX_THREADS 128 + +/** + * Maximum number of buffer pools + */ +#define PLAT_ODP_CONFIG_BUFFER_POOLS 16 + +/** + * Maximum number of queues + */ +#define PLAT_ODP_CONFIG_QUEUES 1024 + +/** + * Number of scheduling priorities + */ +#define PLAT_ODP_CONFIG_SCHED_PRIOS 8 + +/** + * Maximum number of packet IO resources + */ +#define PLAT_ODP_CONFIG_PKTIO_ENTRIES 64 + + +#endif