summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/hfi1/qsfp.h
diff options
context:
space:
mode:
authorDean Luick <dean.luick@intel.com>2016-07-06 21:28:52 (GMT)
committerDoug Ledford <dledford@redhat.com>2016-08-02 19:47:42 (GMT)
commitdba715f0c8b5daa1fca041c1c9011632c7a83105 (patch)
treec501ad38388ec750f4e70a0e005e1b25b5816563 /drivers/infiniband/hw/hfi1/qsfp.h
parentb094a36f90975373c3a241839869217a65f17d81 (diff)
downloadlinux-dba715f0c8b5daa1fca041c1c9011632c7a83105.tar.xz
IB/hfi1: Use built-in i2c bit-shift bus adapter
Use built-in i2c bit-shift bus adapter to control the i2c busses on the chip. Cc: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Reviewed-by: Easwar Hariharan <easwar.hariharan@intel.com> Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Dean Luick <dean.luick@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/qsfp.h')
-rw-r--r--drivers/infiniband/hw/hfi1/qsfp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hfi1/qsfp.h b/drivers/infiniband/hw/hfi1/qsfp.h
index dadc66c..69275eb 100644
--- a/drivers/infiniband/hw/hfi1/qsfp.h
+++ b/drivers/infiniband/hw/hfi1/qsfp.h
@@ -238,3 +238,6 @@ int one_qsfp_write(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp,
int len);
int one_qsfp_read(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp,
int len);
+struct hfi1_asic_data;
+int set_up_i2c(struct hfi1_devdata *dd, struct hfi1_asic_data *ad);
+void clean_up_i2c(struct hfi1_devdata *dd, struct hfi1_asic_data *ad);