blob: 911c010050cb4424d44243efdd963d9574f6b02a [file] [log] [blame]
xf.lied996a22025-03-13 23:49:05 -07001/*******************************************************************************
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
19int 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*/
xf.li6b423c72025-03-14 00:07:42 -070026int mmc_bwrite(u64 start_addr, u32 data_size, void *src_buf);
xf.lied996a22025-03-13 23:49:05 -070027
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
xf.li6b423c72025-03-14 00:07:42 -070035int mmc_bread(u64 start_addr, u32 data_size, void *dst);
xf.lied996a22025-03-13 23:49:05 -070036
37#endif /* LINUX_MMC_MMC_FUNC_H */