GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include "pm_flash.h"
|
||||
|
||||
static xmedia_s32 emmc_read(struct flash_part_dev *part_dev, xmedia_u32 addr, xmedia_u32 size, xmedia_char *buf)
|
||||
{
|
||||
return XMEDIA_SUCCESS;
|
||||
}
|
||||
|
||||
static struct flash_opt emmc_opt = {
|
||||
.read = emmc_read,
|
||||
};
|
||||
|
||||
struct flash_opt *get_emmc_opt(void)
|
||||
{
|
||||
return &emmc_opt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user