mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
crypto: qat - introduce fuse array
Change the representation of fuses in the accelerator device structure from a single value to an array. This allows the structure to accommodate additional fuses that are required for future generations of QAT hardware. This does not introduce any functional changes. Signed-off-by: Suman Kumar Chakraborty <suman.kumar.chakraborty@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
committed by
Herbert Xu
parent
7450ebd29c
commit
f3bda3b9b6
@@ -53,6 +53,16 @@ enum adf_accel_capabilities {
|
||||
ADF_ACCEL_CAPABILITIES_RANDOM_NUMBER = 128
|
||||
};
|
||||
|
||||
enum adf_fuses {
|
||||
ADF_FUSECTL0,
|
||||
ADF_FUSECTL1,
|
||||
ADF_FUSECTL2,
|
||||
ADF_FUSECTL3,
|
||||
ADF_FUSECTL4,
|
||||
ADF_FUSECTL5,
|
||||
ADF_MAX_FUSES
|
||||
};
|
||||
|
||||
struct adf_bar {
|
||||
resource_size_t base_addr;
|
||||
void __iomem *virt_addr;
|
||||
@@ -345,7 +355,7 @@ struct adf_hw_device_data {
|
||||
struct qat_migdev_ops vfmig_ops;
|
||||
const char *fw_name;
|
||||
const char *fw_mmp_name;
|
||||
u32 fuses;
|
||||
u32 fuses[ADF_MAX_FUSES];
|
||||
u32 straps;
|
||||
u32 accel_capabilities_mask;
|
||||
u32 extended_dc_capabilities;
|
||||
|
||||
Reference in New Issue
Block a user