
From: Pat Gefre <pfg@sgi.com>

Clean up the bit twiddle macros in pcibr_config.c



---

 25-akpm/arch/ia64/sn/io/sn2/pcibr/pcibr_config.c |   13 +------------
 1 files changed, 1 insertion(+), 12 deletions(-)

diff -puN arch/ia64/sn/io/sn2/pcibr/pcibr_config.c~sn52 arch/ia64/sn/io/sn2/pcibr/pcibr_config.c
--- 25/arch/ia64/sn/io/sn2/pcibr/pcibr_config.c~sn52	Thu Jan  8 15:25:21 2004
+++ 25-akpm/arch/ia64/sn/io/sn2/pcibr/pcibr_config.c	Thu Jan  8 15:25:21 2004
@@ -22,23 +22,12 @@ void              pcibr_config_set(verte
 void       	  do_pcibr_config_set(cfg_p, unsigned, unsigned, uint64_t);
 
 /*
- * on sn-ia we need to twiddle the the addresses going out
- * the pci bus because we use the unswizzled synergy space
- * (the alternative is to use the swizzled synergy space
- * and byte swap the data)
+ * fancy snia bit twiddling....
  */
-#define CB(b,r) (((volatile uint8_t *) b)[((r)^4)])
-#define CS(b,r) (((volatile uint16_t *) b)[((r^4)/2)])
-#define CW(b,r) (((volatile uint32_t *) b)[((r^4)/4)])
-
 #define	CBP(b,r) (((volatile uint8_t *) b)[(r)])
 #define	CSP(b,r) (((volatile uint16_t *) b)[((r)/2)])
 #define	CWP(b,r) (((volatile uint32_t *) b)[(r)/4])
 
-#define SCB(b,r) (((volatile uint8_t *) b)[((r)^3)])
-#define SCS(b,r) (((volatile uint16_t *) b)[((r^2)/2)])
-#define SCW(b,r) (((volatile uint32_t *) b)[((r)/4)])
-
 /*
  * Return a config space address for given slot / func / offset.  Note the
  * returned pointer is a 32bit word (ie. cfg_p) aligned pointer pointing to

_
