zoukankan      html  css  js  c++  java
  • Linux启动PCI扫描出所有设备VID, DID


    # grep pci messages | grep class
    May 15 16:12:50 kernel: pci 0000:00:00.0: [8086:0100] type 0 class 0x000600
    May 15 16:12:50 kernel: pci 0000:00:01.0: [8086:0101] type 1 class 0x000604
    May 15 16:12:50 kernel: pci 0000:00:01.1: [8086:0105] type 1 class 0x000604
    May 15 16:12:50 kernel: pci 0000:00:02.0: [8086:0102] type 0 class 0x000300
    May 15 16:12:50 kernel: pci 0000:00:16.0: [8086:1c3a] type 0 class 0x000780
    May 15 16:12:50 kernel: pci 0000:00:1a.0: [8086:1c2d] type 0 class 0x000c03
    May 15 16:12:50 kernel: pci 0000:00:1b.0: [8086:1c20] type 0 class 0x000403
    May 15 16:12:50 kernel: pci 0000:00:1c.0: [8086:1c10] type 1 class 0x000604
    May 15 16:12:50 kernel: pci 0000:00:1c.1: [8086:1c12] type 1 class 0x000604
    May 15 16:12:50 kernel: pci 0000:00:1c.2: [8086:1c14] type 1 class 0x000604
    May 15 16:12:50 kernel: pci 0000:00:1c.3: [8086:1c16] type 1 class 0x000604
    May 15 16:12:50 kernel: pci 0000:00:1d.0: [8086:1c26] type 0 class 0x000c03
    May 15 16:12:50 kernel: pci 0000:00:1e.0: [8086:244e] type 1 class 0x000604
    May 15 16:12:50 kernel: pci 0000:00:1f.0: [8086:1c56] type 0 class 0x000601
    May 15 16:12:50 kernel: pci 0000:00:1f.2: [8086:1c00] type 0 class 0x000101
    May 15 16:12:50 kernel: pci 0000:00:1f.3: [8086:1c22] type 0 class 0x000c05
    May 15 16:12:50 kernel: pci 0000:00:1f.5: [8086:1c08] type 0 class 0x000101
    May 15 16:12:50 kernel: pci 0000:01:00.0: [8086:150f] type 0 class 0x000200
    May 15 16:12:50 kernel: pci 0000:01:00.1: [8086:150f] type 0 class 0x000200
    May 15 16:12:50 kernel: pci 0000:01:00.2: [8086:150f] type 0 class 0x000200
    May 15 16:12:50 kernel: pci 0000:01:00.3: [8086:150f] type 0 class 0x000200
    May 15 16:12:50 kernel: pci 0000:02:00.0: [8086:150f] type 0 class 0x000200
    May 15 16:12:50 kernel: pci 0000:02:00.1: [8086:150f] type 0 class 0x000200
    May 15 16:12:50 kernel: pci 0000:02:00.2: [8086:150f] type 0 class 0x000200
    May 15 16:12:50 kernel: pci 0000:02:00.3: [8086:150f] type 0 class 0x000200
    May 15 16:12:50 kernel: pci 0000:03:00.0: [8086:10d3] type 0 class 0x000200
    May 15 16:12:50 kernel: pci 0000:04:00.0: [8086:10d3] type 0 class 0x000200
    May 15 16:12:50 kernel: pci 0000:05:00.0: [8086:10d3] type 0 class 0x000200
    May 15 16:12:50 kernel: pci 0000:06:00.0: [8086:10d3] type 0 class 0x000200

    8086 VID 即代表Intel设备
    10d3 DID 即代表Intel E1000_DEV_ID_82574L
    150f DID 即代表Intel E1000_DEV_ID_82580_FIBER

    dev_printk(KERN_DEBUG, &dev->dev, "[%04x:%04x] type %d class %#08x\n",
               dev->vendor, dev->device, dev->hdr_type, class);
               
    #define PCI_VENDOR_ID_INTEL        0x8086
    #define E1000_DEV_ID_82574L   0x10D3

    #define E1000_DEV_ID_82580_FIBER              0x150F

  • 相关阅读:
    fastDFS与nginx整合2
    fastDFS分布式文件系统
    NIO编程
    Nginx正向代理与反向代理
    JAVA序列化
    FileUpload问题
    测试覆盖率实现技术
    Hutool 功能特色:
    自建右键服务器
    20191123-SWITCH后面跟的参数不能为string类型
  • 原文地址:https://www.cnblogs.com/mull/p/4477823.html
Copyright © 2011-2022 走看看