Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: kaka <share.kt@gmail.com>
To: linux-mips@linux-mips.org, uclinux-dev@uclinux.org,
	celinux-dev@tree.celinuxforum.org,
	linux-fbdev-users@lists.sourceforge.net
Cc: directfb-users@directfb.org, directfb-dev@directfb.org
Subject: Usage of mmap command(in directFB)
Date: Sun, 25 Nov 2007 17:59:30 +0530	[thread overview]
Message-ID: <eea8a9c90711250429v3de6b33ra00fecb39e81a8a7@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 950 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


-- 
Thanks & Regards,
kaka

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

                 reply	other threads:[~2007-11-25 12:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=eea8a9c90711250429v3de6b33ra00fecb39e81a8a7@mail.gmail.com \
    --to=share.kt@gmail.com \
    --cc=celinux-dev@tree.celinuxforum.org \
    --cc=directfb-dev@directfb.org \
    --cc=directfb-users@directfb.org \
    --cc=linux-fbdev-users@lists.sourceforge.net \
    --cc=linux-mips@linux-mips.org \
    --cc=uclinux-dev@uclinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox