aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hfi1/eprom.h
diff options
context:
space:
mode:
authorDean Luick <dean.luick@intel.com>2016-09-30 04:41:40 -0700
committerDoug Ledford <dledford@redhat.com>2016-10-02 08:42:20 -0400
commit107ffbc521b07f22c2e8d1c5fce39766c265c02c (patch)
treebd46e62c6f5919e4676eceeebc949678483e38d6 /drivers/infiniband/hw/hfi1/eprom.h
parentIB/hfi1: Restore EPROM read ability (diff)
downloadlinux-dev-107ffbc521b07f22c2e8d1c5fce39766c265c02c.tar.xz
linux-dev-107ffbc521b07f22c2e8d1c5fce39766c265c02c.zip
IB/hfi1: Add ability to read platform config from the EPROM
Add a function to read the platform configuration file from the EPROM. Reviewed-by: Easwar Hariharan <easwar.hariharan@intel.com> Signed-off-by: Dean Luick <dean.luick@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/hfi1/eprom.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hfi1/eprom.h b/drivers/infiniband/hw/hfi1/eprom.h
index b7ac9cee1076..e774184f1643 100644
--- a/drivers/infiniband/hw/hfi1/eprom.h
+++ b/drivers/infiniband/hw/hfi1/eprom.h
@@ -48,3 +48,5 @@
struct hfi1_devdata;
int eprom_init(struct hfi1_devdata *dd);
+int eprom_read_platform_config(struct hfi1_devdata *dd, void **buf_ret,
+ u32 *size_ret);