linux/drivers/misc/cardreader/rts5260.c

// SPDX-License-Identifier: GPL-2.0-or-later
/* Driver for Realtek PCI-Express card reader
 *
 * Copyright(c) 2016-2017 Realtek Semiconductor Corp. All rights reserved.
 *
 * Author:
 *   Steven FENG <[email protected]>
 *   Rui FENG <[email protected]>
 *   Wei WANG <[email protected]>
 */

#include <linux/module.h>
#include <linux/delay.h>
#include <linux/rtsx_pci.h>

#include "rts5260.h"
#include "rtsx_pcr.h"

static u8 rts5260_get_ic_version(struct rtsx_pcr *pcr)
{}

static void rts5260_fill_driving(struct rtsx_pcr *pcr, u8 voltage)
{}

static void rtsx_base_fetch_vendor_settings(struct rtsx_pcr *pcr)
{}

static int rtsx_base_enable_auto_blink(struct rtsx_pcr *pcr)
{}

static int rtsx_base_disable_auto_blink(struct rtsx_pcr *pcr)
{}

static int rts5260_turn_on_led(struct rtsx_pcr *pcr)
{}

static int rts5260_turn_off_led(struct rtsx_pcr *pcr)
{}

/* SD Pull Control Enable:
 *     SD_DAT[3:0] ==> pull up
 *     SD_CD       ==> pull up
 *     SD_WP       ==> pull up
 *     SD_CMD      ==> pull up
 *     SD_CLK      ==> pull down
 */
static const u32 rts5260_sd_pull_ctl_enable_tbl[] =;

/* SD Pull Control Disable:
 *     SD_DAT[3:0] ==> pull down
 *     SD_CD       ==> pull up
 *     SD_WP       ==> pull down
 *     SD_CMD      ==> pull down
 *     SD_CLK      ==> pull down
 */
static const u32 rts5260_sd_pull_ctl_disable_tbl[] =;

/* MS Pull Control Enable:
 *     MS CD       ==> pull up
 *     others      ==> pull down
 */
static const u32 rts5260_ms_pull_ctl_enable_tbl[] =;

/* MS Pull Control Disable:
 *     MS CD       ==> pull up
 *     others      ==> pull down
 */
static const u32 rts5260_ms_pull_ctl_disable_tbl[] =;

static int sd_set_sample_push_timing_sd30(struct rtsx_pcr *pcr)
{}

static int rts5260_card_power_on(struct rtsx_pcr *pcr, int card)
{}

static int rts5260_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage)
{}

static void rts5260_stop_cmd(struct rtsx_pcr *pcr)
{}

static void rts5260_card_before_power_off(struct rtsx_pcr *pcr)
{}

static int rts5260_card_power_off(struct rtsx_pcr *pcr, int card)
{}

static void rts5260_init_ocp(struct rtsx_pcr *pcr)
{}

static void rts5260_enable_ocp(struct rtsx_pcr *pcr)
{}

static void rts5260_disable_ocp(struct rtsx_pcr *pcr)
{}


static int rts5260_get_ocpstat(struct rtsx_pcr *pcr, u8 *val)
{}

static int rts5260_get_ocpstat2(struct rtsx_pcr *pcr, u8 *val)
{}

static void rts5260_clear_ocpstat(struct rtsx_pcr *pcr)
{}

static void rts5260_process_ocp(struct rtsx_pcr *pcr)
{}

static int rts5260_init_hw(struct rtsx_pcr *pcr)
{}

static void rts5260_pwr_saving_setting(struct rtsx_pcr *pcr)
{}

static void rts5260_init_from_cfg(struct rtsx_pcr *pcr)
{}

static int rts5260_extra_init_hw(struct rtsx_pcr *pcr)
{}

static void rts5260_set_l1off_cfg_sub_d0(struct rtsx_pcr *pcr, int active)
{}

static const struct pcr_ops rts5260_pcr_ops =;

void rts5260_init_params(struct rtsx_pcr *pcr)
{}