| .. | .. |
|---|
| 6 | 6 | * GPL LICENSE SUMMARY |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | * Copyright(c) 2017 Intel Deutschland GmbH |
|---|
| 9 | | - * Copyright(c) 2018 Intel Corporation |
|---|
| 9 | + * Copyright(c) 2018 - 2020 Intel Corporation |
|---|
| 10 | 10 | * |
|---|
| 11 | 11 | * This program is free software; you can redistribute it and/or modify |
|---|
| 12 | 12 | * it under the terms of version 2 of the GNU General Public License as |
|---|
| .. | .. |
|---|
| 20 | 20 | * BSD LICENSE |
|---|
| 21 | 21 | * |
|---|
| 22 | 22 | * Copyright(c) 2017 Intel Deutschland GmbH |
|---|
| 23 | | - * Copyright(c) 2018 Intel Corporation |
|---|
| 23 | + * Copyright(c) 2018 - 2020 Intel Corporation |
|---|
| 24 | 24 | * All rights reserved. |
|---|
| 25 | 25 | * |
|---|
| 26 | 26 | * Redistribution and use in source and binary forms, with or without |
|---|
| .. | .. |
|---|
| 64 | 64 | * the init done for driver command that configures several system modes |
|---|
| 65 | 65 | * @IWL_CTXT_INFO_EARLY_DEBUG: enable early debug |
|---|
| 66 | 66 | * @IWL_CTXT_INFO_ENABLE_CDMP: enable core dump |
|---|
| 67 | | - * @IWL_CTXT_INFO_RB_SIZE_4K: Use 4K RB size (the default is 2K) |
|---|
| 68 | | - * @IWL_CTXT_INFO_RB_CB_SIZE_POS: position of the RBD Cyclic Buffer Size |
|---|
| 67 | + * @IWL_CTXT_INFO_RB_CB_SIZE: mask of the RBD Cyclic Buffer Size |
|---|
| 69 | 68 | * exponent, the actual size is 2**value, valid sizes are 8-2048. |
|---|
| 70 | 69 | * The value is four bits long. Maximum valid exponent is 12 |
|---|
| 71 | 70 | * @IWL_CTXT_INFO_TFD_FORMAT_LONG: use long TFD Format (the |
|---|
| 72 | 71 | * default is short format - not supported by the driver) |
|---|
| 72 | + * @IWL_CTXT_INFO_RB_SIZE: RB size mask |
|---|
| 73 | + * (values are IWL_CTXT_INFO_RB_SIZE_*K) |
|---|
| 74 | + * @IWL_CTXT_INFO_RB_SIZE_1K: Value for 1K RB size |
|---|
| 75 | + * @IWL_CTXT_INFO_RB_SIZE_2K: Value for 2K RB size |
|---|
| 76 | + * @IWL_CTXT_INFO_RB_SIZE_4K: Value for 4K RB size |
|---|
| 77 | + * @IWL_CTXT_INFO_RB_SIZE_8K: Value for 8K RB size |
|---|
| 78 | + * @IWL_CTXT_INFO_RB_SIZE_12K: Value for 12K RB size |
|---|
| 79 | + * @IWL_CTXT_INFO_RB_SIZE_16K: Value for 16K RB size |
|---|
| 80 | + * @IWL_CTXT_INFO_RB_SIZE_20K: Value for 20K RB size |
|---|
| 81 | + * @IWL_CTXT_INFO_RB_SIZE_24K: Value for 24K RB size |
|---|
| 82 | + * @IWL_CTXT_INFO_RB_SIZE_28K: Value for 28K RB size |
|---|
| 83 | + * @IWL_CTXT_INFO_RB_SIZE_32K: Value for 32K RB size |
|---|
| 73 | 84 | */ |
|---|
| 74 | 85 | enum iwl_context_info_flags { |
|---|
| 75 | | - IWL_CTXT_INFO_AUTO_FUNC_INIT = BIT(0), |
|---|
| 76 | | - IWL_CTXT_INFO_EARLY_DEBUG = BIT(1), |
|---|
| 77 | | - IWL_CTXT_INFO_ENABLE_CDMP = BIT(2), |
|---|
| 78 | | - IWL_CTXT_INFO_RB_SIZE_4K = BIT(3), |
|---|
| 79 | | - IWL_CTXT_INFO_RB_CB_SIZE_POS = 4, |
|---|
| 80 | | - IWL_CTXT_INFO_TFD_FORMAT_LONG = BIT(8), |
|---|
| 86 | + IWL_CTXT_INFO_AUTO_FUNC_INIT = 0x0001, |
|---|
| 87 | + IWL_CTXT_INFO_EARLY_DEBUG = 0x0002, |
|---|
| 88 | + IWL_CTXT_INFO_ENABLE_CDMP = 0x0004, |
|---|
| 89 | + IWL_CTXT_INFO_RB_CB_SIZE = 0x00f0, |
|---|
| 90 | + IWL_CTXT_INFO_TFD_FORMAT_LONG = 0x0100, |
|---|
| 91 | + IWL_CTXT_INFO_RB_SIZE = 0x1e00, |
|---|
| 92 | + IWL_CTXT_INFO_RB_SIZE_1K = 0x1, |
|---|
| 93 | + IWL_CTXT_INFO_RB_SIZE_2K = 0x2, |
|---|
| 94 | + IWL_CTXT_INFO_RB_SIZE_4K = 0x4, |
|---|
| 95 | + IWL_CTXT_INFO_RB_SIZE_8K = 0x8, |
|---|
| 96 | + IWL_CTXT_INFO_RB_SIZE_12K = 0x9, |
|---|
| 97 | + IWL_CTXT_INFO_RB_SIZE_16K = 0xa, |
|---|
| 98 | + IWL_CTXT_INFO_RB_SIZE_20K = 0xb, |
|---|
| 99 | + IWL_CTXT_INFO_RB_SIZE_24K = 0xc, |
|---|
| 100 | + IWL_CTXT_INFO_RB_SIZE_28K = 0xd, |
|---|
| 101 | + IWL_CTXT_INFO_RB_SIZE_32K = 0xe, |
|---|
| 81 | 102 | }; |
|---|
| 82 | 103 | |
|---|
| 83 | 104 | /* |
|---|
| .. | .. |
|---|
| 204 | 225 | int iwl_pcie_init_fw_sec(struct iwl_trans *trans, |
|---|
| 205 | 226 | const struct fw_img *fw, |
|---|
| 206 | 227 | struct iwl_context_info_dram *ctxt_dram); |
|---|
| 228 | +int iwl_pcie_ctxt_info_alloc_dma(struct iwl_trans *trans, |
|---|
| 229 | + const void *data, u32 len, |
|---|
| 230 | + struct iwl_dram_data *dram); |
|---|
| 207 | 231 | |
|---|
| 208 | 232 | #endif /* __iwl_context_info_file_h__ */ |
|---|