Commit 48e9c225 authored by Kalle Valo's avatar Kalle Valo

ath10k: pci: make host_ce_config_wlan[] more readable

It's much more readable if struct entries in host_ce_config_wlan
are explicitly set.
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent a18b5ed8
...@@ -58,24 +58,69 @@ static int ath10k_pci_start_intr(struct ath10k *ar); ...@@ -58,24 +58,69 @@ static int ath10k_pci_start_intr(struct ath10k *ar);
static void ath10k_pci_stop_intr(struct ath10k *ar); static void ath10k_pci_stop_intr(struct ath10k *ar);
static const struct ce_attr host_ce_config_wlan[] = { static const struct ce_attr host_ce_config_wlan[] = {
/* host->target HTC control and raw streams */ /* CE0: host->target HTC control and raw streams */
{ /* CE0 */ CE_ATTR_FLAGS, 16, 256, 0 }, {
/* could be moved to share CE3 */ .flags = CE_ATTR_FLAGS,
/* target->host HTT + HTC control */ .src_nentries = 16,
{ /* CE1 */ CE_ATTR_FLAGS, 0, 512, 512 }, .src_sz_max = 256,
/* target->host WMI */ .dest_nentries = 0,
{ /* CE2 */ CE_ATTR_FLAGS, 0, 2048, 32 }, },
/* host->target WMI */
{ /* CE3 */ CE_ATTR_FLAGS, 32, 2048, 0 }, /* CE1: target->host HTT + HTC control */
/* host->target HTT */ {
{ /* CE4 */ CE_ATTR_FLAGS | CE_ATTR_DIS_INTR, .flags = CE_ATTR_FLAGS,
CE_HTT_H2T_MSG_SRC_NENTRIES, 256, 0 }, .src_nentries = 0,
/* unused */ .src_sz_max = 512,
{ /* CE5 */ CE_ATTR_FLAGS, 0, 0, 0 }, .dest_nentries = 512,
/* Target autonomous hif_memcpy */ },
{ /* CE6 */ CE_ATTR_FLAGS, 0, 0, 0 },
/* ce_diag, the Diagnostic Window */ /* CE2: target->host WMI */
{ /* CE7 */ CE_ATTR_FLAGS, 2, DIAG_TRANSFER_LIMIT, 2 }, {
.flags = CE_ATTR_FLAGS,
.src_nentries = 0,
.src_sz_max = 2048,
.dest_nentries = 32,
},
/* CE3: host->target WMI */
{
.flags = CE_ATTR_FLAGS,
.src_nentries = 32,
.src_sz_max = 2048,
.dest_nentries = 0,
},
/* CE4: host->target HTT */
{
.flags = CE_ATTR_FLAGS | CE_ATTR_DIS_INTR,
.src_nentries = CE_HTT_H2T_MSG_SRC_NENTRIES,
.src_sz_max = 256,
.dest_nentries = 0,
},
/* CE5: unused */
{
.flags = CE_ATTR_FLAGS,
.src_nentries = 0,
.src_sz_max = 0,
.dest_nentries = 0,
},
/* CE6: target autonomous hif_memcpy */
{
.flags = CE_ATTR_FLAGS,
.src_nentries = 0,
.src_sz_max = 0,
.dest_nentries = 0,
},
/* CE7: ce_diag, the Diagnostic Window */
{
.flags = CE_ATTR_FLAGS,
.src_nentries = 2,
.src_sz_max = DIAG_TRANSFER_LIMIT,
.dest_nentries = 2,
},
}; };
/* Target firmware's Copy Engine configuration. */ /* Target firmware's Copy Engine configuration. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment