rtsx_softc
rtsx_write_phy(struct rtsx_softc *sc, uint8_t addr, uint16_t val)
rtsx_read_cfg(struct rtsx_softc *sc, uint8_t func, uint16_t addr, uint32_t *val)
rtsx_write_cfg(struct rtsx_softc *sc, uint8_t func, uint16_t addr,
rtsx_save_regs(struct rtsx_softc *sc)
rtsx_restore_regs(struct rtsx_softc *sc)
static int rtsx_init(struct rtsx_softc *, int);
rtsx_hostcmd_send(struct rtsx_softc *sc, int ncmd)
static void rtsx_soft_reset(struct rtsx_softc *);
static int rtsx_bus_power_off(struct rtsx_softc *);
rtsx_read_ppbuf(struct rtsx_softc *sc, struct sdmmc_command *cmd,
static int rtsx_bus_power_on(struct rtsx_softc *);
static int rtsx_set_bus_width(struct rtsx_softc *, int);
static int rtsx_stop_sd_clock(struct rtsx_softc *);
static int rtsx_switch_sd_clock(struct rtsx_softc *, uint8_t, int, int);
static int rtsx_wait_intr(struct rtsx_softc *, int, int);
rtsx_write_ppbuf(struct rtsx_softc *sc, struct sdmmc_command *cmd,
static int rtsx_read(struct rtsx_softc *, uint16_t, uint8_t *);
static int rtsx_write(struct rtsx_softc *, uint16_t, uint8_t, uint8_t);
static int rtsx_read_phy(struct rtsx_softc *, uint8_t, uint16_t *);
rtsx_exec_short_xfer(struct rtsx_softc *sc, struct sdmmc_command *cmd,
static int rtsx_write_phy(struct rtsx_softc *, uint8_t, uint16_t);
static int rtsx_read_cfg(struct rtsx_softc *, uint8_t, uint16_t,
static int rtsx_write_cfg(struct rtsx_softc *, uint8_t, uint16_t, uint32_t,
rtsx_xfer(struct rtsx_softc *sc, struct sdmmc_command *cmd, uint32_t *cmdbuf)
static int rtsx_hostcmd_send(struct rtsx_softc *, int);
static int rtsx_read_ppbuf(struct rtsx_softc *, struct sdmmc_command *,
static int rtsx_write_ppbuf(struct rtsx_softc *, struct sdmmc_command *,
static int rtsx_exec_short_xfer(struct rtsx_softc *,
static int rtsx_xfer(struct rtsx_softc *, struct sdmmc_command *,
struct rtsx_softc *sc = sch;
static void rtsx_card_insert(struct rtsx_softc *);
static void rtsx_card_eject(struct rtsx_softc *);
static int rtsx_led_enable(struct rtsx_softc *);
static int rtsx_led_disable(struct rtsx_softc *);
static void rtsx_save_regs(struct rtsx_softc *);
static void rtsx_restore_regs(struct rtsx_softc *);
rtsx_soft_reset(struct rtsx_softc *sc)
rtsx_wait_intr(struct rtsx_softc *sc, int mask, int timo)
rtsx_card_insert(struct rtsx_softc *sc)
rtsx_card_eject(struct rtsx_softc *sc)
struct rtsx_softc *sc = arg;
rtsx_attach(struct rtsx_softc *sc, bus_space_tag_t iot,
rtsx_detach(struct rtsx_softc *sc, int flags)
struct rtsx_softc *sc = device_private(dev);
struct rtsx_softc *sc = device_private(dev);
struct rtsx_softc *sc = device_private(dev);
rtsx_init(struct rtsx_softc *sc, int attaching)
rtsx_led_enable(struct rtsx_softc *sc)
rtsx_led_disable(struct rtsx_softc *sc)
struct rtsx_softc *sc = sch;
struct rtsx_softc *sc = sch;
rtsx_bus_power_off(struct rtsx_softc *sc)
rtsx_bus_power_on(struct rtsx_softc *sc)
rtsx_set_bus_width(struct rtsx_softc *sc, int width)
rtsx_stop_sd_clock(struct rtsx_softc *sc)
rtsx_switch_sd_clock(struct rtsx_softc *sc, uint8_t n, int div, int mcu)
struct rtsx_softc *sc = sch;
struct rtsx_softc *sc = sch;
struct rtsx_softc *sc = sch;
rtsx_read(struct rtsx_softc *sc, uint16_t addr, uint8_t *val)
rtsx_write(struct rtsx_softc *sc, uint16_t addr, uint8_t mask, uint8_t val)
rtsx_read_phy(struct rtsx_softc *sc, uint8_t addr, uint16_t *val)
int rtsx_attach(struct rtsx_softc *, bus_space_tag_t,
int rtsx_detach(struct rtsx_softc *, int);
struct rtsx_softc sc;