1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef __I_CFG_H
- #define __I_CFG_H
- #include "cfg_define.h"
- #include "qdf_trace.h"
- #include "qdf_types.h"
- #include "wlan_objmgr_psoc_obj.h"
- #define cfg_err(params...) QDF_TRACE_ERROR(QDF_MODULE_ID_CONFIG, params)
- #define cfg_info(params...) QDF_TRACE_INFO(QDF_MODULE_ID_CONFIG, params)
- #define cfg_debug(params...) QDF_TRACE_DEBUG(QDF_MODULE_ID_CONFIG, params)
- #define cfg_enter() QDF_TRACE_ENTER(QDF_MODULE_ID_CONFIG, "enter")
- #define cfg_exit() QDF_TRACE_EXIT(QDF_MODULE_ID_CONFIG, "exit")
- #undef __CFG_INI_STRING
- #define __CFG_INI_STRING(id, mtype, ctype, name, min, max, fallback, desc, \
- def...) \
- const char id##_internal[(max) + 1];
- #undef __CFG_INI
- #define __CFG_INI(id, mtype, ctype, name, min, max, fallback, desc, def...) \
- const ctype id##_internal;
- struct cfg_values {
-
- CFG_ALL
- };
- #undef __CFG_INI_STRING
- #define __CFG_INI_STRING(args...) __CFG_INI(args)
- #undef __CFG_INI
- #define __CFG_INI(args...) (args)
- struct cfg_values *cfg_psoc_get_values(struct wlan_objmgr_psoc *psoc);
- #define __cfg_get(psoc, id) (cfg_psoc_get_values(psoc)->id##_internal)
- #endif
|