diff options
author | Ira Weiny <ira.weiny@intel.com> | 2016-06-15 02:22:08 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-06-23 12:08:34 -0400 |
commit | 939b6ca873e7bbef4b26a1cffacf1a1bf2f3f362 (patch) | |
tree | c16fcd3fcd51ac4a333a34cd4e3da98b28fe724d /drivers/infiniband/hw/hfi1/hfi.h | |
parent | 41a6ae1ebd51d074a43d608b8ecfc9dd2b323d5e (diff) |
IB/hfi1: Add device FW version string
Export the firmware version through the core.
Acked-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/hfi.h')
-rw-r--r-- | drivers/infiniband/hw/hfi1/hfi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hfi1/hfi.h b/drivers/infiniband/hw/hfi1/hfi.h index 4417a0fd3ef9..49a71e24a8f0 100644 --- a/drivers/infiniband/hw/hfi1/hfi.h +++ b/drivers/infiniband/hw/hfi1/hfi.h @@ -1174,6 +1174,8 @@ struct hfi1_devdata { /* 8051 firmware version helper */ #define dc8051_ver(a, b) ((a) << 8 | (b)) +#define dc8051_ver_maj(a) ((a & 0xff00) >> 8) +#define dc8051_ver_min(a) (a & 0x00ff) /* f_put_tid types */ #define PT_EXPECTED 0 |