Not Sue What Is Meant By Display Names
2010-04-16 19:31:01 UTC
I need to read the IQR assigned to a PCI add-on COM Port. MOSChip has
supplied the following code which appears to be "C". Can anyone help me
convert this to QuickBasic 4.0 B running under DOS 6.22 ?
Logic to scan the pci bus.
for(pci_bus=0; pci_bus<255; pci_bus++)
{
for(pci_slot=0; pci_slot<32; pci_slot++)
{
for(pci_function=0; pci_function<8; pci_function++)
{
PCIGetBusDataByOffset(pci_bus, pci_slot, pci_function, &Buff, 0,
0x40);
// Buff hold the PCI configuration data; Buff[0] holds the VID
and Buff[2] holds the PID
// Read the location 0x3c in Buff for IRQ assgined by the BIOS
if Buff[0] is 0x9710 and Buff[2] is 0x9865
// Location 0x10 holds the serial port base address.
}
}
}
supplied the following code which appears to be "C". Can anyone help me
convert this to QuickBasic 4.0 B running under DOS 6.22 ?
Logic to scan the pci bus.
for(pci_bus=0; pci_bus<255; pci_bus++)
{
for(pci_slot=0; pci_slot<32; pci_slot++)
{
for(pci_function=0; pci_function<8; pci_function++)
{
PCIGetBusDataByOffset(pci_bus, pci_slot, pci_function, &Buff, 0,
0x40);
// Buff hold the PCI configuration data; Buff[0] holds the VID
and Buff[2] holds the PID
// Read the location 0x3c in Buff for IRQ assgined by the BIOS
if Buff[0] is 0x9710 and Buff[2] is 0x9865
// Location 0x10 holds the serial port base address.
}
}
}