|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/init.h>#include <linux/console.h>#include <linux/sysrq.h>#include <linux/slab.h>#include <linux/serial_reg.h>#include <linux/circ_buf.h>#include <linux/delay.h>#include <linux/interrupt.h>#include <linux/tty.h>#include <linux/tty_flip.h>#include <linux/serial_core.h>#include <linux/serial_mfd.h>#include <linux/dma-mapping.h>#include <linux/pci.h>#include <linux/io.h>#include <linux/debugfs.h>#include <linux/pm_runtime.h>Go to the source code of this file.
Data Structures | |
| struct | hsu_dma_buffer |
| struct | hsu_dma_chan |
| struct | uart_hsu_port |
| struct | hsu_port |
Macros | |
| #define | HSU_DMA_BUF_SIZE 2048 |
| #define | chan_readl(chan, offset) readl(chan->reg + offset) |
| #define | chan_writel(chan, offset, val) writel(val, chan->reg + offset) |
| #define | mfd_readl(obj, offset) readl(obj->reg + offset) |
| #define | mfd_writel(obj, offset, val) writel(val, obj->reg + offset) |
| #define | SERIAL_HSU_CONSOLE NULL |
| #define | serial_hsu_suspend NULL |
| #define | serial_hsu_resume NULL |
| #define | serial_hsu_runtime_idle NULL |
| #define | serial_hsu_runtime_suspend NULL |
| #define | serial_hsu_runtime_resume NULL |
Functions | |
| module_param (hsu_dma_enable, int, 0) | |
| MODULE_PARM_DESC (hsu_dma_enable,"It is a bitmap to set working mode, if bit[x] is 1, then port[x] will work in DMA mode, otherwise in PIO mode.") | |
| void | hsu_dma_tx (struct uart_hsu_port *up) |
| void | hsu_dma_start_rx_chan (struct hsu_dma_chan *rxc, struct hsu_dma_buffer *dbuf) |
| void | hsu_dma_rx (struct uart_hsu_port *up, u32 int_sts) |
| module_init (hsu_pci_init) | |
| module_exit (hsu_pci_exit) | |
| MODULE_LICENSE ("GPL v2") | |
| MODULE_ALIAS ("platform:medfield-hsu") | |
Variables | |
| struct uart_ops | serial_hsu_pops |
| void hsu_dma_start_rx_chan | ( | struct hsu_dma_chan * | rxc, |
| struct hsu_dma_buffer * | dbuf | ||
| ) |
| void hsu_dma_tx | ( | struct uart_hsu_port * | up | ) |
| MODULE_ALIAS | ( | "platform:medfield-hsu" | ) |
| module_exit | ( | hsu_pci_exit | ) |
| module_init | ( | hsu_pci_init | ) |
| MODULE_LICENSE | ( | "GPL v2" | ) |
| module_param | ( | hsu_dma_enable | , |
| int | , | ||
| 0 | |||
| ) |
| MODULE_PARM_DESC | ( | hsu_dma_enable | , |
| "It is a bitmap to set working | mode, | ||
| if bit is | 1[x], | ||
| then port will work in DMA | mode[x], | ||
| otherwise in PIO mode." | |||
| ) |
1.8.2