PCI的class code表

之前有找到过一下class code分类,收集起来以备用。

可能在写PCI scan的程序时候,能排的上用场吧。

另外提供一个PCI Device Scan程序的头文件pci_c_head.h,以供参考.

Class Code Table


Class Codes

ClassDescription
0x00Devices built before class codes (i.e. pre PCI 2.0)
0x01Mass storage controller
0x02Network controller
0x03Display controller
0x04Multimedia device
0x05Memory Controller
0x06Bridge Device
0x07Simple communications controllers
0x08Base system peripherals
0x09Inupt devices
0x0ADocking Stations
0x0BProcessorts
0x0CSerial bus controllers
0x0D-0xFEReserved
0xFFMisc

Class Code 0: Pre 2.0

Sub-ClassProg. I/FDescription
0x000x00All devices other than VGA
0x010x01VGA device

Class Code 1: Mass Storage Controllers

Sub-ClassProg. I/FDescription
0x000x00SCSI Controller
0x010xXXIDE controller. The Prog I/F is defined as follows:
bitsDesc
0Operating mode (primary)
1Programmable indicator (primary)
2Operating mode (secondary)
3Programmable indicator (secondary)
6..4Reserved (zero)
7Master IDE device
0x020x00Floppy disk controller
0x030x00IPI controller
0x040x00RAID controller
0x800x00Other mass storage controller

Class Code 2: Network Controllers

Sub-ClassProg. I/FDescription
0x000x00Ethernet controller
0x010x00Token ring
0x020x00FDDI controller
0x030x00ATM controller
0x800x00Other network conteroller

Class Code 3: Display Controllers

Sub-ClassProg. I/FDescription
0x000x00VGA compatable controller. Has mapping for 0xA0000..0xBFFFF and io addresses 0x3B0..0x3BB.
0x018514 compatable
0x010x00XGA controller
0x800x80Other display controller

Class Code 4: Multimedia Devices

Sub-ClassProg. I/FDescription
0x000x00Video device
0x010x00Audio device
0x800x00Other multimedia device

Class Code 5: Memory Controllers

Sub-ClassProg. I/FDescription
0x000x00RAM controller
0x010x00Flash memory controller
0x800x00Other memory controller

Class Code 6: Bridge Devices

Sub-ClassProg. I/FDescription
0x000x00Host/PCI bridge
0x010x00PCI/ISA bridge
0x020x00PCI/EISA bridge
0x030x00PCI/Micro Channel bridge
0x040x00PCI/PCI bridge
0x050x00PCI/PCMCIA bridge
0x060x00PCI/NuBus bridge
0x070x00PCI/CardBus bridge
0x800x00Other bridge type

Class Code 7: Simple Communications Controllers

Sub-ClassProg. I/FDescription
0x000x00Generic XT compatable serial controller
0x0116450 compatable serial controller
0x0216550 compatable serial controller
0x010x00Parallel port
0x01Bi-directional parallel port
0x02ECP 1.X parallel port
0x800x00Other commonications device

Class Code 8: Base System Peripherals

Sub-ClassProg. I/FDescription
0x000x00Generic 8259 programmable interrupt controller (PIC)
0x01ISA PIC
0x02EISA PIC
0x010x00Generic 8237 DMA controller
0x01ISA DMA controller
0x02EISA DMA controller
0x020x00Generic 8254 timer
0x01ISA system timer
0x02EISA system timer
0x030x00Generic RTC controller
0x01ISA RTC controller
0x800x00Other system peripheral

Class Code 9: Input Devices

Sub-ClassProg. I/FDescription
0x000x00Keyboard controller
0x010x00Digitizer (pen)
0x020x00Mouse controller
0x800x00Other input controller

Class Code A: Docking Stations

Sub-ClassProg. I/FDescription
0x000x00Generic docking station
0x800x00Other type of docking station

Class Code B: Processors

Sub-ClassProg. I/FDescription
0x000x00386
0x010x00486
0x020x00Pentium
0x100x00Alpha
0x200x00PowerPC
0x400x00Co-Processor

Class Code C: Serial Bus Controllers

Sub-ClassProg. I/FDescription
0x000x00Firewire (IEEE 1394)
0x010x00ACCESS bus
0x020x00SSA (Serial Storage Architecture)
0x030x00USB (Universal Serial Bus)


  • 2
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
"Process finished with exit code 0"是程序正确运行结束的提示。这示程序成功完成并正常退出。 如果你的程序出现了"Process finished with exit code -1073740791 (0xC0000409)"这个错误,一般来说是显卡显存不足导致的。你可以按照以下几个步骤来排查和解决问题: 1. 首先确认你的环境配置是否正确,特别是CUDA和cuDNN是否安装正确。确保你的显卡驱动已经安装好或者需要更新。 2. 如果你使用的是Windows系统,可以打开任务管理器,查看GPU显存。如果你的电脑有多个GPU,确保使用性能更好的独立显卡来训练网络。在主程序中,可以指定使用特定的显卡,避免系统默认使用显存较小的集成显卡。 3. 解决方案是在主程序前添加以下代码来指定使用特定的显卡: ```python import os os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"] = "1" # 使用GPU 1进行训练,可以根据实际情况修改 ``` 如果你有多张显卡,可以一起指定使用: ```python import os os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"] = "0,2,3" # 指定使用第2、3、4张显卡处理 ``` 这样,你的程序就会使用指定的显卡进行训练,避免显存不足的问题。 希望这些信息能帮助到你解决问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [Process finished with exit code 137 (interrupted by signal 9: SIGKILL)错误](https://blog.csdn.net/weixin_43570470/article/details/124605921)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [pytorch报错:Process finished with exit code -1073741819 (0xC0000005)](https://download.csdn.net/download/weixin_38586942/13742773)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [Process finished with exit code -1073740791 (0xC0000409)报错解决方案](https://blog.csdn.net/wjinjie/article/details/124024926)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值