blob: 00587b8eedaa9d2b14e2a6a72b704ac0fb562c2d [file] [log] [blame]
Dave Barach8e8f98c2017-02-03 11:58:53 -05001/*
2 * Copyright (c) 2017 Cisco and/or its affiliates.
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
16#ifndef __included_tw_timer_16t_2w_512sl_h__
17#define __included_tw_timer_16t_2w_512sl_h__
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 Barach4af9ba12017-06-07 15:18:23 -040027#undef TW_OVERFLOW_VECTOR
Dave Barach5c20a012017-06-13 08:48:31 -040028#undef TW_FAST_WHEEL_BITMAP
29#undef TW_TIMER_ALLOW_DUPLICATE_STOP
Dave Barach8e8f98c2017-02-03 11:58:53 -050030
31#define TW_TIMER_WHEELS 2
32#define TW_SLOTS_PER_RING 512
33#define TW_RING_SHIFT 9
34#define TW_RING_MASK (TW_SLOTS_PER_RING -1)
35#define TW_TIMERS_PER_OBJECT 16
36#define LOG2_TW_TIMERS_PER_OBJECT 4
37#define TW_SUFFIX _16t_2w_512sl
Dave Barach5c20a012017-06-13 08:48:31 -040038#define TW_FAST_WHEEL_BITMAP 0
39#define TW_TIMER_ALLOW_DUPLICATE_STOP 0
Dave Barach8e8f98c2017-02-03 11:58:53 -050040
41#include <vppinfra/tw_timer_template.h>
42
43#endif /* __included_tw_timer_16t_2w_512sl_h__ */
44
45/*
46 * fd.io coding-style-patch-verification: ON
47 *
48 * Local Variables:
49 * eval: (c-set-style "gnu")
50 * End:
51 */