summaryrefslogtreecommitdiff
path: root/src/intel_module.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-06-10 19:51:12 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-06-10 19:51:12 +0100
commitd0d65940b4f4d4993eccb8c66ec7e8b633b331da (patch)
treed8a3e55bc62475e08087acd77b0f143ae2bda0b5 /src/intel_module.c
parent6f035e80b98e478ff4c59427e50e57ecd710da62 (diff)
sna: Remove the ability to disable chipset specific code
This was a fun little, but pointless, exercise. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_module.c')
-rw-r--r--src/intel_module.c60
1 files changed, 2 insertions, 58 deletions
diff --git a/src/intel_module.c b/src/intel_module.c
index bec3d0f1..63a63b8e 100644
--- a/src/intel_module.c
+++ b/src/intel_module.c
@@ -334,40 +334,8 @@ static Bool intel_pci_probe(DriverPtr driver,
break;
#endif
-#if SNA
- case 0:
-#if SNA_GEN2
- case PCI_CHIP_I830_M:
- case PCI_CHIP_845_G:
- case PCI_CHIP_I854:
- case PCI_CHIP_I855_GM:
- case PCI_CHIP_I865_G:
-#endif
-#if SNA_GEN3
- case PCI_CHIP_PINEVIEW_M:
- case PCI_CHIP_PINEVIEW_G:
- case PCI_CHIP_G33_G:
- case PCI_CHIP_Q35_G:
- case PCI_CHIP_Q33_G:
-#endif
-#if SNA_GEN5
- case PCI_CHIP_IRONLAKE_D_G:
- case PCI_CHIP_IRONLAKE_M_G:
-#endif
-#if SNA_GEN6
- case PCI_CHIP_SANDYBRIDGE_GT1:
- case PCI_CHIP_SANDYBRIDGE_GT2:
- case PCI_CHIP_SANDYBRIDGE_GT2_PLUS:
- case PCI_CHIP_SANDYBRIDGE_M_GT1:
- case PCI_CHIP_SANDYBRIDGE_M_GT2:
- case PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS:
- case PCI_CHIP_SANDYBRIDGE_S_GT:
-#endif
- sna_init_scrn(scrn, entity_num);
- break;
-#endif
default:
-#if SNA_DEFAULT
+#if SNA
sna_init_scrn(scrn, entity_num);
#else
intel_init_scrn(scrn);
@@ -407,32 +375,8 @@ intel_available_options(int chipid, int busid)
return lg_i810_available_options(chipid, busid);
#endif
-#if SNA
- case 0:
-#if SNA_GEN3
- case PCI_CHIP_PINEVIEW_M:
- case PCI_CHIP_PINEVIEW_G:
- case PCI_CHIP_G33_G:
- case PCI_CHIP_Q35_G:
- case PCI_CHIP_Q33_G:
-#endif
-#if SNA_GEN5
- case PCI_CHIP_IRONLAKE_D_G:
- case PCI_CHIP_IRONLAKE_M_G:
-#endif
-#if SNA_GEN6
- case PCI_CHIP_SANDYBRIDGE_GT1:
- case PCI_CHIP_SANDYBRIDGE_GT2:
- case PCI_CHIP_SANDYBRIDGE_GT2_PLUS:
- case PCI_CHIP_SANDYBRIDGE_M_GT1:
- case PCI_CHIP_SANDYBRIDGE_M_GT2:
- case PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS:
- case PCI_CHIP_SANDYBRIDGE_S_GT:
-#endif
- return sna_available_options(chipid, busid);
-#endif
default:
-#if SNA_DEFAULT
+#if SNA
return sna_available_options(chipid, busid);
#else
return intel_uxa_available_options(chipid, busid);