Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2.  * Copyright © <2010>, Intel Corporation.
  3.  *
  4.  * This program is licensed under the terms and conditions of the
  5.  * Eclipse Public License (EPL), version 1.0.  The full text of the EPL is at
  6.  * http://www.opensource.org/licenses/eclipse-1.0.php.
  7.  *
  8.  */
  9. // Kernel name: WriteRecon_YC.asm
  10. //
  11. //  $Revision: 10 $
  12. //  $Date: 10/03/06 5:28p $
  13. //
  14.  
  15.  
  16. //#if !defined(__WRITERECON_YC__)               // Make sure this is only included once
  17. //#define __WRITERECON_YC__
  18.  
  19.     // TODO: Merge two inst to one.
  20.     mov (1)             p0:w                                    nOFFSET_ERRORY:w
  21.     mov (1)             p1:w                                    nOFFSET_ERRORY+128:w
  22.    
  23.         $for(0; <4; 1) {
  24.     mov (16)    mbMSGPAYLOADY(%1,0)<1>  r[p0,%1*32+0]<8,2>:ub           {NoDDClr}
  25.     mov (16)    mbMSGPAYLOADY(%1,16)<1> r[p0,%1*32+16]<8,2>:ub          {NoDDChk}
  26.     }    
  27.         $for(0; <4; 1) {
  28.     mov (16)    mbMSGPAYLOADY(%1+4,0)<1>        r[p0,%1*32+256]<8,2>:ub                 {NoDDClr}
  29.     mov (16)    mbMSGPAYLOADY(%1+4,16)<1>       r[p0,%1*32+16+256]<8,2>:ub              {NoDDChk}
  30.     }    
  31.    
  32.  
  33.  #if defined(MBAFF)
  34.         add (1)         pMSGDSC:ud                              gFIELDFLAGS:uw                  MSG_LEN(8)+nDWBWMSGDSC+nBDIX_DESTY+ENWRCOM:ud
  35.  #elif defined(FIELD)
  36.         add (1)         pMSGDSC:ud                              gFIELDFLAGS:uw                  MSG_LEN(8)+nDWBWMSGDSC_TF+nBDIX_DESTY+ENWRCOM:ud
  37.  #endif
  38.  
  39.     mov (2)             gMSGSRC.0<1>:d                  gX<2;2,1>:w             {NoDDClr}
  40.     mov (1)             gMSGSRC.2:ud                    0x000f000f:ud   {NoDDChk}
  41.    
  42. #if defined(FRAME)
  43.     send (8)    gREG_WRITE_COMMIT_Y<1>:ud               mMSGHDRYW                               gMSGSRC<8;8,1>:ud               DAPWRITE        MSG_LEN(8)+nDWBWMSGDSC+nBDIX_DESTY+ENWRCOM
  44. #else
  45.     send (8)    gREG_WRITE_COMMIT_Y<1>:ud               mMSGHDRYW                               gMSGSRC<8;8,1>:ud               DAPWRITE        pMSGDSC:ud
  46. #endif
  47.  
  48. #ifndef MONO
  49.         // TODO: Why did I use p0?
  50.     mov (1)             p0:w                                    nOFFSET_ERRORC:w
  51.         mov (16)        mbMSGPAYLOADC(0,0)<2>   r[p0,0]<32;16,2>:ub                             {NoDDClr}
  52.         mov (16)        mbMSGPAYLOADC(0,1)<2>   r[p0,128]<32;16,2>:ub                   {NoDDChk}
  53.         mov (16)        mbMSGPAYLOADC(1,0)<2>   r[p0,32]<32;16,2>:ub                    {NoDDClr}
  54.         mov (16)        mbMSGPAYLOADC(1,1)<2>   r[p0,128+32]<32;16,2>:ub                {NoDDChk}
  55.         mov (16)        mbMSGPAYLOADC(2,0)<2>   r[p0,64]<32;16,2>:ub                    {NoDDClr}
  56.         mov (16)        mbMSGPAYLOADC(2,1)<2>   r[p0,128+64]<32;16,2>:ub                {NoDDChk}
  57.         mov (16)        mbMSGPAYLOADC(3,0)<2>   r[p0,96]<32;16,2>:ub                    {NoDDClr}
  58.         mov (16)        mbMSGPAYLOADC(3,1)<2>   r[p0,128+96]<32;16,2>:ub                {NoDDChk}
  59.  
  60.  
  61.  #if defined(MBAFF)
  62.         add (1)         pMSGDSC:ud                              gFIELDFLAGS:uw                  MSG_LEN(4)+nDWBWMSGDSC+nBDIX_DESTC+ENWRCOM:ud
  63.  #elif defined(FIELD)
  64.         add (1)         pMSGDSC:ud                              gFIELDFLAGS:uw                  MSG_LEN(4)+nDWBWMSGDSC_TF+nBDIX_DESTC+ENWRCOM:ud
  65.  #endif
  66.  
  67.     asr (1)             gMSGSRC.1:d                             gMSGSRC.1:d                                     1:w     {NoDDClr}
  68.     mov (1)             gMSGSRC.2:ud                    0x0007000f:ud                                   {NoDDChk} // NV12 (16x4)
  69.  
  70. #if defined(FRAME)
  71.     send (8)    gREG_WRITE_COMMIT_UV<1>:ud              mMSGHDRCW                               gMSGSRC<8;8,1>:ud               DAPWRITE        MSG_LEN(4)+nDWBWMSGDSC+nBDIX_DESTC+ENWRCOM
  72. #else
  73.     send (8)    gREG_WRITE_COMMIT_UV<1>:ud              mMSGHDRCW                               gMSGSRC<8;8,1>:ud               DAPWRITE        pMSGDSC:ud
  74. #endif  // defined(FRAME)
  75.  
  76. #endif  // !defined(MONO)
  77.  
  78.  
  79. //#endif        // !defined(__WRITERECON_YC__)
  80.