| 1 |
/* |
| 2 |
* Copyright (c) 2002-2006, Network Appliance, Inc. All rights reserved. |
| 3 |
* |
| 4 |
* This Software is licensed under all of the following licenses: |
| 5 |
* |
| 6 |
* 1) under the terms of the "Common Public License 1.0" a copy of which is |
| 7 |
* in the file LICENSE.txt in the root directory. The license is also |
| 8 |
* available from the Open Source Initiative, see |
| 9 |
* http://www.opensource.org/licenses/cpl.php. |
| 10 |
* |
| 11 |
* 2) under the terms of the "The BSD License" a copy of which is in the file |
| 12 |
* LICENSE2.txt in the root directory. The license is also available from |
| 13 |
* the Open Source Initiative, see |
| 14 |
* http://www.opensource.org/licenses/bsd-license.php. |
| 15 |
* |
| 16 |
* 3) under the terms of the "GNU General Public License (GPL) Version 2" a |
| 17 |
* copy of which is in the file LICENSE3.txt in the root directory. The |
| 18 |
* license is also available from the Open Source Initiative, see |
| 19 |
* http://www.opensource.org/licenses/gpl-license.php. |
| 20 |
* |
| 21 |
* Licensee has the right to choose one of the above licenses. |
| 22 |
* |
| 23 |
* Redistribution and use in source and binary forms, with or without |
| 24 |
* modification, are permitted provided that the following conditions are |
| 25 |
* met: |
| 26 |
* |
| 27 |
* Redistributions of source code must retain both the above copyright |
| 28 |
* notice and one of the license notices. |
| 29 |
* |
| 30 |
* Redistributions in binary form must reproduce both the above copyright |
| 31 |
* notice, one of the license notices in the documentation |
| 32 |
* and/or other materials provided with the distribution. |
| 33 |
* |
| 34 |
* Neither the name of Network Appliance, Inc. nor the names of other DAT |
| 35 |
* Collaborative contributors may be used to endorse or promote |
| 36 |
* products derived from this software without specific prior written |
| 37 |
* permission. |
| 38 |
*/ |
| 39 |
|
| 40 |
/*************************************************************** |
| 41 |
* |
| 42 |
* HEADER: kdat_config.h |
| 43 |
* |
| 44 |
* PURPOSE: provides kDAPL configuration information. |
| 45 |
* |
| 46 |
* Description: Header file for "kDAPL: Kernel Direct Access Programming |
| 47 |
* Library, Version: 2.0" |
| 48 |
* |
| 49 |
***************************************************************/ |
| 50 |
#ifndef _KDAT_CONFIG_H_ |
| 51 |
#define _KDAT_CONFIG_H_ |
| 52 |
|
| 53 |
#define DAT_VERSION_MAJOR 1 |
| 54 |
#define DAT_VERSION_MINOR 2 |
| 55 |
|
| 56 |
/* |
| 57 |
* The official header files will default DAT_THREADSAFE to DAT_TRUE. If |
| 58 |
* your project does not wish to use this default, you must ensure that |
| 59 |
* DAT_THREADSAFE will be set to DAT_FALSE. This may be done by an |
| 60 |
* explicit #define in a common project header file that is included |
| 61 |
* before any DAT header files, or through command line directives to the |
| 62 |
* compiler (presumably controlled by the make environment). |
| 63 |
*/ |
| 64 |
|
| 65 |
/* |
| 66 |
* A site, project or platform may consider setting an alternate default |
| 67 |
* via their make rules, but are discouraged from doing so by editing |
| 68 |
* the official header files. |
| 69 |
*/ |
| 70 |
|
| 71 |
/* |
| 72 |
* The Reference Implementation is not Thread Safe. The Reference |
| 73 |
* Implementation has chosen to go with the first method and define it |
| 74 |
* explicitly in the header file. |
| 75 |
*/ |
| 76 |
|
| 77 |
#define DAT_THREADSAFE DAT_FALSE |
| 78 |
|
| 79 |
#ifndef DAT_THREADSAFE |
| 80 |
#define DAT_THREADSAFE DAT_TRUE |
| 81 |
#endif /* DAT_THREADSAFE */ |
| 82 |
|
| 83 |
#endif /* _KDAT_CONFIG_H_ */ |