Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132190
b: refs/heads/master
c: 66824bd
h: refs/heads/master
v: v3
  • Loading branch information
Pierre Willenbrock authored and Eric Anholt committed Mar 10, 2009
1 parent 0fddd35 commit 49533ee
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0fce81e3ccd093f4826de40fbd27fac9632f6170
refs/heads/master: 66824bd7b5dc22da367595359bfcd1149c4ce92a
1 change: 0 additions & 1 deletion trunk/drivers/gpu/drm/i915/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ typedef struct drm_i915_private {
u8 saveAR_INDEX;
u8 saveAR[21];
u8 saveDACMASK;
u8 saveDACDATA[256*3]; /* 256 3-byte colors */
u8 saveCR[37];

struct {
Expand Down
11 changes: 0 additions & 11 deletions trunk/drivers/gpu/drm/i915/i915_suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,6 @@ static void i915_save_vga(struct drm_device *dev)

/* VGA color palette registers */
dev_priv->saveDACMASK = I915_READ8(VGA_DACMASK);
/* DACCRX automatically increments during read */
I915_WRITE8(VGA_DACRX, 0);
/* Read 3 bytes of color data from each index */
for (i = 0; i < 256 * 3; i++)
dev_priv->saveDACDATA[i] = I915_READ8(VGA_DACDATA);

/* MSR bits */
dev_priv->saveMSR = I915_READ8(VGA_MSR_READ);
Expand Down Expand Up @@ -225,12 +220,6 @@ static void i915_restore_vga(struct drm_device *dev)

/* VGA color palette registers */
I915_WRITE8(VGA_DACMASK, dev_priv->saveDACMASK);
/* DACCRX automatically increments during read */
I915_WRITE8(VGA_DACWX, 0);
/* Read 3 bytes of color data from each index */
for (i = 0; i < 256 * 3; i++)
I915_WRITE8(VGA_DACDATA, dev_priv->saveDACDATA[i]);

}

int i915_save_state(struct drm_device *dev)
Expand Down

0 comments on commit 49533ee

Please sign in to comment.