2 * Common header file for Blackfin family of processors.
4 * Copyright 2004-2009 Analog Devices Inc.
6 * Licensed under the GPL-2 or later.
12 #include <mach/anomaly.h>
16 /* SSYNC implementation for C file */
17 static inline void SSYNC(void)
20 if (ANOMALY_05000312 || ANOMALY_05000244)
31 __asm__ __volatile__("ssync;");
34 /* CSYNC implementation for C file */
35 static inline void CSYNC(void)
38 if (ANOMALY_05000312 || ANOMALY_05000244)
49 __asm__ __volatile__("csync;");
52 #else /* __ASSEMBLY__ */
54 #define LO(con32) ((con32) & 0xFFFF)
55 #define lo(con32) ((con32) & 0xFFFF)
56 #define HI(con32) (((con32) >> 16) & 0xFFFF)
57 #define hi(con32) (((con32) >> 16) & 0xFFFF)
59 /* SSYNC & CSYNC implementations for assembly files */
61 #define ssync(x) SSYNC(x)
62 #define csync(x) CSYNC(x)
64 #if ANOMALY_05000312 || ANOMALY_05000244
65 #define SSYNC(scratch) \
73 #define CSYNC(scratch) \
82 #define SSYNC(scratch) SSYNC;
83 #define CSYNC(scratch) CSYNC;
84 #endif /* ANOMALY_05000312 & ANOMALY_05000244 handling */
86 #endif /* __ASSEMBLY__ */
88 #include <asm/mem_map.h>
89 #include <mach/blackfin.h>
90 #include <asm/bfin-global.h>
92 #endif /* _BLACKFIN_H_ */