aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2005-07-07 20:57:11 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-07 21:23:48 -0400
commit1cf296b66afeec2edc39cc7bbedbf3d0afd2a373 (patch)
tree37a47be9e6056ca8c71eecf4eba2211a05039980 /drivers/infiniband/hw
parentb5e81bf5e7084796d93167f438ec073e59aca9ed (diff)
[PATCH] IB uverbs: update mthca for new API
Update mthca to compile against the updated API for low-level drivers. Signed-off-by: Roland Dreier <rolandd@cisco.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/mthca/mthca_provider.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_provider.c b/drivers/infiniband/hw/mthca/mthca_provider.c
index 0b5adfd91597..0cc86f8e1850 100644
--- a/drivers/infiniband/hw/mthca/mthca_provider.c
+++ b/drivers/infiniband/hw/mthca/mthca_provider.c
@@ -284,7 +284,9 @@ static int mthca_query_gid(struct ib_device *ibdev, u8 port,
284 return err; 284 return err;
285} 285}
286 286
287static struct ib_pd *mthca_alloc_pd(struct ib_device *ibdev) 287static struct ib_pd *mthca_alloc_pd(struct ib_device *ibdev,
288 struct ib_ucontext *context,
289 struct ib_udata *udata)
288{ 290{
289 struct mthca_pd *pd; 291 struct mthca_pd *pd;
290 int err; 292 int err;
@@ -338,7 +340,8 @@ static int mthca_ah_destroy(struct ib_ah *ah)
338} 340}
339 341
340static struct ib_qp *mthca_create_qp(struct ib_pd *pd, 342static struct ib_qp *mthca_create_qp(struct ib_pd *pd,
341 struct ib_qp_init_attr *init_attr) 343 struct ib_qp_init_attr *init_attr,
344 struct ib_udata *udata)
342{ 345{
343 struct mthca_qp *qp; 346 struct mthca_qp *qp;
344 int err; 347 int err;
@@ -409,7 +412,9 @@ static int mthca_destroy_qp(struct ib_qp *qp)
409 return 0; 412 return 0;
410} 413}
411 414
412static struct ib_cq *mthca_create_cq(struct ib_device *ibdev, int entries) 415static struct ib_cq *mthca_create_cq(struct ib_device *ibdev, int entries,
416 struct ib_ucontext *context,
417 struct ib_udata *udata)
413{ 418{
414 struct mthca_cq *cq; 419 struct mthca_cq *cq;
415 int nent; 420 int nent;
@@ -692,6 +697,8 @@ int mthca_register_device(struct mthca_dev *dev)
692 int i; 697 int i;
693 698
694 strlcpy(dev->ib_dev.name, "mthca%d", IB_DEVICE_NAME_MAX); 699 strlcpy(dev->ib_dev.name, "mthca%d", IB_DEVICE_NAME_MAX);
700 dev->ib_dev.owner = THIS_MODULE;
701
695 dev->ib_dev.node_type = IB_NODE_CA; 702 dev->ib_dev.node_type = IB_NODE_CA;
696 dev->ib_dev.phys_port_cnt = dev->limits.num_ports; 703 dev->ib_dev.phys_port_cnt = dev->limits.num_ports;
697 dev->ib_dev.dma_device = &dev->pdev->dev; 704 dev->ib_dev.dma_device = &dev->pdev->dev;