18 #ifndef INCLUDED_CHIP_CONSTANTS_H_ 19 #define INCLUDED_CHIP_CONSTANTS_H_ 27 #define WRAPPER_REGISTER_OFFSET (0x100000) 30 ARM_CORE_BASE_ADDRESS = 1,
32 SOCSRAM_WRAPPER_BASE_ADDRESS,
33 SDIOD_CORE_BASE_ADDRESS,
36 ATCM_RAM_BASE_ADDRESS,
47 CHANSPEC_CTL_SB_LOWER,
48 CHANSPEC_CTL_SB_UPPER,
53 #define VERIFY_RESULT(x) { whd_result_t verify_result = WHD_SUCCESS; verify_result = (x); \ 54 if (verify_result != WHD_SUCCESS){ \ 55 WPRINT_WHD_ERROR( ("Function %s failed at line %d \n", __func__, __LINE__) ); \ 56 return verify_result; } } 57 #define GET_C_VAR(whd_driver, var) get_whd_var(whd_driver, var) 61 whd_result_t get_arm_core_base_address(uint16_t, uint32_t *);
63 whd_result_t get_sdiod_core_base_address(uint16_t, uint32_t *);
66 whd_result_t get_atcm_ram_base_address(uint16_t, uint32_t *);
67 whd_result_t get_socsram_srmem_size(uint16_t, uint32_t *);
68 whd_result_t get_wl_chanspec_band_mask(uint16_t, uint32_t *);
69 whd_result_t get_wl_chanspec_band_2G(uint16_t, uint32_t *);
70 whd_result_t get_wl_chanspec_band_5G(uint16_t, uint32_t *);
71 whd_result_t get_wl_chanspec_band_shift(uint16_t, uint32_t *);
72 whd_result_t get_wl_chanspec_bw_10(uint16_t, uint32_t *);
73 whd_result_t get_wl_chanspec_bw_20(uint16_t, uint32_t *);
74 whd_result_t get_wl_chanspec_bw_40(uint16_t, uint32_t *);
75 whd_result_t get_wl_chanspec_bw_mask(uint16_t, uint32_t *);
76 whd_result_t get_wl_chanspec_bw_shift(uint16_t, uint32_t *);
77 whd_result_t get_wl_chanspec_ctl_sb_lower(uint16_t, uint32_t *);
78 whd_result_t get_wl_chanspec_ctl_sb_upper(uint16_t, uint32_t *);
79 whd_result_t get_wl_chanspec_ctl_sb_none(uint16_t, uint32_t *);
80 whd_result_t get_wl_chanspec_ctl_sb_mask(uint16_t, uint32_t *);
85 #undef CHIP_FIRMWARE_SUPPORTS_PM_LIMIT_IOVAR Provides abstract pointer type to act as instance for: driver, interface, buffer funcs, network funcs, resource funcs and bus funcs.
whd_bool_t
Boolean values.
uint32_t whd_result_t
WHD result is specified as uint32_t value.