mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
[SPARC64]: dma remove extra brackets
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
35bca36cf7
commit
5ff42459af
@ -152,9 +152,9 @@ extern void dvma_init(struct sbus_bus *);
|
|||||||
#define DMA_MAXEND(addr) (0x01000000UL-(((unsigned long)(addr))&0x00ffffffUL))
|
#define DMA_MAXEND(addr) (0x01000000UL-(((unsigned long)(addr))&0x00ffffffUL))
|
||||||
|
|
||||||
/* Yes, I hack a lot of elisp in my spare time... */
|
/* Yes, I hack a lot of elisp in my spare time... */
|
||||||
#define DMA_ERROR_P(regs) (((sbus_readl((regs) + DMA_CSR) & DMA_HNDL_ERROR))
|
#define DMA_ERROR_P(regs) ((sbus_readl((regs) + DMA_CSR) & DMA_HNDL_ERROR))
|
||||||
#define DMA_IRQ_P(regs) (((sbus_readl((regs) + DMA_CSR)) & (DMA_HNDL_INTR | DMA_HNDL_ERROR)))
|
#define DMA_IRQ_P(regs) ((sbus_readl((regs) + DMA_CSR)) & (DMA_HNDL_INTR | DMA_HNDL_ERROR))
|
||||||
#define DMA_WRITE_P(regs) (((sbus_readl((regs) + DMA_CSR) & DMA_ST_WRITE))
|
#define DMA_WRITE_P(regs) ((sbus_readl((regs) + DMA_CSR) & DMA_ST_WRITE))
|
||||||
#define DMA_OFF(__regs) \
|
#define DMA_OFF(__regs) \
|
||||||
do { u32 tmp = sbus_readl((__regs) + DMA_CSR); \
|
do { u32 tmp = sbus_readl((__regs) + DMA_CSR); \
|
||||||
tmp &= ~DMA_ENABLE; \
|
tmp &= ~DMA_ENABLE; \
|
||||||
|
Loading…
Reference in New Issue
Block a user