linux pci 数据同步,Linux核心数据结构--pci_dev

表示系统中的每个PCI设备,包括PCI-PCI和PCI-PCI桥接器。

/*

* There is one pci_dev structure for each slot-number/function-number

* combination:

*/

struct pci_dev {

struct pci_bus  *bus;

/* bus this device is on */

struct pci_dev  *sibling;

/* next device on this bus */

struct pci_dev  *next;

/* chain of all devices */

void    *sysdata;

/* hook for sys-specific extension */

unsigned int  devfn;

/* encoded device & function index */

unsigned short  vendor;

unsigned short  device;

unsigned int  class;

/* 3 bytes: (base,sub,prog-if) */

unsigned int  master : 1;

/* set if device is master capable */

/*

* In theory, the irq level can be read from configuration

* space and all would be fine.  However, old PCI chips don't

* support these registers and return 0 instead.  For example,

* the Vision864-P rev 0 chip can uses INTA, but returns 0 in

* the interrupt line and pin registers.  pci_init()

* initializes this field with the value at PCI_INTERRUPT_LINE

* and it is the job of pcibios_fixup() to change it if

* necessary.  The field must not be 0 unless the device

* cannot generate interrupts at all.

*/

unsigned char  irq;

/* irq generated by this device */

};

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值