From e5133a94dc78411eaef324131ea8056aeb81779e Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 21 Apr 2009 15:49:01 -0700 Subject: unifdef LIBPCIACCESS and XSERVER_LIBPCIACCESS. Depending on new server means these are always present. --- src/i830_display.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/i830_display.c') diff --git a/src/i830_display.c b/src/i830_display.c index c1617e3a..a7eafb97 100644 --- a/src/i830_display.c +++ b/src/i830_display.c @@ -1350,11 +1350,7 @@ i830_get_core_clock_speed(ScrnInfoPtr pScrn) else if (IS_I915GM(pI830)) { uint16_t gcfgc; -#if XSERVER_LIBPCIACCESS pci_device_cfg_read_u16 (pI830->PciInfo, &gcfgc, I915_GCFGC); -#else - gcfgc = pciReadWord(pI830->PciTag, I915_GCFGC); -#endif if (gcfgc & I915_LOW_FREQUENCY_ENABLE) return 133000; else { @@ -1369,14 +1365,9 @@ i830_get_core_clock_speed(ScrnInfoPtr pScrn) } else if (IS_I865G(pI830)) return 266000; else if (IS_I855(pI830)) { -#if XSERVER_LIBPCIACCESS struct pci_device *bridge = intel_host_bridge (); uint16_t hpllcc; pci_device_cfg_read_u16 (bridge, &hpllcc, I855_HPLLCC); -#else - PCITAG bridge = pciTag(0, 0, 0); /* This is always the host bridge */ - uint16_t hpllcc = pciReadWord(bridge, I855_HPLLCC); -#endif /* Assume that the hardware is in the high speed state. This * should be the default. -- cgit v1.2.3