2 * Copyright (C) 2001-2003 by NBMK Encryption Technologies.
5 * NBMK Encryption Technologies provides no support of any kind for
6 * this software. Questions or concerns about it may be addressed to
7 * the members of the relevant open-source community at
8 * <tech-crypto@netbsd.org>.
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions are
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
17 * 2. Redistributions in binary form must reproduce the above
18 * copyright notice, this list of conditions and the following
19 * disclaimer in the documentation and/or other materials provided
20 * with the distribution.
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 /*****************************************************************************
36 * @(#) n8_sdk_config.h 1.0@(#)
37 *****************************************************************************/
39 /*****************************************************************************/
40 /** @file n8_sdk_config.h
41 * @brief Defines the options used to build the SDK.
43 * Public header to define options used to build the SDK.
45 *****************************************************************************/
47 /*****************************************************************************
49 * 08/15/03 brr Change default callback mechanism to interrupt context.
50 * 07/28/03 brr Added a seperate define, SUPPORT_USER_CALLBACK_PTHREAD to
51 * turn on user space callbacks. The allows users to enable
52 * kernel callbacks with requiring application link with the
54 * 04/01/03 brr Original version.
55 ****************************************************************************/
56 #ifndef N8_SDK_CONFIG_H
57 #define N8_SDK_CONFIG_H
59 /*****************************************************************************
60 * MAXIMUM NUMBER OF SUPPORTED HARDWARE INSTANCES - *
61 * The SDK only supports up to this number of instances of NetOctave *
63 *****************************************************************************/
65 #define DEF_MAX_SIMON_INSTANCES 8
67 /* When using the SKS, also use the round-robin scheduling when in an multi-chip
68 * (NSP2000) environment. Enabling this flag assumes all SKS entries for each
69 * chip are fully mirrored. */
70 #define N8_SKS_ROUND_ROBIN 1
72 /*****************************************************************************
73 * CALLBACK CONFIGURATION SUPPORT- *
74 * The NetOctave API supports different callback options. If callbacks are *
75 * not required, leave SUPPORT_CALLBACKS undefined. If SUPPORT_CALLBACKS is *
76 * defined, then one of the callback options also needs to be defined. *
77 *****************************************************************************/
79 /* #define SUPPORT_CALLBACKS */
80 #ifdef SUPPORT_CALLBACKS
82 /* Only use this callback option if the API is called from the kernel *
83 * and the callback function is safe to call from interrupt context. */
84 #define SUPPORT_INT_CONTEXT_CALLBACKS
86 /* Use this callback option to spawn a thread to perform the callback *
87 * function. This requires a configuration structure to be passed to *
88 * the N8_InitializeAPI function. */
89 /* #define SUPPORT_CALLBACK_THREAD */
91 /* Use this callback option to spawn a pthread in user space to *
92 * perform the callback function. This requires all applications to *
93 * link with the pthread library. SUPPORT_CALLBACK_THREAD must also *
95 /* #define SUPPORT_USER_CALLBACK_PTHREAD */
100 /* #define SUPPORT_DEVICE_POLL */
102 /* Used in "chip" field of functions to declare which RNG core */
103 /* is being used for random number generation. */
104 /* If it is set to something other and zero, systems with fewer */
105 /* chips than this value will not support random number */
107 #define N8_RNG_UNIT 0