Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
spi-pxa2xx.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/ioport.h>
#include <linux/errno.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/spi/pxa2xx_spi.h>
#include <linux/dma-mapping.h>
#include <linux/spi/spi.h>
#include <linux/workqueue.h>
#include <linux/delay.h>
#include <linux/gpio.h>
#include <linux/slab.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/delay.h>

Go to the source code of this file.

Data Structures

struct  driver_data
 
struct  chip_data
 

Macros

#define MAX_BUSES   3
 
#define TIMOUT_DFLT   1000
 
#define DMA_INT_MASK   (DCSR_ENDINTR | DCSR_STARTINTR | DCSR_BUSERR)
 
#define RESET_DMA_CHANNEL   (DCSR_NODESC | DMA_INT_MASK)
 
#define IS_DMA_ALIGNED(x)   ((((u32)(x)) & 0x07) == 0)
 
#define MAX_DMA_LEN   8191
 
#define DMA_ALIGNMENT   8
 
#define SSCR1_CHANGE_MASK
 
#define DEFINE_SSP_REG(reg, off)
 
#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
 

Functions

 MODULE_AUTHOR ("Stephen Street")
 
 MODULE_DESCRIPTION ("PXA2xx SSP SPI Controller")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:pxa2xx-spi")
 
 subsys_initcall (pxa2xx_spi_init)
 
 module_exit (pxa2xx_spi_exit)
 

Macro Definition Documentation

#define DEFINE_SSP_REG (   reg,
  off 
)
Value:
static inline u32 read_##reg(void const __iomem *p) \
{ return __raw_readl(p + (off)); } \
\
static inline void write_##reg(u32 v, void __iomem *p) \
{ __raw_writel(v, p + (off)); }

Definition at line 68 of file spi-pxa2xx.c.

#define DMA_ALIGNMENT   8

Definition at line 52 of file spi-pxa2xx.c.

#define DMA_INT_MASK   (DCSR_ENDINTR | DCSR_STARTINTR | DCSR_BUSERR)

Definition at line 48 of file spi-pxa2xx.c.

#define DONE_STATE   ((void*)2)

Definition at line 85 of file spi-pxa2xx.c.

#define ERROR_STATE   ((void*)-1)

Definition at line 86 of file spi-pxa2xx.c.

#define IS_DMA_ALIGNED (   x)    ((((u32)(x)) & 0x07) == 0)

Definition at line 50 of file spi-pxa2xx.c.

#define MAX_BUSES   3

Definition at line 44 of file spi-pxa2xx.c.

#define MAX_DMA_LEN   8191

Definition at line 51 of file spi-pxa2xx.c.

#define QUEUE_RUNNING   0

Definition at line 88 of file spi-pxa2xx.c.

#define QUEUE_STOPPED   1

Definition at line 89 of file spi-pxa2xx.c.

#define RESET_DMA_CHANNEL   (DCSR_NODESC | DMA_INT_MASK)

Definition at line 49 of file spi-pxa2xx.c.

#define RUNNING_STATE   ((void*)1)

Definition at line 84 of file spi-pxa2xx.c.

#define SSCR1_CHANGE_MASK
#define START_STATE   ((void*)0)

Definition at line 83 of file spi-pxa2xx.c.

#define TIMOUT_DFLT   1000

Definition at line 46 of file spi-pxa2xx.c.

Function Documentation

MODULE_ALIAS ( "platform:pxa2xx-spi )
MODULE_AUTHOR ( "Stephen Street"  )
MODULE_DESCRIPTION ( "PXA2xx SSP SPI Controller )
module_exit ( pxa2xx_spi_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( pxa2xx_spi_init  )