![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <boot_device.h>
#include <symbols.h>
#include <console/console.h>
#include <assert.h>
#include <commonlib/storage/sd_mmc.h>
#include <cbfs.h>
#include <soc/ti/am335x/mmc.h>
#include <soc/ti/am335x/header.h>
Go to the source code of this file.
Macros | |
#define | COREBOOT_IMAGE_OFFSET (128 * KiB) |
#define | SD_BLOCK_SIZE 512 |
Functions | |
static size_t | partial_block_read (uint8_t *dest, uint64_t block, uint32_t offset, uint32_t count) |
static ssize_t | sd_readat (const struct region_device *rdev, void *dest, size_t offset, size_t count) |
void | boot_device_init (void) |
const struct region_device * | boot_device_ro (void) |
Variables | |
static struct am335x_mmc_host | sd_host |
static struct storage_media | media |
static const struct region_device_ops | am335x_sd_ops |
struct omap_image_headers | headers |
static struct mmap_helper_region_device | sd_mdev |
static bool | init_done = false |
#define COREBOOT_IMAGE_OFFSET (128 * KiB) |
Definition at line 16 of file sd_media.c.
#define SD_BLOCK_SIZE 512 |
Definition at line 18 of file sd_media.c.
Definition at line 101 of file sd_media.c.
References am335x_mmc_init_storage(), init_done, media, MMCHS0_BASE, am335x_mmc_host::reg, am335x_mmc_host::sd_clock_hz, sd_host, am335x_mmc_host::sd_mmc_ctrlr, storage_display_setup(), and storage_setup_media().
const struct region_device* boot_device_ro | ( | void | ) |
Definition at line 115 of file sd_media.c.
References mmap_helper_region_device::rdev, and sd_mdev.
|
static |
Definition at line 23 of file sd_media.c.
References assert, BIOS_ERR, count, media, offset, printk, SD_BLOCK_SIZE, and storage_block_read().
|
static |
Definition at line 45 of file sd_media.c.
|
static |
Definition at line 45 of file sd_media.c.
|
extern |
Definition at line 10 of file header.c.
Referenced by tegra_i2c_request(), and tegra_i2c_send_recv().
Definition at line 99 of file sd_media.c.
Referenced by bios_mmap_init(), and boot_device_init().
|
static |
Definition at line 1 of file sd_media.c.
Referenced by boot_device_init(), display_capacity(), early_mmc_wake_hw(), mmc_bus_tuning(), mmc_change_freq(), mmc_complete_op_cond(), mmc_recalculate_clock(), mmc_select_hs(), mmc_select_hs200(), mmc_select_hs400(), mmc_send_op_cond(), mmc_send_op_cond_iter(), mmc_set_bus_width(), mmc_set_partition(), mmc_switch(), mmc_update_capacity(), mtk_emmc_early_init(), partial_block_read(), sd_change_freq(), sd_mmc_enter_standby(), sd_mmc_go_idle(), sd_mmc_send_status(), sd_recalculate_clock(), sd_send_if_cond(), sd_send_op_cond(), sd_set_bus_width(), sd_set_partition(), storage_block_erase(), storage_block_fill_write(), storage_block_read(), storage_block_setup(), storage_block_write(), storage_display_setup(), storage_get_current_partition(), storage_partition_name(), storage_read(), storage_set_partition(), storage_setup_media(), storage_startup(), storage_test(), and storage_write().
|
static |
Definition at line 1 of file sd_media.c.
Referenced by boot_device_init().
|
static |
Definition at line 45 of file sd_media.c.
Referenced by boot_device_ro().