diff options
Diffstat (limited to 'debugger')
-rw-r--r-- | debugger/eudb.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/debugger/eudb.c b/debugger/eudb.c index 47d5d922..866d4b52 100644 --- a/debugger/eudb.c +++ b/debugger/eudb.c @@ -351,16 +351,14 @@ die(int reason) { static int identify_device(int devid) { - switch(devid) { - case PCI_CHIP_SANDYBRIDGE_GT1: - case PCI_CHIP_SANDYBRIDGE_M_GT1: - case PCI_CHIP_SANDYBRIDGE_S: + if (!IS_SANDYBRIDGE(devid)) + return -ENODEV; + + switch (intel_gt(devid)) { + case 0: eu_info = >1; break; - case PCI_CHIP_SANDYBRIDGE_GT2: - case PCI_CHIP_SANDYBRIDGE_GT2_PLUS: - case PCI_CHIP_SANDYBRIDGE_M_GT2: - case PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS: + case 1: eu_info = >2; break; default: |