Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
spi-dw.c File Reference
#include <linux/dma-mapping.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/highmem.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/spi/spi.h>
#include "spi-dw.h"

Go to the source code of this file.

Data Structures

struct  chip_data
 

Macros

#define START_STATE   ((void *)0)
 
#define RUNNING_STATE   ((void *)1)
 
#define DONE_STATE   ((void *)2)
 
#define ERROR_STATE   ((void *)-1)
 
#define QUEUE_RUNNING   0
 
#define QUEUE_STOPPED   1
 
#define MRST_SPI_DEASSERT   0
 
#define MRST_SPI_ASSERT   1
 

Functions

void dw_spi_xfer_done (struct dw_spi *dws)
 
 EXPORT_SYMBOL_GPL (dw_spi_xfer_done)
 
int __devinit dw_spi_add_host (struct dw_spi *dws)
 
 EXPORT_SYMBOL_GPL (dw_spi_add_host)
 
void __devexit dw_spi_remove_host (struct dw_spi *dws)
 
 EXPORT_SYMBOL_GPL (dw_spi_remove_host)
 
int dw_spi_suspend_host (struct dw_spi *dws)
 
 EXPORT_SYMBOL_GPL (dw_spi_suspend_host)
 
int dw_spi_resume_host (struct dw_spi *dws)
 
 EXPORT_SYMBOL_GPL (dw_spi_resume_host)
 
 MODULE_AUTHOR ("Feng Tang <[email protected]>")
 
 MODULE_DESCRIPTION ("Driver for DesignWare SPI controller core")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define DONE_STATE   ((void *)2)

Definition at line 36 of file spi-dw.c.

#define ERROR_STATE   ((void *)-1)

Definition at line 37 of file spi-dw.c.

#define MRST_SPI_ASSERT   1

Definition at line 43 of file spi-dw.c.

#define MRST_SPI_DEASSERT   0

Definition at line 42 of file spi-dw.c.

#define QUEUE_RUNNING   0

Definition at line 39 of file spi-dw.c.

#define QUEUE_STOPPED   1

Definition at line 40 of file spi-dw.c.

#define RUNNING_STATE   ((void *)1)

Definition at line 35 of file spi-dw.c.

#define START_STATE   ((void *)0)

Definition at line 34 of file spi-dw.c.

Function Documentation

int __devinit dw_spi_add_host ( struct dw_spi dws)

Definition at line 798 of file spi-dw.c.

void __devexit dw_spi_remove_host ( struct dw_spi dws)

Definition at line 880 of file spi-dw.c.

int dw_spi_resume_host ( struct dw_spi dws)

Definition at line 919 of file spi-dw.c.

int dw_spi_suspend_host ( struct dw_spi dws)

Definition at line 906 of file spi-dw.c.

void dw_spi_xfer_done ( struct dw_spi dws)

Definition at line 301 of file spi-dw.c.

EXPORT_SYMBOL_GPL ( dw_spi_xfer_done  )
EXPORT_SYMBOL_GPL ( dw_spi_add_host  )
EXPORT_SYMBOL_GPL ( dw_spi_remove_host  )
EXPORT_SYMBOL_GPL ( dw_spi_suspend_host  )
EXPORT_SYMBOL_GPL ( dw_spi_resume_host  )
MODULE_AUTHOR ( "Feng Tang <[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for DesignWare SPI controller core )
MODULE_LICENSE ( "GPL v2 )