• 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

  • 相关阅读:
    常用业务接口界面化 in python flask
    git命令中带有特殊符号如@
    生成唯一标识 字符串跟时间戳的结合
    MD5 in JAVA
    修改(同步)linux时间
    jenkins 从git拉取代码
    Git 默认不区分大小写
    postman也可以使用F12功能
    Session
    WebXML部署服务
  • 原文地址:https://www.cnblogs.com/mull/p/4477823.html
Copyright © 2020-2023  润新知