blob: b2636ab35b1cde72d21bea6503cd70ea098385e7 [file] [log] [blame]
/*******************************************************************************
* °æÈ¨ËùÓÐ (C)2014, ÉîÛÚÊÐÖÐÐËͨѶ΢µç×Ó
*
* ÎļþÃû³Æ£º emmc_ramdump.c
* Îļþ±êʶ£º
* ÄÚÈÝÕªÒª£º
* ÆäËü˵Ã÷£º
* µ±Ç°°æ±¾£º 1.0
* ×÷¡¡¡¡Õߣº
* Íê³ÉÈÕÆÚ£º
*******************************************************************************/
#ifndef LINUX_MMC_MMC_FUNC_H
#define LINUX_MMC_MMC_FUNC_H
#include <linux/types.h>
int mmc_ramdump_init(void);
/*
* start_addr: the address is the emmc address you want to write,and it size is
* an integer multiple of 512. defined by byte
* data_size: the size of data you want to write .defined by byte
* src_buf: data buffer where log or file stored;
*/
int mmc_bwrite(u32 start_addr, u32 data_size, void *src_buf);
/*
* start_addr: the address is the emmc address you want to write,and it size is
* an integer multiple of 512. defined by byte
* data_size: the size of data you want to write .defined by byte
* src_buf: data buffer where log or file will store;
*/
int mmc_bread(u32 start_addr, u32 data_size, void *dst);
#endif /* LINUX_MMC_MMC_FUNC_H */