OLD | NEW |
1 /* | 1 //------------------------------------------------------------------------------ |
2 * Copyright (c) 2004-2007 Atheros Communications Inc. | 2 // Copyright (c) 2004-2010 Atheros Communications Inc. |
3 * All rights reserved. | 3 // All rights reserved. |
4 * | |
5 * | |
6 // This program is free software; you can redistribute it and/or modify | |
7 // it under the terms of the GNU General Public License version 2 as | |
8 // published by the Free Software Foundation; | |
9 // | 4 // |
10 // Software distributed under the License is distributed on an "AS | 5 // |
11 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or | 6 // |
12 // implied. See the License for the specific language governing | 7 // Permission to use, copy, modify, and/or distribute this software for any |
13 // rights and limitations under the License. | 8 // purpose with or without fee is hereby granted, provided that the above |
| 9 // copyright notice and this permission notice appear in all copies. |
| 10 // |
| 11 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 12 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 13 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 14 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 15 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 16 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 17 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
14 // | 18 // |
15 // | 19 // |
16 * | 20 // |
17 */ | 21 // Author(s): ="Atheros" |
| 22 //------------------------------------------------------------------------------ |
18 | 23 |
19 #ifndef _CONFIG_LINUX_H_ | 24 #ifndef _CONFIG_LINUX_H_ |
20 #define _CONFIG_LINUX_H_ | 25 #define _CONFIG_LINUX_H_ |
21 | 26 |
22 #ifdef __cplusplus | 27 #ifdef __cplusplus |
23 extern "C" { | 28 extern "C" { |
24 #endif | 29 #endif |
25 | 30 |
26 #include <linux/version.h> | 31 #include <linux/version.h> |
27 | 32 |
28 /* | 33 /* |
29 * Host-side GPIO support is optional. | 34 * Host-side GPIO support is optional. |
30 * If run-time access to GPIO pins is not required, then | 35 * If run-time access to GPIO pins is not required, then |
31 * this should be changed to #undef. | 36 * this should be changed to #undef. |
32 */ | 37 */ |
33 #define CONFIG_HOST_GPIO_SUPPORT | 38 #define CONFIG_HOST_GPIO_SUPPORT |
34 | 39 |
35 /* | 40 /* |
36 * Host side Test Command support | 41 * Host side Test Command support |
37 */ | 42 */ |
38 #define CONFIG_HOST_TCMD_SUPPORT | 43 #define CONFIG_HOST_TCMD_SUPPORT |
39 | 44 |
40 #define USE_4BYTE_REGISTER_ACCESS | 45 #define USE_4BYTE_REGISTER_ACCESS |
41 | 46 |
42 /* Host-side support for Target-side profiling */ | 47 /* Host-side support for Target-side profiling */ |
43 #undef CONFIG_TARGET_PROFILE_SUPPORT | 48 #undef CONFIG_TARGET_PROFILE_SUPPORT |
44 | 49 |
45 /* IP/TCP checksum offload */ | 50 /* IP/TCP checksum offload */ |
46 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25) | 51 /* Checksum offload is currently not supported for 64 bit platforms */ |
| 52 #ifndef __LP64__ |
47 #define CONFIG_CHECKSUM_OFFLOAD | 53 #define CONFIG_CHECKSUM_OFFLOAD |
48 #endif | 54 #endif /* __LP64__ */ |
49 | 55 |
50 #ifdef __cplusplus | 56 #ifdef __cplusplus |
51 } | 57 } |
52 #endif | 58 #endif |
53 | 59 |
54 #endif | 60 #endif |
OLD | NEW |