亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? epic.c

?? Infineon公司有一款實(shí)現(xiàn)SHDSL協(xié)議(ADSL協(xié)議的變種)的芯片
?? C
?? 第 1 頁 / 共 3 頁
字號(hào):
}

/*******************************************************************************
Description: 
   Update all current timeslot connections.
Arguments:
   NONE.
Return:
   NONE.
Remarks:
   NONE.
 ******************************************************************************/
void Epic_Update_Connections (void)
{
   WORD8 i, Epic_delay_mode;
      
                                      /* set default settings              */
   Epic_delay_mode = 0; 
   Epic_extra_switching = 0;
    
                                      /* No timeslots to be switched:  
                                         reset all connections.            */
   if (G_Epic_Switch_Slt_Num == 0)
   {
      Epic_Reset_All_Connections ();
   }
   else
                                      /* Set current switching         
                                         connections:                      */
   {    
                                      /* Epic PCM Mode 1 Upstream          */
       if ((Epic_Pcm_Mode == 1) && ((G_Epic_Switch_Src_Prt & 0x30) == 0x10) 
             && ((G_Epic_Switch_Dst_Prt & 0x30) == 0x00)) 
       {
           Epic_delay_mode = 1;
       }
                                      /* Epic PCM Mode 1 Downstream        */
       if ((Epic_Pcm_Mode == 1) && ((G_Epic_Switch_Src_Prt & 0x30) == 0x00) 
             && ((G_Epic_Switch_Dst_Prt & 0x30) == 0x10))
       {
           Epic_delay_mode = 2;
       }

       switch (Epic_delay_mode)
       {
       case 1:                        /* Upstream                           */
        
                                        /* Always 1 frame delay             */
           for (i = 0;i < G_Epic_Switch_Slt_Num; i++)
           {
                                        /* 0 frames delay                   */
               if ((G_Epic_Switch_Src_Slt+i < 27) && (G_Epic_Switch_Dst_Slt+i >=
                   ((((G_Epic_Switch_Src_Slt+i)%2) + G_Epic_Switch_Src_Slt+i)*2 + 8 )))
               {
                                        /* calculate if CFI1 -> PCM0
                                           switching needs 1 frame delay    */
                   if ( ((G_Epic_Switch_Src_Slt+i)%2==0) && 
                       ((G_Epic_Switch_Dst_Slt+i) >= ((G_Epic_Switch_Src_Slt+i)*2+8)) &&
                       ((G_Epic_Switch_Dst_Slt+i) <= ((G_Epic_Switch_Src_Slt+i)*2+11)) )
                   {
                       V24_PRINT(("\nCFI slot 0x%02X is switched with 1 frame delay",
                           G_Epic_Switch_Src_Slt+i));
                   }
                       
                                        /* Epic Switching with odd slots
                                           on Port 1                        */
                   Epic_extra_switching = 1;
                                        /* CFI0 -> CFI1 
                                            add 1 frame delay               */
                   Epic_Set_Single_Connection (G_Epic_Switch_Src_Prt, G_Epic_Switch_Src_Slt+i, 
                                               CFI_Port1, G_Epic_Switch_Src_Slt+i);
                                        /* CFI1 -> PCM0
                                           add 0 or 1 frame delay           */
                   Epic_Set_Single_Connection (CFI_Port1, G_Epic_Switch_Src_Slt+i, 
                                               G_Epic_Switch_Dst_Prt, G_Epic_Switch_Dst_Slt+i);
                   Epic_extra_switching = 0;
               }    
               else
               {
                   if (((G_Epic_Switch_Src_Slt+i) > 28 && (G_Epic_Switch_Dst_Slt+i) < 4) |
                       ((G_Epic_Switch_Src_Slt+i) == 31 && (G_Epic_Switch_Dst_Slt+i) < 8))
                   {
                       V24_PRINT(("\nCFI slot 0x%02X is switched with 1 frame delay",
                           G_Epic_Switch_Src_Slt+i));
                   }

                   Epic_Set_Single_Connection (G_Epic_Switch_Src_Prt, G_Epic_Switch_Src_Slt+i, 
                                               G_Epic_Switch_Dst_Prt, G_Epic_Switch_Dst_Slt+i);
               }
           }
           

           break;

       case 2:                                /* Downstream:
                                                 Check if 2 frames delay is
                                                 necessary,                         
                                                 Always 1 frame delay               */
           for (i = 0;i < G_Epic_Switch_Slt_Num; i++)
           {
               if ((G_Epic_Switch_Src_Slt+i < 60) && (G_Epic_Switch_Dst_Slt+i >=
                   (((G_Epic_Switch_Src_Slt+i - ((G_Epic_Switch_Src_Slt+i)%4)) + 6) / 2)))
               {                
                                              /* need 1 frames delay                */
                                              /* PCM0 -> CFI1   0 frame delay       */
                   Epic_Set_Single_Connection (G_Epic_Switch_Src_Prt, G_Epic_Switch_Src_Slt+i, 
                                               CFI_Port1, G_Epic_Switch_Dst_Slt+i);
                                              /* CFI1 -> CFI0   add 1 frame delay   */
                   Epic_Set_Single_Connection (CFI_Port1, G_Epic_Switch_Dst_Slt+i, 
                                               G_Epic_Switch_Dst_Prt, G_Epic_Switch_Dst_Slt+i);
               }    
               else
               {
                   Epic_Set_Single_Connection (G_Epic_Switch_Src_Prt, G_Epic_Switch_Src_Slt+i, 
                                               G_Epic_Switch_Dst_Prt, G_Epic_Switch_Dst_Slt+i);
               }
           }
           break;


                                              /* No const delay switching 
                                                 necessary                          */
       default :
           for (i = 0;i < G_Epic_Switch_Slt_Num; i++)
           { 
                Epic_Set_Single_Connection (G_Epic_Switch_Src_Prt, G_Epic_Switch_Src_Slt+i, 
                                            G_Epic_Switch_Dst_Prt, G_Epic_Switch_Dst_Slt+i);
           }
           break;
       }
   }
}

/* ============================= */
/* Local function definition     */
/* ============================= */



/*******************************************************************************
Description: 
   Connect two time slots together.
Arguments:
   src_port    -  Specifies the source port.
   src_slot    -  Specifies the source time slot.
   dst_port    -  Specifies the destination port.
   dst_slot    -  Specifies the destination time slot.
Return:
   NONE.
Remarks:
   NONE.
 ******************************************************************************/
static void Epic_Set_Single_Connection (WORD8 src_port, WORD8 src_slot, WORD8 dst_port, WORD8 dst_slot)
{
   WORD8 src_port_type;
   WORD8 dst_port_type;
   WORD8 src_port_numb;
   WORD8 dst_port_numb;
   WORD8 address = 0;
                                      /* Store port type and number    
                                         values.                           */
   src_port_type = (src_port >> 4) & 0x03;
   dst_port_type = (dst_port >> 4) & 0x03;
   src_port_numb = src_port & 0x03;
   dst_port_numb = dst_port & 0x03;

                                     /* FALC uses just even timeslot numbers
                               in 4 MHz mode */
   if (G_Eeprom [CONFIG_P_CLK] == P_CLK_4MHZ)
   {
      if ((src_port_type == CFI) && ((src_port_numb == 0x00) | (src_port_numb == 0x01)))
     {
        src_slot <<= 1;
     }
    
      if ((dst_port_type == CFI) && ((dst_port_numb == 0x00) | (dst_port_numb == 0x01)))
     {
        dst_slot <<= 1;
     }
   }

                                      /* Only used if Epic_extra_switching = 1
                                         Set following switch:         
                                         CFI1 odd slot -> PCM0             */
   if ((src_port_type == 1) && (dst_port_type == 0) && (Epic_extra_switching == 1))
   {
//      V24INT_PRINT(("\nextra Switch CFI->PCM: "));
                                      /* Set upstream connection.          */
      address  = Epic_Encode_Time_Slot (PCM, dst_port_numb, dst_slot);
      address |= 0x80;
      Out (EPIC_MADR , address);
//      V24INT_PRINT(("(Up:)PCM_Dst=0x%02X,",address));
      address  = Epic_Encode_Time_Slot (CFI, src_port_numb, (src_slot+1));
      address |= 0x80;
      Out (EPIC_MAAR , address);
//      V24INT_PRINT(("CFI_Src=0x%02X slot 0x%02X  port 0x%02X",address, (src_slot+1), src_port_numb));
      Out (EPIC_MACR , 0x71);
      WHILE_NOT_ABORT ( In(EPIC_STAR) > 0x7F);
      if (G_Abort == TRUE) printf(": EPIC_STAR0\n");    

                                      /* Release tristate.                 */
      Out (EPIC_MADR , 0x0F);
      address  = Epic_Encode_Time_Slot (PCM, dst_port_numb, dst_slot);
      address |= 0x80;
      Out (EPIC_MAAR , address);
//      V24INT_PRINT(("(Tri:)PCM_Dst=0x%02X",address));
      Out (EPIC_MACR , 0x60);
      WHILE_NOT_ABORT ( In (EPIC_STAR) > 0x7F);
      if (G_Abort == TRUE) printf(": EPIC_STAR1\n");    
   }
       
                                      /* Set following switch:         
                                         CFI -> PCM                        */
   if ((src_port_type == 1) && (dst_port_type == 0) && (Epic_extra_switching != 1))
   {
//      V24INT_PRINT(("\nnormal Switch CFI->PCM: "));
                                      /* Set upstream connection.          */
      address  = Epic_Encode_Time_Slot (PCM, dst_port_numb, dst_slot);
      address |= 0x80;
      Out (EPIC_MADR , address);
//      V24INT_PRINT(("(Up:)PCM_Dst=0x%02X,",address));
      address  = Epic_Encode_Time_Slot (CFI, src_port_numb, src_slot);
      address |= 0x80;
      Out (EPIC_MAAR , address);
//      V24INT_PRINT(("CFI_Src=0x%02X slot 0x%02X  port 0x%02X",address, src_slot, src_port_numb));
      Out (EPIC_MACR , 0x71);
      WHILE_NOT_ABORT ( In(EPIC_STAR) > 0x7F);
      if (G_Abort == TRUE) printf(": EPIC_STAR2\n");    

                                      /* Release tristate.                 */
      Out (EPIC_MADR , 0x0F);
      address  = Epic_Encode_Time_Slot (PCM, dst_port_numb, dst_slot);
      address |= 0x80;
      Out (EPIC_MAAR , address);
//      V24INT_PRINT(("(Tri:)PCM_Dst=0x%02X",address));
      Out (EPIC_MACR , 0x60);
      WHILE_NOT_ABORT ( In (EPIC_STAR) > 0x7F);
      if (G_Abort == TRUE) printf(": EPIC_STAR3\n");    
   }
    
                                      /* Set following switch:         
                                         PCM -> CFI                        */
   if ((src_port_type == 0) && (dst_port_type == 1))

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线精品视频| 99久久国产综合精品色伊| 国产精品久线观看视频| 欧美精品在线视频| 成人动漫一区二区| 久久黄色级2电影| 亚洲午夜精品在线| 国产精品久久久久影院| 日韩欧美综合在线| 色综合久久久久| 高清不卡一区二区在线| 久久激情五月婷婷| 日韩1区2区日韩1区2区| 亚洲欧美日韩国产一区二区三区 | 日韩视频在线你懂得| 99精品视频一区二区三区| 精品写真视频在线观看| 视频一区欧美日韩| 亚洲最新在线观看| 亚洲日本在线观看| 中文字幕不卡三区| 国产日韩一级二级三级| 精品蜜桃在线看| 4438x成人网最大色成网站| 色天天综合色天天久久| 成人精品小蝌蚪| 国产一区二区三区最好精华液| 五月天激情综合网| 亚洲精品久久久蜜桃| 国产精品传媒视频| 国产精品国产三级国产aⅴ中文| 久久综合狠狠综合久久综合88| 欧美精品久久天天躁| 欧美日韩在线不卡| 欧美日韩在线综合| 欧美日韩亚洲国产综合| 欧美日韩国产三级| 欧美喷潮久久久xxxxx| 欧美日韩一卡二卡三卡| 欧美日韩一区视频| 欧美亚洲尤物久久| 欧美日韩国产一区| 91精品国产91综合久久蜜臀| 91精品国产综合久久国产大片| 91精品福利在线一区二区三区| 国产网站一区二区三区| 欧美tickle裸体挠脚心vk| 欧美电影免费观看高清完整版在线 | 国产尤物一区二区| 九九视频精品免费| 国产美女在线精品| 成人激情黄色小说| 在线观看91视频| 欧美一区二区三区四区五区| 精品美女一区二区| 国产欧美一区视频| 亚洲精品日产精品乱码不卡| 亚洲一本大道在线| 久久电影国产免费久久电影| 国产一区在线不卡| 色综合久久久网| 欧美一三区三区四区免费在线看| 久久综合久色欧美综合狠狠| 国产免费观看久久| 亚洲国产sm捆绑调教视频 | 国产真实乱对白精彩久久| 国产不卡视频一区| 在线免费观看一区| 欧美一级日韩免费不卡| 国产人成亚洲第一网站在线播放 | www.一区二区| 欧美视频一二三区| 日韩欧美一区在线| 国产精品对白交换视频 | 中文字幕一区二区三区四区| 亚洲电影你懂得| 黄色小说综合网站| 99综合电影在线视频| 欧美伦理电影网| 久久蜜臀精品av| 一区二区三区四区高清精品免费观看| 午夜精品免费在线| 国产精品白丝jk黑袜喷水| 91国产成人在线| 欧美成人一区二区三区| 亚洲视频一区二区在线观看| 午夜久久久久久久久| 国产成人精品一区二区三区四区| 日韩欧美亚洲国产另类 | 国产精品午夜在线| 天天综合色天天综合| av中文字幕在线不卡| 精品欧美乱码久久久久久1区2区| 亚洲三级在线播放| 国产最新精品免费| 91精品国产色综合久久ai换脸| 亚洲视频电影在线| 国产精品影视网| 欧美一区二区视频免费观看| 亚洲人成影院在线观看| 国内精品嫩模私拍在线| 欧美日韩精品一区二区三区四区 | 欧美日韩成人综合| 国产精品欧美极品| 国产伦精品一区二区三区免费迷| 欧美午夜免费电影| 亚洲欧美国产三级| 国产精品白丝jk黑袜喷水| 欧美一级一级性生活免费录像| 国产精品福利av| 成人一级片网址| 久久综合狠狠综合| 免费成人小视频| 88在线观看91蜜桃国自产| 亚洲码国产岛国毛片在线| 国产精品亚洲第一| 久久亚洲综合av| 久久国内精品视频| 日韩一二三区视频| 免费欧美在线视频| 欧美乱熟臀69xxxxxx| 亚洲国产精品久久不卡毛片| 99免费精品视频| 国产精品视频免费| 国产精品一区免费视频| 精品国产一区二区亚洲人成毛片| 日韩中文字幕不卡| 欧美理论在线播放| 亚洲第一综合色| 欧美人牲a欧美精品| 亚洲成a人v欧美综合天堂| 在线看不卡av| 亚洲国产一区视频| 欧美日韩一级二级| 亚洲风情在线资源站| 欧美午夜精品电影| 天堂久久一区二区三区| 7777精品久久久大香线蕉| 婷婷一区二区三区| 日韩西西人体444www| 久久99精品久久久久久久久久久久| 欧美一区二区三区在线观看| 青青草91视频| 精品捆绑美女sm三区| 国内精品国产成人国产三级粉色| 精品理论电影在线观看| 国产精品一区久久久久| 中文字幕精品三区| 99久久精品99国产精品 | 美国毛片一区二区三区| 亚洲精品一区二区三区四区高清 | 夜夜嗨av一区二区三区四季av| 在线免费亚洲电影| 日本一道高清亚洲日美韩| 日韩欧美国产综合一区 | 精品国产免费一区二区三区香蕉 | 欧美久久久久中文字幕| 老汉av免费一区二区三区| 久久午夜羞羞影院免费观看| 国产激情精品久久久第一区二区 | 中文字幕在线不卡| 色婷婷综合激情| 免费xxxx性欧美18vr| 久久久高清一区二区三区| www.66久久| 五月天久久比比资源色| 欧美精品一区二区三区很污很色的| av激情综合网| 同产精品九九九| 久久久91精品国产一区二区三区| www.欧美亚洲| 天天做天天摸天天爽国产一区| 久久蜜桃av一区二区天堂| 91社区在线播放| 麻豆久久久久久久| 亚洲欧洲成人自拍| 欧美一区二区三区免费大片| 国产精品69久久久久水密桃 | 国产一区二区三区免费看| 日韩伦理av电影| 欧美一区二区三区四区五区| 粉嫩aⅴ一区二区三区四区| 亚洲成人综合网站| 久久久三级国产网站| 色婷婷av一区二区三区之一色屋| 免费在线观看日韩欧美| 亚洲欧美日韩国产另类专区| 日韩精品一区国产麻豆| 欧洲视频一区二区| 国产精品白丝av| 青青草成人在线观看| 一区二区三区自拍| 久久久久久毛片| 91精品在线麻豆| 一本大道av伊人久久综合| 国产精品羞羞答答xxdd| 三级在线观看一区二区| 亚洲欧洲成人精品av97| 久久精品欧美一区二区三区不卡 | 久久无码av三级|