Exemplo n.º 1
0
Arquivo: mmc.c Projeto: UAVXP/A10
int mmc_write(int mmc_cont, unsigned char *src, unsigned long dst, int size)
{
	int ret;

//printf("mmc_write mmc star=0x%x (%d) size=0x%x\n", dst, (dst/MMCSD_SECTOR_SIZE), size);
	ret = omap_mmc_write_sect((unsigned int *)src, size,
		&cur_controller_data[mmc_cont], &cur_card_data[mmc_cont], (dst/MMCSD_SECTOR_SIZE));
	return ret;
}
Exemplo n.º 2
0
int mmc_write(int mmc_cont, unsigned char *src, unsigned long dst, int size)
{
	int ret = 1;

	if (mmc_blk_dev[mmc_cont].dev == -1) {
		printf("Write not permitted as Card on SLOT-%d"
					" not Initialized\n", mmc_cont);
	} else {
		ret = omap_mmc_write_sect((unsigned int *)src, size,
			&cur_controller_data[mmc_cont],
			&cur_card_data[mmc_cont], dst);
	}
	return ret;
}