Re: whats wrong with my mmap code?

2007-09-05 Thread Frank Thieme
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, >

Re: whats wrong with my mmap code?

2007-09-03 Thread srinivas bakki
>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

whats wrong with my mmap code?

2007-08-31 Thread Frank Thieme
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