carl9170 firmware: implement endpoint halt req/clear and get endpoint status
[carl9170fw.git] / carlfw / include / config.h
index f9f093e564968ec4065e5e5a48743502ed7b86dc..e7c358d6b7e3ab657c7ac15fa487b6f65a2716df 100644 (file)
@@ -24,8 +24,6 @@
 #ifndef __CARL9170FW_CONFIG_H
 #define __CARL9170FW_CONFIG_H
 
-#define __CARL9170FW__
-
 #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
 
 #if GCC_VERSION < 40400
@@ -33,9 +31,9 @@
 # error "See: http://gcc.gnu.org/gcc-4.4/changes.html / Caveats No. 4"
 #endif
 
-#if ((defined CONFIG_CARL9170FW_PRINTF) &&             \
-     (!defined CONFIG_CARL9170FW_DEBUG_USB) &&         \
-    (!defined CONFIG_CARL9170FW_DEBUG_UART))
+#if ((defined CONFIG_CARL9170FW_PRINTF) &&                     \
+       (!defined CONFIG_CARL9170FW_DEBUG_USB) &&               \
+       (!defined CONFIG_CARL9170FW_DEBUG_UART))
 # warning "You have disabled all debug message transports."
 # warning "However CONFIG_CARL9170FW_PRINTF is still set..."
 # warning "Which is a waste of firmware space, if you ask me."
 #define CARL9170_INTF_NUM              (1)
 #endif /* CONFIG_CARL9170FW_VIFS_NUM */
 
-#if ((defined CONFIG_CARL9170FW_DEBUG) ||      \
-     (defined CONFIG_CARL9170FW_LOOPBACK))
-#define CARL9170FW_UNUSABLE    y
-#endif
+#define CONFIG_CARL9170FW_BACK_REQS_NUM        4
 
 static inline void __config_check(void)
 {
        BUILD_BUG_ON(!CARL9170_TX_STATUS_NUM);
        BUILD_BUG_ON(CARL9170_INTF_NUM < 1);
        BUILD_BUG_ON(CARL9170_INTF_NUM >= AR9170_MAX_VIRTUAL_MAC);
-
-#ifdef CONFIG_CARL9170FW_HANDLE_BACK_REQ
-       BUILD_BUG_ON(!CONFIG_CARL9170FW_BACK_REQS_NUM);
-#endif /* CONFIG_CARL9170FW_HANDLE_BACK_REQ */
 }
 
 #endif /* __CARL9170FW_CONFIG_H */