/* mmap support for full problem state area .  */
static int spufs_psmap_mmap(struct file *file, struct vm_area_struct *vma)
/* mmap support for full problem state area .  */
static int spufs_psmap_mmap(struct file *file, struct vm_area_struct *vma)
{
	if (!(vma->vm_flags & VM_SHARED))
		return -EINVAL;
	vma->vm_flags |= VM_IO | VM_PFNMAP;
	vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
	vma->vm_ops = &spufs_psmap_mmap_vmops;
	return 0;
}