mirror of https://github.com/OpenIPC/firmware.git
21 lines
733 B
Diff
21 lines
733 B
Diff
diff -drupN a/drivers/pci/host/pcie-designware.h b/drivers/pci/host/pcie-designware.h
|
|
--- a/drivers/pci/host/pcie-designware.h 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/drivers/pci/host/pcie-designware.h 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -14,11 +14,16 @@
|
|
#ifndef _PCIE_DESIGNWARE_H
|
|
#define _PCIE_DESIGNWARE_H
|
|
|
|
+#include <linux/irqreturn.h>
|
|
+
|
|
/*
|
|
* Maximum number of MSI IRQs can be 256 per controller. But keep
|
|
* it 32 as of now. Probably we will never need more than 32. If needed,
|
|
* then increment it in multiple of 32.
|
|
*/
|
|
+#define PCIE_BAR_NUM 6
|
|
+#define MEM_BASE_LEN 16
|
|
+#define MEM_BASE_MASK 0xffff
|
|
#define MAX_MSI_IRQS 32
|
|
#define MAX_MSI_CTRLS (MAX_MSI_IRQS / 32)
|
|
|