Directory: http://www.cnblogs.com/WuCountry/archive/2008/11/15/1333960.html
[Do not provide illustrations. You are advised to download the source book from the Internet]
Chapter 6. The PCI layer and network interface cards, PCI layer and network interface card
Given the popularity of the PCI bus, on the x86 as well as other ubuntures, we will spend a few pages on it so that you can understand how PCI devices are managed by the kernel, with special emphasis on network devices. this chapter will help you find a context for the code about device regiter we will see in Chapter 8. you will also learn a bit about how PCI handles some nifty kernel features such as probing and power management. for an in-depth discussion of PCI, such as Device Driver Design, PCI bus features, and implementation details, refer to Linux Device Drivers and understanding the Linux kernel, as well as PCI specifications.
Take the most popular PCI bus as an example. on x86 systems, the other architecture is the same. We will spend several pages on it. In this way, we can understand how the PIC device is managed by the kernel, focusing on network devices. This chapter will help you find some information about device registration that you will see in Chapter 8th. Code Content. You will also learn about how PCI handles some playful kernel features, how to monitor and manage power supplies. For more in-depth discussions on PCI, such as Device Driver Design, PCI bus features, and implementation details, refer to the Linux Device Driver Design and in-depth understanding of the Linux kernel.
The PCI subsystem (also known as the PCI layer) in the kernel provides all the generic functions that are used in common by varous PCI device drivers. this subsystem takes a lot of work off the shoulders of the programmer for each individual device, lets drivers be written in a clean manner, and makes it easier for the kernel to collect and maintain information about the devices, such as accounting information and statistics.
The PCI subsystem in the kernel, the well-known PCI layer, provides all the common functions that can be used for drivers of most PCI devices. This subsystem provides a lot of help.ProgramDevelopers develop the work of each independent device to make the driver compilation method clear, and make it easier to collect and maintain in the kernel. For example, information statistics.
In this chapter, we will see the meaning of a few key data structures used by the PCI layer and how these structures are initialized by one common Nic device driver. i'll conclude with a few words on the PCI power management and wake-on-lan features.
In this chapter, we will see the meanings of several key data structures used for the PCI layer and how these data structures are initialized by General Nic device drivers. We will include some PCI power management terms and LAN wake-up features!