Linux Kernel
3.7.1
|
#include <spi.h>
Data Fields | |
int | device_id |
unsigned int | size |
unsigned int | addr_len |
unsigned int | munge_address:1 |
u8 | erase_command |
unsigned int | erase_size |
unsigned int | block_size |
struct efx_spi_device - an Efx SPI (Serial Peripheral Interface) device : Controller's id for the device : Size (in bytes) : Number of address bytes in read/write commands : Flag whether addresses should be munged. Some devices with 9-bit addresses (e.g. AT25040A EEPROM) use bit 3 of the command byte as address bit A8, rather than having a two-byte address. If this flag is set, then commands should be munged in this way. : Erase command (or 0 if sector erase not needed). : Erase sector size (in bytes) Erase commands affect sectors with this size and alignment. This must be a power of two. : Write block size (in bytes). Write commands are limited to blocks with this size and alignment.