28 lines
493 B
C
28 lines
493 B
C
#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;
|
|
}
|
|
|