[2.4 PATCH] sparc64 dma parenthesis fixes
Mariusz Kozlowski <[email protected]> Mon, 4 Dec 2006 10:44:19 +0100
| Newsgroups | gmane.linux.ports.sparc,gmane.linux.ports.ultrapenguin |
|---|---|
| Message-ID | <[email protected]> |
Hello, =A0=A0=A0=A0=A0=A0=A0=A0This patch fixes some sparc64 dma macros. Signed-off-by: Mariusz Kozlowski <[email protected]> =A0include/asm-sparc64/dma.h | =A0 =A06 +++--- =A01 file changed, 3 insertions(+), 3 deletions(-) --- linux-2.4.34-pre6-a/include/asm-sparc64/dma.h 2000-02-01 08:37:19.0= 00000000 +0100 +++ linux-2.4.34-pre6-b/include/asm-sparc64/dma.h 2006-12-01 12:00:23.0= 00000000 +0100 @@ -153,9 +153,9 @@ extern void dvma_init(struct sbus_bus *) #define DMA_MAXEND(addr) (0x01000000UL-(((unsigned long)(addr))&0x00ff= ffffUL)) =20 /* 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_IRQ_P(regs) (((sbus_readl((regs) + DMA_CSR)) & (DMA_HND= L_INTR | DMA_HNDL_ERROR))) -#define DMA_WRITE_P(regs) (((sbus_readl((regs) + DMA_CSR) & DMA_ST_WR= ITE)) +#define DMA_ERROR_P(regs) (sbus_readl((regs) + DMA_CSR) & DMA_HNDL_ER= ROR) +#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_WRIT= E) #define DMA_OFF(__regs) \ do { u32 tmp =3D sbus_readl((__regs) + DMA_CSR); \ tmp &=3D ~DMA_ENABLE; \ --=20 Regards, Mariusz Kozlowski - To unsubscribe from this list: send the line "unsubscribe sparclinux" i= n the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html