init.c (cf40a76e7d5874bb25f4404eecc58a2e033af885) | init.c (93b167c13a3afa389eaa1af277e94add976ea43f) |
---|---|
1/****************************************************************************** 2 * 3 * This file is provided under a dual BSD/GPLv2 license. When using or 4 * redistributing this file, you may do so under either license. 5 * 6 * GPL LICENSE SUMMARY 7 * 8 * Copyright(c) 2017 Intel Deutschland GmbH --- 44 unchanged lines hidden (view full) --- 53 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 54 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 55 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 56 * 57 *****************************************************************************/ 58#include "iwl-drv.h" 59#include "runtime.h" 60#include "dbg.h" | 1/****************************************************************************** 2 * 3 * This file is provided under a dual BSD/GPLv2 license. When using or 4 * redistributing this file, you may do so under either license. 5 * 6 * GPL LICENSE SUMMARY 7 * 8 * Copyright(c) 2017 Intel Deutschland GmbH --- 44 unchanged lines hidden (view full) --- 53 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 54 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 55 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 56 * 57 *****************************************************************************/ 58#include "iwl-drv.h" 59#include "runtime.h" 60#include "dbg.h" |
61#include "debugfs.h" |
|
61 62void iwl_fw_runtime_init(struct iwl_fw_runtime *fwrt, struct iwl_trans *trans, | 62 63void iwl_fw_runtime_init(struct iwl_fw_runtime *fwrt, struct iwl_trans *trans, |
63 const struct iwl_fw *fw, 64 const struct iwl_fw_runtime_ops *ops, void *ops_ctx) | 64 const struct iwl_fw *fw, 65 const struct iwl_fw_runtime_ops *ops, void *ops_ctx, 66 struct dentry *dbgfs_dir) |
65{ 66 memset(fwrt, 0, sizeof(*fwrt)); 67 fwrt->trans = trans; 68 fwrt->fw = fw; 69 fwrt->dev = trans->dev; 70 fwrt->dump.conf = FW_DBG_INVALID; 71 fwrt->ops = ops; 72 fwrt->ops_ctx = ops_ctx; 73 INIT_DELAYED_WORK(&fwrt->dump.wk, iwl_fw_error_dump_wk); | 67{ 68 memset(fwrt, 0, sizeof(*fwrt)); 69 fwrt->trans = trans; 70 fwrt->fw = fw; 71 fwrt->dev = trans->dev; 72 fwrt->dump.conf = FW_DBG_INVALID; 73 fwrt->ops = ops; 74 fwrt->ops_ctx = ops_ctx; 75 INIT_DELAYED_WORK(&fwrt->dump.wk, iwl_fw_error_dump_wk); |
76 iwl_fwrt_dbgfs_register(fwrt, dbgfs_dir); |
|
74} 75IWL_EXPORT_SYMBOL(iwl_fw_runtime_init); | 77} 78IWL_EXPORT_SYMBOL(iwl_fw_runtime_init); |
79 80void iwl_fw_runtime_exit(struct iwl_fw_runtime *fwrt) 81{ 82 iwl_fw_cancel_timestamp(fwrt); 83} 84IWL_EXPORT_SYMBOL(iwl_fw_runtime_exit); |
|