Home | History | Annotate | Line # | Download | only in ic
ct65550reg.h revision 1.2.38.1
      1  1.2.38.1  pgoyette /*	$NetBSD: ct65550reg.h,v 1.2.38.1 2017/03/20 06:57:28 pgoyette Exp $	*/
      2       1.1  macallan 
      3       1.1  macallan /*
      4       1.1  macallan  * Copyright 2006 by Michael Lorenz.
      5       1.1  macallan  *
      6       1.1  macallan  * Redistribution and use in source and binary forms, with or without
      7       1.1  macallan  * modification, are permitted provided that the following conditions
      8       1.1  macallan  * are met:
      9       1.1  macallan  * 1. Redistributions of source code must retain the above copyright
     10       1.1  macallan  *    notice, this list of conditions and the following disclaimer.
     11       1.1  macallan  * 2. Redistributions in binary form must reproduce the above copyright
     12       1.1  macallan  *    notice, this list of conditions and the following disclaimer in the
     13       1.1  macallan  *    documentation and/or other materials provided with the distribution.
     14       1.1  macallan  *
     15       1.1  macallan  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     16       1.1  macallan  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     17       1.1  macallan  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     18       1.1  macallan  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     19       1.1  macallan  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     20       1.1  macallan  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     21       1.1  macallan  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     22       1.1  macallan  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     23       1.1  macallan  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     24       1.1  macallan  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     25       1.1  macallan  *
     26       1.1  macallan */
     27       1.1  macallan 
     28       1.1  macallan #ifndef CHIPSFB_H
     29       1.1  macallan #define CHIPSFB_H
     30       1.1  macallan 
     31       1.1  macallan /* VGA */
     32       1.1  macallan #define CRTC_INDEX	0x3d4
     33       1.1  macallan #define CRTC_DATA	0x3d5
     34       1.1  macallan #define SEQ_INDEX	0x3c4
     35       1.1  macallan #define SEQ_DATA	0x3c5
     36       1.1  macallan #define MISC_W		0x3c2
     37       1.1  macallan #define GRA_INDEX	0x3ce
     38       1.1  macallan #define GRA_DATA	0x3cf
     39       1.1  macallan #define ATT_IW		0x3c0
     40       1.1  macallan 
     41       1.1  macallan /* palette */
     42       1.1  macallan #define CT_DACMASK	0x3c6
     43       1.1  macallan #define CT_DACSTATE	0x3c7	/* read only */
     44       1.1  macallan #define CT_READINDEX	0x3c7	/* write only */
     45       1.1  macallan #define CT_WRITEINDEX	0x3c8
     46       1.1  macallan #define CT_DACDATA	0x3c9
     47       1.1  macallan 
     48       1.1  macallan /* extended VGA */
     49       1.1  macallan #define CT_FP_INDEX	0x3d0
     50       1.1  macallan #define CT_FP_DATA	0x3d1
     51       1.1  macallan #define CT_MM_INDEX	0x3d2
     52       1.1  macallan #define CT_MM_DATA	0x3d3
     53       1.1  macallan #define CT_CONF_INDEX	0x3d6
     54       1.1  macallan #define CT_CONF_DATA	0x3d7
     55       1.1  macallan 
     56       1.1  macallan /* offsets in aperture */
     57       1.1  macallan #define CT_OFF_FB	0x00000000
     58       1.1  macallan #define CT_OFF_BITBLT	0x00400000
     59       1.1  macallan #define CT_OFF_DRAW	0x00400040
     60       1.1  macallan #define CT_OFF_DATA	0x00410000
     61       1.1  macallan 
     62       1.1  macallan #define CT_OFF_BE	0x00800000
     63       1.1  macallan 
     64       1.1  macallan /* blitter registers */
     65       1.2  macallan #define CT_BLT_STRIDE	0x00000000
     66       1.1  macallan 	/*
     67       1.1  macallan 	 * upper 16 bit are destination stride in bytes
     68       1.1  macallan 	 * lower 16 bit are source stride in bytes
     69       1.1  macallan 	 */
     70       1.1  macallan 
     71       1.2  macallan #define CT_BLT_BG	0x04
     72       1.2  macallan #define CT_BLT_FG	0x08
     73       1.2  macallan #define CT_BLT_EXPCTL	0x0c	/* expansion control */
     74       1.1  macallan 	#define LEFT_CLIPPING_MSK	0x0000003f
     75       1.1  macallan 	#define MONO_RIGHT_CLIPPING_MSK	0x00003f00
     76       1.1  macallan 	#define MONO_INITIAL_DISCARD	0x003f0000
     77       1.1  macallan 	#define MONO_SRC_ALIGN_MASK	0x07000000
     78       1.1  macallan 	#define MONO_SRC_ALIGN_BIT	0x01000000
     79       1.1  macallan 	#define MONO_SRC_ALIGN_BYTE	0x02000000
     80       1.1  macallan 	#define MONO_SRC_ALIGN_WORD	0x03000000
     81       1.1  macallan 	#define MONO_SRC_ALIGN_LONG	0x04000000
     82       1.1  macallan 	#define MONO_SRC_ALIGN_LONGLONG	0x05000000
     83       1.1  macallan 	#define MONO_SELECT_ALT_FG_BG	0x08000000 /* use CT_SRC_EXP_* */
     84       1.1  macallan 
     85       1.2  macallan #define CT_BLT_CONTROL	0x10
     86       1.1  macallan 	#define BLT_ROP_MASK		0x000000ff
     87       1.1  macallan 	#define BLT_START_RIGHT		0x00000100 /* 0 for start left */
     88       1.1  macallan 	#define BLT_START_BOTTOM	0x00000200 /* 0 for start top */
     89       1.1  macallan 	#define BLT_SRC_IS_CPU		0x00000400 /* 0 for vram source */
     90       1.1  macallan 	#define BLT_SRC_IS_MONO		0x00001000
     91       1.1  macallan 	#define BLT_MONO_TRANSPARENCY	0x00002000
     92       1.1  macallan 	#define BLT_COLOR_COMPARE_MASK	0x0001c000 /* 0 for no color keying */
     93       1.1  macallan 	#define BLT_PAT_TRANSPARENCY	0x00020000 /* pattern is transparent */
     94       1.1  macallan 	#define BLT_PAT_IS_MONO		0x00040000
     95       1.1  macallan 	#define BLT_PAT_IS_SOLID	0x00080000 /* ignore pattern */
     96       1.1  macallan 	#define BLT_PAT_VERT_ALIGN_MASK	0x00700000
     97       1.1  macallan 	#define BLT_IS_BUSY		0x80000000
     98       1.1  macallan 
     99       1.1  macallan #define ROP_COPY	0xcc
    100       1.1  macallan #define ROP_NOT_SRC	0x33
    101       1.1  macallan #define ROP_NOT_DST	0x55
    102       1.1  macallan #define ROP_PAT		0xf0
    103       1.1  macallan 
    104       1.2  macallan #define CT_BLT_PATTERN	0x14 /* address in vram */
    105       1.2  macallan #define CT_BLT_SRCADDR	0x18
    106       1.2  macallan #define CT_BLT_DSTADDR	0x1c
    107       1.1  macallan 
    108       1.2  macallan #define CT_BLT_SIZE	0x20	/* width and height */
    109       1.1  macallan /*
    110       1.1  macallan  * upper 16 bit are destination height
    111       1.1  macallan  * lower 16 bit are destination width in bytes
    112       1.1  macallan  */
    113       1.1  macallan 
    114       1.2  macallan #define CT_SRC_EXP_BG	0x24
    115       1.2  macallan #define CT_SRC_EXP_FG	0x28
    116       1.1  macallan 
    117       1.1  macallan /* extension registers ( via CT_CONF */
    118       1.1  macallan #define XR_VENDOR_LO		0x00
    119       1.1  macallan #define XR_VENDOR_HI		0x01
    120       1.1  macallan #define XR_DEVICE_LO		0x02
    121       1.1  macallan #define XR_DEVICE_HI		0x03
    122       1.1  macallan #define XR_REVISION		0x04
    123       1.1  macallan #define XR_LINEAR_BASE_LO	0x05
    124       1.1  macallan #define XR_LINEAR_BASE_HI	0x06
    125       1.1  macallan 
    126       1.1  macallan #define XR_CONFIGURATION	0x08
    127       1.1  macallan 	#define BUS_PCI		0x01
    128       1.1  macallan 	#define BUS_VL		0x00
    129       1.1  macallan 	#define ENABLE_PCI	0x02
    130       1.1  macallan 
    131       1.1  macallan #define XR_IO_CONTROL		0x09
    132       1.1  macallan 	#define ENABLE_CRTC_EXT	0x01
    133       1.1  macallan 	#define ENABLE_ATTR_EXT	0x02
    134       1.1  macallan 
    135       1.1  macallan #define XR_ADDR_MAPPING		0x0a
    136       1.1  macallan 	#define ENABLE_MAPPING	0x01	/* in VGA window */
    137       1.1  macallan 	#define ENABLE_LINEAR	0x02
    138       1.1  macallan 	#define ENABLE_PACKED	0x04
    139       1.1  macallan 	#define FB_SWAP_NONE	0x00
    140       1.1  macallan 	#define FB_SWAP_16	0x10
    141       1.1  macallan 	#define FB_SWAP_32	0x20
    142       1.1  macallan 
    143       1.1  macallan #define XR_BURST_WRITE_MODE	0x0b
    144       1.1  macallan 
    145       1.1  macallan #define XR_PAGE_SELECT		0x0e
    146       1.1  macallan 
    147       1.1  macallan #define XR_BITBLT_CONTROL0	0x20
    148       1.1  macallan 	#define BLITTER_BUSY	0x01
    149       1.1  macallan 	#define BLITTER_RESET	0x02
    150       1.1  macallan 	#define BLITTER_8BIT	0x00
    151       1.1  macallan 	#define BLITTER_16BIT	0x10
    152       1.1  macallan 	#define BLITTER_24BIT	0x20
    153       1.1  macallan 	#define BLITTER_32BIT	0x30	/* reserved */
    154       1.1  macallan 
    155       1.1  macallan #define XR_DRAM_ACCESS_CONTROL	0x40
    156       1.1  macallan 	#define	ENABLE_64BIT	0x01
    157       1.1  macallan 	#define DISABLE_WRAP	0x02	/* otherwise only 256kB */
    158       1.1  macallan 	#define EXTENDED_TEXT	0x10
    159       1.1  macallan 
    160       1.1  macallan #define XR_DRAM_TYPE		0x41
    161       1.1  macallan 	#define DRAM_FASTPAGE	0x00
    162       1.1  macallan 	#define DRAM_EDO	0x01
    163       1.1  macallan 
    164       1.1  macallan #define XR_DRAM_CONFIG		0x42
    165       1.1  macallan 	#define DRAM_8BIT_COL	0x00
    166       1.1  macallan 	#define DRAM_9BIT_COL	0x01
    167       1.1  macallan 
    168       1.1  macallan #define XR_DRAM_INTERFACE	0x43
    169       1.1  macallan #define XR_DRAM_TIMING		0x44
    170       1.1  macallan 
    171       1.1  macallan #define XR_VIDEO_PIN_CONTROL	0x60
    172       1.1  macallan #define XR_DDC_SYNC_SELECT	0x61
    173       1.1  macallan 	#define DDC_HSYNC_DATA	0x01
    174       1.1  macallan 	#define DDC_HSYNC_OUT	0x02	/* hsync is controlled by above */
    175       1.1  macallan 	#define DDC_VSYNC_DATA	0x04
    176       1.1  macallan 	#define DDC_VSYNC_OUT	0x08	/* vsync is controlled by above */
    177       1.1  macallan 	#define DDC_HV_POWERDOWN 0x10
    178       1.1  macallan 	#define DDC_ENABLE_HSYNC 0x20
    179       1.1  macallan 	#define DDC_ENABLE_VSYNC 0x40
    180       1.1  macallan 
    181       1.1  macallan /*
    182       1.1  macallan  * upper 6 bit define if corresponding bits in DATA are input or output
    183       1.1  macallan  * 1 selects output
    184       1.1  macallan  */
    185       1.1  macallan #define XR_GPIO_CONTROL		0x62
    186       1.1  macallan #define XR_GPIO_DATA		0x63
    187       1.1  macallan 
    188       1.1  macallan #define XR_PIN_TRISTATE_CONTROL	0x67
    189       1.1  macallan 
    190       1.1  macallan #define XR_CONFIG_PINS_0	0x70
    191       1.1  macallan #define XR_CONFIG_PINS_1	0x71
    192       1.1  macallan 
    193       1.1  macallan #define XR_PIXEL_PIPELINE_CTL_0	0x80
    194       1.1  macallan 	#define ENABLE_EXTENDED_PALETTE	0x01
    195       1.1  macallan 	#define ENABLE_CRT_OVERSCAN	0x02
    196       1.1  macallan 	#define ENABLE_PANEL_OVERSCAN	0x04
    197       1.1  macallan 	#define ENABLE_EXTENDED_STATUS	0x08
    198       1.1  macallan 	#define ENABLE_CURSOR_1		0x10
    199       1.1  macallan 	#define ENABLE_PIXEL_AVERAGING	0x20
    200       1.1  macallan 	#define SELECT_PIXEL_STREAM	0x40	/* 1 for P1 */
    201       1.1  macallan 	#define ENABLE_8BIT_DAC		0x80	/* 6 bit otherwise */
    202       1.1  macallan 
    203       1.1  macallan #define XR_PIXEL_PIPELINE_CTL_1	0x81
    204       1.1  macallan 	#define COLOR_VGA		0x00
    205       1.1  macallan 	#define COLOR_8BIT_EXTENDED	0x02
    206       1.1  macallan 	#define COLOR_15BIT		0x04
    207       1.1  macallan 	#define COLOR_16BIT		0x05
    208       1.1  macallan 	#define COLOR_24BIT		0x06
    209       1.1  macallan 	#define COLOR_32BIT		0x07
    210       1.1  macallan 
    211       1.1  macallan #define XR_PIXEL_PIPELINE_CTL_2	0x82
    212       1.1  macallan 	#define ENABLE_BLANK_PEDESTAL	0x01
    213       1.1  macallan 	#define ENABLE_SYNC_ON_GREEN	0x02
    214       1.1  macallan 	#define ENABLE_VIDEO_GAMMA	0x04
    215       1.1  macallan 	#define ENABLE_GRAPHICS_GAMMA	0x08
    216       1.1  macallan 
    217       1.1  macallan #define XR_CURSOR_1_CTL		0xa0
    218       1.1  macallan #define XR_CURSOR_1_VERT_EXT	0xa1
    219       1.1  macallan #define XR_CURSOR_1_BASEADDR_LO	0xa2
    220       1.1  macallan #define XR_CURSOR_1_BASEADDR_HI	0xa3
    221       1.1  macallan #define XR_CURSOR_1_X_LO	0xa4
    222       1.1  macallan #define XR_CURSOR_1_X_HI	0xa5
    223       1.1  macallan #define XR_CURSOR_1_Y_LO	0xa6
    224       1.1  macallan #define XR_CURSOR_1_Y_HI	0xa7
    225       1.1  macallan 
    226       1.1  macallan #define XR_CURSOR_2_CTL		0xa8
    227       1.1  macallan #define XR_CURSOR_2_VERT_EXT	0xa9
    228       1.1  macallan #define XR_CURSOR_2_BASEADDR_LO	0xaa
    229       1.1  macallan #define XR_CURSOR_2_BASEADDR_HI	0xab
    230       1.1  macallan #define XR_CURSOR_2_X_LO	0xac
    231       1.1  macallan #define XR_CURSOR_2_X_HI	0xad
    232       1.1  macallan #define XR_CURSOR_2_Y_LO	0xae
    233       1.1  macallan #define XR_CURSOR_2_Y_HI	0xaf
    234       1.1  macallan 
    235  1.2.38.1  pgoyette /* reference clock is 14.31818MHz */
    236  1.2.38.1  pgoyette #define CHIPS_REFCLOCK	14318180
    237  1.2.38.1  pgoyette 
    238       1.1  macallan #define XR_VCLOCK_0_M		0xc0
    239       1.1  macallan #define XR_VCLOCK_0_N		0xc1
    240       1.1  macallan #define XR_VCLOCK_0_MN_MSBS	0xc2
    241       1.1  macallan #define XR_VCLOCK_0_DIV_SELECT	0xc3
    242       1.1  macallan 
    243       1.1  macallan #define XR_VCLOCK_1_M		0xc4
    244       1.1  macallan #define XR_VCLOCK_1_N		0xc5
    245       1.1  macallan #define XR_VCLOCK_1_MN_MSBS	0xc6
    246       1.1  macallan #define XR_VCLOCK_1_DIV_SELECT	0xc7
    247       1.1  macallan 
    248       1.1  macallan #define XR_VCLOCK_2_M		0xc8
    249       1.1  macallan #define XR_VCLOCK_2_N		0xc9
    250       1.1  macallan #define XR_VCLOCK_2_MN_MSBS	0xca
    251       1.1  macallan #define XR_VCLOCK_2_DIV_SELECT	0xcb
    252       1.1  macallan 
    253       1.1  macallan #define XR_MEMCLOCK_M		0xcc
    254       1.1  macallan #define XR_MEMCLOCK_N		0xcd
    255       1.1  macallan #define XR_MEMCLOCK_DIV_SELECT	0xce
    256       1.1  macallan #define XR_CLOCK_CONFIG		0xcf
    257       1.1  macallan 
    258       1.1  macallan #define XR_MODULE_POWER_DOWN	0xd0
    259       1.1  macallan #define XR_DOWN_COUNTER		0xd2
    260       1.1  macallan 
    261       1.1  macallan #define XR_SOFTWARE_FLAG_0	0xe0
    262       1.1  macallan #define XR_SOFTWARE_FLAG_1	0xe1
    263       1.1  macallan #define XR_SOFTWARE_FLAG_2	0xe2
    264       1.1  macallan #define XR_SOFTWARE_FLAG_3	0xe3
    265       1.1  macallan #define XR_SOFTWARE_FLAG_4	0xe4
    266       1.1  macallan #define XR_SOFTWARE_FLAG_5	0xe5
    267       1.1  macallan #define XR_SOFTWARE_FLAG_6	0xe6
    268       1.1  macallan #define XR_SOFTWARE_FLAG_7	0xe7
    269       1.1  macallan 
    270       1.1  macallan #define XR_TEST_BLOCK_SELECT	0xf8
    271       1.1  macallan #define XR_TEST_CONTROL_PORT	0xf9
    272       1.1  macallan #define XR_TEST_DATA_PORT	0xfa
    273       1.1  macallan #define XR_SCAN_TEST_CONTROL_0	0xfb
    274       1.1  macallan #define XR_SCAN_TEST_CONTROL_1	0xfc
    275       1.1  macallan 
    276       1.1  macallan /* flat panel control registers, via CT_FP_* */
    277       1.1  macallan #define FP_FEATURE		0x00
    278       1.1  macallan 	#define PANEL_EXISTS	0x01
    279       1.1  macallan 	#define POPUP_EXISTS	0x04
    280       1.1  macallan 
    281       1.1  macallan #define FP_CRT_FP_CONTROL	0x01
    282       1.1  macallan 	#define ENABLE_CRT	0x01
    283       1.1  macallan 	#define ENABLE_PANEL	0x02
    284       1.1  macallan 
    285       1.1  macallan #define FP_MODE_CONTROL		0x02
    286       1.1  macallan #define FP_DOT_CLOCK_SOURCE	0x03
    287       1.1  macallan 	#define FP_CLOCK_0	0x00
    288       1.1  macallan 	#define FP_CLOCK_1	0x04
    289       1.1  macallan 	#define FP_CLOCK_2	0x08
    290       1.1  macallan 	#define USE_VIDEO_CLOCK	0x00
    291       1.1  macallan 	#define USE_MEM_CLOCK	0x10
    292       1.1  macallan 
    293       1.1  macallan #define FP_POWER_SEQ_DELAY	0x04
    294       1.1  macallan /*
    295       1.1  macallan  * upper 4 bits select power up delay in 3.4ms increments
    296       1.1  macallan  * lower 4 bits select power down delay in 29ms increments
    297       1.1  macallan  */
    298       1.1  macallan 
    299       1.1  macallan #define FP_POWER_DOWN_CTL_1	0x05
    300       1.1  macallan /* the lower 3 bits select how many refresh cycles per scanline are preformed */
    301       1.1  macallan 	#define PANEL_POWER_OFF	0x08
    302       1.1  macallan 	#define HOST_STANDBY	0x10
    303       1.1  macallan 	#define PANEL_TRISTATE	0x20
    304       1.1  macallan 	#define NO_SEFL_REFRESH	0x40
    305       1.1  macallan 	#define PANEL_INACTIVE	0x80
    306       1.1  macallan 
    307       1.1  macallan /* these bits are effective when the panel is powered down */
    308       1.1  macallan #define FP_POWER_DOWN_CTL_0	0x06
    309       1.1  macallan 	#define FP_VGA_PALETTE_POWERDOWN	0x01
    310       1.1  macallan 	#define FP_VGA_PALETTE_ENABLE		0x02
    311       1.1  macallan 	#define FP_ENABLE_SYNC			0x04
    312       1.1  macallan 
    313       1.1  macallan #define FP_PIN_POLARITY		0x08
    314       1.1  macallan 	#define FP_DISPLAY_NEGATIVE	0x02
    315       1.1  macallan 	#define FP_HSYNC_NEGATIVE	0x04
    316       1.1  macallan 	#define FP_VSYNC_NEGATIVE	0x08
    317       1.1  macallan 	#define FP_TEXT_VIDEO_INVERT	0x10
    318       1.1  macallan 	#define FP_GRAPHICS_INVERT	0x20
    319       1.1  macallan 	#define CRT_HSYNC_NEGATIVE	0x40
    320       1.1  macallan 	#define CRT_VSYNC_NEGATIVE	0x80
    321       1.1  macallan 
    322       1.1  macallan #define FP_OUTPUT_DRIVE		0x0a
    323       1.1  macallan 	#define VL_THRESHOLD_5V		0x02	/* 3.3v otherwise */
    324       1.1  macallan 	#define FP_DRIVE_HIGH		0x04	/* req. with 3.3v */
    325       1.1  macallan 	#define BUS_INTERFACE_LOW	0x08	/* req. with 3.3v */
    326       1.1  macallan 	#define MEM_DRIVE_HIGHER	0x10
    327       1.1  macallan 	#define MEM_C_DRIVE_HIGHER	0x20
    328       1.1  macallan 	#define SYNC_DRIVE_HIGHER	0x40
    329       1.1  macallan 
    330       1.1  macallan #define FP_PIN_CONTROL_1	0x0b
    331       1.1  macallan 	#define DISPLAY_ENABLE_ON_69	0x01	/* M signal otherwise */
    332       1.1  macallan 	#define DISPLAY_ENABLE_ON_68	0x02	/* FP Hsync otherwise */
    333       1.1  macallan 	#define COMPOSITE_SYNC_ON_65	0x04	/* separate otherwise */
    334       1.1  macallan 	#define BACKLIGHT_ON_61		0x08	/* on 54 otherwise */
    335       1.1  macallan 	#define GPIO_ON_154		0x10
    336       1.1  macallan 	#define SIMPLE_COMPOSITE_SYNC	0x20
    337       1.1  macallan 	#define MEM_C_TRISTATE		0x80
    338       1.1  macallan 
    339       1.1  macallan #define FP_PIN_CONTROL_2	0x0c
    340       1.1  macallan 	#define ACTI_ON_53		0x00
    341       1.1  macallan 	#define COMPOSITE_SYNC_ON_53	0x08
    342       1.1  macallan 	#define GPIO_IN_ON_53		0x10
    343       1.1  macallan 	#define GPIO_OUT_ON_53		0x18
    344       1.1  macallan 	#define ENABKL_ON_54		0x00
    345       1.1  macallan 	#define COMPOSITE_SYNC_ON_54	0x40
    346       1.1  macallan 	#define GPIO_IN_ON_54		0x80
    347       1.1  macallan 	#define GPIO_OUT_ON_54		0xc0
    348       1.1  macallan 
    349       1.1  macallan #define FP_ACTIVITY_CONTROL	0x0f
    350       1.1  macallan /* the lower 5 bits select a timeout in 28.1s increments */
    351       1.1  macallan 	#define PANEL_OFF_ON_TIMEOUT	0x40 /* backlight off otherwise */
    352       1.1  macallan 	#define ENABLE_ACTIVITY_TIMER	0x80
    353       1.1  macallan 
    354       1.1  macallan #define FP_PANEL_FORMAT_0	0x10
    355       1.1  macallan 	#define SINGLE_PANEL_SINGLE_DRIVE	0x00
    356       1.1  macallan 	#define DUAL_PANEL_DUAL_DRIVE		0x03
    357       1.1  macallan 	#define MONO_NTSC			0x00
    358       1.1  macallan 	#define MONO_EQUIV_WEIGHT		0x04
    359       1.1  macallan 	#define MONO_GREEN_ONLY			0x08
    360       1.1  macallan 	#define COLOUR_PANEL			0x0c
    361       1.1  macallan 	#define SHIFT_CLOCK_DIVIDER_MASK	0x70
    362       1.1  macallan 
    363       1.1  macallan #define FP_PANEL_FORMAT_1	0x11
    364       1.1  macallan 
    365       1.1  macallan #define FP_PANEL_FORMAT_2	0x12
    366       1.1  macallan #define FP_PANEL_FORMAT_3	0x13
    367       1.1  macallan 
    368       1.1  macallan #define FP_FRC_OPTION_SELECT	0x16
    369       1.1  macallan #define FP_POLYNOMIAL_FRC_CTL	0x17
    370       1.1  macallan 
    371       1.1  macallan #define FP_TEXTMODE_CONTROL	0x18
    372       1.1  macallan #define FP_BLINK_RATE_CONTROL	0x19
    373       1.1  macallan #define FP_FB_CONTROL		0x1a
    374       1.1  macallan 
    375       1.1  macallan #define FP_ACDCLK_CONTROL	0x1e
    376       1.1  macallan #define FP_DIAGNOSTIC		0x1f
    377       1.1  macallan 
    378       1.1  macallan #define FP_HSIZE_LSB		0x20 /* panel size - 1 */
    379       1.1  macallan #define FP_HSYNC_START		0x21 /* value - 1 */
    380       1.1  macallan #define FP_HSYNC_END		0x22
    381       1.1  macallan #define FP_HTOTAL_LSB		0x23 /* value - 5 */
    382       1.1  macallan #define FP_HSYNC_DELAY_LSB	0x24
    383       1.1  macallan #define FP_HORZ_OVERFLOW_1	0x25
    384       1.1  macallan /*
    385       1.1  macallan  * upper 4 bits are upper 4 bits of FP_HSYNC_START
    386       1.1  macallan  * lower 4 bits are upper 4 bits of FP_HSIZE_LSB
    387       1.1  macallan  */
    388       1.1  macallan 
    389       1.1  macallan #define FP_HORZ_OVERFLOW_2	0x26
    390       1.1  macallan /*
    391       1.1  macallan  * upper 4 bits are upper 4 bits of FP_HSYNC_DELAY_LSB
    392       1.1  macallan  * lower 4 bits are upper 4 bits of FP_HTOTAL_LSB
    393       1.1  macallan  */
    394       1.1  macallan 
    395       1.1  macallan #define FP_HSYNC_WIDTH_DISABLE	0x27
    396       1.1  macallan /* lower 7 bits are HSYNC width - 1 */
    397       1.1  macallan 	#define DELAY_DISABLE	0x80
    398       1.1  macallan 
    399       1.1  macallan #define FP_VSIZE_LSB		0x30 /* panel size - 1 */
    400       1.1  macallan #define FP_VSYNC_START		0x31 /* value - 1 */
    401       1.1  macallan #define FP_VSYNC_END		0x32 /* value - 1 */
    402       1.1  macallan #define FP_VTOTAL_LSB		0x33 /* value - 2 */
    403       1.1  macallan #define FP_VSYNC_DELAY_LSB	0x34 /* value - 1 */
    404       1.1  macallan #define FP_VERT_OVERFLOW_1	0x35
    405       1.1  macallan /*
    406       1.1  macallan  * upper 4 bits are upper 4 bits of FP_VSYNC_START
    407       1.1  macallan  * lower 4 bits are upper 4 bits of FP_VSIZE_LSB
    408       1.1  macallan  */
    409       1.1  macallan 
    410       1.1  macallan #define FP_VERT_OVERFLOW_2	0x36
    411       1.1  macallan /*
    412       1.1  macallan  * upper 4 bits are upper 4 bits of FP_VSYNC_DELAY_LSB
    413       1.1  macallan  * lower 4 bits are upper 4 bits of FP_VTOTAL_LSB
    414       1.1  macallan  */
    415       1.1  macallan 
    416       1.1  macallan #define FP_VSYNC_DISABLE	0x37
    417       1.1  macallan 	#define FP_VSYNC_WIDTH_MASK	0x38 /* value - 1 */
    418       1.1  macallan 	#define FP_VSYNC_IS_CRT_VSYNC	0x40
    419       1.1  macallan 	#define FP_VSYNC_DELAY_DISABLE	0x80
    420       1.1  macallan 
    421       1.1  macallan #define FP_HORZ_COMPENSATION	0x40
    422       1.1  macallan #define FP_VERT_COMPENSATION	0x41
    423       1.1  macallan #define FP_VERT_COMPENSATION2	0x48
    424       1.1  macallan 
    425       1.1  macallan #define FP_TEXT_VSTRETCH_0_MSB	0x49
    426       1.1  macallan #define FP_TEXT_VSTRETCH_0_LSB	0x4a
    427       1.1  macallan #define FP_TEXT_VSTRETCH_1_MSB	0x4b
    428       1.1  macallan #define FP_TEXT_VSTRETCH_1_LSB	0x4c
    429       1.1  macallan #define FP_TEXT_LINE_REPL	0x4d
    430       1.1  macallan #define FP_SEL_VSTRETCH_DISABLE	0x4e
    431       1.1  macallan 
    432       1.1  macallan 
    433       1.1  macallan 
    434       1.1  macallan #endif
    435