linux/drivers/misc/cardreader/rts5249.c

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

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

#include "rtsx_pcr.h"

static u8 rts5249_get_ic_version(struct rtsx_pcr *pcr)
{}

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

static void rtsx_base_fetch_vendor_settings(struct rtsx_pcr *pcr)
{}

static void rts5249_init_from_cfg(struct rtsx_pcr *pcr)
{}

static void rts52xa_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime)
{}

static void rts52xa_save_content_from_efuse(struct rtsx_pcr *pcr)
{}

static void rts52xa_save_content_to_autoload_space(struct rtsx_pcr *pcr)
{}

static int rts5249_extra_init_hw(struct rtsx_pcr *pcr)
{}

static int rts5249_optimize_phy(struct rtsx_pcr *pcr)
{}

static int rtsx_base_turn_on_led(struct rtsx_pcr *pcr)
{}

static int rtsx_base_turn_off_led(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 rtsx_base_card_power_on(struct rtsx_pcr *pcr, int card)
{}

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

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

static const struct pcr_ops rts5249_pcr_ops =;

/* 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 rts5249_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 rts5249_sd_pull_ctl_disable_tbl[] =;

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

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

void rts5249_init_params(struct rtsx_pcr *pcr)
{}

static int rts524a_write_phy(struct rtsx_pcr *pcr, u8 addr, u16 val)
{}

static int rts524a_read_phy(struct rtsx_pcr *pcr, u8 addr, u16 *val)
{}

static int rts524a_optimize_phy(struct rtsx_pcr *pcr)
{}

static int rts524a_extra_init_hw(struct rtsx_pcr *pcr)
{}

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

static const struct pcr_ops rts524a_pcr_ops =;

void rts524a_init_params(struct rtsx_pcr *pcr)
{}

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

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

static int rts525a_optimize_phy(struct rtsx_pcr *pcr)
{}

static int rts525a_extra_init_hw(struct rtsx_pcr *pcr)
{}

static const struct pcr_ops rts525a_pcr_ops =;

void rts525a_init_params(struct rtsx_pcr *pcr)
{}