coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
sdhci.h File Reference
Include dependency graph for sdhci.h:
This graph shows which files directly or indirectly include this file:

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_ctrlrnew_pci_sdhci_controller (uint32_t dev)
 
struct sd_mmc_ctrlrnew_mem_sdhci_controller (void *ioaddr)
 

Macro Definition Documentation

◆ DRVR_CAP_1V8_VDD

#define DRVR_CAP_1V8_VDD   0x00010000

Definition at line 11 of file sdhci.h.

◆ DRVR_CAP_32BIT_DMA_ADDR

#define DRVR_CAP_32BIT_DMA_ADDR   0x00020000

Definition at line 12 of file sdhci.h.

◆ DRVR_CAP_BROKEN_R1B

#define DRVR_CAP_BROKEN_R1B   0x00040000

Definition at line 13 of file sdhci.h.

◆ DRVR_CAP_NO_CD

#define DRVR_CAP_NO_CD   0x00080000

Definition at line 14 of file sdhci.h.

◆ DRVR_CAP_NO_HISPD_BIT

#define DRVR_CAP_NO_HISPD_BIT   0x00100000

Definition at line 15 of file sdhci.h.

◆ DRVR_CAP_NO_SIMULT_VDD_AND_POWER

#define DRVR_CAP_NO_SIMULT_VDD_AND_POWER   0x00200000

Definition at line 16 of file sdhci.h.

◆ DRVR_CAP_REG32_RW

#define DRVR_CAP_REG32_RW   0x00400000

Definition at line 17 of file sdhci.h.

◆ DRVR_CAP_SPI

#define DRVR_CAP_SPI   0x00800000

Definition at line 18 of file sdhci.h.

◆ DRVR_CAP_WAIT_SEND_CMD

#define DRVR_CAP_WAIT_SEND_CMD   0x01000000

Definition at line 19 of file sdhci.h.

Function Documentation

◆ add_sdhci()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ new_mem_sdhci_controller()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdhci_controller_init()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdhci_display_setup()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdhci_update_pointers()

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().

Here is the call graph for this function:
Here is the caller graph for this function: