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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -101,6 +101,7 @@ struct mlxreg_core_data { · 100 unmodified lines | ||
| 101 | 101 | * @aggr_mask: group aggregation mask; |
| 102 | 102 | * @reg: group interrupt status register; |
| 103 | 103 | * @mask: group interrupt mask; |
| 104 | + * @capability: group capability register; | |
| 104 | 105 | * @cache: last status value for elements fro the same group; |
| 105 | 106 | * @count: number of available elements in the group; |
| 106 | 107 | * @ind: element's index inside the group; |
| @@ -112,6 +113,7 @@ struct mlxreg_core_item { · 5 unmodified lines | ||
| 112 | 113 | u32 aggr_mask; |
| 113 | 114 | u32 reg; |
| 114 | 115 | u32 mask; |
| 116 | + u32 capability; | |
| 115 | 117 | u32 cache; |
| 116 | 118 | u8 count; |
| 117 | 119 | u8 ind; |