p76931311

所属分类:嵌入式/单片机/硬件编程
开发工具:Windows_Unix
文件大小:226KB
下载次数:19
上传日期:2005-10-20 17:30:14
上 传 者jehnny
说明:  要写出Scan pci bus的程式首先必须先参考PCI的spec里面的Configuration SpaceHeader的图,而Class code有24个bit(3byte),组要由三个部份组成,Base Class、Sub Class、 programming Interface 将的PCI BUS上的Base Class、Sub Class、programming Interface用原本的范例程式加上回圈去侦测。基本上只要了解pci的架构,再用范例程式就可以找出有在使用的pci device。
(to write Scan pci bus programs must first consider the PCI spec inside Configuration SpaceHeader plans, and Class code is 24 bit (3byte), the group should be composed of three parts, the Base Class, Sub Class, programming Interface to the PCI BUS on the Base Class, Sub Class , Interface programming model with the original formula added to a circle to detect. Basically, as long as pci understand the structure and reuse examples of programs can be used to identify the pci device.)

文件列表:
asmhw6 (0, 2005-01-16)
asmhw6\Pci_bus_scan.plg (776, 2005-01-16)
asmhw6\Debug (0, 2005-01-16)
asmhw6\Pci_bus_scan.cpp (5997, 2005-01-16)
asmhw6\Pci_bus_scan.cpp.bak (5312, 2005-01-16)
asmhw6\Pci_bus_scan.dsp (3473, 2005-01-16)
asmhw6\Pci_bus_scan.dsw (549, 2005-01-16)
asmhw6\Pci_bus_scan.ncb (41984, 2005-01-16)
asmhw6\Pci_bus_scan.opt (48640, 2005-01-16)

//*************************************************************************************** //* Author: 洪啟元 ID: P76931311 Date: 2004/1/8 //* //* Build Tools: Microsoft Visual C++ //* //* asmhw_6: Based upon the sample program provided, write a PCI bus scanning //* utility, which displays the configuration space information of //* each PCI device/function. //* //* Files: Pci_bus_scan.c //* //* E-mail: Jehnny_Hung@csie.ncku.edu.tw //*************************************************************************************** 心得: 要寫出Scan pci bus的程式首先必須先參考PCI的spec裡面的Configuration SpaceHeader的圖, 而Class code有24個bit(3byte),組要由三個部份組成,Base Class、Sub Class、 programming Interface 將的PCI BUS上的Base Class、Sub Class、programming Interface用原本的範例程式加上迴圈去偵測。 基本上只要了解pci的架構,再用範例程式就可以找出有在使用的pci device。

近期下载者

相关文件


收藏者