aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ehca/ehca_classes.h
diff options
context:
space:
mode:
authorHoang-Nam Nguyen <hnguyen@de.ibm.com>2007-09-11 09:31:06 -0400
committerRoland Dreier <rolandd@cisco.com>2007-10-09 22:59:09 -0400
commite390d3b52f791fcea26312ba4982cda82052727b (patch)
tree399af315b321e57c88cca886cd3a69c05360891b /drivers/infiniband/hw/ehca/ehca_classes.h
parent5281a4b8a0c6bac0c070913ec25868faa06a3115 (diff)
IB/ehca: Use remap_4k_pfn() to map firmware contexts to user space
Use Paul's new remap_4k_pfn() function to map our 4K firmware contexts into user space on 64K-page machines without exposing neighboring firmware contexts. Return the context's offset within a 64K page to user space so it can determine the proper virtual address. For details about remap_4k_pfn(), see commit 721151d0 or http://patchwork.ozlabs.org/linuxppc/patch?id=10281 Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ehca/ehca_classes.h')
-rw-r--r--drivers/infiniband/hw/ehca/ehca_classes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_classes.h b/drivers/infiniband/hw/ehca/ehca_classes.h
index 0d69f0f001d9..0942a173881c 100644
--- a/drivers/infiniband/hw/ehca/ehca_classes.h
+++ b/drivers/infiniband/hw/ehca/ehca_classes.h
@@ -338,6 +338,8 @@ struct ehca_create_cq_resp {
338 u32 cq_number; 338 u32 cq_number;
339 u32 token; 339 u32 token;
340 struct ipzu_queue_resp ipz_queue; 340 struct ipzu_queue_resp ipz_queue;
341 u32 fw_handle_ofs;
342 u32 dummy;
341}; 343};
342 344
343struct ehca_create_qp_resp { 345struct ehca_create_qp_resp {
@@ -348,7 +350,7 @@ struct ehca_create_qp_resp {
348 u32 qkey; 350 u32 qkey;
349 /* qp_num assigned by ehca: sqp0/1 may have got different numbers */ 351 /* qp_num assigned by ehca: sqp0/1 may have got different numbers */
350 u32 real_qp_num; 352 u32 real_qp_num;
351 u32 dummy; /* padding for 8 byte alignment */ 353 u32 fw_handle_ofs;
352 struct ipzu_queue_resp ipz_squeue; 354 struct ipzu_queue_resp ipz_squeue;
353 struct ipzu_queue_resp ipz_rqueue; 355 struct ipzu_queue_resp ipz_rqueue;
354}; 356};