xf.li | ed996a2 | 2025-03-13 23:49:05 -0700 | [diff] [blame^] | 1 | /******************************************************************************* |
| 2 | * °æÈ¨ËùÓÐ (C)2014, ÉîÛÚÊÐÖÐÐËͨѶ΢µç×Ó |
| 3 | * |
| 4 | * ÎļþÃû³Æ£º emmc_ramdump.c |
| 5 | * Îļþ±êʶ£º |
| 6 | * ÄÚÈÝÕªÒª£º |
| 7 | * ÆäËü˵Ã÷£º |
| 8 | * µ±Ç°°æ±¾£º 1.0 |
| 9 | * ×÷¡¡¡¡Õߣº |
| 10 | * Íê³ÉÈÕÆÚ£º |
| 11 | *******************************************************************************/ |
| 12 | |
| 13 | |
| 14 | #ifndef LINUX_MMC_MMC_FUNC_H |
| 15 | #define LINUX_MMC_MMC_FUNC_H |
| 16 | |
| 17 | #include <linux/types.h> |
| 18 | |
| 19 | int mmc_ramdump_init(void); |
| 20 | /* |
| 21 | * start_addr: the address is the emmc address you want to write,and it size is |
| 22 | * an integer multiple of 512. defined by byte |
| 23 | * data_size: the size of data you want to write .defined by byte |
| 24 | * src_buf: data buffer where log or file stored; |
| 25 | */ |
| 26 | int mmc_bwrite(u32 start_addr, u32 data_size, void *src_buf); |
| 27 | |
| 28 | /* |
| 29 | * start_addr: the address is the emmc address you want to write,and it size is |
| 30 | * an integer multiple of 512. defined by byte |
| 31 | * data_size: the size of data you want to write .defined by byte |
| 32 | * src_buf: data buffer where log or file will store; |
| 33 | */ |
| 34 | |
| 35 | int mmc_bread(u32 start_addr, u32 data_size, void *dst); |
| 36 | |
| 37 | #endif /* LINUX_MMC_MMC_FUNC_H */ |