#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/string.h>
#include <linux/workqueue.h>
#include <linux/completion.h>
#include <linux/list.h>
#include <linux/interrupt.h>
#include <linux/dma-mapping.h>
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/debugfs.h>
#include <linux/if_arp.h>
#include <net/caif/caif_layer.h>
#include <net/caif/caif_spi.h>
Go to the source code of this file.
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_AUTHOR ("Daniel Martensson<[email protected]>") |
|
| MODULE_DESCRIPTION ("CAIF SPI driver") |
|
| module_param (spi_loop, bool, S_IRUGO) |
|
| MODULE_PARM_DESC (spi_loop,"SPI running in loopback mode.") |
|
| module_param (spi_frm_align, int, S_IRUGO) |
|
| MODULE_PARM_DESC (spi_frm_align,"SPI frame alignment.") |
|
| module_param (spi_up_head_align, int, S_IRUGO) |
|
| MODULE_PARM_DESC (spi_up_head_align,"SPI uplink head alignment.") |
|
| module_param (spi_up_tail_align, int, S_IRUGO) |
|
| MODULE_PARM_DESC (spi_up_tail_align,"SPI uplink tail alignment.") |
|
| module_param (spi_down_head_align, int, S_IRUGO) |
|
| MODULE_PARM_DESC (spi_down_head_align,"SPI downlink head alignment.") |
|
| module_param (spi_down_tail_align, int, S_IRUGO) |
|
| MODULE_PARM_DESC (spi_down_tail_align,"SPI downlink tail alignment.") |
|
void | cfspi_dbg_state (struct cfspi *cfspi, int state) |
|
int | cfspi_xmitfrm (struct cfspi *cfspi, u8 *buf, size_t len) |
|
int | cfspi_xmitlen (struct cfspi *cfspi) |
|
int | cfspi_rxfrm (struct cfspi *cfspi, u8 *buf, size_t len) |
|
int | cfspi_spi_probe (struct platform_device *pdev) |
|
int | cfspi_spi_remove (struct platform_device *pdev) |
|
| module_init (cfspi_init_module) |
|
| module_exit (cfspi_exit_module) |
|
#define BYTE_HEX_FMT "%02hhX" |
#define LOW_WATER_MARK 100 |
#define PAD_POW2 |
( |
|
x, |
|
|
|
pow |
|
) |
| ((((x)&((pow)-1))==0) ? 0 : (((pow)-((x)&((pow)-1))))) |
#define SPI_MAX_PAYLOAD_SIZE 4096 |
module_exit |
( |
cfspi_exit_module |
| ) |
|
module_init |
( |
cfspi_init_module |
| ) |
|