Linux PCI Driver Summary

Source: Internet
Author: User
First, Introduction

The Linux PCI driver actually consists of two parts: the PCI driver and the device itself, and the PCI driver is usually the Linux kernel, and the device itself is the driver of the developer. There are three address spaces on the PCI device: I/O space, configuration space, memory space, the CPU can access all address space on the PCI device, and I/O space and memory space are provided for device-driven access, and the configuration space is used when the kernel initializes PCI.

In PCI device drivers, several key data structures are:

1. Pci_driver used to identify the id_table structure of the device and the probe () and removed () functions

2. Pci_dev describes all hardware information for a PCI device

Each pci_dev struct is joined to two queue lists, one of which is global_list to the total Pci_dev structure queue (the queue header is pci_devices), and the other is the bus_list that is attached to the owning bus via Pci_dev Queue (The queue header is pci_bus.devices), while the bus pointer in the PCI_DEV structure points to the bus to which the device belongs.

   

Second, the driving framework

Reference: http://blog.csdn.net/h_armony/article/details/7191104

  

Linux PCI Driver Summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.