Display driver tutorial (1)

xiaoxiao2021-03-06  114

First, self-order

At present, manufacturers who produce graphics cards can be said to be more bursts; but there are very few manufacturers who produce the chip - 掰掰 掰掰. The chip is displayed for half a year. It is expected that there are many people who are interested in the display drive, but there are not many people who have written or write to the driver. Similarly, the book or information of the writing method of the general kernel driver can find a lot, and the writing of the display driver is less mentioned. So I wrote a Microsoft Windows showing the idea of ​​the driver tutorial, and the work made in these years is related to the driver, especially the display driver. I also hope that through this opportunity to make a summary of the past, with the saying that Hou SIR is: "Publish the best memory."

?

It is necessary to have a better explanation of the relevant concepts. The example in DDK is of course the best reference, but those graphics cards and related hardware documents are not everyone (at least I am not). So I am going to write a virtual display driver as an example. This virtual driver only uses the system's memory, all graphics operations are completed in this memory. It is similar to Mirror Driver but is not exactly the same. Its design goal is to demonstrate basic concepts instead of performance; if you write a real display driver, performance is often your first question to consider.

?

Since there is still other work on hand now, I can only update them from time to time, I hope everyone can understand. If you have any questions, email gives me: leerom@163.com.

Second, prepare work

In order to reduce the space occupied by this tutorial, I assume that you have a certain understanding of the preparation of the device driver, and you should also understand some of the basic graphics algorithms and the application layer's Windows GDI calls. If you don't have these background knowledge, you may have to prepare some information or books on your hand to check it out at any time. Here is my recommendation:

Windows Driver Development Kit (DDK) is of course essential. Which includes the compilation environment, documentation, and examples of the driver, where you can get the details of the driver development. It turned out to be downloaded from Microsoft's website, but now you can only get through Microsoft mailing CDROM.

Below is a number of reference books developed, and the introduction is the development of kernel-mode driver.

Windows WDM Device Driver Development Guide

?

Windows 2000 Device Driver Design Guide

Microsoft Windows Driver Model (English Copying Edition)

About Windows GDI calls My preferred is Yuan Feng's "Windows Graphic Programming", but unfortunately I start writing to show the driver, there is no such good book. Just take this opportunity to revisit once. I strongly recommend comrades interested in GDI to buy a hand on hand.

"Computer Graphics (Second Edition)", I will use some basic algorithms in it.

转载请注明原文地址:https://www.9cbs.com/read-125380.html

New Post(0)