10 #include <sys/cdefs.h>
167 uint8 *partition_type);
int sd_shutdown(void)
Shut down SD card support.
A simple block device.
Definition: blockdev.h:46
int sd_init(void)
Initialize the SD card for use.
uint8 sd_crc7(const uint8 *data, int size, uint8 crc)
Calculate a SD/MMC-style CRC over a block of data.
unsigned long long uint64
64-bit unsigned integer
Definition: types.h:27
uint64 sd_get_size(void)
Retrieve the size of the SD card.
int sd_read_blocks(uint32 block, size_t count, uint8 *buf)
Read one or more blocks from the SD card.
Definitions for a simple block device interface.
unsigned long uint32
32-bit unsigned integer
Definition: types.h:28
unsigned char uint8
8-bit unsigned integer
Definition: types.h:30
int sd_write_blocks(uint32 block, size_t count, const uint8 *buf)
Write one or more blocks to the SD card.
int sd_blockdev_for_partition(int partition, kos_blockdev_t *rv, uint8 *partition_type)
Get a block device for a given partition on the SD card.