Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

mxc_uart.c File Reference


Detailed Description

Driver for the Freescale Semiconductor MXC serial ports based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.

Definition in file mxc_uart.c.

#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/tty.h>
#include <linux/string.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/serial.h>
#include <linux/console.h>
#include <linux/platform_device.h>
#include <linux/sysrq.h>
#include <linux/dma-mapping.h>
#include <linux/clk.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/dma.h>
#include <asm/div64.h>
#include <mach/hardware.h>
#include <mach/mxc_uart.h>

Go to the source code of this file.

Classes

struct  dma_info

Defines

#define MIN_PULSE_DUR   2
#define MXC_CONSOLE   NULL
#define MXC_ISR_PASS_LIMIT   256
#define MXC_UART_NR   8
#define RXDMA_BUFF_SIZE   128
#define SERIAL_MXC_MAJOR   207
#define SERIAL_MXC_MINOR   16
#define TXDMA_BUFF_SIZE   UART_XMIT_SIZE
#define UART_CREAD_BIT   256

Functions

void config_uartdma_event (int port)
static void dma_tx_do_tasklet (unsigned long arg)
void gpio_uart_active (int port, int no_irda)
void gpio_uart_inactive (int port, int no_irda)
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DESCRIPTION ("MXC serial port driver")
 module_exit (mxcuart_exit)
 module_init (mxcuart_init)
 MODULE_LICENSE ("GPL")
static void mxcuart_break_ctl (struct uart_port *port, int break_state)
static void mxcuart_config_port (struct uart_port *port, int flags)
static void mxcuart_dma_writecallback (void *arg, int error, unsigned int count)
static void mxcuart_dmaread_callback (void *arg, int error, unsigned int cnt)
static void mxcuart_enable_ms (struct uart_port *port)
static void __exit mxcuart_exit (void)
static void mxcuart_free_interrupts (uart_mxc_port *umxc)
static void mxcuart_freedma (dma_info *d_info, uart_mxc_port *umxc)
static unsigned int mxcuart_get_mctrl (struct uart_port *port)
static int __init mxcuart_init (void)
static int mxcuart_initdma (dma_info *d_info, uart_mxc_port *umxc)
static irqreturn_t mxcuart_int (int irq, void *dev_id)
static irqreturn_t mxcuart_mint_int (int irq, void *dev_id)
static void mxcuart_modem_status (uart_mxc_port *umxc, unsigned int sr1, unsigned int sr2)
static void mxcuart_pm (struct uart_port *port, unsigned int state, unsigned int oldstate)
static int mxcuart_probe (struct platform_device *pdev)
static void mxcuart_release_port (struct uart_port *port)
static int mxcuart_remove (struct platform_device *pdev)
static int mxcuart_request_port (struct uart_port *port)
static int mxcuart_resume (struct platform_device *pdev)
static void mxcuart_rx_chars (uart_mxc_port *umxc)
static irqreturn_t mxcuart_rx_int (int irq, void *dev_id)
static void mxcuart_send_xchar (struct uart_port *port, char ch)
static void mxcuart_set_mctrl (struct uart_port *port, unsigned int mctrl)
static void mxcuart_set_ref_freq (uart_mxc_port *umxc, unsigned long per_clk, unsigned int req_baud, int *div)
static void mxcuart_set_termios (struct uart_port *port, struct ktermios *termios, struct ktermios *old)
static void mxcuart_shutdown (struct uart_port *port)
static void mxcuart_start_tx (struct uart_port *port)
static int mxcuart_startup (struct uart_port *port)
static void mxcuart_stop_rx (struct uart_port *port)
static void mxcuart_stop_tx (struct uart_port *port)
static int mxcuart_suspend (struct platform_device *pdev, pm_message_t state)
static void mxcuart_tx_chars (uart_mxc_port *umxc)
static unsigned int mxcuart_tx_empty (struct uart_port *port)
static irqreturn_t mxcuart_tx_int (int irq, void *dev_id)
static const char * mxcuart_type (struct uart_port *port)
static int mxcuart_verify_port (struct uart_port *port, struct serial_struct *ser)

Variables

static dma_info dma_list [MXC_UART_NR]
static int echo_cancel
static struct uart_ops mxc_ops
static uart_mxc_port * mxc_ports [MXC_UART_NR]
static struct uart_driver mxc_reg
static struct platform_driver mxcuart_driver


Generated by  Doxygen 1.6.0   Back to index