Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
spidev.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/ioctl.h>
#include <linux/fs.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/list.h>
#include <linux/errno.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/compat.h>
#include <linux/spi/spi.h>
#include <linux/spi/spidev.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Data Structures

struct  spidev_data
 

Macros

#define SPIDEV_MAJOR   153 /* assigned */
 
#define N_SPI_MINORS   32 /* ... up to 256 */
 
#define SPI_MODE_MASK
 
#define spidev_compat_ioctl   NULL
 

Functions

 module_param (bufsiz, uint, S_IRUGO)
 
 MODULE_PARM_DESC (bufsiz,"data bytes in biggest supported SPI message")
 
 module_init (spidev_init)
 
 module_exit (spidev_exit)
 
 MODULE_AUTHOR ("Andrea Paterniani, <[email protected]>")
 
 MODULE_DESCRIPTION ("User mode SPI device interface")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("spi:spidev")
 

Macro Definition Documentation

#define N_SPI_MINORS   32 /* ... up to 256 */

Definition at line 55 of file spidev.c.

#define SPI_MODE_MASK
Value:

Definition at line 72 of file spidev.c.

#define spidev_compat_ioctl   NULL

Definition at line 482 of file spidev.c.

#define SPIDEV_MAJOR   153 /* assigned */

Definition at line 54 of file spidev.c.

Function Documentation

MODULE_ALIAS ( "spi:spidev"  )
MODULE_AUTHOR ( "Andrea  Paterniani,
< a.paterniani @swapp-eng.it >"   
)
MODULE_DESCRIPTION ( "User mode SPI device interface )
module_exit ( spidev_exit  )
module_init ( spidev_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( bufsiz  ,
uint  ,
S_IRUGO   
)
MODULE_PARM_DESC ( bufsiz  ,
"data bytes in biggest supported SPI message  
)