#include <linux/types.h>
#include <linux/list.h>
Include dependency graph for spi.h:

Go to the source code of this file.
Classes | |
| struct | spi_msg |
| struct | spi_ops |
| struct | spi_driver |
| A driver is capable of handling one or more physical devices present on SPI adapters. This information is used to inform the driver of adapter events. More... | |
| struct | spi_algorithm |
| struct | spi_cs |
| struct | spi_adapter |
| struct | spi_client |
| struct | spi_rdwr_ioctl_data |
Defines | |
| #define | SPI_M_RD 0x01 /**< Read mode flag */ |
| #define | SPI_M_WR 0x02 /**< Write mode flag */ |
| #define | SPI_M_NOADDR 0x04 |
| #define | SPI_CS 0x08 /**< CS active lecel ( default low ) */ |
| #define | SPI_MAJOR 228 /* This will change */ |
| #define | SPI_DF_NOTIFY 0x01 /* notify on bus (de/a)ttaches */ |
| #define | SPI_DF_DUMMY 0x02 /* do not connect any clients */ |
| #define | SPI_RDWR 0x6207 /**< IOCTL Combined R/W transfer (one stop only)*/ |
| #define | SPI_SETADDR 0x6206 /**< IOCTL Combined R/W transfer (one stop only)*/ |
| #define | SPI_FUNCS 0x6205 /**< IOCTL Get the adapter functionality */ |
Functions | |
| int | spi_add_adapter (struct spi_adapter *) |
| Make the adapter available for use by clients using name adap->name. The adap->adapters list is initialised by this function. | |
| int | spi_del_adapter (struct spi_adapter *) |
| Remove an adapter from the list of available SPI Bus adapters. | |
| int | spi_add_driver (struct spi_driver *) |
| int | spi_del_driver (struct spi_driver *) |
| int | spi_attach_client (struct spi_client *, const char *, const char *) |
| int | spi_detach_client (struct spi_client *) |
| int | spi_transfer (struct spi_adapter *, struct spi_msg msgs[], int) |
| int | spi_write (struct spi_client *, int, const char *, int) |
| int | spi_read (struct spi_client *, int, char *, int) |
| int | spi_adapter_id (struct spi_adapter *adap) |
| int | spi_command (struct spi_client *clnt, int cmd, void *arg) |
| int | spi_open (struct spi_client *clnt) |
| void | spi_close (struct spi_client *clnt) |
|
|
CS active lecel ( default low ) |
|
|
flags for the driver struct: |
|
|
IOCTL Get the adapter functionality |
|
|
Read mode flag |
|
|
Write mode flag |
|
|
IOCTL Combined R/W transfer (one stop only) |
|
|
IOCTL Combined R/W transfer (one stop only) |
|
|
spi_adapter_id This call returns a unique low identifier for each registered adapter
|
|
|
Make the adapter available for use by clients using name adap->name. The adap->adapters list is initialised by this function. spi_add_adapter - register a new SPI bus adapter
|
|
|
spi_add_driver - register a new SPI device driver
Returns 0; |
|
||||||||||||||||
|
spi_attach_client - attach a client to an adapter and driver
Returns 0 on success, or negative error code. |
Here is the call graph for this function:

|
||||||||||||||||
|
spi_command - send a command to a SPI device driver : registered client structure : device driver command
Returns negative error code on failure. |
|
|
Remove an adapter from the list of available SPI Bus adapters. spi_del_adapter - unregister a SPI bus adapter
|
|
|
spi_del_driver - unregister a SPI device driver
Returns 0; |
|
|
spi_detach_client - detach a client from an adapter and driver
|
Here is the call graph for this function:

|
||||||||||||||||||||
|
spi_read - receive data from a device on an SPI bus
Returns the number of bytes transferred, or negative error code. |
Here is the call graph for this function:

|
||||||||||||||||
|
spi_transfer - transfer information on an SPI bus
Returns number of messages successfully transferred, otherwise negative error code. |
|
||||||||||||||||||||
|
spi_write - send data to a device on an SPI bus
|
Here is the call graph for this function:

1.3.6