Site hosted by Angelfire.com: Build your free website today!

Hands-on Projects for the Linux Graphics Subsystem

New book from Christos Karayiannis

Available in Amazon Kindle format at:

amazon.com   amazon.co.uk   amazon.de   amazon.es   amazon.fr   amazon.it

PCI and the X Server - Overview

PCI bus provides "Plug n' Play" capability to the Video Card of the X Server, which means that the resources the video card needs, in memory and IO space, are not preconfigured but rather negotiated in Boot time by the BIOS so that conflicts with other PCI devices regarding the memory spaces required for their functionality are avoided.

As we discuss in the following sections BIOS finds the memory requirements for a certain PCI device and then fills the actual memory mapped address in the device's configuration space that the device should use. The driver, e.g. the video driver then uses the Operating System as an intermediate to learn for instance the actual memory location that will be used as the frame buffer, that is the memory area that corresponds to the video memory and its contents are sent to the screen.

In the previous sections we met PCI first in section 3.2.2.3 when a General (PCI) Bus Probe took place. In this section a "PCI in a nutshell" intro was also included. By following the source we found that the info about the PCI relies in the Operating System, for instance Linux.

PCI was examined then as the BusID xorg.conf option of the Device section. This was used in section 3.2.2.6 to locate the right video card device.

The most important part took place in section 3.2.2.11 where the memory areas and the I/O space required by the video card were mapped to the memory.