From 34a814b27f040108d675c654ec0cf9ec980c1273 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 18 Jan 2004 18:51:16 -0800 Subject: [PATCH] [PATCH] sn: Clean up the bit twiddle macros in pcibr_config.c From: Pat Gefre Clean up the bit twiddle macros in pcibr_config.c --- arch/ia64/sn/io/sn2/pcibr/pcibr_config.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/arch/ia64/sn/io/sn2/pcibr/pcibr_config.c b/arch/ia64/sn/io/sn2/pcibr/pcibr_config.c index 202733b494cb0..3101641535cd3 100644 --- a/arch/ia64/sn/io/sn2/pcibr/pcibr_config.c +++ b/arch/ia64/sn/io/sn2/pcibr/pcibr_config.c @@ -22,23 +22,12 @@ void pcibr_config_set(vertex_hdl_t, unsigned, unsigned, uint64_t); 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 -- 2.53.0