mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 18:30:06 +00:00
crypto: qat - add adf_get_aram_base() helper function
Add the function adf_get_aram_base() which allows to return the base address of the aram bar. Signed-off-by: Shashank Gupta <shashank.gupta@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Tero Kristo <tero.kristo@linux.intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
b67bf7babe
commit
86df79c3a4
1 changed files with 10 additions and 0 deletions
|
@ -248,4 +248,14 @@ static inline void __iomem *adf_get_pmisc_base(struct adf_accel_dev *accel_dev)
|
|||
return pmisc->virt_addr;
|
||||
}
|
||||
|
||||
static inline void __iomem *adf_get_aram_base(struct adf_accel_dev *accel_dev)
|
||||
{
|
||||
struct adf_hw_device_data *hw_data = accel_dev->hw_device;
|
||||
struct adf_bar *param;
|
||||
|
||||
param = &GET_BARS(accel_dev)[hw_data->get_sram_bar_id(hw_data)];
|
||||
|
||||
return param->virt_addr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue