1 /**************************************************************************
3 * Copyright (c) 2000-2002 Alacritech, Inc. All rights reserved.
5 * $Id: slicbuild.h,v 1.2 2006/03/27 15:10:10 mook Exp $
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. 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 * THIS SOFTWARE IS PROVIDED BY ALACRITECH, INC. ``AS IS'' AND ANY
19 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ALACRITECH, INC. OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
25 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
28 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * The views and conclusions contained in the software and documentation
32 * are those of the authors and should not be interpreted as representing
33 * official policies, either expressed or implied, of Alacritech, Inc.
35 **************************************************************************/
38 * FILENAME: slicbuild.h
40 * The following contains the compiler directive switches used for
41 * different SLIC build options. They can all be set in the Makefile
42 * but the defaults are defined here.
44 #ifndef _SLIC_BUILD_H_
45 #define _SLIC_BUILD_H_
47 #ifndef SLIC_PRODUCTION_BUILD
48 #define SLIC_PRODUCTION_BUILD 1
50 #ifndef SLIC_FAILURE_RESET
51 #define SLIC_FAILURE_RESET 1
54 #ifndef SLIC_ASSERT_ENABLED
55 #define SLIC_ASSERT_ENABLED 1
57 #ifndef SLIC_MCAST_ENABLED
58 #define SLIC_MCAST_ENABLED 1
60 #ifndef SLIC_GET_STATS_ENABLED
61 #define SLIC_GET_STATS_ENABLED 1
63 #ifndef SLIC_GET_STATS_TIMER_ENABLED
64 #define SLIC_GET_STATS_TIMER_ENABLED 0
66 #ifndef SLIC_PING_TIMER_ENABLED
67 #define SLIC_PING_TIMER_ENABLED 1
69 #ifndef SLIC_IOCTL_SUPPORT_ENABLED
70 #define SLIC_IOCTL_SUPPORT_ENABLED 1
75 #ifndef SLIC_POWER_MANAGEMENT_ENABLED
76 #define SLIC_POWER_MANAGEMENT_ENABLED 0
78 #ifndef SLIC_INTERRUPT_PROCESS_LIMIT
79 #define SLIC_INTERRUPT_PROCESS_LIMIT 1
81 #ifndef LINUX_FREES_ADAPTER_RESOURCES
82 #define LINUX_FREES_ADAPTER_RESOURCES 1
84 #ifndef SLIC_OFFLOAD_IP_CHECKSUM
85 #define SLIC_OFFLOAD_IP_CHECKSUM 1
87 #ifndef SLIC_POWER_MANAGEMENT_ENABLED
88 #define SLIC_POWER_MANAGEMENT_ENABLED 0
90 #ifndef STATS_TIMER_INTERVAL
91 #define STATS_TIMER_INTERVAL 2
93 #ifndef PING_TIMER_INTERVAL
94 #define PING_TIMER_INTERVAL 1
97 #endif /* _SLIC_BUILD_H_ */