Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
spi.c File Reference
#include <linux/blkdev.h>
#include <linux/kthread.h>
#include <linux/sched.h>
#include "rtsx.h"
#include "rtsx_transport.h"
#include "rtsx_scsi.h"
#include "rtsx_card.h"
#include "spi.h"

Go to the source code of this file.

Functions

int spi_erase_eeprom_chip (struct rtsx_chip *chip)
 
int spi_erase_eeprom_byte (struct rtsx_chip *chip, u16 addr)
 
int spi_read_eeprom (struct rtsx_chip *chip, u16 addr, u8 *val)
 
int spi_write_eeprom (struct rtsx_chip *chip, u16 addr, u8 val)
 
int spi_get_status (struct scsi_cmnd *srb, struct rtsx_chip *chip)
 
int spi_set_parameter (struct scsi_cmnd *srb, struct rtsx_chip *chip)
 
int spi_read_flash_id (struct scsi_cmnd *srb, struct rtsx_chip *chip)
 
int spi_read_flash (struct scsi_cmnd *srb, struct rtsx_chip *chip)
 
int spi_write_flash (struct scsi_cmnd *srb, struct rtsx_chip *chip)
 
int spi_erase_flash (struct scsi_cmnd *srb, struct rtsx_chip *chip)
 
int spi_write_flash_status (struct scsi_cmnd *srb, struct rtsx_chip *chip)
 

Function Documentation

int spi_erase_eeprom_byte ( struct rtsx_chip chip,
u16  addr 
)

Definition at line 272 of file spi.c.

int spi_erase_eeprom_chip ( struct rtsx_chip chip)

Definition at line 242 of file spi.c.

int spi_erase_flash ( struct scsi_cmnd srb,
struct rtsx_chip chip 
)

Definition at line 730 of file spi.c.

int spi_get_status ( struct scsi_cmnd srb,
struct rtsx_chip chip 
)

Definition at line 375 of file spi.c.

int spi_read_eeprom ( struct rtsx_chip chip,
u16  addr,
u8 val 
)

Definition at line 305 of file spi.c.

int spi_read_flash ( struct scsi_cmnd srb,
struct rtsx_chip chip 
)

Definition at line 486 of file spi.c.

int spi_read_flash_id ( struct scsi_cmnd srb,
struct rtsx_chip chip 
)

Definition at line 406 of file spi.c.

int spi_set_parameter ( struct scsi_cmnd srb,
struct rtsx_chip chip 
)

Definition at line 386 of file spi.c.

int spi_write_eeprom ( struct rtsx_chip chip,
u16  addr,
u8  val 
)

Definition at line 341 of file spi.c.

int spi_write_flash ( struct scsi_cmnd srb,
struct rtsx_chip chip 
)

Definition at line 564 of file spi.c.

int spi_write_flash_status ( struct scsi_cmnd srb,
struct rtsx_chip chip 
)

Definition at line 772 of file spi.c.