public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: "Richard B. Johnson" <linux-os@analogic.com>
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: Screen regen buffer at 0x00b8000
Date: Fri, 20 May 2005 16:14:35 +0200	[thread overview]
Message-ID: <20050520141434.GZ2417@lug-owl.de> (raw)
In-Reply-To: <Pine.LNX.4.61.0505200944060.5921@chaos.analogic.com>

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

On Fri, 2005-05-20 09:48:35 -0400, Richard B. Johnson <linux-os@analogic.com> wrote:
>     len = getpagesize();
>     if((fd = open("/dev/mem", O_RDWR)) == FAIL)
>         ERRORS("open");
>     if((sp = mmap((void *)SCREEN, len, PROT, TYPE, fd, SCREEN))==MAP_FAILED)
>         ERRORS("mmap");

Maybe you'd better not fiddle with physical memory, but use the device
abstraction that's ment to offer that interface? That is, use a
framebuffer driver and open /dev/fb* .

MfG, JBG

-- 
Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-05-20 14:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-20 13:48 Screen regen buffer at 0x00b8000 Richard B. Johnson
2005-05-20 14:14 ` Jan-Benedict Glaw [this message]
2005-05-20 14:43   ` Marco Rogantini
2005-05-20 15:24     ` Richard B. Johnson
2005-05-20 16:34       ` Marco Rogantini
2005-05-20 15:31   ` Richard B. Johnson
2005-05-20 19:26     ` Geert Uytterhoeven
2005-05-20 19:45       ` Valdis.Kletnieks
2005-05-20 19:59         ` Richard B. Johnson
2005-05-20 20:03 ` Linus Torvalds
2005-05-20 20:17   ` Richard B. Johnson
2005-05-20 21:21     ` Jon Smirl
2005-05-20 21:27       ` Richard B. Johnson
2005-05-20 23:39       ` James Simmons
2005-05-23 18:28     ` Gábor Lénárt
2005-05-23 18:56       ` Richard B. Johnson

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=20050520141434.GZ2417@lug-owl.de \
    --to=jbglaw@lug-owl.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-os@analogic.com \
    /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