Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
efx_spi_device Struct Reference

#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
 

Detailed Description

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.

Definition at line 54 of file spi.h.

Field Documentation

unsigned int addr_len

Definition at line 57 of file spi.h.

unsigned int block_size

Definition at line 61 of file spi.h.

int device_id

Definition at line 55 of file spi.h.

u8 erase_command

Definition at line 59 of file spi.h.

unsigned int erase_size

Definition at line 60 of file spi.h.

unsigned int munge_address

Definition at line 58 of file spi.h.

unsigned int size

Definition at line 56 of file spi.h.


The documentation for this struct was generated from the following file: