From: Joshua Kinard <kumba@xxxxxxxxxx> Add macros for the two known XBRIDGE revisions commonly found on IP35 hardware and reportedly on some IP27 hardware. Both macros are sourced from the IA64 copy of bridge.h from Linux-2.4.18. This is for future patches that will make use of these macros. Also add a macro for bit 55 of the Crosstalk address to select whether to use byte-swapping or not. This bit is specific to XBRIDGE. Cc: linux-mips@xxxxxxxxxxxxxx Signed-off-by: Joshua Kinard <kumba@xxxxxxxxxx> --- arch/mips/include/asm/pci/bridge.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/include/asm/pci/bridge.h b/arch/mips/include/asm/pci/bridge.h index 3206245d1ed6..7740be3f989e 100644 --- a/arch/mips/include/asm/pci/bridge.h +++ b/arch/mips/include/asm/pci/bridge.h @@ -401,6 +401,8 @@ typedef struct bridge_err_cmdword_s { #define BRIDGE_REV_B 0x2 #define BRIDGE_REV_C 0x3 #define BRIDGE_REV_D 0x4 +#define XBRIDGE_REV_A 0x1 +#define XBRIDGE_REV_B 0x2 /* Bridge widget status register bits definition */ @@ -794,6 +796,7 @@ typedef struct bridge_err_cmdword_s { #define PCI64_ATTR_PREC 0x0400000000000000 #define PCI64_ATTR_VIRTUAL 0x0200000000000000 #define PCI64_ATTR_BAR 0x0100000000000000 +#define PCI64_ATTR_SWAP 0x0080000000000000 /* XBRIDGE only */ #define PCI64_ATTR_RMF_MASK 0x00ff000000000000 #define PCI64_ATTR_RMF_SHFT 48