/* The are the file operation function for user access to /dev/fram  */
static int fram_mmap(struct file *filp, struct vm_area_struct *vma)
/* The are the file operation function for user access to /dev/fram  */
static int fram_mmap(struct file *filp, struct vm_area_struct *vma)
{
	int ret;
	ret = remap_pfn_range(vma,
		vma->vm_start,
		virt_to_phys((void *)((unsigned long)FRAM_BASE)) >> PAGE_SHIFT,
		vma->vm_end-vma->vm_start,
		PAGE_SHARED);
	if (ret != 0)
		return -EAGAIN;
	return 0;
}