Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 1 | /* |
Florin Coras | c5df8c7 | 2019-04-08 07:42:30 -0700 | [diff] [blame] | 2 | * Copyright (c) 2017-2019 Cisco and/or its affiliates. |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | * you may not use this file except in compliance with the License. |
| 5 | * You may obtain a copy of the License at: |
| 6 | * |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * |
| 9 | * Unless required by applicable law or agreed to in writing, software |
| 10 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | * See the License for the specific language governing permissions and |
| 13 | * limitations under the License. |
| 14 | */ |
| 15 | |
Florin Coras | 7fd73af | 2018-12-19 08:26:31 -0800 | [diff] [blame] | 16 | #ifndef __included_tw_timer_16t_1w_2048sl__ |
| 17 | #define __included_tw_timer_16t_1w_2048sl__ |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 18 | |
| 19 | /* ... So that a client app can create multiple wheel geometries */ |
| 20 | #undef TW_TIMER_WHEELS |
| 21 | #undef TW_SLOTS_PER_RING |
| 22 | #undef TW_RING_SHIFT |
| 23 | #undef TW_RING_MASK |
| 24 | #undef TW_TIMERS_PER_OBJECT |
| 25 | #undef LOG2_TW_TIMERS_PER_OBJECT |
| 26 | #undef TW_SUFFIX |
Dave Barach | 4af9ba1 | 2017-06-07 15:18:23 -0400 | [diff] [blame] | 27 | #undef TW_OVERFLOW_VECTOR |
Dave Barach | 5c20a01 | 2017-06-13 08:48:31 -0400 | [diff] [blame] | 28 | #undef TW_FAST_WHEEL_BITMAP |
| 29 | #undef TW_TIMER_ALLOW_DUPLICATE_STOP |
Dave Barach | b7f1faa | 2017-08-29 11:43:37 -0400 | [diff] [blame] | 30 | #undef TW_START_STOP_TRACE_SIZE |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 31 | |
| 32 | #define TW_TIMER_WHEELS 1 |
| 33 | #define TW_SLOTS_PER_RING 2048 |
| 34 | #define TW_RING_SHIFT 11 |
| 35 | #define TW_RING_MASK (TW_SLOTS_PER_RING -1) |
| 36 | #define TW_TIMERS_PER_OBJECT 16 |
| 37 | #define LOG2_TW_TIMERS_PER_OBJECT 4 |
| 38 | #define TW_SUFFIX _16t_1w_2048sl |
Dave Barach | 5c20a01 | 2017-06-13 08:48:31 -0400 | [diff] [blame] | 39 | #define TW_FAST_WHEEL_BITMAP 0 |
| 40 | #define TW_TIMER_ALLOW_DUPLICATE_STOP 0 |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 41 | |
| 42 | #include <vppinfra/tw_timer_template.h> |
| 43 | |
Florin Coras | 7fd73af | 2018-12-19 08:26:31 -0800 | [diff] [blame] | 44 | #endif /* __included_tw_timer_16t_1w_2048sl__ */ |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 45 | |
| 46 | /* |
| 47 | * fd.io coding-style-patch-verification: ON |
| 48 | * |
| 49 | * Local Variables: |
| 50 | * eval: (c-set-style "gnu") |
| 51 | * End: |
| 52 | */ |