]> err.no Git - linux-2.6/blobdiff - include/asm-blackfin/mach-bf561/bfin_serial_5xx.h
Blackfin Serial Driver: macro away the IER differences between processors
[linux-2.6] / include / asm-blackfin / mach-bf561 / bfin_serial_5xx.h
index 8a4e66d1db37aa0b80423cf3c54639833480a1c4..c209f0df47f7eea44f2de8ca5f5d19b8cd656349 100644 (file)
@@ -44,6 +44,8 @@
 #define UART_PUT_CHAR(uart,v)   bfin_write16(((uart)->port.membase + OFFSET_THR),v)
 #define UART_PUT_DLL(uart,v)    bfin_write16(((uart)->port.membase + OFFSET_DLL),v)
 #define UART_PUT_IER(uart,v)    bfin_write16(((uart)->port.membase + OFFSET_IER),v)
+#define UART_SET_IER(uart,v)    UART_PUT_IER(uart, UART_GET_IER(uart) | (v))
+#define UART_CLEAR_IER(uart,v)  UART_PUT_IER(uart, UART_GET_IER(uart) & ~(v))
 #define UART_PUT_DLH(uart,v)    bfin_write16(((uart)->port.membase + OFFSET_DLH),v)
 #define UART_PUT_LCR(uart,v)    bfin_write16(((uart)->port.membase + OFFSET_LCR),v)
 #define UART_PUT_GCTL(uart,v)   bfin_write16(((uart)->port.membase + OFFSET_GCTL),v)