#include <spi.h>
Data Fields | |
| struct nvs_device | nvs |
| NVS device. | |
| struct spi_bus * | bus |
| SPI bus to which device is attached. | |
| unsigned int | slave |
| Slave number. | |
| unsigned int | command_len |
| Command length, in bits. | |
| unsigned int | address_len |
| Address length, in bits. | |
| unsigned int | munge_address: 1 |
| Address is munged. | |
This data structure represents a physical SPI device attached to an SPI bus.
Definition at line 86 of file spi.h.
struct nvs_device spi_device::nvs [read] |
NVS device.
Definition at line 88 of file spi.h.
Referenced by falcon_init_spi_device(), falcon_probe_nvram(), falcon_probe_spi(), ifec_pci_probe(), natsemi_init_eeprom(), natsemi_probe(), rtl818x_probe(), rtl_init_eeprom(), rtl_probe(), and threewire_detect_address_len().
struct spi_bus* spi_device::bus [read] |
SPI bus to which device is attached.
Definition at line 90 of file spi.h.
Referenced by falcon_init_spi_device(), ifec_init_eeprom(), natsemi_init_eeprom(), rtl818x_probe(), rtl_init_eeprom(), spi_read(), spi_wait(), spi_write(), threewire_read(), and threewire_write().
| unsigned int spi_device::slave |
| unsigned int spi_device::command_len |
| unsigned int spi_device::address_len |
Address length, in bits.
Definition at line 96 of file spi.h.
Referenced by falcon_spi_rw(), ifec_init_eeprom(), spi_bit_rw(), and threewire_detect_address_len().
| unsigned int spi_device::munge_address |
Address is 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.
Definition at line 104 of file spi.h.
Referenced by spi_read(), and spi_write().
1.5.7.1