Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Hi, i was trying to implement a simple driver for the Cirrus GD 5446, i've found a pdf describing all of the bars and what they contains. This is what it says about what i thought it was the LFB:
The first BAR is of type 0 and mapped in memory, i tried reading the last 8 bit of the value i got from PCI device that corresponds to the cirrus card as stated in this docuemntes. It actually had some data but when i tried suing it as an LFB and tried drawing something it actually didn't work. It gave me something like 0x0d. To read the 8 bits i actually right shift the bar of 24 bit and then cast it to uint8_t and then used this value as the LFB. Am i doing something wrong? If so please if you have any resources on how to use the pci bus properly i would very appreciate.
A cirrus logic card gets booted into text mode - at which point a "linear framebuffer" will not get you any pixels to start with. In comparison, if you're setting a graphics mode with VESA you don't need to read the PCI bus for the framebuffer address because its provided for you.
In other words, there is way too much missing from your story to make even an educated guess as to what you have done, what numbers you actually get and how you are using them and what you are actually expecting from them.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]