linux/drivers/staging/rts5208/spi.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Driver for Realtek PCI-Express card reader
 *
 * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved.
 *
 * Author:
 *   Wei WANG ([email protected])
 *   Micky Ching ([email protected])
 */

#include <linux/blkdev.h>
#include <linux/kthread.h>
#include <linux/sched.h>

#include "rtsx.h"
#include "spi.h"

static inline void spi_set_err_code(struct rtsx_chip *chip, u8 err_code)
{}

static int spi_init(struct rtsx_chip *chip)
{}

static int spi_set_init_para(struct rtsx_chip *chip)
{}

static int sf_polling_status(struct rtsx_chip *chip, int msec)
{}

static int sf_enable_write(struct rtsx_chip *chip, u8 ins)
{}

static int sf_disable_write(struct rtsx_chip *chip, u8 ins)
{}

static void sf_program(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr,
		       u16 len)
{}

static int sf_erase(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr)
{}

static int spi_init_eeprom(struct rtsx_chip *chip)
{}

static int spi_eeprom_program_enable(struct rtsx_chip *chip)
{}

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)
{}