PCI Express设备驱动 (4,PCIe配置空间和PCI设备中的寄存器)
摘要:
1、访问PCI配置空间,PCI基本配置空间的读写使用下列函数: 原型定义在<linux/pci.h>int pci_read_config_byte(struct pci_dev *pdev, int where, u8 *val);int pci_read_config_word(struct pci_dev *pdev, int where, u8 *val);int pci_read_config_dword(struct pci_dev *pdev, int where, u8 *val);通过8位、16位或32位的数据传输访问配置空间。从由pdev标识的设备空间读入一个、 阅读全文
posted @ 2011-08-22 17:15 zzwworld 阅读(9686) 评论(0) 推荐(0)
浙公网安备 33010602011771号