diff options
author | Gustavo Pimentel <gustavo.pimentel@synopsys.com> | 2018-05-14 17:09:50 +0200 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2018-05-14 18:32:04 +0200 |
commit | 76cbf066b1ab7526625394a62b509b410182bf06 (patch) | |
tree | 7563fe77e131229df8ad14c1442d43b871dc0136 /drivers/pci/dwc/pcie-designware.h | |
parent | PCI: dwc: Small computation improvement (diff) | |
download | linux-76cbf066b1ab7526625394a62b509b410182bf06.tar.xz linux-76cbf066b1ab7526625394a62b509b410182bf06.zip |
PCI: dwc: Replace magic number by defines
Replace magic numbers by a self-explained define to ease human
comprehension.
Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Jingoo Han <jingoohan1@gmail.com>
Acked-by: Joao Pinto <jpinto@synopsys.com>
Diffstat (limited to 'drivers/pci/dwc/pcie-designware.h')
-rw-r--r-- | drivers/pci/dwc/pcie-designware.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/dwc/pcie-designware.h b/drivers/pci/dwc/pcie-designware.h index fe811dbc12cf..bee4e2535a61 100644 --- a/drivers/pci/dwc/pcie-designware.h +++ b/drivers/pci/dwc/pcie-designware.h @@ -110,6 +110,7 @@ #define MAX_MSI_IRQS 256 #define MAX_MSI_IRQS_PER_CTRL 32 #define MAX_MSI_CTRLS (MAX_MSI_IRQS / MAX_MSI_IRQS_PER_CTRL) +#define MSI_REG_CTRL_BLOCK_SIZE 12 #define MSI_DEF_NUM_VECTORS 32 /* Maximum number of inbound/outbound iATUs */ |