diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2014-10-21 14:01:06 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-11-06 10:14:59 -0500 |
commit | a727c4b6e523ba2d91854e8145542be74cfd9bab (patch) | |
tree | ea3a75c2153d0b014817900c274b76ca5ab197df | |
parent | 304576a776cc2fea7d40e6d7a58e4d4124f97f58 (diff) |
crypto: qat - Move BAR definitions to device specific module
Move PCI BARs definitions to device specific module where it belongs.
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | drivers/crypto/qat/qat_common/adf_accel_devices.h | 2 | ||||
-rw-r--r-- | drivers/crypto/qat/qat_common/qat_hal.c | 3 | ||||
-rw-r--r-- | drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.h | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_accel_devices.h b/drivers/crypto/qat/qat_common/adf_accel_devices.h index 9282381b03ce..62f43abaa230 100644 --- a/drivers/crypto/qat/qat_common/adf_accel_devices.h +++ b/drivers/crypto/qat/qat_common/adf_accel_devices.h | |||
@@ -56,8 +56,6 @@ | |||
56 | #define PCI_VENDOR_ID_INTEL 0x8086 | 56 | #define PCI_VENDOR_ID_INTEL 0x8086 |
57 | #define ADF_DH895XCC_DEVICE_NAME "dh895xcc" | 57 | #define ADF_DH895XCC_DEVICE_NAME "dh895xcc" |
58 | #define ADF_DH895XCC_PCI_DEVICE_ID 0x435 | 58 | #define ADF_DH895XCC_PCI_DEVICE_ID 0x435 |
59 | #define ADF_DH895XCC_PMISC_BAR 1 | ||
60 | #define ADF_DH895XCC_ETR_BAR 2 | ||
61 | #define ADF_PCI_MAX_BARS 3 | 59 | #define ADF_PCI_MAX_BARS 3 |
62 | #define ADF_DEVICE_NAME_LENGTH 32 | 60 | #define ADF_DEVICE_NAME_LENGTH 32 |
63 | #define ADF_ETR_MAX_RINGS_PER_BANK 16 | 61 | #define ADF_ETR_MAX_RINGS_PER_BANK 16 |
diff --git a/drivers/crypto/qat/qat_common/qat_hal.c b/drivers/crypto/qat/qat_common/qat_hal.c index 9b8a31521ff3..b818c19713bf 100644 --- a/drivers/crypto/qat/qat_common/qat_hal.c +++ b/drivers/crypto/qat/qat_common/qat_hal.c | |||
@@ -679,7 +679,8 @@ int qat_hal_init(struct adf_accel_dev *accel_dev) | |||
679 | struct icp_qat_fw_loader_handle *handle; | 679 | struct icp_qat_fw_loader_handle *handle; |
680 | struct adf_accel_pci *pci_info = &accel_dev->accel_pci_dev; | 680 | struct adf_accel_pci *pci_info = &accel_dev->accel_pci_dev; |
681 | struct adf_hw_device_data *hw_data = accel_dev->hw_device; | 681 | struct adf_hw_device_data *hw_data = accel_dev->hw_device; |
682 | struct adf_bar *bar = &pci_info->pci_bars[ADF_DH895XCC_PMISC_BAR]; | 682 | struct adf_bar *bar = |
683 | &pci_info->pci_bars[hw_data->get_misc_bar_id(hw_data)]; | ||
683 | 684 | ||
684 | handle = kzalloc(sizeof(*handle), GFP_KERNEL); | 685 | handle = kzalloc(sizeof(*handle), GFP_KERNEL); |
685 | if (!handle) | 686 | if (!handle) |
diff --git a/drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.h b/drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.h index 65dd1ff93d3b..01e0be21e93a 100644 --- a/drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.h +++ b/drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.h | |||
@@ -48,6 +48,8 @@ | |||
48 | #define ADF_DH895x_HW_DATA_H_ | 48 | #define ADF_DH895x_HW_DATA_H_ |
49 | 49 | ||
50 | /* PCIe configuration space */ | 50 | /* PCIe configuration space */ |
51 | #define ADF_DH895XCC_PMISC_BAR 1 | ||
52 | #define ADF_DH895XCC_ETR_BAR 2 | ||
51 | #define ADF_DH895XCC_RX_RINGS_OFFSET 8 | 53 | #define ADF_DH895XCC_RX_RINGS_OFFSET 8 |
52 | #define ADF_DH895XCC_TX_RINGS_MASK 0xFF | 54 | #define ADF_DH895XCC_TX_RINGS_MASK 0xFF |
53 | #define ADF_DH895XCC_FUSECTL_OFFSET 0x40 | 55 | #define ADF_DH895XCC_FUSECTL_OFFSET 0x40 |