![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <commonlib/sd_mmc_ctrlr.h>
Go to the source code of this file.
Data Structures | |
struct | sdhci_adma |
struct | sdhci_adma64 |
struct | sdhci_ctrlr |
Macros | |
#define | DRVR_CAP_1V8_VDD 0x00010000 |
#define | DRVR_CAP_32BIT_DMA_ADDR 0x00020000 |
#define | DRVR_CAP_BROKEN_R1B 0x00040000 |
#define | DRVR_CAP_NO_CD 0x00080000 |
#define | DRVR_CAP_NO_HISPD_BIT 0x00100000 |
#define | DRVR_CAP_NO_SIMULT_VDD_AND_POWER 0x00200000 |
#define | DRVR_CAP_REG32_RW 0x00400000 |
#define | DRVR_CAP_SPI 0x00800000 |
#define | DRVR_CAP_WAIT_SEND_CMD 0x01000000 |
Functions | |
int | add_sdhci (struct sdhci_ctrlr *sdhci_ctrlr) |
int | sdhci_controller_init (struct sdhci_ctrlr *sdhci_ctrlr, void *ioaddr) |
void | sdhci_update_pointers (struct sdhci_ctrlr *sdhci_ctrlr) |
void | sdhci_display_setup (struct sdhci_ctrlr *sdhci_ctrlr) |
struct sd_mmc_ctrlr * | new_pci_sdhci_controller (uint32_t dev) |
struct sd_mmc_ctrlr * | new_mem_sdhci_controller (void *ioaddr) |
int add_sdhci | ( | struct sdhci_ctrlr * | sdhci_ctrlr | ) |
Definition at line 755 of file sdhci.c.
References sd_mmc_ctrlr::b_max, sdhci_ctrlr::sd_mmc_ctrlr, sdhci_update(), and sdhci_update_pointers().
Referenced by sdhci_controller_init().
struct sd_mmc_ctrlr* new_mem_sdhci_controller | ( | void * | ioaddr | ) |
Definition at line 20 of file pci_sdhci.c.
References sdhci_ctrlr::ioaddr, NULL, sdhci_ctrlr::sd_mmc_ctrlr, sdhc_error, and sdhci_controller_init().
Referenced by new_pci_sdhci_controller().
struct sd_mmc_ctrlr* new_pci_sdhci_controller | ( | uint32_t | dev | ) |
Definition at line 40 of file pci_sdhci.c.
References addr, new_mem_sdhci_controller(), NULL, PCI_BASE_ADDRESS_0, pci_s_read_config32(), and sdhc_error.
Referenced by early_mmc_wake_hw().
int sdhci_controller_init | ( | struct sdhci_ctrlr * | sdhci_ctrlr, |
void * | ioaddr | ||
) |
Definition at line 13 of file pci_sdhci.c.
References add_sdhci(), sdhci_ctrlr::ioaddr, and memset().
Referenced by new_mem_sdhci_controller(), and storage_test().
void sdhci_display_setup | ( | struct sdhci_ctrlr * | sdhci_ctrlr | ) |
Definition at line 92 of file sdhci_display.c.
References sdhci_display_bus_width(), sdhci_display_clock(), and sdhci_display_voltage().
Referenced by storage_test().
void sdhci_update_pointers | ( | struct sdhci_ctrlr * | sdhci_ctrlr | ) |
Definition at line 744 of file sdhci.c.
References sd_mmc_ctrlr::is_tuning_complete, sdhci_ctrlr::sd_mmc_ctrlr, sdhci_is_tuning_complete(), sdhci_send_command(), sdhci_set_ios(), sdhci_tuning_start(), sd_mmc_ctrlr::send_cmd, sd_mmc_ctrlr::set_ios, and sd_mmc_ctrlr::tuning_start.
Referenced by add_sdhci(), and storage_test().