11 #include <linux/kernel.h>
22 #define TARGET_DEV_BUS 1
23 #define TARGET_PCIE0 4
24 #define TARGET_PCIE1 8
25 #define TARGET_PCIE(i) ((i) ? TARGET_PCIE1 : TARGET_PCIE0)
26 #define ATTR_DEV_SPI_ROM 0x1f
27 #define ATTR_DEV_BOOT 0x2f
28 #define ATTR_DEV_CS3 0x37
29 #define ATTR_DEV_CS2 0x3b
30 #define ATTR_DEV_CS1 0x3d
31 #define ATTR_DEV_CS0 0x3e
32 #define ATTR_PCIE_IO(l) (0xf0 & ~(0x10 << (l)))
33 #define ATTR_PCIE_MEM(l) (0xf8 & ~(0x10 << (l)))
38 #define WIN0_OFF(n) (BRIDGE_VIRT_BASE + 0x0000 + ((n) << 4))
39 #define WIN8_OFF(n) (BRIDGE_VIRT_BASE + 0x0900 + (((n) - 8) << 4))