On Tuesday 04 September 2007 08:18, srinivas bakki wrote:
> >qcard->memaccess = ioremap(qcard->memstart, qcard->memlen);
>
>unsigned long physical = (unsigned long) qcard->memaccess + off;
>
>
>
>if (remap_pfn_range(vma, vma->vm_start, phys_to_pfn(physical), vsize,
>
>qcard->memaccess = ioremap(qcard->memstart, qcard->memlen);
unsigned long physical = (unsigned long) qcard->memaccess + off;
if (remap_pfn_range(vma, vma->vm_start, phys_to_pfn(physical), vsize,
vma->vm_page_prot))
return -EAGAIN;
qcard->memaccess is not
Hi,
I'm writing a kernel module for a pci card. This card has some memory which
should be accessed directly from user space. So I have two ways to access
this memory:
1st: via ioctl which sends the data to the kernel modul, which is written to
the card then:
iowrite32(args.bValue3, qcard->mem