Skip to content

Commit 26917ea

Browse files
vadimp-nvidiajwrdegoede
authored andcommitted
platform_data/mlxreg: Add field with mapped resource address
Add field with PCIe remapped based address for passing it across relevant platform drivers sharing common system resources. Signed-off-by: Vadim Pasternak <vadimp@nvidia.com> Reviewed-by: Michael Shych <michaelsh@nvidia.com> Link: https://lore.kernel.org/r/20230208063331.15560-11-vadimp@nvidia.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent 26e118e commit 26917ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/platform_data/mlxreg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ struct mlxreg_core_platform_data {
216216
* @mask_low: low aggregation interrupt common mask;
217217
* @deferred_nr: I2C adapter number must be exist prior probing execution;
218218
* @shift_nr: I2C adapter numbers must be incremented by this value;
219+
* @addr: mapped resource address;
219220
* @handle: handle to be passed by callback;
220221
* @completion_notify: callback to notify when platform driver probing is done;
221222
*/
@@ -230,6 +231,7 @@ struct mlxreg_core_hotplug_platform_data {
230231
u32 mask_low;
231232
int deferred_nr;
232233
int shift_nr;
234+
void __iomem *addr;
233235
void *handle;
234236
int (*completion_notify)(void *handle, int id);
235237
};

0 commit comments

Comments
 (0)