从acpi_init 会调用到 acpi_pci_root_init 将 pci_root_handler 注册到 handler list 中acpi_scan_handlers_list。 acpi_init 继续调用 acpi_bus_scan,最终调用到attach回调函数 acpi_pci_root_add 。 staticconststructacpi_device_idroot_device_ids[]={{"PNP0A03",0},{"",0},};staticstructacpi_scan_...
Device ID: 设备ID, 表示该PCI设备的设备号,只读。 Vendor ID: 厂商ID, 表示生产该设备的厂商的编号,只读。 Status:pci设备状态寄存器,用于保存pci设备的状态,如中断状态或运行产生错误时的状态。 Command:PCI设备命令寄存器, 在pci设备使能pci_enable_device时会配置该寄存器。主要时负责使能或关闭pci设备的I/O ...
pci_match_one_device函数中,第一个参数是设备驱动注册时硬编码的ID结构体,第二个参数是pci设备,当PCI驱动指定的ID为PCI_ANY_ID时,表示可以匹配任何的ID,查看virtio_pci_driver注册时设置的virtio_pci_id_table,如下,可以看到,驱动只设置了vendor id,所有只要vendor id为0x1af4,都可以match成功。在系统枚举PCI设...
-n Show PCI vendor and device codes as numbers instead of looking them up in the PCI ID list. -nn Show PCI vendor and device codes as both numbers and names. -q Use DNS to query the central PCI ID database if a device is not found in the local pci.ids file. If the DNS query ...
设备ID寄存器(Device ID register); 修订版ID寄存器(Revision ID register); 类代码寄存器(Class Code register); 子系统厂商ID寄存器(Subsystem Vendor ID register); 子系统ID寄存器(Subsystem ID register); 头类型寄存器(Header Type register); BIST寄存器; ...
是一个16无符号整数,表示PCI设备的厂商ID*/unsignedshortvendor;/*device:这是一个16无符号整数,表示PCI设备的设备ID*/unsignedshortdevice;/*subsystem_vendor:这是一个16无符号整数,表示PCI设备的子系统厂商ID*/unsignedshortsubsystem_vendor;/*subsystem_device:这是一个16无符号整数,表示PCI设备的子系统设备ID。
为了减少 PCIe 往返延迟的开销,开发人员通常将 Inlining 和 BlueFlame 一起用于小消息。它消除了两个 PCIe 往返延迟。虽然 Inlining 和 BlueFlame 的使用取决于消息大小,但 Postlist 和 Unsignaled Completions 的使用主要取决于用户的设计选择和应用程序语义。
16-bit address pointer to start of capability list (zero means no capability list) Capability List Pointer (Out of Band Temperature Sensor) 50h Capability ID 80 a2h Capability ID value of 0xA2 specifies that a SM-Bus temperature sensor is present 81 00h - 52h Next Capability 82...
usb 1-1.2: New USB device found, idVendor=0425, idProduct=0001 usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0 usb 1-1.2: Product: USB OPTICAL MOUSE input: USB OPTICAL MOUSE as /devices/platform/omap/ti81xx-usbss/musb-hdrc.0/usb1/1-1/1-1.2/1-1.2:1.0/inp...
usb 1-1.2: New USB device found, idVendor=0425, idProduct=0001 usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0 usb 1-1.2: Product: USB OPTICAL MOUSE input: USB OPTICAL MOUSE as /devices/platform/omap/ti81xx-usbss/musb-hdrc.0/usb1/1-1/1-1.2/1-1.2:1.0/inp...