Home | History | Annotate | Line # | Download | only in pci
pm3reg.h revision 1.4
      1  1.4  macallan /* $NetBSD: pm3reg.h,v 1.4 2025/05/27 05:57:40 macallan Exp $ */
      2  1.3    andvar 
      3  1.1  macallan /*
      4  1.1  macallan  * Copyright (c) 2015 Naruaki Etomi
      5  1.1  macallan  * All rights reserved.
      6  1.1  macallan  *
      7  1.1  macallan  * Redistribution and use in source and binary forms, with or without
      8  1.1  macallan  * modification, are permitted provided that the following conditions
      9  1.1  macallan  * are met:
     10  1.1  macallan  * 1. Redistributions of source code must retain the above copyright
     11  1.1  macallan  *    notice, this list of conditions and the following disclaimer.
     12  1.1  macallan  * 2. Redistributions in binary form must reproduce the above copyright
     13  1.1  macallan  *    notice, this list of conditions and the following disclaimer in the
     14  1.1  macallan  *    documentation and/or other materials provided with the distribution.
     15  1.1  macallan  *
     16  1.1  macallan  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     17  1.1  macallan  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     18  1.1  macallan  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     19  1.1  macallan  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     20  1.1  macallan  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     21  1.1  macallan  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     22  1.1  macallan  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     23  1.1  macallan  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     24  1.1  macallan  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     25  1.1  macallan  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     26  1.1  macallan  */
     27  1.1  macallan 
     28  1.1  macallan /*
     29  1.1  macallan  * register definitions for Permedia 3 graphics controllers
     30  1.1  macallan  */
     31  1.1  macallan 
     32  1.1  macallan 
     33  1.1  macallan #ifndef PM3_REG_H
     34  1.1  macallan #define PM3_REG_H
     35  1.1  macallan 
     36  1.1  macallan #define PM3_EXT_CLOCK_FREQ 143180 /*in 100Hz units*/
     37  1.1  macallan #define PM3_VCO_FREQ_MIN 2000000 /*in 100Hz units*/
     38  1.1  macallan #define PM3_VCO_FREQ_MAX 6220000 /*in 100Hz units*/
     39  1.1  macallan #define PM3_INTREF_MIN 10000 /*in 100Hz units*/
     40  1.1  macallan #define PM3_INTREF_MAX 20000 /*in 100Hz units*/
     41  1.1  macallan 
     42  1.1  macallan /*
     43  1.1  macallan  * PM3 RAMDAC Indirect Commands
     44  1.1  macallan  */
     45  1.1  macallan 
     46  1.1  macallan #define PM3_RAMDAC_CMD_MISC_CONTROL            0x000
     47  1.1  macallan #define PM3_RAMDAC_CMD_SYNC_CONTROL            0x001
     48  1.1  macallan #define PM3_RAMDAC_CMD_DAC_CONTROL             0x002
     49  1.1  macallan #define PM3_RAMDAC_CMD_PIXEL_SIZE              0x003
     50  1.1  macallan #define PM3_RAMDAC_CMD_COLOR_FORMAT            0x004
     51  1.1  macallan #define PM3_RAMDAC_CMD_CLOCK0_PRE_SCALE        0x201
     52  1.1  macallan #define PM3_RAMDAC_CMD_CLOCK0_FEEDBACK_SCALE   0x202
     53  1.1  macallan #define PM3_RAMDAC_CMD_CLOCK0_POST_SCALE       0x203
     54  1.1  macallan 
     55  1.1  macallan /*
     56  1.1  macallan  * PM3 RAMDAC Indirect Command SYNC_CONTROL
     57  1.1  macallan  */
     58  1.1  macallan 
     59  1.1  macallan #define PM3_SC_HSYNC_ACTIVE_LOW                0x000
     60  1.1  macallan #define PM3_SC_HSYNC_ACTIVE_HIGH               0x001
     61  1.1  macallan #define PM3_SC_HSYNC_FORCE_ACTIVE              0x003
     62  1.1  macallan #define PM3_SC_HSYNC_FORCE_INACTIVE            0x004
     63  1.1  macallan #define PM3_SC_VSYNC_ACTIVE_LOW                0x000
     64  1.1  macallan #define PM3_SC_VSYNC_ACTIVE_HIGH               0x008
     65  1.1  macallan #define PM3_SC_VSYNC_FORCE_ACTIVE              0x018
     66  1.1  macallan #define PM3_SC_VSYNC_FORCE_INACTIVE            0x020
     67  1.1  macallan 
     68  1.1  macallan /*
     69  1.1  macallan  * PM3 RAMDAC Indirect Command DAC_CONTROL
     70  1.1  macallan  */
     71  1.1  macallan 
     72  1.1  macallan #define PM3_DC_NORMAL_POWER                    0x000
     73  1.1  macallan #define PM3_DC_LOW_POWER                       0x001
     74  1.1  macallan #define PM3_DC_SYNC_ON_GREEN_ENABLE            0x008
     75  1.1  macallan #define PM3_DC_SYNC_ON_GREEN_DISABLE           0x000
     76  1.1  macallan #define PM3_DC_BLANK_PEDESTAL_ENABLE           0x080
     77  1.1  macallan #define PM3_DC_BLANK_PEDESTAL_DISABLE          0x000
     78  1.1  macallan 
     79  1.1  macallan /*
     80  1.1  macallan  * PM3 RAMDAC Indirect Command PIXEL_SIZE
     81  1.1  macallan  */
     82  1.1  macallan 
     83  1.1  macallan #define PM3_DACPS_8BIT                         0x000
     84  1.1  macallan #define PM3_DACPS_16BIT                        0x001
     85  1.1  macallan #define PM3_DACPS_32BIT                        0x002
     86  1.1  macallan #define PM3_DACPS_24BIT                        0x004
     87  1.1  macallan 
     88  1.1  macallan /*
     89  1.1  macallan  * PM3 RAMDAC Indirect Command COLOR_FORMAT
     90  1.1  macallan  */
     91  1.1  macallan 
     92  1.1  macallan #define PM3_CF_VISUAL_256_COLOR                0x00e
     93  1.1  macallan #define PM3_CF_VISUAL_HIGH_COLOR               0x010
     94  1.1  macallan #define PM3_CF_VISUAL_TRUE_COLOR               0x000
     95  1.1  macallan #define PM3_CF_ORDER_BGR                       0x020
     96  1.1  macallan #define PM3_CF_ORDER_RGB                       0x000
     97  1.1  macallan #define PM3_CF_LINEAR_COLOR_EXT_ENABLE         0x040
     98  1.1  macallan #define PM3_CF_LINEAR_COLOR_EXT_DISABLE        0x000
     99  1.1  macallan 
    100  1.1  macallan /*
    101  1.1  macallan  * PM3 RAMDAC Indirect Command MISC_CONTROL
    102  1.1  macallan  */
    103  1.1  macallan 
    104  1.1  macallan #define PM3_MC_DAC_SIZE_8BIT                   0x001
    105  1.1  macallan #define PM3_MC_DAC_SIZE_6BIT                   0x000
    106  1.1  macallan #define PM3_MC_PIXEL_DOUBLE_ENABLE             0x002
    107  1.1  macallan #define PM3_MC_PIXEL_DOUBLE_DISABLE            0x000
    108  1.1  macallan #define PM3_MC_LAST_READ_ADDR_ENABLE           0x004
    109  1.1  macallan #define PM3_MC_LAST_READ_ADDR_DISABLE          0x000
    110  1.1  macallan #define PM3_MC_DIRECT_COLOR_ENABLE             0x008
    111  1.1  macallan #define PM3_MC_DIRECT_COLOR_DISABLE            0x000
    112  1.1  macallan #define PM3_MC_OVERLAY_ENABLE                  0x010
    113  1.1  macallan #define PM3_MC_OVERLAY_DISABLE                 0x000
    114  1.1  macallan #define PM3_MC_PIXEL_DB_ENABLE                 0x020
    115  1.1  macallan #define PM3_MC_PIXEL_DB_DISABLE                0x000
    116  1.1  macallan #define PM3_MC_STEREO_DB_ENABLE                0x040
    117  1.1  macallan #define PM3_MC_STEREO_DB_DISABLE               0x000
    118  1.1  macallan 
    119  1.1  macallan /*
    120  1.1  macallan  * PM3 Registers
    121  1.1  macallan  */
    122  1.1  macallan 
    123  1.1  macallan #define PM3_INPUT_FIFO_SPACE                   0x00000018
    124  1.1  macallan #define PM3_OUTPUT_FIFO_WORDS                  0x00000020
    125  1.1  macallan #define PM3_V_CLOCK_CTL                        0x00000040
    126  1.1  macallan #define PM3_APERTURE1_CONTROL                  0x00000050
    127  1.1  macallan #define PM3_APERTURE2_CONTROL                  0x00000058
    128  1.1  macallan #define              PM3_AP_MEMORY_BYTE_STANDARD                   0x00000000
    129  1.1  macallan #define              PM3_AP_MEMORY_BYTE_SWAPPED                    0x00000001
    130  1.1  macallan #define PM3_FIFODISCONNECT                     0x00000068
    131  1.1  macallan #define PM3_CHIP_CONFIG                        0x00000070
    132  1.1  macallan #define PM3_BYAPERTURE1MODE                    0x00000300
    133  1.1  macallan #define PM3_BYAPERTURE2MODE                    0x00000328
    134  1.1  macallan #define              PM3_BYAPERTUREMODE_PIXELSIZE_8BIT             0x00000000
    135  1.1  macallan #define              PM3_BYAPERTUREMODE_PIXELSIZE_16BIT            0x00000020
    136  1.1  macallan #define              PM3_BYAPERTUREMODE_PIXELSIZE_32BIT            0x00000040
    137  1.1  macallan 
    138  1.1  macallan #define PM3_BYPASS_MASK                        0x00001008
    139  1.1  macallan #define PM3_LOCALMEMCAPS                       0x00001018
    140  1.1  macallan #define PM3_LOCALMEMTIMINGS                    0x00001020
    141  1.1  macallan #define PM3_LOCALMEMCONTROL                    0x00001028
    142  1.1  macallan 
    143  1.1  macallan #define PM3_OUTPUT_FIFO                        0x00002000
    144  1.1  macallan 
    145  1.1  macallan #define PM3_SCREEN_BASE                        0x00003000
    146  1.1  macallan #define PM3_SCREEN_STRIDE                      0x00003008
    147  1.1  macallan #define PM3_HORIZ_TOTAL                        0x00003010
    148  1.1  macallan #define PM3_HORIZ_GATE_END                     0x00003018
    149  1.1  macallan #define PM3_HORIZ_BLANK_END                    0x00003020
    150  1.1  macallan #define PM3_HORIZ_SYNC_START                   0x00003028
    151  1.1  macallan #define PM3_HORIZ_SYNC_END                     0x00003030
    152  1.1  macallan #define PM3_VERT_TOTAL                         0x00003038
    153  1.1  macallan #define PM3_VERT_BLANK_END                     0x00003040
    154  1.1  macallan #define PM3_VERT_SYNC_START                    0x00003048
    155  1.1  macallan #define PM3_VERT_SYNC_END                      0x00003050
    156  1.1  macallan #define PM3_VIDEO_CONTROL                      0x00003058
    157  1.1  macallan #define              M3_VC_DISABLE                                 0x00000000
    158  1.1  macallan #define              PM3_VC_ENABLE                                 0x00000001
    159  1.1  macallan #define              PM3_VC_BL_ACTIVE_HIGH                         0x00000000
    160  1.1  macallan #define              PM3_VC_BL_ACTIVE_LOW                          0x00000002
    161  1.1  macallan #define              PM3_VC_LD_DISABLE                             0x00000000
    162  1.1  macallan #define              PM3_VC_LD_ENABLE                              0x00000004
    163  1.1  macallan #define              PM3_VC_HSC_FORCE_HIGH                         0x00000000
    164  1.1  macallan #define              PM3_VC_HSC_ACTIVE_HIGH                        0x00000008
    165  1.1  macallan #define              PM3_VC_HSC_FORCE_LOW                          0x00000010
    166  1.1  macallan #define              PM3_VC_HSC_ACTIVE_LOW                         0x00000018
    167  1.1  macallan #define              PM3_VC_VSC_FORCE_HIGH                         0x00000000
    168  1.1  macallan #define              PM3_VC_VSC_ACTIVE_HIGH                        0x00000020
    169  1.1  macallan #define              PM3_VC_VSC_FORCE_LOW                          0x00000040
    170  1.1  macallan #define              PM3_VC_VSC_ACTIVE_LOW                         0x00000060
    171  1.1  macallan #define              PM3_VC_PIXELSIZE_8BIT                         0x00000000
    172  1.1  macallan #define              PM3_VC_PIXELSIZE_16BIT                        0x00080000
    173  1.1  macallan #define              PM3_VC_PIXELSIZE_32BIT                        0x00B00000
    174  1.1  macallan #define              PM3_VC_DISPLAY_ENABLE                         0x00010000
    175  1.1  macallan #define              PM3_VC_DISPLAY_DISABLE                        0x00000000
    176  1.1  macallan #define PM3_DISPLAY_DATA                       0x00003068
    177  1.1  macallan #define              PM3_DD_SDA_IN                                 0x00000001
    178  1.1  macallan #define              PM3_DD_SCL_IN                                 0x00000002
    179  1.1  macallan #define PM3_FIFOCONTROL                        0x00003078
    180  1.1  macallan #define PM3_RD_PM3_INDEX_CONTROL               0x00004038
    181  1.1  macallan #define              PM3_INCREMENT_ENABLE                          0x00000001
    182  1.1  macallan #define              PM3_INCREMENT_DISABLE                         0x00000000
    183  1.1  macallan #define PM3_DAC_PAL_WRITE_IDX                  0x00004000
    184  1.1  macallan #define PM3_DAC_PAL_DATA                       0x00004008
    185  1.1  macallan #define PM3_DAC_INDEX_LOW                      0x00004020
    186  1.1  macallan #define PM3_DAC_INDEX_HIGH                     0x00004028
    187  1.1  macallan #define PM3_DAC_INDEX_DATA                     0x00004030
    188  1.1  macallan #define PM3_DAC_INDEX_CONTROL                  0x00004038
    189  1.1  macallan 
    190  1.1  macallan #define PM3_STARTXDOM                          0x00008000
    191  1.1  macallan #define PM3_STARTXSUB                          0x00008010
    192  1.1  macallan #define PM3_STARTY                             0x00008020
    193  1.1  macallan #define PM3_COUNT                              0x00008030
    194  1.1  macallan #define PM3_DXDOM                              0x00008008
    195  1.1  macallan #define PM3_DXSUB                              0x00008018
    196  1.1  macallan #define PM3_DY                                 0x00008028
    197  1.1  macallan #define PM3_BITMASKPATTERN                     0x00008068
    198  1.1  macallan #define PM3_RASTERIZER_MODE                    0x000080a0
    199  1.1  macallan #define              PM3_RM_MASK_MIRROR                            0x00000001 /* mask is right-to-left */
    200  1.1  macallan #define PM3_PIXEL_SIZE                         0x000080c0
    201  1.1  macallan #define              PM3_PS_8BIT                                   0x00000002
    202  1.1  macallan #define              PM3_PS_16BIT                                  0x00000001
    203  1.1  macallan #define              PM3_PS_32BIT                                  0x00000000
    204  1.1  macallan #define PM3_SPANCOLORMASK                      0x00008168
    205  1.1  macallan #define PM3_SCISSOR_MODE                       0x00008180
    206  1.1  macallan #define PM3_SCISSORMAXXY                       0x00008190
    207  1.1  macallan #define PM3_SCISSORMINXY                       0x00008188
    208  1.1  macallan #define PM3_AREASTIPPLE_MODE                   0x000081a0
    209  1.1  macallan #define PM3_LINESTIPPLE_MODE                   0x000081a8
    210  1.1  macallan #define PM3_TEXTUREADDRESS_MODE                0x00008380
    211  1.1  macallan #define PM3_TEXTUREFILTER_MODE                 0x000084e0
    212  1.1  macallan #define PM3_TEXTUREREAD_MODE                   0x00008670
    213  1.1  macallan #define PM3_TEXTURECOLOR_MODE                  0x00008680
    214  1.1  macallan #define PM3_FOG_MODE                           0x00008690
    215  1.1  macallan #define PM3_COLORDDA_MODE                      0x000087e0
    216  1.2  macallan #define PM3_COLOR	                       0x000087f0
    217  1.1  macallan #define PM3_ALPHATEST_MODE                     0x00008800
    218  1.1  macallan #define PM3_ANTIALIAS_MODE                     0x00008808
    219  1.1  macallan #define PM3_DITHER_MODE                        0x00008818
    220  1.1  macallan #define              PM3_CF_TO_DIM_CF(_cf)                         ((((_cf) & 0x0f) << 2) | ( 1 << 10))
    221  1.2  macallan #define			PM3_DITHER_ENABLE	0x00000001
    222  1.2  macallan #define			PM3_DITHER		0x00000002
    223  1.2  macallan #define			PM3_DITHER_COLOR_SHIFT	2
    224  1.2  macallan #define			PM3_DITHER_RGB		0x00000400
    225  1.1  macallan #define PM3_FBSOFTWAREWRITEMASK                0x00008820
    226  1.1  macallan #define PM3_LOGICALOP_MODE                     0x00008828
    227  1.1  macallan #define PM3_ROUTER_MODE                        0x00008840
    228  1.1  macallan #define PM3_LB_WRITE_MODE                      0x000088c0
    229  1.1  macallan #define              PM3_LB_DISABLE                                0x00000000
    230  1.1  macallan #define PM3_WINDOW                             0x00008980
    231  1.1  macallan #define PM3_STENCIL_MODE                       0x00008988
    232  1.1  macallan #define PM3_STENCIL_DATA                       0x00008990
    233  1.1  macallan #define PM3_DEPTH_MODE                         0x000089a0
    234  1.4  macallan #define PM3_SOURCE_DATA			       0x00008aa8
    235  1.1  macallan #define PM3_FBWRITE_MODE                       0x00008ab8
    236  1.1  macallan #define              PM3_FBWRITEMODE_WRITEENABLE                   0x00000001
    237  1.1  macallan #define              PM3_FBWRITEMODE_OPAQUESPAN                    0x00000020
    238  1.1  macallan #define              PM3_FBWRITEMODE_ENABLE0                       0x00001000
    239  1.1  macallan #define PM3_FBHARDWAREWRITEMASK                0x00008ac0
    240  1.1  macallan #define PM3_FILTER_MODE                        0x00008c00
    241  1.1  macallan #define              PM3_FM_PASS_SYNC                              0x00000400
    242  1.1  macallan #define PM3_STATISTIC_MODE                     0x00008c08
    243  1.1  macallan #define PM3_SYNC                               0x00008c40
    244  1.1  macallan #define              PM3_SYNC_TAG                                  0x188
    245  1.1  macallan #define PM3_YUV_MODE                           0x00008f00
    246  1.1  macallan #define PM3_CHROMATEST_MODE                    0x00008f18
    247  1.1  macallan #define PM3_DELTA_MODE                         0x00009300
    248  1.1  macallan #define PM3_DELTACONTROL                       0x00009350
    249  1.1  macallan #define PM3_XBIAS                              0x00009480
    250  1.1  macallan #define PM3_YBIAS                              0x00009488
    251  1.1  macallan #define PM3_FBDESTREAD_BUFFERADDRESS0          0x0000ae80
    252  1.1  macallan #define PM3_FBDESTREAD_BUFFEROFFSET0           0x0000aea0
    253  1.1  macallan #define PM3_FBDESTREAD_BUFFERWIDTH0            0x0000aec0
    254  1.1  macallan #define              PM3_FBDESTREAD_BUFFERWIDTH_WIDTH(_w)          ((_w) & 0x0fff)
    255  1.1  macallan #define PM3_FB_DESTREAD_MODE                   0x0000aee0
    256  1.1  macallan #define              PM3_FBDRM_ENABLE                              0x00000001
    257  1.1  macallan #define              PM3_FBDRM_ENABLE0                             0x00000100
    258  1.1  macallan #define PM3_FBDESTREAD_ENABLE                  0x0000aee8
    259  1.1  macallan #define              PM3_FBDESTREAD_SET(_e, _r, _a)                (((_e) & 0xff) | (((_r) & 0xff) << 8) | (((_a) & 0xff) << 24))
    260  1.1  macallan #define PM3_FBSOURCEREAD_MODE                  0x0000af00
    261  1.1  macallan #define              PM3_FBSOURCEREAD_MODE_ENABLE                  0x00000001
    262  1.1  macallan #define              PM3_FBSOURCEREAD_MODE_BLOCKING                0x00000800
    263  1.1  macallan #define PM3_FBSOURCEREAD_BUFFERADDRESS         0x0000af08
    264  1.1  macallan #define PM3_FBSOURCEREAD_BUFFEROFFSET          0x0000af10
    265  1.1  macallan #define PM3_FBSOURCEREAD_BUFFERWIDTH           0x0000af18
    266  1.1  macallan #define              PM3_FBSOURCEREAD_BUFFERWIDTH_WIDTH(_w)        ((_w) & 0x0fff)
    267  1.2  macallan #define PM3_ALPHA_SOURCE_COLOR		       0x0000af80	/* in ABGR */
    268  1.2  macallan #define PM3_ALPHA_DEST_COLOR		       0x0000af88	/* in ABGR */
    269  1.1  macallan #define PM3_ALPHABLENDCOLOR_MODE               0x0000afa0
    270  1.2  macallan 	/* lower 12 bits are identical to PM3_ALPHABLENDALPHA_MODE */
    271  1.2  macallan #define			PM3_COLORFORMAT_MASK	0x0000f000
    272  1.2  macallan #define			PM3_COLORFORMAT_8888	0x00000000
    273  1.2  macallan #define			PM3_COLORFORMAT_4444	0x00001000
    274  1.2  macallan #define			PM3_COLORFORMAT_5551	0x00002000
    275  1.2  macallan #define			PM3_COLORFORMAT_565	0x00003000
    276  1.2  macallan #define			PM3_COLORFORMAT_332	0x00004000
    277  1.2  macallan #define			PM3_COLOR_ORDER_RGB	0x00010000
    278  1.2  macallan #define			PM3_COLOR_CONV_SHIFT	0x00020000	/* scale otherwise */.
    279  1.2  macallan #define			PM3_SOURCE_COLOR_CONST	0x00040000
    280  1.2  macallan #define			PM3_DEST_COLOR_CONST	0x00080000
    281  1.2  macallan #define			PM3_COLOR_OP_MASK	0x00f00000	/* see PM3_ALPHA_OP_MASK */
    282  1.2  macallan #define			PM3_SWAP_SOURCE_DEST	0x01000000
    283  1.1  macallan #define PM3_ALPHABLENDALPHA_MODE               0x0000afa8
    284  1.2  macallan #define			PM3_ENABLE_ALPHA	0x00000001
    285  1.2  macallan #define			PM3_SOURCEBLEND_MASK	0x0000001e
    286  1.2  macallan #define			PM3_SOURCEBLEND_SHIFT	1
    287  1.2  macallan #define			PM3_DESTBLEND_MASK	0x000000e0
    288  1.2  macallan #define			PM3_DESTBLEND_SHIFT	5
    289  1.2  macallan #define			PM3_SOURCE_X2		0x00000100
    290  1.2  macallan #define			PM3_DEST_X2		0x00000200
    291  1.2  macallan #define			PM3_SOURCE_INVERT	0x00000400
    292  1.2  macallan #define			PM3_DEST_INVERT		0x00000800
    293  1.2  macallan #define			PM3_NO_ALPHA_BUFFER	0x00001000
    294  1.2  macallan #define			PM3_ALPHA_APPLE		0x00002000
    295  1.2  macallan #define			PM3_ALPHA_OPENGL	0x00000000
    296  1.2  macallan #define			PM3_ALPHA_SHIFT		0x00004000
    297  1.2  macallan #define			PM3_ALPHA_SCALE		0x00000000
    298  1.2  macallan #define			PM3_SOURCE_ALPHA_CONST	0x00008000
    299  1.2  macallan #define			PM3_DEST_ALPHA_CONST	0x00010000
    300  1.2  macallan #define			PM3_ALPHA_OP_MASK	0x000e0000
    301  1.2  macallan #define			PM3_ALPHA_OP_ADD	0x00000000
    302  1.2  macallan #define			PM3_ALPHA_OP_SUB	0x00020000
    303  1.2  macallan #define			PM3_ALPHA_OP_SUBREV	0x00040000
    304  1.2  macallan #define			PM3_ALPHA_OP_MIN	0x00060000
    305  1.2  macallan #define			PM3_ALPHA_OP_MAX	0x00080000
    306  1.1  macallan #define PM3_FBWRITEBUFFERADDRESS0              0x0000b000
    307  1.1  macallan #define PM3_FBWRITEBUFFEROFFSET0               0x0000b020
    308  1.1  macallan #define PM3_FBWRITEBUFFERWIDTH0                0x0000b040
    309  1.1  macallan #define              PM3_FBWRITEBUFFERWIDTH_WIDTH(_w)              ((_w) & 0x0fff)
    310  1.1  macallan #define PM3_SIZEOF_FRAMEBUFFER                 0x0000b0a8
    311  1.1  macallan #define PM3_FOREGROUNDCOLOR                    0x0000b0c0
    312  1.1  macallan #define PM3_BACKGROUNDCOLOR                    0x0000b0c8
    313  1.1  macallan #define PM3_TEXTURECOMPOSITE_MODE              0x0000b300
    314  1.1  macallan #define PM3_TEXTURECOMPOSITECOLOR_MODE0        0x0000b308
    315  1.1  macallan #define PM3_TEXTURECOMPOSITEALPHA_MODE0        0x0000b310
    316  1.1  macallan #define PM3_TEXTURECOMPOSITECOLOR_MODE1        0x0000b318
    317  1.1  macallan #define PM3_TEXTURECOMPOSITEALPHA_MODE1        0x0000b320
    318  1.1  macallan #define PM3_TEXTUREINDEX_MODE0                 0x0000b338
    319  1.1  macallan #define PM3_TEXTUREINDEX_MODE1                 0x0000b340
    320  1.1  macallan #define PM3_TEXELLUT_MODE                      0x0000b378
    321  1.1  macallan #define PM3_LB_DESTREAD_MODE                   0x0000b500
    322  1.1  macallan #define PM3_LB_DESTREAD_ENABLES                0x0000b508
    323  1.1  macallan #define PM3_LB_SOURCEREAD_MODE                 0x0000b520
    324  1.1  macallan #define PM3_GID_MODE                           0x0000b538
    325  1.1  macallan #define PM3_RECTANGLEPOSITION                  0x0000b600
    326  1.1  macallan #define PM3_CONFIG2D                           0x0000b618
    327  1.1  macallan #define              PM3_CONFIG2D_OPAQUESPAN                       0x00000001
    328  1.1  macallan #define              PM3_CONFIG2D_MULTIRXBLIT                      0x00000002
    329  1.1  macallan #define              PM3_CONFIG2D_USERSCISSOR_ENABLE               0x00000004
    330  1.1  macallan #define              PM3_CONFIG2D_FBDESTREAD_ENABLE                0x00000008
    331  1.1  macallan #define              PM3_CONFIG2D_ALPHABLEND_ENABLE                0x00000010
    332  1.1  macallan #define              PM3_CONFIG2D_DITHER_ENABLE                    0x00000020
    333  1.1  macallan #define              PM3_CONFIG2D_FOREGROUNDROP_ENABLE             0x00000040
    334  1.1  macallan #define              PM3_CONFIG2D_FOREGROUNDROP(_rop)               (((_rop) & 0xF) << 7)
    335  1.1  macallan #define              PM3_CONFIG2D_BACKGROUNDROP_ENABLE             0x00000800
    336  1.1  macallan #define              PM3_CONFIG2D_BACKGROUNDROP(_rop)               (((_rop) & 0xF) << 12)
    337  1.1  macallan #define              PM3_CONFIG2D_USECONSTANTSOURCE                0x00010000
    338  1.1  macallan #define              PM3_CONFIG2D_FBWRITE_ENABLE                   0x00020000
    339  1.1  macallan #define              PM3_CONFIG2D_BLOCKING                         0x00040000
    340  1.1  macallan #define              PM3_CONFIG2D_EXTERNALSOURCEDATA               0x00080000
    341  1.1  macallan #define              PM3_CONFIG2D_LUTMODE_ENABLE                   0x00100000
    342  1.1  macallan #define PM3_RENDER2D                           0x0000b640
    343  1.1  macallan #define              PM3_RENDER2D_OPERATION_NORMAL                 0x00000000
    344  1.1  macallan #define              PM3_RENDER2D_OPERATION_SYNCONHOSTDATA         0x00001000
    345  1.1  macallan #define              PM3_RENDER2D_OPERATION_SYNCONBITMASK          0x00002000
    346  1.1  macallan #define              PM3_RENDER2D_OPERATION_PATCHORDERRENDERING    0x00003000
    347  1.1  macallan #define              PM3_RENDER2D_FBSOURCEREADENABLE               0x00004000
    348  1.1  macallan #define              PM3_RENDER2D_SPANOPERATION                    0x00008000
    349  1.1  macallan #define              PM3_RENDER2D_XPOSITIVE                        0x10000000
    350  1.1  macallan #define              PM3_RENDER2D_YPOSITIVE                        0x20000000
    351  1.1  macallan #define              PM3_RENDER2D_AREASTIPPLEENABLE                0x40000000
    352  1.1  macallan #define              PM3_RENDER2D_TEXTUREENABLE                    0x80000000
    353  1.1  macallan 
    354  1.2  macallan #define PM3_BLEND_ZERO				0x00000000
    355  1.2  macallan #define PM3_BLEND_ONE				0x00000001
    356  1.2  macallan #define PM3_BLEND_COLOR				0x00000002
    357  1.2  macallan #define PM3_BLEND_ONE_MINUS_COLOR		0x00000003
    358  1.2  macallan #define PM3_BLEND_SOURCE_ALPHA			0x00000004
    359  1.2  macallan #define PM3_BLEND_ONE_MINUS_SOURCE_ALPHA	0x00000005
    360  1.2  macallan #define PM3_BLEND_DEST_ALPHA			0x00000006
    361  1.2  macallan #define PM3_BLEND_ONE_MINUS_DEST_ALPHA		0x00000007
    362  1.2  macallan #define PM3_BLEND_SAT_SOURCE_ALPHA		0x00000008
    363  1.2  macallan 
    364  1.2  macallan 
    365  1.2  macallan 
    366  1.1  macallan #endif /* PM3_REG_H */
    367