pci卡设计心得
xt-size-adjust: auto; -webkit-text-stroke-width: 0px">pciinf->BIST=(UCHAR)((buf[3]0xff000000)/0x1000000);
pciinf->BaseAddresses[0]=buf[4];
pciinf->BaseAddresses[1]=buf[5];
pciinf->BaseAddresses[2]=buf[6];
pciinf->BaseAddresses[3]=buf[7];
pciinf->BaseAddresses[4]=buf[8];
pciinf->BaseAddresses[5]=buf[9];
pciinf->SubsystemVendorID=(USHORT)(buf[11]0xffff);
pciinf->SubsystemID=(USHORT)((buf[12]0xffff0000)/0x10000);
pciinf->InterruptLine=(UCHAR)(buf[15]0xff);
pciinf->InterruptPin=(UCHAR)((buf[15]0xff00)/0x100);
pciinf->MinimumGrant=(UCHAR)((buf[15]0xff0000)/0x10000);
pciinf->MaximumLatency=(UCHAR)((buf[15]0xff000000)/0x1000000);
break;
}
1 2 3 4 5 6 7 8 9
pciinf->BaseAddresses[0]=buf[4];
pciinf->BaseAddresses[1]=buf[5];
pciinf->BaseAddresses[2]=buf[6];
pciinf->BaseAddresses[3]=buf[7];
pciinf->BaseAddresses[4]=buf[8];
pciinf->BaseAddresses[5]=buf[9];
pciinf->SubsystemVendorID=(USHORT)(buf[11]0xffff);
pciinf->SubsystemID=(USHORT)((buf[12]0xffff0000)/0x10000);
pciinf->InterruptLine=(UCHAR)(buf[15]0xff);
pciinf->InterruptPin=(UCHAR)((buf[15]0xff00)/0x100);
pciinf->MinimumGrant=(UCHAR)((buf[15]0xff0000)/0x10000);
pciinf->MaximumLatency=(UCHAR)((buf[15]0xff000000)/0x1000000);
break;
}
1 2 3 4 5 6 7 8 9
关键词: pci卡

加入微信
获取电子行业最新资讯
搜索微信公众号:EEPW
或用微信扫描左侧二维码