Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
spi-fsl-lib.c File Reference
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/fsl_devices.h>
#include <linux/dma-mapping.h>
#include <linux/mm.h>
#include <linux/of_platform.h>
#include <linux/spi/spi.h>
#include <sysdev/fsl_soc.h>
#include "spi-fsl-lib.h"

Go to the source code of this file.

Macros

#define MPC8XXX_SPI_RX_BUF(type)
 
#define MPC8XXX_SPI_TX_BUF(type)
 

Functions

struct mpc8xxx_spi_probe_infoto_of_pinfo (struct fsl_spi_platform_data *pdata)
 
void mpc8xxx_spi_work (struct work_struct *work)
 
int mpc8xxx_spi_transfer (struct spi_device *spi, struct spi_message *m)
 
void mpc8xxx_spi_cleanup (struct spi_device *spi)
 
const charmpc8xxx_spi_strmode (unsigned int flags)
 
int mpc8xxx_spi_probe (struct device *dev, struct resource *mem, unsigned int irq)
 
int __devexit mpc8xxx_spi_remove (struct device *dev)
 
int __devinit of_mpc8xxx_spi_probe (struct platform_device *ofdev)
 

Macro Definition Documentation

#define MPC8XXX_SPI_RX_BUF (   type)
Value:
void mpc8xxx_spi_rx_buf_##type(u32 data, struct mpc8xxx_spi *mpc8xxx_spi) \
{ \
*rx++ = (type)(data >> mpc8xxx_spi->rx_shift); \
}

Definition at line 30 of file spi-fsl-lib.c.

#define MPC8XXX_SPI_TX_BUF (   type)
Value:
u32 mpc8xxx_spi_tx_buf_##type(struct mpc8xxx_spi *mpc8xxx_spi) \
{ \
const type *tx = mpc8xxx_spi->tx; \
if (!tx) \
return 0; \
return data; \
}

Definition at line 38 of file spi-fsl-lib.c.

Function Documentation

void mpc8xxx_spi_cleanup ( struct spi_device spi)

Definition at line 100 of file spi-fsl-lib.c.

int mpc8xxx_spi_probe ( struct device dev,
struct resource mem,
unsigned int  irq 
)

Definition at line 120 of file spi-fsl-lib.c.

int __devexit mpc8xxx_spi_remove ( struct device dev)

Definition at line 172 of file spi-fsl-lib.c.

const char* mpc8xxx_spi_strmode ( unsigned int  flags)

Definition at line 105 of file spi-fsl-lib.c.

int mpc8xxx_spi_transfer ( struct spi_device spi,
struct spi_message m 
)

Definition at line 83 of file spi-fsl-lib.c.

void mpc8xxx_spi_work ( struct work_struct work)

Definition at line 62 of file spi-fsl-lib.c.

int __devinit of_mpc8xxx_spi_probe ( struct platform_device ofdev)

Definition at line 192 of file spi-fsl-lib.c.

Definition at line 57 of file spi-fsl-lib.c.