#include <bitops.h>
#include <byteorder.h>
#include <debug.h>
#include <stdbool.h>
#include <string.h>
#include <util.h>
#include <sdmmc/sdmmc.h>
#include "protocol.h"

Go to the source code of this file.
Functions | |
| void | sdmmc_req_prep_transfer (struct sdmmc_slot *slot, struct sdmmc_request *req, uint32_t lba, uint32_t nr_blocks, bool write) |
| Prepare SD/MMC request for data transfer. | |
Definition in file request.c.
| void sdmmc_req_prep_transfer | ( | struct sdmmc_slot * | slot, | |
| struct sdmmc_request * | req, | |||
| uint32_t | lba, | |||
| uint32_t | nr_blocks, | |||
| bool | write | |||
| ) |
Prepare SD/MMC request for data transfer.
| slot | Slot this request is intended for | |
| req | Request | |
| lba | Logical Block Address | |
| nr_blocks | Number of block to transfer | |
| write | Set to true for write request and to false for read request |
Definition at line 51 of file request.c.
References sdmmc_card::block_size, sdmmc_request::block_size, sdmmc_request::blocks, sdmmc_slot::card, sdmmc_request::flags, sdmmc_card_block2addr(), sdmmc_req_prep_cmd(), SDMMC_REQ_STOP, SDMMC_REQ_WRITE, and set_bit().

1.5.8