diff options
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 473a8f7fbdb5..c431fa54bbb5 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -180,7 +180,8 @@ typedef struct drm_i915_private { | |||
180 | int backlight_duty_cycle; /* restore backlight to this value */ | 180 | int backlight_duty_cycle; /* restore backlight to this value */ |
181 | bool panel_wants_dither; | 181 | bool panel_wants_dither; |
182 | struct drm_display_mode *panel_fixed_mode; | 182 | struct drm_display_mode *panel_fixed_mode; |
183 | struct drm_display_mode *vbt_mode; /* if any */ | 183 | struct drm_display_mode *lfp_lvds_vbt_mode; /* if any */ |
184 | struct drm_display_mode *sdvo_lvds_vbt_mode; /* if any */ | ||
184 | 185 | ||
185 | /* Feature bits from the VBIOS */ | 186 | /* Feature bits from the VBIOS */ |
186 | unsigned int int_tv_support:1; | 187 | unsigned int int_tv_support:1; |
@@ -283,6 +284,7 @@ typedef struct drm_i915_private { | |||
283 | u8 saveAR[21]; | 284 | u8 saveAR[21]; |
284 | u8 saveDACMASK; | 285 | u8 saveDACMASK; |
285 | u8 saveCR[37]; | 286 | u8 saveCR[37]; |
287 | uint64_t saveFENCE[16]; | ||
286 | 288 | ||
287 | struct { | 289 | struct { |
288 | struct drm_mm gtt_space; | 290 | struct drm_mm gtt_space; |
@@ -674,12 +676,12 @@ extern int i915_restore_state(struct drm_device *dev); | |||
674 | #ifdef CONFIG_ACPI | 676 | #ifdef CONFIG_ACPI |
675 | /* i915_opregion.c */ | 677 | /* i915_opregion.c */ |
676 | extern int intel_opregion_init(struct drm_device *dev, int resume); | 678 | extern int intel_opregion_init(struct drm_device *dev, int resume); |
677 | extern void intel_opregion_free(struct drm_device *dev); | 679 | extern void intel_opregion_free(struct drm_device *dev, int suspend); |
678 | extern void opregion_asle_intr(struct drm_device *dev); | 680 | extern void opregion_asle_intr(struct drm_device *dev); |
679 | extern void opregion_enable_asle(struct drm_device *dev); | 681 | extern void opregion_enable_asle(struct drm_device *dev); |
680 | #else | 682 | #else |
681 | static inline int intel_opregion_init(struct drm_device *dev, int resume) { return 0; } | 683 | static inline int intel_opregion_init(struct drm_device *dev, int resume) { return 0; } |
682 | static inline void intel_opregion_free(struct drm_device *dev) { return; } | 684 | static inline void intel_opregion_free(struct drm_device *dev, int suspend) { return; } |
683 | static inline void opregion_asle_intr(struct drm_device *dev) { return; } | 685 | static inline void opregion_asle_intr(struct drm_device *dev) { return; } |
684 | static inline void opregion_enable_asle(struct drm_device *dev) { return; } | 686 | static inline void opregion_enable_asle(struct drm_device *dev) { return; } |
685 | #endif | 687 | #endif |
@@ -705,13 +707,8 @@ extern void intel_modeset_cleanup(struct drm_device *dev); | |||
705 | #define I915_WRITE16(reg, val) writel(val, dev_priv->regs + (reg)) | 707 | #define I915_WRITE16(reg, val) writel(val, dev_priv->regs + (reg)) |
706 | #define I915_READ8(reg) readb(dev_priv->regs + (reg)) | 708 | #define I915_READ8(reg) readb(dev_priv->regs + (reg)) |
707 | #define I915_WRITE8(reg, val) writeb(val, dev_priv->regs + (reg)) | 709 | #define I915_WRITE8(reg, val) writeb(val, dev_priv->regs + (reg)) |
708 | #ifdef writeq | ||
709 | #define I915_WRITE64(reg, val) writeq(val, dev_priv->regs + (reg)) | 710 | #define I915_WRITE64(reg, val) writeq(val, dev_priv->regs + (reg)) |
710 | #else | 711 | #define I915_READ64(reg) readq(dev_priv->regs + (reg)) |
711 | #define I915_WRITE64(reg, val) (writel(val, dev_priv->regs + (reg)), \ | ||
712 | writel(upper_32_bits(val), dev_priv->regs + \ | ||
713 | (reg) + 4)) | ||
714 | #endif | ||
715 | #define POSTING_READ(reg) (void)I915_READ(reg) | 712 | #define POSTING_READ(reg) (void)I915_READ(reg) |
716 | 713 | ||
717 | #define I915_VERBOSE 0 | 714 | #define I915_VERBOSE 0 |
@@ -787,15 +784,18 @@ extern int i915_wait_ring(struct drm_device * dev, int n, const char *caller); | |||
787 | (dev)->pci_device == 0x2A42 || \ | 784 | (dev)->pci_device == 0x2A42 || \ |
788 | (dev)->pci_device == 0x2E02 || \ | 785 | (dev)->pci_device == 0x2E02 || \ |
789 | (dev)->pci_device == 0x2E12 || \ | 786 | (dev)->pci_device == 0x2E12 || \ |
790 | (dev)->pci_device == 0x2E22) | 787 | (dev)->pci_device == 0x2E22 || \ |
788 | (dev)->pci_device == 0x2E32) | ||
791 | 789 | ||
792 | #define IS_I965GM(dev) ((dev)->pci_device == 0x2A02) | 790 | #define IS_I965GM(dev) ((dev)->pci_device == 0x2A02 || \ |
791 | (dev)->pci_device == 0x2A12) | ||
793 | 792 | ||
794 | #define IS_GM45(dev) ((dev)->pci_device == 0x2A42) | 793 | #define IS_GM45(dev) ((dev)->pci_device == 0x2A42) |
795 | 794 | ||
796 | #define IS_G4X(dev) ((dev)->pci_device == 0x2E02 || \ | 795 | #define IS_G4X(dev) ((dev)->pci_device == 0x2E02 || \ |
797 | (dev)->pci_device == 0x2E12 || \ | 796 | (dev)->pci_device == 0x2E12 || \ |
798 | (dev)->pci_device == 0x2E22 || \ | 797 | (dev)->pci_device == 0x2E22 || \ |
798 | (dev)->pci_device == 0x2E32 || \ | ||
799 | IS_GM45(dev)) | 799 | IS_GM45(dev)) |
800 | 800 | ||
801 | #define IS_IGDG(dev) ((dev)->pci_device == 0xa001) | 801 | #define IS_IGDG(dev) ((dev)->pci_device == 0xa001) |