// SPDX-License-Identifier: GPL-2.0 #include #include #include #include #include "img_mac80211_types.h" #include "softmac_core.h" #include "utils.h" #include "hal_common.h" struct hal_priv *hpriv; RETENTION_MEM_SECTION_UNINITIALIZED unsigned char hal_priv_retention_mem[sizeof(struct hal_priv)]; int rpu_pltfr_probe(void) { int ret = 0; hpriv = (struct hal_priv *)hal_priv_retention_mem; IF_UMAC_COLD_BOOT hpriv->rpu_sysbus_base = 0xA4000000; conv_str_to_byte(vif_macs[0], DEFAULT_MAC_ADDRESS, ETH_ALEN); ENDIF_UMAC_COLD_BOOT /* To support suspend/resume (economy mode) * during probe a wake up capable device will invoke * the below routine with second parameter("can_wakeup" flag) * set to 1. */ ret = hal_ops.init(NULL); if (ret < 0 ) { RPU_DEBUG_HAL("rpu wlan driver registration completed"); goto free_hpriv; } return ret; free_hpriv: hpriv = NULL; return ret; } void hal_module_init() { rpu_pltfr_probe(); }