OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Jun 14, 2024 10:22 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Legacy VGA video RAM access on PCI graphics cards
PostPosted: Mon May 20, 2024 12:20 pm 
Offline

Joined: Sat May 15, 2021 9:46 am
Posts: 19
Hi folks,

does anyone know how PCI based graphics cards handle access to the legacy VGA framebuffer? Typically, the location of the frame buffer is configured through the PCI "BAR" registers, which provide a linear access to the frame buffer. It seems that this frame buffer access through the PCI apperture always bypasses the (legacy) graphics controller, and is also always "chunky". Then, we have the legacy VGA address range sitting in the 0xa0000 window. It seems that this window cannot be placed in the PCI address space, is that right? Is there a way to address the VGA window through one of the PCI windows controlled through the BAR registers?

Essentially, I am trying to get something like "planar", though the graphics card sits behind a PCI bridge, so the legacy VGA window at 0xa0000 is not visible.


Top
 Profile  
 
 Post subject: Re: Legacy VGA video RAM access on PCI graphics cards
PostPosted: Mon May 20, 2024 2:36 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5217
thorfdbg wrote:
Is there a way to address the VGA window through one of the PCI windows controlled through the BAR registers?

Maybe, but there's no standard so it'll depend on your display adapter.

thorfdbg wrote:
Essentially, I am trying to get something like "planar", though the graphics card sits behind a PCI bridge, so the legacy VGA window at 0xa0000 is not visible.

Is there some reason you can't set the VGA Enable bit in the Bridge Control register? (You might need to configure other devices to prevent address conflicts.)


Top
 Profile  
 
 Post subject: Re: Legacy VGA video RAM access on PCI graphics cards
PostPosted: Sat May 25, 2024 10:19 am 
Offline

Joined: Sat May 15, 2021 9:46 am
Posts: 19
Octocontrabass wrote:
Is there some reason you can't set the VGA Enable bit in the Bridge Control register? (You might need to configure other devices to prevent address conflicts.)

Well, this sounds interesting. Sorry, I'm not so much into the bridge chips, thus where would I find more about this?
(This is actually a custom bridge for a non-x86 system, but it might just use one of the standard chips for moderating PCI access).


Top
 Profile  
 
 Post subject: Re: Legacy VGA video RAM access on PCI graphics cards
PostPosted: Sat May 25, 2024 3:12 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5217
PCI-to-PCI bridges are part of the PCI specifications, so you can go buy the relevant document from the PCI-SIG and not use a search engine to find a leaked copy of "PCI-to-PCI Bridge Architecture Specification" for free.

Other types of bridges are not really standard, but they usually do offer VGA compatibility. Datasheets for the bridge in question should tell you everything you need to know.


Top
 Profile  
 
 Post subject: Re: Legacy VGA video RAM access on PCI graphics cards
PostPosted: Sat May 25, 2024 7:30 pm 
Offline
Member
Member

Joined: Sun Jun 23, 2019 5:36 pm
Posts: 624
Location: North Dakota, United States
Octocontrabass wrote:
PCI-to-PCI bridges are part of the PCI specifications, so you can go buy the relevant document from the PCI-SIG and not use a search engine to find a leaked copy of "PCI-to-PCI Bridge Architecture Specification" for free.

Other types of bridges are not really standard, but they usually do offer VGA compatibility. Datasheets for the bridge in question should tell you everything you need to know.

Erm, don't PCI-SIG documents cost thousands and thousands of dollars? Last time I checked they were charging absolutely outrageous prices to gain access to documents for non-members.


Top
 Profile  
 
 Post subject: Re: Legacy VGA video RAM access on PCI graphics cards
PostPosted: Sat May 25, 2024 8:11 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5217
Yep, this particular document costs two thousand dollars. But typing "PCI-to-PCI Bridge Architecture Specification" into a search engine and downloading a copy for free from CERN Library Catalogue would be copyright infringement, so I can't tell anyone to do that.


Top
 Profile  
 
 Post subject: Re: Legacy VGA video RAM access on PCI graphics cards
PostPosted: Sun May 26, 2024 10:44 pm 
Offline
Member
Member

Joined: Sat Jul 02, 2016 7:02 am
Posts: 211
@Octocontrabass =D>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group