Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mfd.c File Reference
#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
 

Macro Definition Documentation

#define chan_readl (   chan,
  offset 
)    readl(chan->reg + offset)

Definition at line 45 of file mfd.c.

#define chan_writel (   chan,
  offset,
  val 
)    writel(val, chan->reg + offset)

Definition at line 46 of file mfd.c.

#define HSU_DMA_BUF_SIZE   2048

Definition at line 43 of file mfd.c.

#define mfd_readl (   obj,
  offset 
)    readl(obj->reg + offset)

Definition at line 48 of file mfd.c.

#define mfd_writel (   obj,
  offset,
  val 
)    writel(val, obj->reg + offset)

Definition at line 49 of file mfd.c.

#define SERIAL_HSU_CONSOLE   NULL

Definition at line 1177 of file mfd.c.

#define serial_hsu_resume   NULL

Definition at line 1249 of file mfd.c.

#define serial_hsu_runtime_idle   NULL

Definition at line 1274 of file mfd.c.

#define serial_hsu_runtime_resume   NULL

Definition at line 1276 of file mfd.c.

#define serial_hsu_runtime_suspend   NULL

Definition at line 1275 of file mfd.c.

#define serial_hsu_suspend   NULL

Definition at line 1248 of file mfd.c.

Function Documentation

void hsu_dma_rx ( struct uart_hsu_port up,
u32  int_sts 
)

Definition at line 384 of file mfd.c.

void hsu_dma_start_rx_chan ( struct hsu_dma_chan rxc,
struct hsu_dma_buffer dbuf 
)

Definition at line 338 of file mfd.c.

void hsu_dma_tx ( struct uart_hsu_port up)

Definition at line 291 of file mfd.c.

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  ,
 
)
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."   
)

Variable Documentation

struct uart_ops serial_hsu_pops
Initial value:
= {
.tx_empty = serial_hsu_tx_empty,
.set_mctrl = serial_hsu_set_mctrl,
.get_mctrl = serial_hsu_get_mctrl,
.stop_tx = serial_hsu_stop_tx,
.start_tx = serial_hsu_start_tx,
.stop_rx = serial_hsu_stop_rx,
.enable_ms = serial_hsu_enable_ms,
.break_ctl = serial_hsu_break_ctl,
.startup = serial_hsu_startup,
.shutdown = serial_hsu_shutdown,
.set_termios = serial_hsu_set_termios,
.pm = serial_hsu_pm,
.type = serial_hsu_type,
.release_port = serial_hsu_release_port,
.request_port = serial_hsu_request_port,
.config_port = serial_hsu_config_port,
.verify_port = serial_hsu_verify_port,
}

Definition at line 1180 of file mfd.c.