net: ipa: identify resource groups
authorAlex Elder <elder@linaro.org>
Fri, 26 Mar 2021 15:11:13 +0000 (10:11 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Mar 2021 22:02:38 +0000 (15:02 -0700)
commit47f71d6e677cfa2853203ea77c0a47c23fea92c0
treec2389ab66d15bbe8d99345f7ab9fb9c0abe6e645
parenta749c6c03762f71ba4d04ead60b4f5df9ca2bf5e
net: ipa: identify resource groups

Define a new ipa_resource_group_id enumerated type, whose members
have numeric values that match the resource group number used when
programming the hardware.  Each platform supports a different number
of source and destination resource groups, so define the type
separately for each platform in its configuration data file.

Use these new symbolic values when specifying the resource group an
endpoint is associated with.  And use them to index the limits
arrays for source and destination resources, making it clearer how
these values are used.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_data-sc7180.c
drivers/net/ipa/ipa_data-sdm845.c