History

platform/mellanox: mlxreg-hotplug: Add support for new capability register

Add support for capability register, which is used for detection of the actual number of interrupt capable components within the particular group, supported by the specific system. Such components could be for example the number of power units and interrupts related to these units. The motivation is to avoid adding a new code in the future in order to distinct between the systems type supported different number of the components like power supplies, FANs, ASICs, line cards.

Vadim Pasternak committed 6 years ago

Commit 0e41bf01 parent 48454602 files · +16 −0Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/platform_data/mlxreg.h+2−0
@@ -101,6 +101,7 @@ struct mlxreg_core_data { · 100 unmodified lines
101 * @aggr_mask: group aggregation mask;101 * @aggr_mask: group aggregation mask;
102 * @reg: group interrupt status register;102 * @reg: group interrupt status register;
103 * @mask: group interrupt mask;103 * @mask: group interrupt mask;
104 * @capability: group capability register;
104 * @cache: last status value for elements fro the same group;105 * @cache: last status value for elements fro the same group;
105 * @count: number of available elements in the group;106 * @count: number of available elements in the group;
106 * @ind: element's index inside the group;107 * @ind: element's index inside the group;
@@ -112,6 +113,7 @@ struct mlxreg_core_item { · 5 unmodified lines
112 u32 aggr_mask;113 u32 aggr_mask;
113 u32 reg;114 u32 reg;
114 u32 mask;115 u32 mask;
116 u32 capability;
115 u32 cache;117 u32 cache;
116 u8 count;118 u8 count;
117 u8 ind;119 u8 ind;