#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/bio.h>
#include <linux/dma-mapping.h>
#include <linux/crc7.h>
#include <linux/crc-itu-t.h>
#include <linux/scatterlist.h>
#include <linux/mmc/host.h>
#include <linux/mmc/mmc.h>
#include <linux/spi/spi.h>
#include <linux/spi/mmc_spi.h>
#include <asm/unaligned.h>
Go to the source code of this file.
#define MMC_SPI_BLOCKSATONCE 128 |
#define MMC_SPI_BLOCKSIZE 512 |
#define r1b_timeout (HZ * 3) |
#define SPI_MMC_RESPONSE_CODE |
( |
|
x | ) |
((x) & 0x1f) |
#define SPI_RESPONSE_ACCEPTED ((2 << 1)|1) |
#define SPI_RESPONSE_CRC_ERR ((5 << 1)|1) |
#define SPI_RESPONSE_WRITE_ERR ((6 << 1)|1) |
#define SPI_TOKEN_MULTI_WRITE 0xfc /* multiblock write */ |
#define SPI_TOKEN_SINGLE 0xfe /* single block r/w, multiblock read */ |
#define SPI_TOKEN_STOP_TRAN 0xfd /* terminate multiblock write */ |
MODULE_ALIAS |
( |
"spi:mmc_spi" |
| ) |
|
MODULE_AUTHOR |
( |
"Mike |
Lavender, |
|
|
David |
Brownell, |
|
|
""Hans-Peter |
Nilsson, |
|
|
Jan Nikitenko" |
|
|
) |
| |
module_spi_driver |
( |
mmc_spi_driver |
| ) |
|