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

  • 相关阅读:
    Maven Nexus 上传jar到本地仓库。
    java Web与Flex通过HTTP service 通信 并解析Map 数据。
    JACOB调用WORD书签修改WORD文档,并生成html显示到页面中
    去除java list 中的 [] 括号
    2019-2020-2 20175222 《网络对抗技术》Exp9 Web安全基础
    2019-2020-2 20175222 《网络对抗技术》 Exp 8 Web基础
    2019-2020-2 20175222 《网络对抗技术》 Exp7 网络欺诈防范
    2019-2020-2 20175222 《网络对抗技术》 Exp6 MSF基础应用
    2019-2020-2 20175222《网络对抗技术》 Exp5 信息搜集与漏洞扫描
    2019-2020-2 20175222罗雨石 《网络对抗技术》 Exp4 恶意代码分析
  • 原文地址:https://www.cnblogs.com/mull/p/4477823.html
Copyright © 2011-2022 走看看