inteltool: added more device IDs
[coreboot.git] / util / inteltool / pcie.c
index 10b79e48660d7e430858ceb106847b85bf17727a..4913150943548f487a2701974d23a6101cd59bc2 100644 (file)
@@ -35,6 +35,7 @@ int print_epbar(struct pci_dev *nb)
        switch (nb->device_id) {
        case PCI_DEVICE_ID_INTEL_82915:
        case PCI_DEVICE_ID_INTEL_82945GM:
+       case PCI_DEVICE_ID_INTEL_82945GSE:
        case PCI_DEVICE_ID_INTEL_82945P:
        case PCI_DEVICE_ID_INTEL_82975X:
                epbar_phys = pci_read_long(nb, 0x40) & 0xfffffffe;
@@ -44,6 +45,8 @@ int print_epbar(struct pci_dev *nb)
        case PCI_DEVICE_ID_INTEL_82Q35:
        case PCI_DEVICE_ID_INTEL_82G33:
        case PCI_DEVICE_ID_INTEL_82Q33:
+       case PCI_DEVICE_ID_INTEL_X44:
+       case PCI_DEVICE_ID_INTEL_32X0:
        case PCI_DEVICE_ID_INTEL_GS45:
        case PCI_DEVICE_ID_INTEL_ATOM_DXXX:
        case PCI_DEVICE_ID_INTEL_ATOM_NXXX:
@@ -54,7 +57,8 @@ int print_epbar(struct pci_dev *nb)
        case PCI_DEVICE_ID_INTEL_82810DC:
        case PCI_DEVICE_ID_INTEL_82810E_MC:
        case PCI_DEVICE_ID_INTEL_82830M:
-               printf("This northbrigde does not have EPBAR.\n");
+       case PCI_DEVICE_ID_INTEL_82865:
+               printf("This northbridge does not have EPBAR.\n");
                return 1;
        default:
                printf("Error: Dumping EPBAR on this northbridge is not (yet) supported.\n");
@@ -92,26 +96,33 @@ int print_dmibar(struct pci_dev *nb)
        switch (nb->device_id) {
        case PCI_DEVICE_ID_INTEL_82915:
        case PCI_DEVICE_ID_INTEL_82945GM:
+       case PCI_DEVICE_ID_INTEL_82945GSE:
        case PCI_DEVICE_ID_INTEL_82945P:
        case PCI_DEVICE_ID_INTEL_82975X:
                dmibar_phys = pci_read_long(nb, 0x4c) & 0xfffffffe;
                break;
-       case PCI_DEVICE_ID_INTEL_PM965:
+       case PCI_DEVICE_ID_INTEL_PM965:
        case PCI_DEVICE_ID_INTEL_Q965:
-       case PCI_DEVICE_ID_INTEL_82Q35:
-       case PCI_DEVICE_ID_INTEL_82G33:
-       case PCI_DEVICE_ID_INTEL_82Q33:
+       case PCI_DEVICE_ID_INTEL_82Q35:
+       case PCI_DEVICE_ID_INTEL_82G33:
+       case PCI_DEVICE_ID_INTEL_82Q33:
+       case PCI_DEVICE_ID_INTEL_X44:
+       case PCI_DEVICE_ID_INTEL_32X0:
        case PCI_DEVICE_ID_INTEL_GS45:
        case PCI_DEVICE_ID_INTEL_ATOM_DXXX:
        case PCI_DEVICE_ID_INTEL_ATOM_NXXX:
-               dmibar_phys = pci_read_long(nb, 0x68) & 0xfffffffe;
-               dmibar_phys |= ((uint64_t)pci_read_long(nb, 0x6c)) << 32;
-               break;
+               dmibar_phys = pci_read_long(nb, 0x68) & 0xfffffffe;
+               dmibar_phys |= ((uint64_t)pci_read_long(nb, 0x6c)) << 32;
+               break;
        case PCI_DEVICE_ID_INTEL_82810:
        case PCI_DEVICE_ID_INTEL_82810DC:
        case PCI_DEVICE_ID_INTEL_82810E_MC:
-               printf("This northbrigde does not have DMIBAR.\n");
+       case PCI_DEVICE_ID_INTEL_82865:
+               printf("This northbridge does not have DMIBAR.\n");
                return 1;
+       case PCI_DEVICE_ID_INTEL_X58:
+               dmibar_phys = pci_read_long(nb, 0x50) & 0xfffff000;
+               break;
        default:
                printf("Error: Dumping DMIBAR on this northbridge is not (yet) supported.\n");
                return 1;
@@ -150,6 +161,7 @@ int print_pciexbar(struct pci_dev *nb)
        switch (nb->device_id) {
        case PCI_DEVICE_ID_INTEL_82915:
        case PCI_DEVICE_ID_INTEL_82945GM:
+       case PCI_DEVICE_ID_INTEL_82945GSE:
        case PCI_DEVICE_ID_INTEL_82945P:
        case PCI_DEVICE_ID_INTEL_82975X:
                pciexbar_reg = pci_read_long(nb, 0x48);
@@ -159,6 +171,8 @@ int print_pciexbar(struct pci_dev *nb)
        case PCI_DEVICE_ID_INTEL_82Q35:
        case PCI_DEVICE_ID_INTEL_82G33:
        case PCI_DEVICE_ID_INTEL_82Q33:
+       case PCI_DEVICE_ID_INTEL_X44:
+       case PCI_DEVICE_ID_INTEL_32X0:
        case PCI_DEVICE_ID_INTEL_GS45:
        case PCI_DEVICE_ID_INTEL_ATOM_DXXX:
        case PCI_DEVICE_ID_INTEL_ATOM_NXXX:
@@ -168,7 +182,8 @@ int print_pciexbar(struct pci_dev *nb)
        case PCI_DEVICE_ID_INTEL_82810:
        case PCI_DEVICE_ID_INTEL_82810DC:
        case PCI_DEVICE_ID_INTEL_82810E_MC:
-               printf("Error: This northbrigde does not have PCIEXBAR.\n");
+       case PCI_DEVICE_ID_INTEL_82865:
+               printf("Error: This northbridge does not have PCIEXBAR.\n");
                return 1;
        default:
                printf("Error: Dumping PCIEXBAR on this northbridge is not (yet) supported.\n");
@@ -239,5 +254,3 @@ int print_pciexbar(struct pci_dev *nb)
 
        return 0;
 }
-
-