8250.h (9c5895057bfe5d033c65e15d13c7eee4a78cc837) | 8250.h (33d9b8b23a73d5d8609a740d0adeea8235c2ae52) |
---|---|
1/* 2 * Driver for 8250/16550-type serial ports 3 * 4 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o. 5 * 6 * Copyright (C) 2001 Russell King. 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 */ 13 14#include <linux/serial_8250.h> 15#include <linux/serial_reg.h> 16#include <linux/dmaengine.h> 17 18struct uart_8250_dma { 19 int (*tx_dma)(struct uart_8250_port *p); | 1/* 2 * Driver for 8250/16550-type serial ports 3 * 4 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o. 5 * 6 * Copyright (C) 2001 Russell King. 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 */ 13 14#include <linux/serial_8250.h> 15#include <linux/serial_reg.h> 16#include <linux/dmaengine.h> 17 18struct uart_8250_dma { 19 int (*tx_dma)(struct uart_8250_port *p); |
20 int (*rx_dma)(struct uart_8250_port *p, unsigned int iir); | 20 int (*rx_dma)(struct uart_8250_port *p); |
21 22 /* Filter function */ 23 dma_filter_fn fn; 24 /* Parameter to the filter function */ 25 void *rx_param; 26 void *tx_param; 27 28 struct dma_slave_config rxconf; --- 155 unchanged lines hidden (view full) --- 184static inline int is_omap1510_8250(struct uart_8250_port *pt) 185{ 186 return 0; 187} 188#endif 189 190#ifdef CONFIG_SERIAL_8250_DMA 191extern int serial8250_tx_dma(struct uart_8250_port *); | 21 22 /* Filter function */ 23 dma_filter_fn fn; 24 /* Parameter to the filter function */ 25 void *rx_param; 26 void *tx_param; 27 28 struct dma_slave_config rxconf; --- 155 unchanged lines hidden (view full) --- 184static inline int is_omap1510_8250(struct uart_8250_port *pt) 185{ 186 return 0; 187} 188#endif 189 190#ifdef CONFIG_SERIAL_8250_DMA 191extern int serial8250_tx_dma(struct uart_8250_port *); |
192extern int serial8250_rx_dma(struct uart_8250_port *, unsigned int iir); | 192extern int serial8250_rx_dma(struct uart_8250_port *); 193extern void serial8250_rx_dma_flush(struct uart_8250_port *); |
193extern int serial8250_request_dma(struct uart_8250_port *); 194extern void serial8250_release_dma(struct uart_8250_port *); 195#else 196static inline int serial8250_tx_dma(struct uart_8250_port *p) 197{ 198 return -1; 199} | 194extern int serial8250_request_dma(struct uart_8250_port *); 195extern void serial8250_release_dma(struct uart_8250_port *); 196#else 197static inline int serial8250_tx_dma(struct uart_8250_port *p) 198{ 199 return -1; 200} |
200static inline int serial8250_rx_dma(struct uart_8250_port *p, unsigned int iir) | 201static inline int serial8250_rx_dma(struct uart_8250_port *p) |
201{ 202 return -1; 203} | 202{ 203 return -1; 204} |
205static inline void serial8250_rx_dma_flush(struct uart_8250_port *p) { } |
|
204static inline int serial8250_request_dma(struct uart_8250_port *p) 205{ 206 return -1; 207} 208static inline void serial8250_release_dma(struct uart_8250_port *p) { } 209#endif 210 211static inline int ns16550a_goto_highspeed(struct uart_8250_port *up) --- 26 unchanged lines hidden --- | 206static inline int serial8250_request_dma(struct uart_8250_port *p) 207{ 208 return -1; 209} 210static inline void serial8250_release_dma(struct uart_8250_port *p) { } 211#endif 212 213static inline int ns16550a_goto_highspeed(struct uart_8250_port *up) --- 26 unchanged lines hidden --- |