Displaying 1 result from an estimated 1 matches for "graphicsmod".
Did you mean:
graphicsmode
2009 Aug 02
3
[PATCH 1/4] drm/nouveau: refactor VGA font save/restore
...* 4);
+ } else {
+ iowrite32_native(dev_priv->saved_vga_font[plane][i],
+ iovram + i * 4);
+ }
+ }
+}
+
void
nouveau_hw_save_vga_fonts(struct drm_device *dev, bool save)
{
- struct drm_nouveau_private *dev_priv = dev->dev_private;
uint8_t misc, gr4, gr5, gr6, seq2, seq4;
bool graphicsmode;
- int i;
+ unsigned plane;
+ void __iomem *iovram;
if (nv_two_heads(dev))
NVSetOwner(dev, 0);
@@ -552,10 +572,19 @@ nouveau_hw_save_vga_fonts(struct drm_device *dev, bool save)
graphicsmode = NVReadVgaAttr(dev, 0, NV_CIO_AR_MODE_INDEX) & 1;
NVSetEnablePalette(dev, 0, false);
- if...