![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Functions | |
static void | sdhci_writel (struct sdhci_ctrlr *sdhci_ctrlr, u32 val, int reg) |
static void | sdhci_writew (struct sdhci_ctrlr *sdhci_ctrlr, u16 val, int reg) |
static void | sdhci_writeb (struct sdhci_ctrlr *sdhci_ctrlr, u8 val, int reg) |
static u32 | sdhci_readl (struct sdhci_ctrlr *sdhci_ctrlr, int reg) |
static u16 | sdhci_readw (struct sdhci_ctrlr *sdhci_ctrlr, int reg) |
static u8 | sdhci_readb (struct sdhci_ctrlr *sdhci_ctrlr, int reg) |
void | sdhci_reset (struct sdhci_ctrlr *sdhci_ctrlr, u8 mask) |
void | sdhci_cmd_done (struct sdhci_ctrlr *sdhci_ctrlr, struct mmc_command *cmd) |
int | sdhci_setup_adma (struct sdhci_ctrlr *sdhci_ctrlr, struct mmc_data *data) |
int | sdhci_complete_adma (struct sdhci_ctrlr *sdhci_ctrlr, struct mmc_command *cmd) |
#define SDHCI_INT_CMD_MASK |
#define SDHCI_INT_DATA_MASK |
void sdhci_cmd_done | ( | struct sdhci_ctrlr * | sdhci_ctrlr, |
struct mmc_command * | cmd | ||
) |
Definition at line 46 of file sdhci.c.
References CARD_RSP_136, mmc_command::resp_type, mmc_command::response, sdhc_log_response(), sdhc_trace, sdhci_readb(), sdhci_readl(), and SDHCI_RESPONSE.
Referenced by sdhci_complete_adma(), and sdhci_send_command_bounced().
int sdhci_complete_adma | ( | struct sdhci_ctrlr * | sdhci_ctrlr, |
struct mmc_command * | cmd | ||
) |
Definition at line 132 of file sdhci_adma.c.
References CARD_COMM_ERR, CARD_TIMEOUT, mask, retry, sdhc_error, SDHCI_ADMA_ERROR, sdhci_cmd_done(), SDHCI_INT_ADMA_ERROR, SDHCI_INT_DATA_END, SDHCI_INT_ERROR, SDHCI_INT_RESPONSE, SDHCI_INT_STATUS, SDHCI_INT_TIMEOUT, sdhci_readl(), sdhci_reset(), SDHCI_RESET_CMD, SDHCI_RESET_DATA, sdhci_writel(), and udelay().
Referenced by sdhci_send_command_bounced().
|
inlinestatic |
Definition at line 255 of file sdhci.h.
References sdhci_ctrlr::ioaddr, and read8().
Referenced by sdhci_cmd_done(), sdhci_display_bus_width(), sdhci_display_voltage(), sdhci_led_control(), sdhci_reset(), sdhci_set_ios(), and sdhci_set_power().
|
inlinestatic |
Definition at line 245 of file sdhci.h.
References sdhci_ctrlr::ioaddr, and read32().
Referenced by sdhci_cmd_done(), sdhci_complete_adma(), sdhci_init(), sdhci_pre_init(), sdhci_send_command_bounced(), sdhci_transfer_data(), and sdhci_update().
|
inlinestatic |
Definition at line 250 of file sdhci.h.
References sdhci_ctrlr::ioaddr, and read16().
Referenced by sdhci_display_bus_width(), sdhci_display_clock(), sdhci_is_tuning_complete(), sdhci_pre_init(), sdhci_set_clock(), sdhci_set_uhs_signaling(), and sdhci_tuning_start().
void sdhci_reset | ( | struct sdhci_ctrlr * | sdhci_ctrlr, |
u8 | mask | ||
) |
Definition at line 29 of file sdhci.c.
References mask, sdhc_error, sdhci_readb(), SDHCI_SOFTWARE_RESET, sdhci_writeb(), stopwatch_expired(), stopwatch_init_msecs_expire(), and udelay().
Referenced by sdhci_complete_adma(), sdhci_pre_init(), and sdhci_send_command_bounced().
int sdhci_setup_adma | ( | struct sdhci_ctrlr * | sdhci_ctrlr, |
struct mmc_data * | data | ||
) |
Definition at line 69 of file sdhci_adma.c.
References sdhci_adma::addr, sdhci_adma64::addr, sdhci_adma64::addr_hi, sdhci_ctrlr::adma64_descs, sdhci_ctrlr::adma_descs, sdhci_adma::attributes, sdhci_adma64::attributes, mmc_data::blocks, mmc_data::blocksize, sd_mmc_ctrlr::caps, mmc_data::dest, DRVR_CAP_DMA_64BIT, sdhci_adma::length, sdhci_adma64::length, sdhci_ctrlr::sd_mmc_ctrlr, sdhc_error, SDHCI_ACT_TRAN, SDHCI_ADMA_ADDRESS, SDHCI_ADMA_END, SDHCI_ADMA_VALID, sdhci_alloc_adma64_descs(), sdhci_alloc_adma_descs(), SDHCI_MAX_PER_DESCRIPTOR, and sdhci_writel().
Referenced by sdhci_send_command_bounced().
|
inlinestatic |
Definition at line 240 of file sdhci.h.
References sdhci_ctrlr::ioaddr, val, and write8().
Referenced by sdhci_init(), sdhci_led_control(), sdhci_reset(), sdhci_set_ios(), and sdhci_set_power().
|
inlinestatic |
Definition at line 228 of file sdhci.h.
References sdhci_ctrlr::ioaddr, val, and write32().
Referenced by sdhci_complete_adma(), sdhci_init(), sdhci_send_command_bounced(), sdhci_setup_adma(), and sdhci_transfer_data().
|
inlinestatic |
Definition at line 234 of file sdhci.h.
References sdhci_ctrlr::ioaddr, val, and write16().
Referenced by sdhci_send_command_bounced(), sdhci_set_clock(), sdhci_set_uhs_signaling(), and sdhci_tuning_start().