Go to the documentation of this file.
20 #if !defined(_ASM_RM9K_OCD_H)
21 #define _ASM_RM9K_OCD_H
23 #include <linux/types.h>
30 #define ocd_addr(__x__) (ocd_base + (__x__))
31 #define titan_addr(__x__) (titan_base + (__x__))
32 #define scram_addr(__x__) (scram_base + (__x__))
35 #define ocd_readl(__offs__) __raw_readl(ocd_addr(__offs__))
36 #define ocd_readw(__offs__) __raw_readw(ocd_addr(__offs__))
37 #define ocd_readb(__offs__) __raw_readb(ocd_addr(__offs__))
38 #define ocd_writel(__val__, __offs__) \
39 __raw_writel((__val__), ocd_addr(__offs__))
40 #define ocd_writew(__val__, __offs__) \
41 __raw_writew((__val__), ocd_addr(__offs__))
42 #define ocd_writeb(__val__, __offs__) \
43 __raw_writeb((__val__), ocd_addr(__offs__))
46 #define titan_readl(__offs__) __raw_readl(titan_addr(__offs__))
47 #define titan_writel(__val__, __offs__) \
48 __raw_writel((__val__), titan_addr(__offs__))
53 #define lock_titan_regs() spin_lock_irqsave(&titan_lock, titan_irqflags)
54 #define unlock_titan_regs() spin_unlock_irqrestore(&titan_lock, titan_irqflags)