#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/version.h>
#include <linux/smp_lock.h>
#include <linux/init.h>
#include <asm/uaccess.h>
#include <linux/spi.h>
Include dependency graph for spi-dev.c:

Defines | |
| #define | DEBUG |
| #define | SPI_MAX_MSG_SIZE 8192 |
| #define | SPI_MAX_MSGS 42 |
| #define | SPI_ADAP_MAX 4 |
| #define | SPIDEV_ADAPS_MAX SPI_ADAP_MAX |
Functions | |
| ssize_t | spidev_read (struct file *file, char *buf, size_t count, loff_t *offset) |
| ssize_t | spidev_write (struct file *file, const char *buf, size_t count, loff_t *offset) |
| int | spidev_open (struct inode *inode, struct file *file) |
| int | spidev_release (struct inode *inode, struct file *file) |
| int | spidev_attach_adapter (struct spi_adapter *adap) |
| notify that new adapter has been attached. Build new minor device entry for this new adapter | |
| int | spidev_detach_client (struct spi_client *client) |
| int | spidev_command (struct spi_client *client, unsigned int cmd, void *arg) |
| int | spidev_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) |
| int __init | spi_dev_init (void) |
| void | spidev_cleanup (void) |
| MODULE_AUTHOR ("Kate Alhola< kate(at) katix.org > Jamey Hicks< jamey.hicks @compaq.com > Frodo Looijaard< frodol @dds.nl > and Simon G.Vogl< simon @tk.uni-linz.ac.at >") | |
| MODULE_DESCRIPTION ("SPI/dev entries driver") | |
| MODULE_LICENSE ("GPL") | |
| module_init (spi_dev_init) | |
| module_exit (spidev_cleanup) | |
Variables | |
| file_operations | spidev_fops |
| spi_adapter * | spidev_adaps [SPIDEV_ADAPS_MAX] |
| spi_driver | spidev_driver |
| spidev_driver struct to register us as a spi driver to spi-core | |
| spi_client | spidev_client_template |
| int | spidev_initialized |
| EXPORT_NO_SYMBOLS | |
|
|
spi_dev_init(void) module init function |
Here is the call graph for this function:

|
|
notify that new adapter has been attached. Build new minor device entry for this new adapter spidev_attach_adapter - notify that new adapter has been attached
|
Here is the call graph for this function:

|
||||||||||||||||||||
|
spidev_ioctl - read() hook for kernel
|
Here is the call graph for this function:

|
||||||||||||
|
spidev_open - open() hook for kernel
|
|
||||||||||||||||||||
|
spidev_read - read() hook for kernel
|
Here is the call graph for this function:

|
||||||||||||
|
spidev_release - close() hook for kernel
|
|
||||||||||||||||||||
|
spidev_write - write() hook for kernel
|
Here is the call graph for this function:

|
|
Initial value: {
name: "SPI /dev entry",
adapter: NULL,
driver: &spidev_driver,
addr: 0,
}
|
|
|
Initial value: {
name: "spi-dev dummy driver",
flags: SPI_DF_DUMMY,
attach_adapter: spidev_attach_adapter,
detach_client: spidev_detach_client,
command: spidev_command,
inc_use: NULL,
dec_use: NULL,
}
|
|
|
Initial value: {
owner: THIS_MODULE,
llseek: no_llseek,
read: spidev_read,
write: spidev_write,
ioctl: spidev_ioctl,
open: spidev_open,
release: spidev_release,
}
|
1.3.6