pvr_init_params_t params
Definition 2ndmix.c:821
static struct @69 data[BARRIER_COUNT]
Definitions for a simple block device interface.
static uint8_t partition_type
Definition browse.c:41
Various common macros used throughout the codebase.
u_long crc(char *ptr, int nr) const
Definition crc.c:120
int sd_blockdev_for_device(kos_blockdev_t *rv)
Get a block device for the SD card.
int sd_blockdev_for_partition(int partition, kos_blockdev_t *rv, uint8_t *partition_type)
Get a block device for a given partition on the SD card.
int sd_init(void)
Initialize the SD card for use.
int sd_init_ex(const sd_init_params_t *params)
Initialize the SD card with extended parameters.
uint8_t sd_crc7(const uint8_t *data, int size, uint8_t crc)
Calculate a SD/MMC-style CRC over a block of data.
int sd_shutdown(void)
Shut down SD card support.
int sd_read_blocks(uint32_t block, size_t count, uint8_t *buf)
Read one or more blocks from the SD card.
uint64_t sd_get_size(void)
Retrieve the size of the SD card.
int sd_write_blocks(uint32_t block, size_t count, const uint8_t *buf)
Write one or more blocks to the SD card.
sd_interface_t
SD card interface type.
Definition sd.h:59
@ SD_IF_SCIF
Use SCIF interface.
Definition sd.h:60
@ SD_IF_SCI
Use SCI interface.
Definition sd.h:61
static uint8_t block[4096]
Definition mke2fs.c:45
A simple block device.
Definition blockdev.h:54
SD card initialization parameters.
Definition sd.h:65
sd_interface_t interface
Interface to use (SCIF or SCI)
Definition sd.h:66
bool check_crc
Enable CRC checking (true) or disable (false)
Definition sd.h:67