diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-09-01 03:01:32 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-09-03 02:49:07 -0400 |
commit | 48e9c225abf362c520d07621eff189c7ddb1a9da (patch) | |
tree | 9e27ad1051a8cb69f4429b1416563cb2776086e0 /drivers/net/wireless | |
parent | a18b5ed8d2da1ccf572c5728b2de78bc86aef1c7 (diff) |
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: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/pci.c | 81 |
1 files changed, 63 insertions, 18 deletions
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 551fe8c1ee98..b1709d7a5c48 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c | |||
@@ -58,24 +58,69 @@ static int ath10k_pci_start_intr(struct ath10k *ar); | |||
58 | static void ath10k_pci_stop_intr(struct ath10k *ar); | 58 | static void ath10k_pci_stop_intr(struct ath10k *ar); |
59 | 59 | ||
60 | static const struct ce_attr host_ce_config_wlan[] = { | 60 | static const struct ce_attr host_ce_config_wlan[] = { |
61 | /* host->target HTC control and raw streams */ | 61 | /* CE0: host->target HTC control and raw streams */ |
62 | { /* CE0 */ CE_ATTR_FLAGS, 16, 256, 0 }, | 62 | { |
63 | /* could be moved to share CE3 */ | 63 | .flags = CE_ATTR_FLAGS, |
64 | /* target->host HTT + HTC control */ | 64 | .src_nentries = 16, |
65 | { /* CE1 */ CE_ATTR_FLAGS, 0, 512, 512 }, | 65 | .src_sz_max = 256, |
66 | /* target->host WMI */ | 66 | .dest_nentries = 0, |
67 | { /* CE2 */ CE_ATTR_FLAGS, 0, 2048, 32 }, | 67 | }, |
68 | /* host->target WMI */ | 68 | |
69 | { /* CE3 */ CE_ATTR_FLAGS, 32, 2048, 0 }, | 69 | /* CE1: target->host HTT + HTC control */ |
70 | /* host->target HTT */ | 70 | { |
71 | { /* CE4 */ CE_ATTR_FLAGS | CE_ATTR_DIS_INTR, | 71 | .flags = CE_ATTR_FLAGS, |
72 | CE_HTT_H2T_MSG_SRC_NENTRIES, 256, 0 }, | 72 | .src_nentries = 0, |
73 | /* unused */ | 73 | .src_sz_max = 512, |
74 | { /* CE5 */ CE_ATTR_FLAGS, 0, 0, 0 }, | 74 | .dest_nentries = 512, |
75 | /* Target autonomous hif_memcpy */ | 75 | }, |
76 | { /* CE6 */ CE_ATTR_FLAGS, 0, 0, 0 }, | 76 | |
77 | /* ce_diag, the Diagnostic Window */ | 77 | /* CE2: target->host WMI */ |
78 | { /* CE7 */ CE_ATTR_FLAGS, 2, DIAG_TRANSFER_LIMIT, 2 }, | 78 | { |
79 | .flags = CE_ATTR_FLAGS, | ||
80 | .src_nentries = 0, | ||
81 | .src_sz_max = 2048, | ||
82 | .dest_nentries = 32, | ||
83 | }, | ||
84 | |||
85 | /* CE3: host->target WMI */ | ||
86 | { | ||
87 | .flags = CE_ATTR_FLAGS, | ||
88 | .src_nentries = 32, | ||
89 | .src_sz_max = 2048, | ||
90 | .dest_nentries = 0, | ||
91 | }, | ||
92 | |||
93 | /* CE4: host->target HTT */ | ||
94 | { | ||
95 | .flags = CE_ATTR_FLAGS | CE_ATTR_DIS_INTR, | ||
96 | .src_nentries = CE_HTT_H2T_MSG_SRC_NENTRIES, | ||
97 | .src_sz_max = 256, | ||
98 | .dest_nentries = 0, | ||
99 | }, | ||
100 | |||
101 | /* CE5: unused */ | ||
102 | { | ||
103 | .flags = CE_ATTR_FLAGS, | ||
104 | .src_nentries = 0, | ||
105 | .src_sz_max = 0, | ||
106 | .dest_nentries = 0, | ||
107 | }, | ||
108 | |||
109 | /* CE6: target autonomous hif_memcpy */ | ||
110 | { | ||
111 | .flags = CE_ATTR_FLAGS, | ||
112 | .src_nentries = 0, | ||
113 | .src_sz_max = 0, | ||
114 | .dest_nentries = 0, | ||
115 | }, | ||
116 | |||
117 | /* CE7: ce_diag, the Diagnostic Window */ | ||
118 | { | ||
119 | .flags = CE_ATTR_FLAGS, | ||
120 | .src_nentries = 2, | ||
121 | .src_sz_max = DIAG_TRANSFER_LIMIT, | ||
122 | .dest_nentries = 2, | ||
123 | }, | ||
79 | }; | 124 | }; |
80 | 125 | ||
81 | /* Target firmware's Copy Engine configuration. */ | 126 | /* Target firmware's Copy Engine configuration. */ |