From patchwork Mon Apr 28 11:41:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 29217 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 674C820553 for ; Mon, 28 Apr 2014 11:42:28 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id i57sf1650541yha.2 for ; Mon, 28 Apr 2014 04:42:28 -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:cc: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=EXMIbCt40EEvpFGdX6o3+jsB5p+BDz+gcSm8CPJwods=; b=Ix0m+hYcjuazBN3M+wRlyPOsP9DKbEI7WxFtCLNQBRZC2nQXkRxOg7ua1vdR9ztEjh M1gv+Gj+rU2Ucd0WHppkB9XCA2/QaYOUBZllnlgixyylJeIF3vcjLQlWRLhzx2sJivLC JfJEGMaeK+caqXFt9jxNeeBexr3fUJxBwa4/BbdGu9vKFG/KQYHEyWpt1QFIv4pH0TlS uWGyuJ0Ti8SzmLE+mJaSoH42Y00dVGC6+Xh2LgAd7Q6MpKSXfFO1rXXeVoQ9lLVoxnAD 24C7OatqueemCOrbYHaVH/YBZbWYV8El7taFdpT0j52LI/8gxzhDTfsy6oysQq53JIkd T+iQ== X-Gm-Message-State: ALoCoQn3GdQcafA9hYqKiauZ8bZN4kTWrx5N9RtQlloE52TBT+8ZZca9LdzXFz0WHRqJ1nQSV1qp X-Received: by 10.236.1.198 with SMTP id 46mr10235952yhd.16.1398685348155; Mon, 28 Apr 2014 04:42:28 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.19.239 with SMTP id 102ls2608580qgh.42.gmail; Mon, 28 Apr 2014 04:42:28 -0700 (PDT) X-Received: by 10.58.96.36 with SMTP id dp4mr23764969veb.21.1398685348015; Mon, 28 Apr 2014 04:42:28 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id a8si3549100vej.179.2014.04.28.04.42.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 04:42:27 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id oz11so7672375veb.5 for ; Mon, 28 Apr 2014 04:42:27 -0700 (PDT) X-Received: by 10.52.229.97 with SMTP id sp1mr20001870vdc.23.1398685347943; Mon, 28 Apr 2014 04:42:27 -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.220.221.72 with SMTP id ib8csp110823vcb; Mon, 28 Apr 2014 04:42:27 -0700 (PDT) X-Received: by 10.229.136.135 with SMTP id r7mr32144327qct.17.1398685347543; Mon, 28 Apr 2014 04:42:27 -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 x7si7596386qaj.232.2014.04.28.04.42.26 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 28 Apr 2014 04:42:27 -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 1Wejwc-0002pf-Fr; Mon, 28 Apr 2014 11:41:58 +0000 Received: from mail-la0-f53.google.com ([209.85.215.53]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Wejvy-0002lw-3X for lng-odp@lists.linaro.org; Mon, 28 Apr 2014 11:41:18 +0000 Received: by mail-la0-f53.google.com with SMTP id ec20so4862806lab.40 for ; Mon, 28 Apr 2014 04:41:40 -0700 (PDT) X-Received: by 10.112.218.99 with SMTP id pf3mr18057457lbc.5.1398685300228; Mon, 28 Apr 2014 04:41:40 -0700 (PDT) Received: from uglx0153363.itg.ti.com ([195.238.92.128]) by mx.google.com with ESMTPSA id x10sm9873857lad.1.2014.04.28.04.41.38 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 04:41:39 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Mon, 28 Apr 2014 14:41:07 +0300 Message-Id: <1398685276-4610-9-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398685276-4610-1-git-send-email-taras.kondratiuk@linaro.org> References: <1398685276-4610-1-git-send-email-taras.kondratiuk@linaro.org> X-Topics: patch Cc: linaro-networking@linaro.org Subject: [lng-odp] [RFC PATCH 08/17] 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=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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 --- include/odp_config.h | 18 +++------ platform/linux-generic/include/plat/odp_config.h | 44 ++++++++++++++++++++++ 2 files changed, 50 insertions(+), 12 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 1b0b76e..e6d0cae 100644 --- a/include/odp_config.h +++ b/include/odp_config.h @@ -18,41 +18,35 @@ 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 } #endif #endif - - - - - - - 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