Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | ocd_addr(__x__) (ocd_base + (__x__)) |
#define | titan_addr(__x__) (titan_base + (__x__)) |
#define | scram_addr(__x__) (scram_base + (__x__)) |
#define | ocd_readl(__offs__) __raw_readl(ocd_addr(__offs__)) |
#define | ocd_readw(__offs__) __raw_readw(ocd_addr(__offs__)) |
#define | ocd_readb(__offs__) __raw_readb(ocd_addr(__offs__)) |
#define | ocd_writel(__val__, __offs__) __raw_writel((__val__), ocd_addr(__offs__)) |
#define | ocd_writew(__val__, __offs__) __raw_writew((__val__), ocd_addr(__offs__)) |
#define | ocd_writeb(__val__, __offs__) __raw_writeb((__val__), ocd_addr(__offs__)) |
#define | titan_readl(__offs__) __raw_readl(titan_addr(__offs__)) |
#define | titan_writel(__val__, __offs__) __raw_writel((__val__), titan_addr(__offs__)) |
#define | lock_titan_regs() spin_lock_irqsave(&titan_lock, titan_irqflags) |
#define | unlock_titan_regs() spin_unlock_irqrestore(&titan_lock, titan_irqflags) |
Variables | |
volatile void __iomem *const | ocd_base |
volatile void __iomem *const | titan_base |
spinlock_t | titan_lock |
int | titan_irqflags |
#define lock_titan_regs | ( | ) | spin_lock_irqsave(&titan_lock, titan_irqflags) |
Definition at line 53 of file rm9k-ocd.h.
#define ocd_addr | ( | __x__ | ) | (ocd_base + (__x__)) |
Definition at line 30 of file rm9k-ocd.h.
#define ocd_readb | ( | __offs__ | ) | __raw_readb(ocd_addr(__offs__)) |
Definition at line 37 of file rm9k-ocd.h.
#define ocd_readl | ( | __offs__ | ) | __raw_readl(ocd_addr(__offs__)) |
Definition at line 35 of file rm9k-ocd.h.
#define ocd_readw | ( | __offs__ | ) | __raw_readw(ocd_addr(__offs__)) |
Definition at line 36 of file rm9k-ocd.h.
#define ocd_writeb | ( | __val__, | |
__offs__ | |||
) | __raw_writeb((__val__), ocd_addr(__offs__)) |
Definition at line 42 of file rm9k-ocd.h.
#define ocd_writel | ( | __val__, | |
__offs__ | |||
) | __raw_writel((__val__), ocd_addr(__offs__)) |
Definition at line 38 of file rm9k-ocd.h.
#define ocd_writew | ( | __val__, | |
__offs__ | |||
) | __raw_writew((__val__), ocd_addr(__offs__)) |
Definition at line 40 of file rm9k-ocd.h.
#define scram_addr | ( | __x__ | ) | (scram_base + (__x__)) |
Definition at line 32 of file rm9k-ocd.h.
#define titan_addr | ( | __x__ | ) | (titan_base + (__x__)) |
Definition at line 31 of file rm9k-ocd.h.
#define titan_readl | ( | __offs__ | ) | __raw_readl(titan_addr(__offs__)) |
Definition at line 46 of file rm9k-ocd.h.
#define titan_writel | ( | __val__, | |
__offs__ | |||
) | __raw_writel((__val__), titan_addr(__offs__)) |
Definition at line 47 of file rm9k-ocd.h.
#define unlock_titan_regs | ( | ) | spin_unlock_irqrestore(&titan_lock, titan_irqflags) |
Definition at line 54 of file rm9k-ocd.h.
int titan_irqflags |
spinlock_t titan_lock |