LCD follow-up

Search this archive.

From: Kevin D. Quitt (KQuitt@ieeinc.com)
Date: Fri 01 Jun 2001 - 02:58:36 IDT


Is there a program that will read the output from dumpreg and restore the
registers to that state?  Or a function to facilitate such an effort?

Register dump before program:

static unsigned char regs[142] = {
  0x5F,0x4F,0x50,0x82,0x55,0x81,0xBF,0x1F,      /* CR00-CR18 */
  0x00,0x47,0x06,0x07,0x14,0x50,0x1C,0xC0,
  0x9C,0x0E,0x8F,0x28,0x1F,0x96,0xB9,0xA3,
  0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,      /* AR00-AR15 */
  0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,
  0x0C,0x00,0x0F,0x08,0x00,
  0x00,0x00,0x00,0x00,0x00,0x10,0x0E,0x00,      /* GR00-GR05 */
  0xFF,
  0x03,0x00,0x03,0x00,0x02,                     /* SR00-SR05 */
  0x6F,                                         /* MISC_OUT  */
  /* Extended (count = 0x52) */
  0x81,0x22,0x81,0xD2,0x5A,0x00,0x00,0x81,
  0x00,0x2B,0x11,0x2E,0x27,0x05,0x00,0x00,
  0x00,0x80,0x00,0x28,0x03,0x20,0x00,0x80,
  0x44,0x41,0xFE,0xE5,0x00,0x23,0x00,0x04,
  0x04,0x01,0xF0,0x03,0xEF,0x00,0x20,0x20,
  0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
  0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
  0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
  0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
  0x20,0x20,0x20,0x20,0x20,0x0C,0x03,0x4E,
  0x59,0x20,
};

Register dump after program:

static unsigned char regs[142] = {
  0x5F,0x4F,0x50,0x82,0x55,0x81,0xBF,0x1F,      /* CR00-CR18 */
  0x00,0x4F,0x0D,0x0E,0x00,0x00,0x08,0x70,
  0x9C,0x0E,0x8F,0x28,0x1F,0x96,0xB9,0xA3,
  0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,      /* AR00-AR15 */
  0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,
  0x0C,0x00,0x0F,0x08,0x00,
  0x00,0x00,0x00,0x00,0x00,0x10,0x0E,0x00,      /* GR00-GR05 */
  0xFF,
  0x03,0x00,0x03,0x00,0x02,                     /* SR00-SR05 */
  0x6F,                                         /* MISC_OUT  */
  /* Extended (count = 0x52) */
  0x81,0x22,0x81,0xD2,0x5A,0x00,0x00,0x81,
  0x00,0x2B,0x11,0x2E,0x27,0x05,0x00,0x00,
  0x00,0x80,0x00,0x28,0x03,0x20,0x00,0x80,
  0x44,0x41,0xFE,0xE5,0x00,0x23,0x00,0x04,
  0x04,0x01,0xF0,0x03,0xEF,0x00,0x20,0x20,
  0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
  0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
  0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
  0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
  0x20,0x20,0x20,0x20,0x20,0x0C,0x03,0x4E,
  0x59,0x20,
};


After executing mode3, I get:

static unsigned char regs[142] = {
  0x5F,0x4F,0x50,0x82,0x55,0x81,0xBF,0x1F,      /* CR00-CR18 */
  0x00,0x4F,0x0D,0x0E,0x00,0x00,0x09,0x60,
  0x9C,0x0E,0x8F,0x28,0x1F,0x96,0xB9,0xA3,
  0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,      /* AR00-AR15 */
  0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,
  0x0C,0x00,0x0F,0x08,0x00,
  0x00,0x00,0x00,0x00,0x00,0x10,0x0E,0x00,      /* GR00-GR05 */
  0xFF,
  0x03,0x00,0x03,0x00,0x02,                     /* SR00-SR05 */
  0x6F,                                         /* MISC_OUT  */
  /* Extended (count = 0x52) */
  0x81,0x22,0x81,0xD2,0x5A,0x00,0x00,0x81,
  0x00,0x2B,0x11,0x2E,0x27,0x05,0x00,0x00,
  0x00,0x80,0x00,0x28,0x03,0x20,0x00,0x80,
  0x44,0x41,0xFE,0xE5,0x00,0x23,0x00,0x04,
  0x04,0x01,0xF0,0x03,0xEF,0x00,0x20,0x20,
  0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
  0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
  0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
  0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
  0x20,0x20,0x20,0x20,0x20,0x0C,0x03,0x4E,
  0x59,0x20,
};

--
 _
Kevin D. Quitt					             KQuitt@ieeinc.com
		      96.37% of all statistics are made up



------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:24 IST