Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
spi-stmp.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/spi/spi.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/dma-mapping.h>
#include <linux/delay.h>
#include <mach/platform.h>
#include <mach/stmp3xxx.h>
#include <mach/dma.h>
#include <mach/regs-ssp.h>
#include <mach/regs-apbh.h>

Go to the source code of this file.

Data Structures

struct  stmp_spi
 

Macros

#define STMP_SPI_TIMEOUT   (2 * HZ)
 
#define busy_wait(cond)
 
#define stmp_spi_suspend   NULL
 
#define stmp_spi_resume   NULL
 

Functions

 module_platform_driver (stmp_spi_driver)
 
 module_param (pio, int, S_IRUGO)
 
 module_param (clock, int, S_IRUGO)
 
 MODULE_AUTHOR ("dmitry pervushin <[email protected]>")
 
 MODULE_DESCRIPTION ("STMP3xxx SPI/SSP driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define busy_wait (   cond)
Value:
({ \
unsigned long end_jiffies = jiffies + STMP_SPI_TIMEOUT; \
bool succeeded = false; \
do { \
if (cond) { \
succeeded = true; \
break; \
} \
cpu_relax(); \
} while (time_before(jiffies, end_jiffies)); \
succeeded; \
})

Definition at line 69 of file spi-stmp.c.

#define stmp_spi_resume   NULL

Definition at line 645 of file spi-stmp.c.

#define stmp_spi_suspend   NULL

Definition at line 644 of file spi-stmp.c.

#define STMP_SPI_TIMEOUT   (2 * HZ)

Definition at line 41 of file spi-stmp.c.

Function Documentation

MODULE_AUTHOR ( "dmitry pervushin <[email protected]>"  )
MODULE_DESCRIPTION ( "STMP3xxx SPI/SSP driver )
MODULE_LICENSE ( "GPL"  )
module_param ( pio  ,
int  ,
S_IRUGO   
)
module_param ( clock  ,
int  ,
S_IRUGO   
)
module_platform_driver ( stmp_spi_driver  )