Blackfin: bfin_serial.h: turn default port wrappers into stubs

Any consumer that needs to access the MMRs has to provide these helpers,
so make the default into useless stubs.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2010-10-27 03:41:03 -04:00
Родитель 36947a7682
Коммит 091c75985e
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -184,7 +184,7 @@ struct bfin_uart_regs {
#undef __BFP #undef __BFP
#ifndef port_membase #ifndef port_membase
# define port_membase(p) (((struct bfin_serial_port *)(p))->port.membase) # define port_membase(p) 0
#endif #endif
#define UART_GET_CHAR(p) bfin_read16(port_membase(p) + OFFSET_RBR) #define UART_GET_CHAR(p) bfin_read16(port_membase(p) + OFFSET_RBR)
@ -235,10 +235,10 @@ struct bfin_uart_regs {
#define UART_SET_DLAB(p) do { UART_PUT_LCR(p, UART_GET_LCR(p) | DLAB); SSYNC(); } while (0) #define UART_SET_DLAB(p) do { UART_PUT_LCR(p, UART_GET_LCR(p) | DLAB); SSYNC(); } while (0)
#ifndef put_lsr_cache #ifndef put_lsr_cache
# define put_lsr_cache(p, v) (((struct bfin_serial_port *)(p))->lsr = (v)) # define put_lsr_cache(p, v)
#endif #endif
#ifndef get_lsr_cache #ifndef get_lsr_cache
# define get_lsr_cache(p) (((struct bfin_serial_port *)(p))->lsr) # define get_lsr_cache(p) 0
#endif #endif
/* The hardware clears the LSR bits upon read, so we need to cache /* The hardware clears the LSR bits upon read, so we need to cache