linux-mips
[Top] [All Lists]

Usage of mmap command(in directFB)

To: linux-mips@linux-mips.org, uclinux-dev@uclinux.org, celinux-dev@tree.celinuxforum.org, linux-fbdev-users@lists.sourceforge.net
Subject: Usage of mmap command(in directFB)
From: kaka <share.kt@gmail.com>
Date: Sun, 25 Nov 2007 17:59:30 +0530
Cc: directfb-users@directfb.org, directfb-dev@directfb.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type; bh=JEiy+YF1SU11hb8V+AFo7uPH0pjIlltlFtGpWpN5+eE=; b=UCmwoIW2TpCFfP2IAWUhxIc1DgfErv8FA+FW0go9V1NGy0H+6j33e5LeVPfmq78Mo4+LHPz76+GWDO2AH43Ky2CYvdFmgE35QLzYMYq1djo4VAdG8HKq/Wnn2uKlzh+C9t5AF0jTMlImpC6z0nX9/7Kxun1tOu3q7CO2yqVA9Ks=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:mime-version:content-type; b=E96zLSvffVTkbWhRF3S9n0Y4BjCLGIBepfhUimdl1Vm30fP+i9489S/TJpm9MLpcnR1chpdT+CuCjAPdIC3/EV259jhKbbwAmkuDOzmUYKKYF+mk3HixjSmNEMOykMu4RwFOnWTx/BVbsJW8T9pRyTzZUBSETdhEBeKmS080GoY=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi All,
 
void *mmap(void *start, size_t length, int prot, int flags,           int
fd, off_t offset);
 
I am providing 1.6MB as length parameter in mmap command.
It is giving me error as Can't mmap region with error number EINVAL. I searched for the probable causes for EINVAL error number, and cheked it that i am satisfying all of them
 
on the other hand when i am providing 1.384MB as length parameter in mmap command.
It is successful.
This mmap command is being issued from User space(from the DIrectFB code in systems/fbdev.c)
 
The exact command which i am writing is
addr = mmap(NULL, dfb_fbdev->shared->fix.mmio_len, PROT_READ | PROT_WRITE, MAO_SHARED, dfb_fbdev->fd, 0);
 
Can anybody provide any clue on it?
I want to access the mmio regs at offset (0.9MB to 1.6MB offset).
Also in my system MIPS board(broadcom chip), the framebuffer driver contains support for MMIO length as 1.6MB.

--
Thanks & Regards,
kaka


--
Thanks & Regards,
kaka
<Prev in Thread] Current Thread [Next in Thread>
  • Usage of mmap command(in directFB), kaka <=