Skip navigation.
Home
The QNX Community Portal

View topic - Direct access to VGA memory

Direct access to VGA memory

Read-only archive of qnx.porting (Discuss migrating applications from QNX4, VxWorks, PSOS, or Linux to QNX Neutrino) at inn.qnx.com

Direct access to VGA memory

Postby davea » Fri Nov 09, 2007 5:45 pm

We are looking at upgrading our app to run on QNX6, but want to continue
doing direct access to VGA memory, and depend on console signal to
indicate switch away from current console, to stop/start/refresh
display. Has QNX started supporting the console switch signal (or maybe
frame buffers).
davea
Active Member
 
Posts: 16
Joined: Fri Jul 25, 2003 8:25 pm

Re: Direct access to VGA memory

Postby Armin » Sat Nov 10, 2007 11:17 am

Dave Allamby wrote:
We are looking at upgrading our app to run on QNX6, but want to continue
doing direct access to VGA memory, and depend on console signal to
indicate switch away from current console, to stop/start/refresh
display. Has QNX started supporting the console switch signal (or maybe
frame buffers).

Please have a look to http://www.libsdl.org

--Armin

http://www.the-better-idea.com/DviewSDL.htm
Armin
 

Re: Direct access to VGA memory

Postby davea » Sun Nov 11, 2007 4:27 am

Thanks Armin, will take a look

Dave

Armin wrote:

Dave Allamby wrote:

We are looking at upgrading our app to run on QNX6, but want to
continue doing direct access to VGA memory, and depend on console
signal to indicate switch away from current console, to
stop/start/refresh display. Has QNX started supporting the console
switch signal (or maybe frame buffers).


Please have a look to http://www.libsdl.org

--Armin

http://www.the-better-idea.com/DviewSDL.htm
davea
Active Member
 
Posts: 16
Joined: Fri Jul 25, 2003 8:25 pm

Re: Direct access to VGA memory

Postby Mike Gorchak » Thu Nov 22, 2007 9:39 am

Hello, Dave!

DA> We are looking at upgrading our app to run on QNX6, but want to
DA> continue doing direct access to VGA memory, and depend on console
DA> signal to indicate switch away from current console, to
DA> stop/start/refresh display. Has QNX started supporting the console
DA> switch signal (or maybe frame buffers).

Just do mmap of physical memory, depends on what memory you need. Use the
following displacements: 0x000B8000 - text mode, 0x000A0000 - VGA graphics
memory, or use mmap device memory library call to do memory mapping of the
BAR0 of your PCI/AGP/PCIE graphics card to obtain access to the full video
adapter framebuffer memory. Or if you are using photon use Pg* photon calls
to obtain pointers to the fragments of the physical graphics card memory.

With best regards, Mike Gorchak. E-mail: mike@malva.ua
Mike Gorchak
 

Re: Direct access to VGA memory

Postby John Nagle » Fri Feb 29, 2008 10:21 pm

Dave Allamby wrote:
We are looking at upgrading our app to run on QNX6, but want to continue
doing direct access to VGA memory, and depend on console signal to
indicate switch away from current console, to stop/start/refresh
display. Has QNX started supporting the console switch signal (or maybe
frame buffers).

1988 called. It wants mode 13h back.

John Nagle
John Nagle
 


Return to qnx.porting

Who is online

Users browsing this forum: No registered users and 1 guest

cron