Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
spi-altera.c File Reference
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/spi/spi.h>
#include <linux/spi/spi_bitbang.h>
#include <linux/io.h>
#include <linux/of.h>

Go to the source code of this file.

Data Structures

struct  altera_spi
 

Macros

#define DRV_NAME   "spi_altera"
 
#define ALTERA_SPI_RXDATA   0
 
#define ALTERA_SPI_TXDATA   4
 
#define ALTERA_SPI_STATUS   8
 
#define ALTERA_SPI_CONTROL   12
 
#define ALTERA_SPI_SLAVE_SEL   20
 
#define ALTERA_SPI_STATUS_ROE_MSK   0x8
 
#define ALTERA_SPI_STATUS_TOE_MSK   0x10
 
#define ALTERA_SPI_STATUS_TMT_MSK   0x20
 
#define ALTERA_SPI_STATUS_TRDY_MSK   0x40
 
#define ALTERA_SPI_STATUS_RRDY_MSK   0x80
 
#define ALTERA_SPI_STATUS_E_MSK   0x100
 
#define ALTERA_SPI_CONTROL_IROE_MSK   0x8
 
#define ALTERA_SPI_CONTROL_ITOE_MSK   0x10
 
#define ALTERA_SPI_CONTROL_ITRDY_MSK   0x40
 
#define ALTERA_SPI_CONTROL_IRRDY_MSK   0x80
 
#define ALTERA_SPI_CONTROL_IE_MSK   0x100
 
#define ALTERA_SPI_CONTROL_SSO_MSK   0x400
 

Functions

 module_platform_driver (altera_spi_driver)
 
 MODULE_DESCRIPTION ("Altera SPI driver")
 
 MODULE_AUTHOR ("Thomas Chou <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:"DRV_NAME)
 

Macro Definition Documentation

#define ALTERA_SPI_CONTROL   12

Definition at line 31 of file spi-altera.c.

#define ALTERA_SPI_CONTROL_IE_MSK   0x100

Definition at line 45 of file spi-altera.c.

#define ALTERA_SPI_CONTROL_IROE_MSK   0x8

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

#define ALTERA_SPI_CONTROL_IRRDY_MSK   0x80

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

#define ALTERA_SPI_CONTROL_ITOE_MSK   0x10

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

#define ALTERA_SPI_CONTROL_ITRDY_MSK   0x40

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

#define ALTERA_SPI_CONTROL_SSO_MSK   0x400

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

#define ALTERA_SPI_RXDATA   0

Definition at line 28 of file spi-altera.c.

#define ALTERA_SPI_SLAVE_SEL   20

Definition at line 32 of file spi-altera.c.

#define ALTERA_SPI_STATUS   8

Definition at line 30 of file spi-altera.c.

#define ALTERA_SPI_STATUS_E_MSK   0x100

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

#define ALTERA_SPI_STATUS_ROE_MSK   0x8

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

#define ALTERA_SPI_STATUS_RRDY_MSK   0x80

Definition at line 38 of file spi-altera.c.

#define ALTERA_SPI_STATUS_TMT_MSK   0x20

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

#define ALTERA_SPI_STATUS_TOE_MSK   0x10

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

#define ALTERA_SPI_STATUS_TRDY_MSK   0x40

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

#define ALTERA_SPI_TXDATA   4

Definition at line 29 of file spi-altera.c.

#define DRV_NAME   "spi_altera"

Definition at line 26 of file spi-altera.c.

Function Documentation

MODULE_ALIAS ( "platform:"  DRV_NAME)
MODULE_AUTHOR ( "Thomas Chou <[email protected]>"  )
MODULE_DESCRIPTION ( "Altera SPI driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( altera_spi_driver  )