1 /***********************license start***************
2 * Copyright (c) 2003-2010 Cavium Inc. (support@cavium.com). All rights
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
13 * * Redistributions in binary form must reproduce the above
14 * copyright notice, this list of conditions and the following
15 * disclaimer in the documentation and/or other materials provided
16 * with the distribution.
18 * * Neither the name of Cavium Inc. nor the names of
19 * its contributors may be used to endorse or promote products
20 * derived from this software without specific prior written
23 * This Software, including technical data, may be subject to U.S. export control
24 * laws, including the U.S. Export Administration Act and its associated
25 * regulations, and may be subject to export or import regulations in other
28 * TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS"
29 * AND WITH ALL FAULTS AND CAVIUM INC. MAKES NO PROMISES, REPRESENTATIONS OR
30 * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO
31 * THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY REPRESENTATION OR
32 * DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT DEFECTS, AND CAVIUM
33 * SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES OF TITLE,
34 * MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, LACK OF
35 * VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR
36 * CORRESPONDENCE TO DESCRIPTION. THE ENTIRE RISK ARISING OUT OF USE OR
37 * PERFORMANCE OF THE SOFTWARE LIES WITH YOU.
38 ***********************license end**************************************/
46 * File version info: $Id: cvmx-resources.config 70030 2012-02-16 04:23:43Z cchavva $
49 #ifndef __CVMX_RESOURCES_CONFIG__
50 #define __CVMX_RESOURCES_CONFIG__
53 #if (CVMX_HELPER_FIRST_MBUFF_SKIP > 256)
54 #error CVMX_HELPER_FIRST_MBUFF_SKIP is greater than the maximum of 256
57 #if (CVMX_HELPER_NOT_FIRST_MBUFF_SKIP > 256)
58 #error CVMX_HELPER_NOT_FIRST_MBUFF_SKIP is greater than the maximum of 256
62 /* Content below this point is only used by the cvmx-config tool, and is
63 ** not used by any C files as CAVIUM_COMPONENT_REQUIREMENT is never
66 #ifdef CAVIUM_COMPONENT_REQUIREMENT
67 /* Define the number of LLM ports (interfaces), can be 1 or 2 */
70 #if CVMX_LLM_CONFIG_NUM_PORTS == 2
71 define CVMX_LLM_NUM_PORTS value = 2;
73 define CVMX_LLM_NUM_PORTS value = 1;
76 /* Control the setting of Null pointer detection, default to enabled */
78 #ifdef CVMX_CONFIG_NULL_POINTER_PROTECT
79 define CVMX_NULL_POINTER_PROTECT value = CVMX_CONFIG_NULL_POINTER_PROTECT;
81 define CVMX_NULL_POINTER_PROTECT value = 1;
84 /* Control Debug prints, default to enabled */
86 #ifdef CVMX_CONFIG_ENABLE_DEBUG_PRINTS
87 define CVMX_ENABLE_DEBUG_PRINTS value = CVMX_CONFIG_ENABLE_DEBUG_PRINTS;
89 define CVMX_ENABLE_DEBUG_PRINTS value = 1;
93 /* Define CVMX_ENABLE_DFA_FUNCTIONS to allocate resources for the DFA functions */
94 #ifdef CVMX_ENABLE_DFA_FUNCTIONS
100 description = "DFA command buffers";
101 fau CVMX_FAU_DFA_STATE
104 description = "FAU registers for the state of the DFA command queue";
108 /* Define CVMX_ENABLE_PKO_FUNCTIONS to allocate resources for the PKO functions */
109 #ifdef CVMX_ENABLE_PKO_FUNCTIONS
112 define CVMX_PKO_QUEUES_PER_PORT_INTERFACE0
113 value = CVMX_HELPER_PKO_QUEUES_PER_PORT_INTERFACE0
114 description = "PKO queues per port for interface 0 (ports 0-15)";
115 define CVMX_PKO_QUEUES_PER_PORT_INTERFACE1
116 value = CVMX_HELPER_PKO_QUEUES_PER_PORT_INTERFACE1
117 description = "PKO queues per port for interface 1 (ports 16-31)";
118 define CVMX_PKO_QUEUES_PER_PORT_INTERFACE2
119 value = CVMX_HELPER_PKO_QUEUES_PER_PORT_INTERFACE2
120 description = "PKO queues per port for interface 2";
121 define CVMX_PKO_QUEUES_PER_PORT_INTERFACE3
122 value = CVMX_HELPER_PKO_QUEUES_PER_PORT_INTERFACE3
123 description = "PKO queues per port for interface 3";
124 define CVMX_PKO_QUEUES_PER_PORT_INTERFACE4
125 value = CVMX_HELPER_PKO_QUEUES_PER_PORT_INTERFACE4
126 description = "PKO queues per port for interface 4";
127 define CVMX_PKO_MAX_PORTS_INTERFACE0
128 value = CVMX_HELPER_PKO_MAX_PORTS_INTERFACE0
129 description = "Limit on the number of PKO ports enabled for interface 0";
130 define CVMX_PKO_MAX_PORTS_INTERFACE1
131 value = CVMX_HELPER_PKO_MAX_PORTS_INTERFACE1
132 description = "Limit on the number of PKO ports enabled for interface 1";
133 define CVMX_PKO_QUEUES_PER_PORT_PCI
135 description = "PKO queues per port for PCI (ports 32-35)";
136 define CVMX_PKO_QUEUES_PER_PORT_LOOP
138 description = "PKO queues per port for Loop devices (ports 36-39)";
139 /* We use two queues per port for SRIO0. Having two queues per
140 port with two ports gives us four queues, one for each mailbox */
141 define CVMX_PKO_QUEUES_PER_PORT_SRIO0
143 description = "PKO queues per port for SRIO0 devices (ports 40-41)";
144 /* We use two queues per port for SRIO1. Having two queues per
145 port with two ports gives us four queues, one for each mailbox */
146 define CVMX_PKO_QUEUES_PER_PORT_SRIO1
148 description = "PKO queues per port for SRIO1 devices (ports 42-43)";
149 /* Set the IPD cache mode, select from cvmx_ipd_mode_t. */
150 define CVMX_IPD_DRAM_MODE
151 value = CVMX_HELPER_IPD_DRAM_MODE
152 description = "set the IPD cache mode to CVMX_IPD_OPC_MODE_STT";
153 fpa CVMX_FPA_PACKET_POOL
158 description = "Packet buffers";
159 fpa CVMX_FPA_OUTPUT_BUFFER_POOL
162 description = "PKO queue command buffers";
163 scratch CVMX_SCR_SCRATCH
167 description = "Generic scratch iobdma area";
171 /* Define CVMX_ENABLE_HELPER_FUNCTIONS to allocate resources for the helper functions */
172 #ifdef CVMX_ENABLE_HELPER_FUNCTIONS
175 fpa CVMX_FPA_WQE_POOL
179 description = "Work queue entrys";
183 /* Define CVMX_ENABLE_TIMER_FUNCTIONS to allocate resources for the timer functions */
184 #ifdef CVMX_ENABLE_TIMER_FUNCTIONS
187 fpa CVMX_FPA_TIMER_POOL
190 description = "TIM command buffers";
197 #endif /* __CVMX_RESOURCES_CONFIG__ */