Linux Kernel
3.7.1
|
#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) | |
#define DEFINE_SSP_REG | ( | reg, | |
off | |||
) |
#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.
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 |
Definition at line 61 of file spi-pxa2xx.c.
#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.
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 | ) |