qcacld-3.0: Featurize wlan BMI
Featurize wlan BMI to compile out when not needed. Change-Id: I4ea1e34ee4299840cf7a601396c4dba7af415623 CRs-Fixed: 2258614
This commit is contained in:

gecommit door
nshrivas

bovenliggende
cb5fd01a0c
commit
a01a96291f
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2017 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -29,8 +29,6 @@
|
||||
#include "hif.h"
|
||||
|
||||
struct ol_context;
|
||||
QDF_STATUS ol_cds_init(qdf_device_t qdf_dev, void *hif_ctx);
|
||||
void ol_cds_free(void);
|
||||
|
||||
/**
|
||||
* struct hif_config_info - Place Holder for hif confiruation
|
||||
@@ -51,10 +49,52 @@ struct ol_config_info {
|
||||
bool enable_ramdump_collection;
|
||||
};
|
||||
|
||||
#ifdef WLAN_FEATURE_BMI
|
||||
QDF_STATUS ol_cds_init(qdf_device_t qdf_dev, void *hif_ctx);
|
||||
void ol_cds_free(void);
|
||||
void ol_init_ini_config(struct ol_context *ol_ctx,
|
||||
struct ol_config_info *cfg);
|
||||
void bmi_cleanup(struct ol_context *scn);
|
||||
QDF_STATUS bmi_done(struct ol_context *ol_ctx);
|
||||
void bmi_target_ready(struct hif_opaque_softc *scn, void *cfg_ctx);
|
||||
QDF_STATUS bmi_download_firmware(struct ol_context *ol_ctx);
|
||||
|
||||
#else /* WLAN_FEATURE_BMI */
|
||||
|
||||
static inline QDF_STATUS
|
||||
ol_cds_init(qdf_device_t qdf_dev, void *hif_ctx)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline void ol_cds_free(void)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void
|
||||
ol_init_ini_config(struct ol_context *ol_ctx, struct ol_config_info *cfg)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void bmi_cleanup(struct ol_context *scn)
|
||||
{
|
||||
}
|
||||
|
||||
static inline QDF_STATUS bmi_done(struct ol_context *ol_ctx)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline void
|
||||
bmi_target_ready(struct hif_opaque_softc *scn, void *cfg_ctx)
|
||||
{
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
bmi_download_firmware(struct ol_context *ol_ctx)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif /* WLAN_FEATURE_BMI */
|
||||
|
||||
#endif /* _BMI_H_ */
|
||||
|
@@ -34,9 +34,13 @@
|
||||
#define HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_FW_ACK (1 << 16)
|
||||
#define HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_FW_ACK (1 << 17)
|
||||
|
||||
#ifdef WLAN_FEATURE_BMI
|
||||
void ol_target_failure(void *instance, QDF_STATUS status);
|
||||
|
||||
void ol_target_ready(struct hif_opaque_softc *scn, void *cfg_ctx);
|
||||
QDF_STATUS ol_get_fw_files(struct ol_context *ol_ctx);
|
||||
QDF_STATUS ol_extra_initialization(struct ol_context *ol_ctx);
|
||||
#else /* WLAN_FEATURE_BMI */
|
||||
static inline void ol_target_failure(void *instance, QDF_STATUS status) {}
|
||||
#endif /* WLAN_FEATURE_BMI */
|
||||
#endif /* _OL_FW_H_ */
|
||||
|
Verwijs in nieuw issue
Block a user