pci卡設(shè)計(jì)心得
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;
}
評(píng)論