[Top] [All Lists]

Problem in the usage of mmap command(in directFB)

Subject: Problem in the usage of mmap command(in directFB)
From: kaka <>
Date: Thu, 29 Nov 2007 11:18:43 +0530
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type; bh=tIpK1S7RUrvimCqJjunIXmLgtNnqwdlZruVg9h1lvew=; b=cfFvrJTDutxYu/xfhBeG107yN5SLUidd9kK+uqt/k8+cpS/ypciO3PwctNX2l6MnDUr6+vYjtVJ9M+GouWNm+bZlt+Yu8Gv8BG5QbQkJNntzJ6HAW+ADVpTMKm+caiXCElaO/09dzTjVC8XZrRPRPfVyzB5fh4XMZ5DmOrPURUg=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=received:message-id:date:from:to:subject:cc:mime-version:content-type; b=EgQcLRlH6Q0Cf5Pylmokd9g8CjcaQD5Nsju0WBB+9YGVjjLGR8GmugF4RgdPnjcUTqRksmq3rKgGkvoeh+FXTPkXU60gQOfvNIVGfJb5h0Jz/OdfXsMkrcQcMegXdOEPghU8pmBP2lufdXGKKLQ3jtUNFtnSsaD1c5TJ4wyGJ64=
Original-recipient: rfc822;
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,
<Prev in Thread] Current Thread [Next in Thread>