Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Problem in the usage of mmap command(in directFB)
@ 2007-11-29  5:48 kaka
  2007-11-30  1:51 ` Kaz Kylheku
  0 siblings, 1 reply; 4+ messages in thread
From: kaka @ 2007-11-29  5:48 UTC (permalink / raw)
  To: linux-mips, uclinux-dev, celinux-dev, linux-fbdev-users
  Cc: directfb-users, directfb-dev

[-- Attachment #1: Type: text/plain, Size: 974 bytes --]

>
> 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
>

[-- Attachment #2: Type: text/html, Size: 1382 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-30 14:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-29  5:48 Problem in the usage of mmap command(in directFB) kaka
2007-11-30  1:51 ` Kaz Kylheku
2007-11-30  1:51   ` Kaz Kylheku
2007-11-30 14:11   ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox