| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
#include "generated/autoconf.h" |
| 17 |
#include "version.h" |
| 18 |
#include "types.h" |
| 19 |
#include "compiler.h" |
| 20 |
#include "fwcmd.h" |
| 21 |
#include "hw.h" |
| 22 |
|
| 23 |
#ifndef __CARL9170FW_CONFIG_H |
| 24 |
#define __CARL9170FW_CONFIG_H |
| 25 |
|
| 26 |
#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) |
| 27 |
|
| 28 |
#if GCC_VERSION < 40400 |
| 29 |
# error "This firmware will not work if it is compiled with gcc versions < 4.4" |
| 30 |
# error "See: http://gcc.gnu.org/gcc-4.4/changes.html / Caveats No. 4" |
| 31 |
#endif |
| 32 |
|
| 33 |
#if ((defined CONFIG_CARL9170FW_PRINTF) && \ |
| 34 |
(!defined CONFIG_CARL9170FW_DEBUG_USB) && \ |
| 35 |
(!defined CONFIG_CARL9170FW_DEBUG_UART)) |
| 36 |
# warning "You have disabled all debug message transports." |
| 37 |
# warning "However CONFIG_CARL9170FW_PRINTF is still set..." |
| 38 |
# warning "Which is a waste of firmware space, if you ask me." |
| 39 |
#endif |
| 40 |
|
| 41 |
#define CARL9170_TX_STATUS_NUM (CARL9170_RSP_TX_STATUS_NUM) |
| 42 |
#define CARL9170_INT_RQ_CACHES 16 |
| 43 |
#define AR9170_INT_MAGIC_HEADER_SIZE 12 |
| 44 |
#define CARL9170_TBTT_DELTA (CARL9170_PRETBTT_KUS + 1) |
| 45 |
|
| 46 |
#define CARL9170_GPIO_MASK (AR9170_GPIO_PORT_WPS_BUTTON_PRESSED) |
| 47 |
|
| 48 |
#ifdef CONFIG_CARL9170FW_VIFS_NUM |
| 49 |
#define CARL9170_INTF_NUM (1 + CONFIG_CARL9170FW_VIFS_NUM) |
| 50 |
#else |
| 51 |
#define CARL9170_INTF_NUM (1) |
| 52 |
#endif |
| 53 |
|
| 54 |
#define CONFIG_CARL9170FW_BACK_REQS_NUM 4 |
| 55 |
|
| 56 |
static inline void __config_check(void) |
| 57 |
{ |
| 58 |
BUILD_BUG_ON(!CARL9170_TX_STATUS_NUM); |
| 59 |
BUILD_BUG_ON(CARL9170_INTF_NUM < 1); |
| 60 |
BUILD_BUG_ON(CARL9170_INTF_NUM >= AR9170_MAX_VIRTUAL_MAC); |
| 61 |
} |
| 62 |
|
| 63 |
#endif |