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.
Macros | |
#define | DMA_MINALIGN (64) |
#define | ROUND(a, b) (((a) + (b) - 1) & ~((b) - 1)) |
#define | ALLOC_CACHE_ALIGN_BUFFER(type, name, size) |
#define | dcache_invalidate_by_mva(addr, len) |
#define | dcache_clean_invalidate_by_mva(addr, len) |
Functions | |
int | storage_startup (struct storage_media *media) |
int | storage_block_setup (struct storage_media *media, uint64_t start, uint64_t count, int is_read) |
int storage_block_setup | ( | struct storage_media * | media, |
uint64_t | start, | ||
uint64_t | count, | ||
int | is_read | ||
) |
Definition at line 250 of file storage.c.
References BUS_TIMING_MMC_DDR52, BUS_TIMING_MMC_HS400, BUS_TIMING_MMC_HS400ES, BUS_TIMING_UHS_DDR50, storage_media::capacity, count, storage_media::ctrlr, EXT_CSD_PART_ACCESS_MASK, media, storage_media::partition_config, storage_media::read_bl_len, sd_mmc_error, sd_mmc_set_blocklen(), sd_mmc_ctrlr::timing, and storage_media::write_bl_len.
Referenced by storage_block_erase(), storage_block_fill_write(), storage_block_read(), and storage_block_write().
int storage_startup | ( | struct storage_media * | media | ) |
Definition at line 121 of file storage.c.
References storage_media::capacity, sd_mmc_ctrlr::caps, storage_media::caps, CARD_RSP_R1, mmc_command::cmdarg, mmc_command::cmdidx, CONFIG, storage_media::csd, storage_media::ctrlr, storage_media::erase_blocks, mmc_command::flags, storage_media::high_capacity, IS_SD, media, mmc_change_freq(), MMC_CMD_SELECT_CARD, mmc_set_bus_width(), mmc_update_capacity(), NULL, storage_media::rca, storage_media::read_bl_len, mmc_command::resp_type, sd_change_freq(), sd_mmc_extract_uint32_bits(), sd_set_bus_width(), sd_mmc_ctrlr::send_cmd, storage_display_setup(), and storage_media::write_bl_len.
Referenced by storage_setup_media().