aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb4/cxgb4_uld.h
diff options
context:
space:
mode:
authorDimitris Michailidis <dm@chelsio.com>2010-08-02 09:19:19 -0400
committerDavid S. Miller <davem@davemloft.net>2010-08-02 19:26:42 -0400
commit1ae970e0c047fbb1050865c6cf3ac68c7ca67dba (patch)
tree1f33ba36c15425b9e48bd0293760707089eea605 /drivers/net/cxgb4/cxgb4_uld.h
parent625ac6ae5739b4da9bdfd44cbac2f9b6fec17db3 (diff)
cxgb4: get on-chip queue info from FW and create a memory window for them
Get info about the availability of Tx on-chip queues from FW and if they are supported set up a memory window for them. iw_cxgb4 will be using them. Move the existing window setup later in the init sequence, after we have collected the new info. Signed-off-by: Dimitris Michailidis <dm@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb4/cxgb4_uld.h')
-rw-r--r--drivers/net/cxgb4/cxgb4_uld.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/cxgb4/cxgb4_uld.h b/drivers/net/cxgb4/cxgb4_uld.h
index 0dc0866df1bf..85d74e751ce0 100644
--- a/drivers/net/cxgb4/cxgb4_uld.h
+++ b/drivers/net/cxgb4/cxgb4_uld.h
@@ -187,8 +187,12 @@ struct cxgb4_virt_res { /* virtualized HW resources */
187 struct cxgb4_range pbl; 187 struct cxgb4_range pbl;
188 struct cxgb4_range qp; 188 struct cxgb4_range qp;
189 struct cxgb4_range cq; 189 struct cxgb4_range cq;
190 struct cxgb4_range ocq;
190}; 191};
191 192
193#define OCQ_WIN_OFFSET(pdev, vres) \
194 (pci_resource_len((pdev), 2) - roundup_pow_of_two((vres)->ocq.size))
195
192/* 196/*
193 * Block of information the LLD provides to ULDs attaching to a device. 197 * Block of information the LLD provides to ULDs attaching to a device.
194 */ 198 */