Home | History | Annotate | Line # | Download | only in pci
      1  1.1  jmcneill /* $NetBSD: unichromehw.h,v 1.1 2006/08/02 01:44:09 jmcneill Exp $ */
      2  1.1  jmcneill 
      3  1.1  jmcneill /*
      4  1.1  jmcneill  * Copyright 1998-2006 VIA Technologies, Inc. All Rights Reserved.
      5  1.1  jmcneill  * Copyright 2001-2006 S3 Graphics, Inc. All Rights Reserved.
      6  1.1  jmcneill  *
      7  1.1  jmcneill  * Permission is hereby granted, free of charge, to any person obtaining a
      8  1.1  jmcneill  * copy of this software and associated documentation files (the "Software"),
      9  1.1  jmcneill  * to deal in the Software without restriction, including without limitation
     10  1.1  jmcneill  * the rights to use, copy, modify, merge, publish, distribute, sub license,
     11  1.1  jmcneill  * and/or sell copies of the Software, and to permit persons to whom the
     12  1.1  jmcneill  * Software is furnished to do so, subject to the following conditions:
     13  1.1  jmcneill  *
     14  1.1  jmcneill  * The above copyright notice and this permission notice (including the
     15  1.1  jmcneill  * next paragraph) shall be included in all copies or substantial portions
     16  1.1  jmcneill  * of the Software.
     17  1.1  jmcneill  *
     18  1.1  jmcneill  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     19  1.1  jmcneill  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     20  1.1  jmcneill  * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
     21  1.1  jmcneill  * THE AUTHOR(S) OR COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
     22  1.1  jmcneill  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
     23  1.1  jmcneill  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
     24  1.1  jmcneill  * DEALINGS IN THE SOFTWARE.
     25  1.1  jmcneill  */
     26  1.1  jmcneill 
     27  1.1  jmcneill #ifndef _DEV_PCI_UNICHROMEHW_H
     28  1.1  jmcneill #define _DEV_PCI_UNICHROMEHW_H
     29  1.1  jmcneill 
     30  1.1  jmcneill //***************************************************//
     31  1.1  jmcneill //* Definition IGA1 Design Method of CRTC Registers *//
     32  1.1  jmcneill //***************************************************//
     33  1.1  jmcneill #define IGA1_HOR_TOTAL_FORMULA(x)           ((x)/8)-5
     34  1.1  jmcneill #define IGA1_HOR_ADDR_FORMULA(x)            ((x)/8)-1
     35  1.1  jmcneill #define IGA1_HOR_BLANK_START_FORMULA(x)     ((x)/8)-1
     36  1.1  jmcneill #define IGA1_HOR_BLANK_END_FORMULA(x,y)     ((x+y)/8)-1
     37  1.1  jmcneill #define IGA1_HOR_SYNC_START_FORMULA(x)      ((x)/8)-1
     38  1.1  jmcneill #define IGA1_HOR_SYNC_END_FORMULA(x,y)      ((x+y)/8)-1
     39  1.1  jmcneill 
     40  1.1  jmcneill #define IGA1_VER_TOTAL_FORMULA(x)           (x)-2
     41  1.1  jmcneill #define IGA1_VER_ADDR_FORMULA(x)            (x)-1
     42  1.1  jmcneill #define IGA1_VER_BLANK_START_FORMULA(x)     (x)-1
     43  1.1  jmcneill #define IGA1_VER_BLANK_END_FORMULA(x,y)     (x+y)-1
     44  1.1  jmcneill #define IGA1_VER_SYNC_START_FORMULA(x)      (x)-1
     45  1.1  jmcneill #define IGA1_VER_SYNC_END_FORMULA(x,y)      (x+y)-1
     46  1.1  jmcneill 
     47  1.1  jmcneill //***************************************************//
     48  1.1  jmcneill //* Definition IGA2 Design Method of CRTC Registers *//
     49  1.1  jmcneill //***************************************************//
     50  1.1  jmcneill #define IGA2_HOR_TOTAL_FORMULA(x)           (x)-1
     51  1.1  jmcneill #define IGA2_HOR_ADDR_FORMULA(x)            (x)-1
     52  1.1  jmcneill #define IGA2_HOR_BLANK_START_FORMULA(x)     (x)-1
     53  1.1  jmcneill #define IGA2_HOR_BLANK_END_FORMULA(x,y)     (x+y)-1
     54  1.1  jmcneill #define IGA2_HOR_SYNC_START_FORMULA(x)      (x)-1
     55  1.1  jmcneill #define IGA2_HOR_SYNC_END_FORMULA(x,y)      (x+y)-1
     56  1.1  jmcneill 
     57  1.1  jmcneill #define IGA2_VER_TOTAL_FORMULA(x)           (x)-1
     58  1.1  jmcneill #define IGA2_VER_ADDR_FORMULA(x)            (x)-1
     59  1.1  jmcneill #define IGA2_VER_BLANK_START_FORMULA(x)     (x)-1
     60  1.1  jmcneill #define IGA2_VER_BLANK_END_FORMULA(x,y)     (x+y)-1
     61  1.1  jmcneill #define IGA2_VER_SYNC_START_FORMULA(x)      (x)-1
     62  1.1  jmcneill #define IGA2_VER_SYNC_END_FORMULA(x,y)      (x+y)-1
     63  1.1  jmcneill 
     64  1.1  jmcneill /**********************************************************/
     65  1.1  jmcneill /* Definition IGA2 Design Method of CRTC Shadow Registers */
     66  1.1  jmcneill /**********************************************************/
     67  1.1  jmcneill #define IGA2_HOR_TOTAL_SHADOW_FORMULA(x)           (x/8)-5
     68  1.1  jmcneill #define IGA2_HOR_BLANK_END_SHADOW_FORMULA(x,y)     ((x+y)/8)-1
     69  1.1  jmcneill #define IGA2_VER_TOTAL_SHADOW_FORMULA(x)           (x)-2
     70  1.1  jmcneill #define IGA2_VER_ADDR_SHADOW_FORMULA(x)            (x)-1
     71  1.1  jmcneill #define IGA2_VER_BLANK_START_SHADOW_FORMULA(x)     (x)-1
     72  1.1  jmcneill #define IGA2_VER_BLANK_END_SHADOW_FORMULA(x,y)     (x+y)-1
     73  1.1  jmcneill #define IGA2_VER_SYNC_START_SHADOW_FORMULA(x)      (x)
     74  1.1  jmcneill #define IGA2_VER_SYNC_END_SHADOW_FORMULA(x,y)      (x+y)
     75  1.1  jmcneill 
     76  1.1  jmcneill /* Define Register Number for IGA1 CRTC Timing */
     77  1.1  jmcneill #define IGA1_HOR_TOTAL_REG_NUM          2           // location: {CR00,0,7},{CR36,3,3}
     78  1.1  jmcneill #define IGA1_HOR_ADDR_REG_NUM           1           // location: {CR01,0,7}
     79  1.1  jmcneill #define IGA1_HOR_BLANK_START_REG_NUM    1           // location: {CR02,0,7}
     80  1.1  jmcneill #define IGA1_HOR_BLANK_END_REG_NUM      3           // location: {CR03,0,4},{CR05,7,7},{CR33,5,5}
     81  1.1  jmcneill #define IGA1_HOR_SYNC_START_REG_NUM     2           // location: {CR04,0,7},{CR33,4,4}
     82  1.1  jmcneill #define IGA1_HOR_SYNC_END_REG_NUM       1           // location: {CR05,0,4}
     83  1.1  jmcneill #define IGA1_VER_TOTAL_REG_NUM          4           // location: {CR06,0,7},{CR07,0,0},{CR07,5,5},{CR35,0,0}
     84  1.1  jmcneill #define IGA1_VER_ADDR_REG_NUM           4           // location: {CR12,0,7},{CR07,1,1},{CR07,6,6},{CR35,2,2}
     85  1.1  jmcneill #define IGA1_VER_BLANK_START_REG_NUM    4           // location: {CR15,0,7},{CR07,3,3},{CR09,5,5},{CR35,3,3}
     86  1.1  jmcneill #define IGA1_VER_BLANK_END_REG_NUM      1           // location: {CR16,0,7}
     87  1.1  jmcneill #define IGA1_VER_SYNC_START_REG_NUM     4           // location: {CR10,0,7},{CR07,2,2},{CR07,7,7},{CR35,1,1}
     88  1.1  jmcneill #define IGA1_VER_SYNC_END_REG_NUM       1           // location: {CR11,0,3}
     89  1.1  jmcneill 
     90  1.1  jmcneill /* Define Register Number for IGA2 Shadow CRTC Timing */
     91  1.1  jmcneill #define IGA2_SHADOW_HOR_TOTAL_REG_NUM       2       // location: {CR6D,0,7},{CR71,3,3}
     92  1.1  jmcneill #define IGA2_SHADOW_HOR_BLANK_END_REG_NUM   1       // location: {CR6E,0,7}
     93  1.1  jmcneill #define IGA2_SHADOW_VER_TOTAL_REG_NUM       2       // location: {CR6F,0,7},{CR71,0,2}
     94  1.1  jmcneill #define IGA2_SHADOW_VER_ADDR_REG_NUM        2       // location: {CR70,0,7},{CR71,4,6}
     95  1.1  jmcneill #define IGA2_SHADOW_VER_BLANK_START_REG_NUM 2       // location: {CR72,0,7},{CR74,4,6}
     96  1.1  jmcneill #define IGA2_SHADOW_VER_BLANK_END_REG_NUM   2       // location: {CR73,0,7},{CR74,0,2}
     97  1.1  jmcneill #define IGA2_SHADOW_VER_SYNC_START_REG_NUM  2       // location: {CR75,0,7},{CR76,4,6}
     98  1.1  jmcneill #define IGA2_SHADOW_VER_SYNC_END_REG_NUM    1       // location: {CR76,0,3}
     99  1.1  jmcneill 
    100  1.1  jmcneill /* Define Register Number for IGA2 CRTC Timing */
    101  1.1  jmcneill #define IGA2_HOR_TOTAL_REG_NUM          2           // location: {CR50,0,7},{CR55,0,3}
    102  1.1  jmcneill #define IGA2_HOR_ADDR_REG_NUM           2           // location: {CR51,0,7},{CR55,4,6}
    103  1.1  jmcneill #define IGA2_HOR_BLANK_START_REG_NUM    2           // location: {CR52,0,7},{CR54,0,2}
    104  1.1  jmcneill #define IGA2_HOR_BLANK_END_REG_NUM      3           // location: {CR53,0,7},{CR54,3,5},{CR5D,6,6}
    105  1.1  jmcneill #define IGA2_HOR_SYNC_START_REG_NUM     3           // location: {CR56,0,7},{CR54,6,7},{CR5C,7,7}
    106  1.1  jmcneill #define IGA2_HOR_SYNC_END_REG_NUM       2           // location: {CR57,0,7},{CR5C,6,6}
    107  1.1  jmcneill #define IGA2_VER_TOTAL_REG_NUM          2           // location: {CR58,0,7},{CR5D,0,2}
    108  1.1  jmcneill #define IGA2_VER_ADDR_REG_NUM           2           // location: {CR59,0,7},{CR5D,3,5}
    109  1.1  jmcneill #define IGA2_VER_BLANK_START_REG_NUM    2           // location: {CR5A,0,7},{CR5C,0,2}
    110  1.1  jmcneill #define IGA2_VER_BLANK_END_REG_NUM      2           // location: {CR5E,0,7},{CR5C,3,5}
    111  1.1  jmcneill #define IGA2_VER_SYNC_START_REG_NUM     2           // location: {CR5E,0,7},{CR5F,5,7}
    112  1.1  jmcneill #define IGA2_VER_SYNC_END_REG_NUM       1           // location: {CR5F,0,4}
    113  1.1  jmcneill 
    114  1.1  jmcneill /* Define Offset and Fetch Count Register*/
    115  1.1  jmcneill #define IGA1_OFFSET_REG_NUM             2                                 // location: {CR13,0,7},{CR35,5,7}
    116  1.1  jmcneill #define IGA1_OFFSER_ALIGN_BYTE          8                                 // 8 bytes alignment.
    117  1.1  jmcneill #define IGA1_OFFSET_FORMULA(x,y)        (x*y)/IGA1_OFFSER_ALIGN_BYTE      // x: H resolution, y: color depth
    118  1.1  jmcneill 
    119  1.1  jmcneill #define IGA1_FETCH_COUNT_REG_NUM        2                                 // location: {SR1C,0,7},{SR1D,0,1}
    120  1.1  jmcneill #define IGA1_FETCH_COUNT_ALIGN_BYTE     16                                // 16 bytes alignment.
    121  1.1  jmcneill #define IGA1_FETCH_COUNT_PATCH_VALUE    4                                 // x: H resolution, y: color depth
    122  1.1  jmcneill #define IGA1_FETCH_COUNT_FORMULA(x,y)   ((x*y)/IGA1_FETCH_COUNT_ALIGN_BYTE)+ IGA1_FETCH_COUNT_PATCH_VALUE
    123  1.1  jmcneill 
    124  1.1  jmcneill #define IGA2_OFFSET_REG_NUM             2           // location: {CR66,0,7},{CR67,0,1}
    125  1.1  jmcneill #define IGA2_OFFSET_ALIGN_BYTE          8
    126  1.1  jmcneill #define IGA2_OFFSET_FORMULA(x,y)        (x*y)/IGA2_OFFSET_ALIGN_BYTE     // x: H resolution, y: color depth
    127  1.1  jmcneill 
    128  1.1  jmcneill #define IGA2_FETCH_COUNT_REG_NUM        2           // location: {CR65,0,7},{CR67,2,3}
    129  1.1  jmcneill #define IGA2_FETCH_COUNT_ALIGN_BYTE     16
    130  1.1  jmcneill #define IGA2_FETCH_COUNT_PATCH_VALUE    0
    131  1.1  jmcneill #define IGA2_FETCH_COUNT_FORMULA(x,y)   ((x*y)/IGA2_FETCH_COUNT_ALIGN_BYTE)+ IGA2_FETCH_COUNT_PATCH_VALUE
    132  1.1  jmcneill 
    133  1.1  jmcneill // Staring Address
    134  1.1  jmcneill #define IGA1_STARTING_ADDR_REG_NUM      4           // location: {CR0C,0,7},{CR0D,0,7},{CR34,0,7},{CR48,0,1}
    135  1.1  jmcneill #define IGA2_STARTING_ADDR_REG_NUM      3           // location: {CR62,1,7},{CR63,0,7},{CR64,0,7}
    136  1.1  jmcneill 
    137  1.1  jmcneill // Define Display OFFSET
    138  1.1  jmcneill // These value are by HW suggested value
    139  1.1  jmcneill #define K800_IGA1_FIFO_MAX_DEPTH                384     // location: {SR17,0,7}
    140  1.1  jmcneill #define K800_IGA1_FIFO_THRESHOLD                328     // location: {SR16,0,5},{SR16,7,7}
    141  1.1  jmcneill #define K800_IGA1_FIFO_HIGH_THRESHOLD           296     // location: {SR18,0,5},{SR18,7,7}
    142  1.1  jmcneill #define K800_IGA1_DISPLAY_QUEUE_EXPIRE_NUM      0       // location: {SR22,0,4}. (128/4) =64, K800 must be set zero,
    143  1.1  jmcneill                                                         // because HW only 5 bits
    144  1.1  jmcneill 
    145  1.1  jmcneill #define K800_IGA2_FIFO_MAX_DEPTH                384     // location: {CR68,4,7},{CR94,7,7},{CR95,7,7}
    146  1.1  jmcneill #define K800_IGA2_FIFO_THRESHOLD                328     // location: {CR68,0,3},{CR95,4,6}
    147  1.1  jmcneill #define K800_IGA2_FIFO_HIGH_THRESHOLD           296     // location: {CR92,0,3},{CR95,0,2}
    148  1.1  jmcneill #define K800_IGA2_DISPLAY_QUEUE_EXPIRE_NUM      128     // location: {CR94,0,6}
    149  1.1  jmcneill 
    150  1.1  jmcneill #define P880_IGA1_FIFO_MAX_DEPTH                192     // location: {SR17,0,7}
    151  1.1  jmcneill #define P880_IGA1_FIFO_THRESHOLD                128     // location: {SR16,0,5},{SR16,7,7}
    152  1.1  jmcneill #define P880_IGA1_FIFO_HIGH_THRESHOLD           64      // location: {SR18,0,5},{SR18,7,7}
    153  1.1  jmcneill #define P880_IGA1_DISPLAY_QUEUE_EXPIRE_NUM      0       // location: {SR22,0,4}. (128/4) =64, K800 must be set zero,
    154  1.1  jmcneill                                                         // because HW only 5 bits
    155  1.1  jmcneill 
    156  1.1  jmcneill #define P880_IGA2_FIFO_MAX_DEPTH                96      // location: {CR68,4,7},{CR94,7,7},{CR95,7,7}
    157  1.1  jmcneill #define P880_IGA2_FIFO_THRESHOLD                64      // location: {CR68,0,3},{CR95,4,6}
    158  1.1  jmcneill #define P880_IGA2_FIFO_HIGH_THRESHOLD           32      // location: {CR92,0,3},{CR95,0,2}
    159  1.1  jmcneill #define P880_IGA2_DISPLAY_QUEUE_EXPIRE_NUM      128     // location: {CR94,0,6}
    160  1.1  jmcneill 
    161  1.1  jmcneill /* VT3314 chipset*/
    162  1.1  jmcneill #define CN900_IGA1_FIFO_MAX_DEPTH               96 /* location: {SR17,0,7}*/
    163  1.1  jmcneill #define CN900_IGA1_FIFO_THRESHOLD               80 /* location: {SR16,0,5},{SR16,7,7}*/
    164  1.1  jmcneill #define CN900_IGA1_FIFO_HIGH_THRESHOLD          64  /* location: {SR18,0,5},{SR18,7,7}*/
    165  1.1  jmcneill #define CN900_IGA1_DISPLAY_QUEUE_EXPIRE_NUM     0   /* location: {SR22,0,4}. (128/4) =64, P800 must be set zero, because HW only 5 bits*/
    166  1.1  jmcneill 
    167  1.1  jmcneill #define CN900_IGA2_FIFO_MAX_DEPTH               96  /* location: {CR68,4,7},{CR94,7,7},{CR95,7,7}*/
    168  1.1  jmcneill #define CN900_IGA2_FIFO_THRESHOLD               80  /* location: {CR68,0,3},{CR95,4,6}*/
    169  1.1  jmcneill #define CN900_IGA2_FIFO_HIGH_THRESHOLD          32  /* location: {CR92,0,3},{CR95,0,2}*/
    170  1.1  jmcneill #define CN900_IGA2_DISPLAY_QUEUE_EXPIRE_NUM     128 /* location: {CR94,0,6}*/
    171  1.1  jmcneill 
    172  1.1  jmcneill /* For VT3324, these values are suggested by HW */
    173  1.1  jmcneill #define CX700_IGA1_FIFO_MAX_DEPTH               192     /* location: {SR17,0,7}*/
    174  1.1  jmcneill #define CX700_IGA1_FIFO_THRESHOLD               128     /* location: {SR16,0,5},{SR16,7,7}*/
    175  1.1  jmcneill #define CX700_IGA1_FIFO_HIGH_THRESHOLD          128     /* location: {SR18,0,5},{SR18,7,7} */
    176  1.1  jmcneill #define CX700_IGA1_DISPLAY_QUEUE_EXPIRE_NUM     124     /* location: {SR22,0,4} */
    177  1.1  jmcneill 
    178  1.1  jmcneill #define CX700_IGA2_FIFO_MAX_DEPTH               96      /* location: {CR68,4,7},{CR94,7,7},{CR95,7,7}*/
    179  1.1  jmcneill #define CX700_IGA2_FIFO_THRESHOLD               64      /* location: {CR68,0,3},{CR95,4,6}*/
    180  1.1  jmcneill #define CX700_IGA2_FIFO_HIGH_THRESHOLD          32      /* location: {CR92,0,3},{CR95,0,2} */
    181  1.1  jmcneill #define CX700_IGA2_DISPLAY_QUEUE_EXPIRE_NUM     128     /* location: {CR94,0,6}*/
    182  1.1  jmcneill 
    183  1.1  jmcneill #define IGA1_FIFO_DEPTH_SELECT_REG_NUM          1
    184  1.1  jmcneill #define IGA1_FIFO_THRESHOLD_REG_NUM             2
    185  1.1  jmcneill #define IGA1_FIFO_HIGH_THRESHOLD_REG_NUM        2
    186  1.1  jmcneill #define IGA1_DISPLAY_QUEUE_EXPIRE_NUM_REG_NUM   1
    187  1.1  jmcneill 
    188  1.1  jmcneill #define IGA2_FIFO_DEPTH_SELECT_REG_NUM          3
    189  1.1  jmcneill #define IGA2_FIFO_THRESHOLD_REG_NUM             2
    190  1.1  jmcneill #define IGA2_FIFO_HIGH_THRESHOLD_REG_NUM        2
    191  1.1  jmcneill #define IGA2_DISPLAY_QUEUE_EXPIRE_NUM_REG_NUM   1
    192  1.1  jmcneill 
    193  1.1  jmcneill 
    194  1.1  jmcneill #define IGA1_FIFO_DEPTH_SELECT_FORMULA(x)                   (x/2)-1
    195  1.1  jmcneill #define IGA1_FIFO_THRESHOLD_FORMULA(x)                      (x/4)
    196  1.1  jmcneill #define IGA1_DISPLAY_QUEUE_EXPIRE_NUM_FORMULA(x)            (x/4)
    197  1.1  jmcneill #define IGA1_FIFO_HIGH_THRESHOLD_FORMULA(x)                 (x/4)
    198  1.1  jmcneill #define IGA2_FIFO_DEPTH_SELECT_FORMULA(x)                   ((x/2)/4)-1
    199  1.1  jmcneill #define IGA2_FIFO_THRESHOLD_FORMULA(x)                      (x/4)
    200  1.1  jmcneill #define IGA2_DISPLAY_QUEUE_EXPIRE_NUM_FORMULA(x)            (x/4)
    201  1.1  jmcneill #define IGA2_FIFO_HIGH_THRESHOLD_FORMULA(x)                 (x/4)
    202  1.1  jmcneill 
    203  1.1  jmcneill /************************************************************************/
    204  1.1  jmcneill /*  LCD Timing                                                          */
    205  1.1  jmcneill /************************************************************************/
    206  1.1  jmcneill #define LCD_POWER_SEQ_TD0               500000         // 500 ms = 500000 us
    207  1.1  jmcneill #define LCD_POWER_SEQ_TD1               50000          // 50 ms = 50000 us
    208  1.1  jmcneill #define LCD_POWER_SEQ_TD2               0              // 0 us
    209  1.1  jmcneill #define LCD_POWER_SEQ_TD3               210000         // 210 ms = 210000 us
    210  1.1  jmcneill 
    211  1.1  jmcneill #define CLE266_POWER_SEQ_UNIT           71             // 2^10 * (1/14.31818M) = 71.475 us (K400.revA)
    212  1.1  jmcneill #define K800_POWER_SEQ_UNIT             142            // 2^11 * (1/14.31818M) = 142.95 us (K400.revB)
    213  1.1  jmcneill #define P880_POWER_SEQ_UNIT             572            // 2^13 * (1/14.31818M) = 572.1 us
    214  1.1  jmcneill 
    215  1.1  jmcneill #define CLE266_POWER_SEQ_FORMULA(x)     (x)/CLE266_POWER_SEQ_UNIT
    216  1.1  jmcneill #define K800_POWER_SEQ_FORMULA(x)       (x)/K800_POWER_SEQ_UNIT
    217  1.1  jmcneill #define P880_POWER_SEQ_FORMULA(x)       (x)/P880_POWER_SEQ_UNIT
    218  1.1  jmcneill 
    219  1.1  jmcneill 
    220  1.1  jmcneill #define LCD_POWER_SEQ_TD0_REG_NUM       2   // location: {CR8B,0,7},{CR8F,0,3}
    221  1.1  jmcneill #define LCD_POWER_SEQ_TD1_REG_NUM       2   // location: {CR8C,0,7},{CR8F,4,7}
    222  1.1  jmcneill #define LCD_POWER_SEQ_TD2_REG_NUM       2   // location: {CR8D,0,7},{CR90,0,3}
    223  1.1  jmcneill #define LCD_POWER_SEQ_TD3_REG_NUM       2   // location: {CR8E,0,7},{CR90,4,7}
    224  1.1  jmcneill 
    225  1.1  jmcneill 
    226  1.1  jmcneill // LCD Scaling factor
    227  1.1  jmcneill // x: indicate setting horizontal size
    228  1.1  jmcneill // y: indicate panel horizontal size
    229  1.1  jmcneill 
    230  1.1  jmcneill #define CLE266_LCD_HOR_SCF_FORMULA(x,y)   (((x-1)*1024)/(y-1))    // Horizontal scaling factor 10 bits (2^10)
    231  1.1  jmcneill #define CLE266_LCD_VER_SCF_FORMULA(x,y)   (((x-1)*1024)/(y-1))    // Vertical scaling factor 10 bits (2^10)
    232  1.1  jmcneill #define K800_LCD_HOR_SCF_FORMULA(x,y)     (((x-1)*4096)/(y-1))    // Horizontal scaling factor 10 bits (2^12)
    233  1.1  jmcneill #define K800_LCD_VER_SCF_FORMULA(x,y)     (((x-1)*2048)/(y-1))    // Vertical scaling factor 10 bits (2^11)
    234  1.1  jmcneill 
    235  1.1  jmcneill #define LCD_HOR_SCALING_FACTOR_REG_NUM  3   // location: {CR9F,0,1},{CR77,0,7},{CR79,4,5}
    236  1.1  jmcneill #define LCD_VER_SCALING_FACTOR_REG_NUM  3   // location: {CR79,3,3},{CR78,0,7},{CR79,6,7}
    237  1.1  jmcneill #define LCD_HOR_SCALING_FACTOR_REG_NUM_CLE  2               /* location: {CR77,0,7},{CR79,4,5} */
    238  1.1  jmcneill #define LCD_VER_SCALING_FACTOR_REG_NUM_CLE  2               /* location: {CR78,0,7},{CR79,6,7} */
    239  1.1  jmcneill 
    240  1.1  jmcneill 
    241  1.1  jmcneill 
    242  1.1  jmcneill //************************************************//
    243  1.1  jmcneill //*      Define IGA1 Display Timing              *//
    244  1.1  jmcneill //************************************************//
    245  1.1  jmcneill struct io_register {
    246  1.1  jmcneill     uint8_t      io_addr;
    247  1.1  jmcneill     uint8_t      start_bit;
    248  1.1  jmcneill     uint8_t      end_bit;
    249  1.1  jmcneill };
    250  1.1  jmcneill 
    251  1.1  jmcneill 
    252  1.1  jmcneill /* IGA1 Horizontal Total */
    253  1.1  jmcneill struct iga1_hor_total
    254  1.1  jmcneill {
    255  1.1  jmcneill     int     reg_num;
    256  1.1  jmcneill     struct  io_register reg[IGA1_HOR_TOTAL_REG_NUM];
    257  1.1  jmcneill };
    258  1.1  jmcneill 
    259  1.1  jmcneill /* IGA1 Horizontal Addressable Video */
    260  1.1  jmcneill struct iga1_hor_addr {
    261  1.1  jmcneill     int     reg_num;
    262  1.1  jmcneill     struct  io_register reg[IGA1_HOR_ADDR_REG_NUM];
    263  1.1  jmcneill };
    264  1.1  jmcneill 
    265  1.1  jmcneill /* IGA1 Horizontal Blank Start */
    266  1.1  jmcneill struct iga1_hor_blank_start {
    267  1.1  jmcneill     int     reg_num;
    268  1.1  jmcneill     struct  io_register reg[IGA1_HOR_BLANK_START_REG_NUM];
    269  1.1  jmcneill };
    270  1.1  jmcneill 
    271  1.1  jmcneill /* IGA1 Horizontal Blank End */
    272  1.1  jmcneill struct iga1_hor_blank_end {
    273  1.1  jmcneill     int     reg_num;
    274  1.1  jmcneill     struct  io_register reg[IGA1_HOR_BLANK_END_REG_NUM];
    275  1.1  jmcneill };
    276  1.1  jmcneill 
    277  1.1  jmcneill /* IGA1 Horizontal Sync Start */
    278  1.1  jmcneill struct iga1_hor_sync_start {
    279  1.1  jmcneill     int     reg_num;
    280  1.1  jmcneill     struct  io_register reg[IGA1_HOR_SYNC_START_REG_NUM];
    281  1.1  jmcneill };
    282  1.1  jmcneill 
    283  1.1  jmcneill /* IGA1 Horizontal Sync End */
    284  1.1  jmcneill struct iga1_hor_sync_end {
    285  1.1  jmcneill     int     reg_num;
    286  1.1  jmcneill     struct  io_register reg[IGA1_HOR_SYNC_END_REG_NUM];
    287  1.1  jmcneill };
    288  1.1  jmcneill 
    289  1.1  jmcneill /* IGA1 Vertical Total */
    290  1.1  jmcneill struct iga1_ver_total {
    291  1.1  jmcneill     int     reg_num;
    292  1.1  jmcneill     struct  io_register reg[IGA1_VER_TOTAL_REG_NUM];
    293  1.1  jmcneill };
    294  1.1  jmcneill 
    295  1.1  jmcneill /* IGA1 Vertical Addressable Video */
    296  1.1  jmcneill struct iga1_ver_addr {
    297  1.1  jmcneill     int     reg_num;
    298  1.1  jmcneill     struct  io_register reg[IGA1_VER_ADDR_REG_NUM];
    299  1.1  jmcneill };
    300  1.1  jmcneill 
    301  1.1  jmcneill /* IGA1 Vertical Blank Start */
    302  1.1  jmcneill struct iga1_ver_blank_start {
    303  1.1  jmcneill     int     reg_num;
    304  1.1  jmcneill     struct  io_register reg[IGA1_VER_BLANK_START_REG_NUM];
    305  1.1  jmcneill };
    306  1.1  jmcneill 
    307  1.1  jmcneill /* IGA1 Vertical Blank End */
    308  1.1  jmcneill struct iga1_ver_blank_end {
    309  1.1  jmcneill     int     reg_num;
    310  1.1  jmcneill     struct  io_register reg[IGA1_VER_BLANK_END_REG_NUM];
    311  1.1  jmcneill };
    312  1.1  jmcneill 
    313  1.1  jmcneill /* IGA1 Vertical Sync Start */
    314  1.1  jmcneill struct iga1_ver_sync_start {
    315  1.1  jmcneill     int     reg_num;
    316  1.1  jmcneill     struct  io_register reg[IGA1_VER_SYNC_START_REG_NUM];
    317  1.1  jmcneill };
    318  1.1  jmcneill 
    319  1.1  jmcneill /* IGA1 Vertical Sync End */
    320  1.1  jmcneill struct iga1_ver_sync_end {
    321  1.1  jmcneill     int     reg_num;
    322  1.1  jmcneill     struct  io_register reg[IGA1_VER_SYNC_END_REG_NUM];
    323  1.1  jmcneill };
    324  1.1  jmcneill 
    325  1.1  jmcneill //************************************************//
    326  1.1  jmcneill //      Define IGA2 Shadow Display Timing         //
    327  1.1  jmcneill //************************************************//
    328  1.1  jmcneill 
    329  1.1  jmcneill /* IGA2 Shadow Horizontal Total */
    330  1.1  jmcneill struct iga2_shadow_hor_total
    331  1.1  jmcneill {
    332  1.1  jmcneill     int     reg_num;
    333  1.1  jmcneill     struct  io_register reg[IGA2_SHADOW_HOR_TOTAL_REG_NUM];
    334  1.1  jmcneill };
    335  1.1  jmcneill 
    336  1.1  jmcneill /* IGA2 Shadow Horizontal Blank End */
    337  1.1  jmcneill struct iga2_shadow_hor_blank_end {
    338  1.1  jmcneill     int     reg_num;
    339  1.1  jmcneill     struct  io_register reg[IGA2_SHADOW_HOR_BLANK_END_REG_NUM];
    340  1.1  jmcneill };
    341  1.1  jmcneill 
    342  1.1  jmcneill 
    343  1.1  jmcneill /* IGA2 Shadow Vertical Total */
    344  1.1  jmcneill struct iga2_shadow_ver_total {
    345  1.1  jmcneill     int     reg_num;
    346  1.1  jmcneill     struct  io_register reg[IGA2_SHADOW_VER_TOTAL_REG_NUM];
    347  1.1  jmcneill };
    348  1.1  jmcneill 
    349  1.1  jmcneill /* IGA2 Shadow Vertical Addressable Video */
    350  1.1  jmcneill struct iga2_shadow_ver_addr {
    351  1.1  jmcneill     int     reg_num;
    352  1.1  jmcneill     struct  io_register reg[IGA2_SHADOW_VER_ADDR_REG_NUM];
    353  1.1  jmcneill };
    354  1.1  jmcneill 
    355  1.1  jmcneill /* IGA2 Shadow Vertical Blank Start */
    356  1.1  jmcneill struct iga2_shadow_ver_blank_start {
    357  1.1  jmcneill     int     reg_num;
    358  1.1  jmcneill     struct  io_register reg[IGA2_SHADOW_VER_BLANK_START_REG_NUM];
    359  1.1  jmcneill };
    360  1.1  jmcneill 
    361  1.1  jmcneill /* IGA2 Shadow Vertical Blank End */
    362  1.1  jmcneill struct iga2_shadow_ver_blank_end {
    363  1.1  jmcneill     int     reg_num;
    364  1.1  jmcneill     struct  io_register reg[IGA2_SHADOW_VER_BLANK_END_REG_NUM];
    365  1.1  jmcneill };
    366  1.1  jmcneill 
    367  1.1  jmcneill /* IGA2 Shadow Vertical Sync Start */
    368  1.1  jmcneill struct iga2_shadow_ver_sync_start {
    369  1.1  jmcneill     int     reg_num;
    370  1.1  jmcneill     struct  io_register reg[IGA2_SHADOW_VER_SYNC_START_REG_NUM];
    371  1.1  jmcneill };
    372  1.1  jmcneill 
    373  1.1  jmcneill /* IGA2 Shadow Vertical Sync End */
    374  1.1  jmcneill struct iga2_shadow_ver_sync_end {
    375  1.1  jmcneill     int     reg_num;
    376  1.1  jmcneill     struct  io_register reg[IGA2_SHADOW_VER_SYNC_END_REG_NUM];
    377  1.1  jmcneill };
    378  1.1  jmcneill 
    379  1.1  jmcneill //************************************************//
    380  1.1  jmcneill //      Define IGA2 Display Timing                //
    381  1.1  jmcneill //************************************************//
    382  1.1  jmcneill 
    383  1.1  jmcneill /* IGA2 Horizontal Total */
    384  1.1  jmcneill struct iga2_hor_total {
    385  1.1  jmcneill     int     reg_num;
    386  1.1  jmcneill     struct  io_register reg[IGA2_HOR_TOTAL_REG_NUM];
    387  1.1  jmcneill };
    388  1.1  jmcneill 
    389  1.1  jmcneill /* IGA2 Horizontal Addressable Video */
    390  1.1  jmcneill struct iga2_hor_addr {
    391  1.1  jmcneill     int     reg_num;
    392  1.1  jmcneill     struct  io_register reg[IGA2_HOR_ADDR_REG_NUM];
    393  1.1  jmcneill };
    394  1.1  jmcneill 
    395  1.1  jmcneill /* IGA2 Horizontal Blank Start */
    396  1.1  jmcneill struct iga2_hor_blank_start {
    397  1.1  jmcneill     int     reg_num;
    398  1.1  jmcneill     struct  io_register reg[IGA2_HOR_BLANK_START_REG_NUM];
    399  1.1  jmcneill };
    400  1.1  jmcneill 
    401  1.1  jmcneill /* IGA2 Horizontal Blank End */
    402  1.1  jmcneill struct iga2_hor_blank_end {
    403  1.1  jmcneill     int     reg_num;
    404  1.1  jmcneill     struct  io_register reg[IGA2_HOR_BLANK_END_REG_NUM];
    405  1.1  jmcneill };
    406  1.1  jmcneill 
    407  1.1  jmcneill /* IGA2 Horizontal Sync Start */
    408  1.1  jmcneill struct iga2_hor_sync_start {
    409  1.1  jmcneill     int     reg_num;
    410  1.1  jmcneill     struct  io_register reg[IGA2_HOR_SYNC_START_REG_NUM];
    411  1.1  jmcneill };
    412  1.1  jmcneill 
    413  1.1  jmcneill /* IGA2 Horizontal Sync End */
    414  1.1  jmcneill struct iga2_hor_sync_end {
    415  1.1  jmcneill     int     reg_num;
    416  1.1  jmcneill     struct  io_register reg[IGA2_HOR_SYNC_END_REG_NUM];
    417  1.1  jmcneill };
    418  1.1  jmcneill 
    419  1.1  jmcneill /* IGA2 Vertical Total */
    420  1.1  jmcneill struct iga2_ver_total {
    421  1.1  jmcneill     int     reg_num;
    422  1.1  jmcneill     struct  io_register reg[IGA2_VER_TOTAL_REG_NUM];
    423  1.1  jmcneill };
    424  1.1  jmcneill 
    425  1.1  jmcneill /* IGA2 Vertical Addressable Video */
    426  1.1  jmcneill struct iga2_ver_addr {
    427  1.1  jmcneill     int     reg_num;
    428  1.1  jmcneill     struct  io_register reg[IGA2_VER_ADDR_REG_NUM];
    429  1.1  jmcneill };
    430  1.1  jmcneill 
    431  1.1  jmcneill /* IGA2 Vertical Blank Start */
    432  1.1  jmcneill struct iga2_ver_blank_start {
    433  1.1  jmcneill     int     reg_num;
    434  1.1  jmcneill     struct  io_register reg[IGA2_VER_BLANK_START_REG_NUM];
    435  1.1  jmcneill };
    436  1.1  jmcneill 
    437  1.1  jmcneill /* IGA2 Vertical Blank End */
    438  1.1  jmcneill struct iga2_ver_blank_end {
    439  1.1  jmcneill     int     reg_num;
    440  1.1  jmcneill     struct  io_register reg[IGA2_VER_BLANK_END_REG_NUM];
    441  1.1  jmcneill };
    442  1.1  jmcneill 
    443  1.1  jmcneill /* IGA2 Vertical Sync Start */
    444  1.1  jmcneill struct iga2_ver_sync_start {
    445  1.1  jmcneill     int     reg_num;
    446  1.1  jmcneill     struct  io_register reg[IGA2_VER_SYNC_START_REG_NUM];
    447  1.1  jmcneill };
    448  1.1  jmcneill 
    449  1.1  jmcneill /* IGA2 Vertical Sync End */
    450  1.1  jmcneill struct iga2_ver_sync_end {
    451  1.1  jmcneill     int     reg_num;
    452  1.1  jmcneill     struct  io_register reg[IGA2_VER_SYNC_END_REG_NUM];
    453  1.1  jmcneill };
    454  1.1  jmcneill 
    455  1.1  jmcneill /* IGA1 Offset Register */
    456  1.1  jmcneill struct iga1_offset {
    457  1.1  jmcneill     int     reg_num;
    458  1.1  jmcneill     struct  io_register reg[IGA1_OFFSET_REG_NUM];
    459  1.1  jmcneill };
    460  1.1  jmcneill 
    461  1.1  jmcneill /* IGA2 Offset Register */
    462  1.1  jmcneill struct iga2_offset {
    463  1.1  jmcneill     int     reg_num;
    464  1.1  jmcneill     struct  io_register reg[IGA2_OFFSET_REG_NUM];
    465  1.1  jmcneill };
    466  1.1  jmcneill 
    467  1.1  jmcneill struct offset{
    468  1.1  jmcneill     struct iga1_offset            iga1_offset_reg;
    469  1.1  jmcneill     struct iga2_offset            iga2_offset_reg;
    470  1.1  jmcneill };
    471  1.1  jmcneill 
    472  1.1  jmcneill /* IGA1 Fetch Count Register */
    473  1.1  jmcneill struct iga1_fetch_count {
    474  1.1  jmcneill     int     reg_num;
    475  1.1  jmcneill     struct  io_register reg[IGA1_FETCH_COUNT_REG_NUM];
    476  1.1  jmcneill };
    477  1.1  jmcneill 
    478  1.1  jmcneill /* IGA2 Fetch Count Register */
    479  1.1  jmcneill struct iga2_fetch_count {
    480  1.1  jmcneill     int     reg_num;
    481  1.1  jmcneill     struct  io_register reg[IGA2_FETCH_COUNT_REG_NUM];
    482  1.1  jmcneill };
    483  1.1  jmcneill 
    484  1.1  jmcneill struct fetch_count{
    485  1.1  jmcneill     struct iga1_fetch_count       iga1_fetch_count_reg;
    486  1.1  jmcneill     struct iga2_fetch_count       iga2_fetch_count_reg;
    487  1.1  jmcneill };
    488  1.1  jmcneill 
    489  1.1  jmcneill /* Starting Address Register */
    490  1.1  jmcneill struct iga1_starting_addr {
    491  1.1  jmcneill     int     reg_num;
    492  1.1  jmcneill     struct  io_register reg[IGA1_STARTING_ADDR_REG_NUM];
    493  1.1  jmcneill };
    494  1.1  jmcneill 
    495  1.1  jmcneill struct iga2_starting_addr {
    496  1.1  jmcneill     int     reg_num;
    497  1.1  jmcneill     struct  io_register reg[IGA2_STARTING_ADDR_REG_NUM];
    498  1.1  jmcneill };
    499  1.1  jmcneill 
    500  1.1  jmcneill struct starting_addr {
    501  1.1  jmcneill     struct iga1_starting_addr       iga1_starting_addr_reg;
    502  1.1  jmcneill     struct iga2_starting_addr       iga2_starting_addr_reg;
    503  1.1  jmcneill };
    504  1.1  jmcneill 
    505  1.1  jmcneill /* LCD Power Sequence Timer */
    506  1.1  jmcneill struct lcd_pwd_seq_td0{
    507  1.1  jmcneill     int     reg_num;
    508  1.1  jmcneill     struct  io_register reg[LCD_POWER_SEQ_TD0_REG_NUM];
    509  1.1  jmcneill };
    510  1.1  jmcneill 
    511  1.1  jmcneill struct lcd_pwd_seq_td1{
    512  1.1  jmcneill     int     reg_num;
    513  1.1  jmcneill     struct  io_register reg[LCD_POWER_SEQ_TD1_REG_NUM];
    514  1.1  jmcneill };
    515  1.1  jmcneill 
    516  1.1  jmcneill struct lcd_pwd_seq_td2{
    517  1.1  jmcneill     int     reg_num;
    518  1.1  jmcneill     struct  io_register reg[LCD_POWER_SEQ_TD2_REG_NUM];
    519  1.1  jmcneill };
    520  1.1  jmcneill 
    521  1.1  jmcneill struct lcd_pwd_seq_td3{
    522  1.1  jmcneill     int     reg_num;
    523  1.1  jmcneill     struct  io_register reg[LCD_POWER_SEQ_TD3_REG_NUM];
    524  1.1  jmcneill };
    525  1.1  jmcneill 
    526  1.1  jmcneill struct _lcd_pwd_seq_timer{
    527  1.1  jmcneill     struct lcd_pwd_seq_td0       td0;
    528  1.1  jmcneill     struct lcd_pwd_seq_td1       td1;
    529  1.1  jmcneill     struct lcd_pwd_seq_td2       td2;
    530  1.1  jmcneill     struct lcd_pwd_seq_td3       td3;
    531  1.1  jmcneill };
    532  1.1  jmcneill 
    533  1.1  jmcneill /* LCD Scaling Factor */
    534  1.1  jmcneill struct _lcd_hor_scaling_factor{
    535  1.1  jmcneill     int     reg_num;
    536  1.1  jmcneill     struct  io_register reg[LCD_HOR_SCALING_FACTOR_REG_NUM];
    537  1.1  jmcneill };
    538  1.1  jmcneill 
    539  1.1  jmcneill struct _lcd_ver_scaling_factor{
    540  1.1  jmcneill     int     reg_num;
    541  1.1  jmcneill     struct  io_register reg[LCD_VER_SCALING_FACTOR_REG_NUM];
    542  1.1  jmcneill };
    543  1.1  jmcneill 
    544  1.1  jmcneill 
    545  1.1  jmcneill struct _lcd_scaling_factor{
    546  1.1  jmcneill     struct _lcd_hor_scaling_factor  lcd_hor_scaling_factor;
    547  1.1  jmcneill     struct _lcd_ver_scaling_factor  lcd_ver_scaling_factor;
    548  1.1  jmcneill };
    549  1.1  jmcneill 
    550  1.1  jmcneill struct pll_map {
    551  1.1  jmcneill     uint32_t     clk;
    552  1.1  jmcneill     uint32_t     cle266_pll;
    553  1.1  jmcneill     uint32_t     k800_pll;
    554  1.1  jmcneill     uint32_t     cx700_pll;
    555  1.1  jmcneill };
    556  1.1  jmcneill 
    557  1.1  jmcneill struct rgbLUT {
    558  1.1  jmcneill     uint8_t     red;
    559  1.1  jmcneill     uint8_t     green;
    560  1.1  jmcneill     uint8_t     blue;
    561  1.1  jmcneill };
    562  1.1  jmcneill 
    563  1.1  jmcneill struct lcd_pwd_seq_timer {
    564  1.1  jmcneill     uint16_t     td0;
    565  1.1  jmcneill     uint16_t     td1;
    566  1.1  jmcneill     uint16_t     td2;
    567  1.1  jmcneill     uint16_t     td3;
    568  1.1  jmcneill };
    569  1.1  jmcneill 
    570  1.1  jmcneill 
    571  1.1  jmcneill // Display FIFO Relation Registers
    572  1.1  jmcneill struct iga1_fifo_depth_select {
    573  1.1  jmcneill     int     reg_num;
    574  1.1  jmcneill     struct  io_register reg[IGA1_FIFO_DEPTH_SELECT_REG_NUM];
    575  1.1  jmcneill };
    576  1.1  jmcneill 
    577  1.1  jmcneill struct iga1_fifo_threshold_select {
    578  1.1  jmcneill     int     reg_num;
    579  1.1  jmcneill     struct  io_register reg[IGA1_FIFO_THRESHOLD_REG_NUM];
    580  1.1  jmcneill };
    581  1.1  jmcneill 
    582  1.1  jmcneill struct iga1_fifo_high_threshold_select {
    583  1.1  jmcneill     int     reg_num;
    584  1.1  jmcneill     struct  io_register reg[IGA1_FIFO_HIGH_THRESHOLD_REG_NUM];
    585  1.1  jmcneill };
    586  1.1  jmcneill 
    587  1.1  jmcneill struct iga1_display_queue_expire_num {
    588  1.1  jmcneill     int     reg_num;
    589  1.1  jmcneill     struct  io_register reg[IGA1_DISPLAY_QUEUE_EXPIRE_NUM_REG_NUM];
    590  1.1  jmcneill };
    591  1.1  jmcneill 
    592  1.1  jmcneill struct iga2_fifo_depth_select {
    593  1.1  jmcneill     int     reg_num;
    594  1.1  jmcneill     struct  io_register reg[IGA2_FIFO_DEPTH_SELECT_REG_NUM];
    595  1.1  jmcneill };
    596  1.1  jmcneill 
    597  1.1  jmcneill struct iga2_fifo_threshold_select {
    598  1.1  jmcneill     int     reg_num;
    599  1.1  jmcneill     struct  io_register reg[IGA2_FIFO_THRESHOLD_REG_NUM];
    600  1.1  jmcneill };
    601  1.1  jmcneill 
    602  1.1  jmcneill struct iga2_fifo_high_threshold_select {
    603  1.1  jmcneill     int     reg_num;
    604  1.1  jmcneill     struct  io_register reg[IGA2_FIFO_HIGH_THRESHOLD_REG_NUM];
    605  1.1  jmcneill };
    606  1.1  jmcneill 
    607  1.1  jmcneill struct iga2_display_queue_expire_num {
    608  1.1  jmcneill     int     reg_num;
    609  1.1  jmcneill     struct  io_register reg[IGA2_DISPLAY_QUEUE_EXPIRE_NUM_REG_NUM];
    610  1.1  jmcneill };
    611  1.1  jmcneill 
    612  1.1  jmcneill struct fifo_depth_select {
    613  1.1  jmcneill     struct  iga1_fifo_depth_select iga1_fifo_depth_select_reg;
    614  1.1  jmcneill     struct  iga2_fifo_depth_select iga2_fifo_depth_select_reg;
    615  1.1  jmcneill };
    616  1.1  jmcneill 
    617  1.1  jmcneill struct fifo_threshold_select {
    618  1.1  jmcneill     struct  iga1_fifo_threshold_select iga1_fifo_threshold_select_reg;
    619  1.1  jmcneill     struct  iga2_fifo_threshold_select iga2_fifo_threshold_select_reg;
    620  1.1  jmcneill };
    621  1.1  jmcneill 
    622  1.1  jmcneill struct fifo_high_threshold_select {
    623  1.1  jmcneill     struct  iga1_fifo_high_threshold_select iga1_fifo_high_threshold_select_reg;
    624  1.1  jmcneill     struct  iga2_fifo_high_threshold_select iga2_fifo_high_threshold_select_reg;
    625  1.1  jmcneill };
    626  1.1  jmcneill 
    627  1.1  jmcneill struct display_queue_expire_num {
    628  1.1  jmcneill     struct  iga1_display_queue_expire_num iga1_display_queue_expire_num_reg;
    629  1.1  jmcneill     struct  iga2_display_queue_expire_num iga2_display_queue_expire_num_reg;
    630  1.1  jmcneill };
    631  1.1  jmcneill 
    632  1.1  jmcneill 
    633  1.1  jmcneill 
    634  1.1  jmcneill struct iga1_crtc_timing {
    635  1.1  jmcneill     struct iga1_hor_total         hor_total;
    636  1.1  jmcneill     struct iga1_hor_addr          hor_addr;
    637  1.1  jmcneill     struct iga1_hor_blank_start   hor_blank_start;
    638  1.1  jmcneill     struct iga1_hor_blank_end     hor_blank_end;
    639  1.1  jmcneill     struct iga1_hor_sync_start    hor_sync_start;
    640  1.1  jmcneill     struct iga1_hor_sync_end      hor_sync_end;
    641  1.1  jmcneill     struct iga1_ver_total         ver_total;
    642  1.1  jmcneill     struct iga1_ver_addr          ver_addr;
    643  1.1  jmcneill     struct iga1_ver_blank_start   ver_blank_start;
    644  1.1  jmcneill     struct iga1_ver_blank_end     ver_blank_end;
    645  1.1  jmcneill     struct iga1_ver_sync_start    ver_sync_start;
    646  1.1  jmcneill     struct iga1_ver_sync_end      ver_sync_end;
    647  1.1  jmcneill };
    648  1.1  jmcneill 
    649  1.1  jmcneill struct iga2_shadow_crtc_timing {
    650  1.1  jmcneill     struct iga2_shadow_hor_total        hor_total_shadow;
    651  1.1  jmcneill     struct iga2_shadow_hor_blank_end    hor_blank_end_shadow;
    652  1.1  jmcneill     struct iga2_shadow_ver_total        ver_total_shadow;
    653  1.1  jmcneill     struct iga2_shadow_ver_addr         ver_addr_shadow;
    654  1.1  jmcneill     struct iga2_shadow_ver_blank_start  ver_blank_start_shadow;
    655  1.1  jmcneill     struct iga2_shadow_ver_blank_end    ver_blank_end_shadow;
    656  1.1  jmcneill     struct iga2_shadow_ver_sync_start   ver_sync_start_shadow;
    657  1.1  jmcneill     struct iga2_shadow_ver_sync_end     ver_sync_end_shadow;
    658  1.1  jmcneill };
    659  1.1  jmcneill 
    660  1.1  jmcneill struct iga2_crtc_timing {
    661  1.1  jmcneill     struct iga2_hor_total         hor_total;
    662  1.1  jmcneill     struct iga2_hor_addr          hor_addr;
    663  1.1  jmcneill     struct iga2_hor_blank_start   hor_blank_start;
    664  1.1  jmcneill     struct iga2_hor_blank_end     hor_blank_end;
    665  1.1  jmcneill     struct iga2_hor_sync_start    hor_sync_start;
    666  1.1  jmcneill     struct iga2_hor_sync_end      hor_sync_end;
    667  1.1  jmcneill     struct iga2_ver_total         ver_total;
    668  1.1  jmcneill     struct iga2_ver_addr          ver_addr;
    669  1.1  jmcneill     struct iga2_ver_blank_start   ver_blank_start;
    670  1.1  jmcneill     struct iga2_ver_blank_end     ver_blank_end;
    671  1.1  jmcneill     struct iga2_ver_sync_start    ver_sync_start;
    672  1.1  jmcneill     struct iga2_ver_sync_end      ver_sync_end;
    673  1.1  jmcneill };
    674  1.1  jmcneill 
    675  1.1  jmcneill #endif /* _DEV_PCI_UNICHROMEHW_H */
    676