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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? epic.c

?? Infineon公司有一款實現SHDSL協議(ADSL協議的變種)的芯片
?? C
?? 第 1 頁 / 共 3 頁
字號:
/*******************************************************************************
       Copyright (c) 2000, Infineon Technologies.  All rights reserved.
  
                               No Warranty                                                 
   Because the program is licensed free of charge, there is no warranty for 
   the program, to the extent permitted by applicable law.  Except when     
   otherwise stated in writing the copyright holders and/or other parties   
   provide the program "as is" without warranty of any kind, either         
   expressed or implied, including, but not limited to, the implied         
   warranties of merchantability and fitness for a particular purpose. The  
   entire risk as to the quality and performance of the program is with     
   you.  should the program prove defective, you assume the cost of all     
   necessary servicing, repair or correction.                               
                                                                            
   In no event unless required by applicable law or agreed to in writing    
   will any copyright holder, or any other party who may modify and/or      
   redistribute the program as permitted above, be liable to you for        
   damages, including any general, special, incidental or consequential     
   damages arising out of the use or inability to use the program           
   (including but not limited to loss of data or data being rendered        
   inaccurate or losses sustained by you or third parties or a failure of   
   the program to operate with any other programs), even if such holder or  
   other party has been advised of the possibility of such damages. 
 *******************************************************************************       
   
   Module:        EPIC
   Product ID:    22622.1.0.1
   Description:   Contains EPIC access. 

 ******************************************************************************/

//  Group= EPIC 

/* ============================= */
/* Includes                      */
/* ============================= */

#include <stdio.h>
#include <absacc.h>

#include "sysdef.h"            
#include "dds.h"          
#include "sysvar.h"
#include "sysfunc.h"

#include "modid.h"

/* ============================= */
/* Local Macros & Definitions    */
/* ============================= */

#define PCM         0x00
#define CFI         0x01
#define CFI_Port1   0x11

/* ============================= */
/* Local variable definition     */
/* ============================= */

                                      /* @globalv WORD8 | Epic_delay_mode |
                                         Set to 1 if PCM 4MHz mode 
                                         initialized and const. delay
                                         switching in upstream direction
                                         is necessary                      */
static WORD8 Epic_extra_switching;

                                      /*  @globalv WORD8 | Epic_Pcm_Mode | 
                                          Stores the PCM mode of EPIC      */
static WORD8 Epic_Pcm_Mode;

                                      /*  @globalv WORD8 | Epic_Cfi_Mode | 
                                          Stores the CFI mode of EPIC      */
static WORD8 Epic_Cfi_Mode;

/* ============================= */
/* Local function declaration    */
/* ============================= */

static void  Epic_Set_Single_Connection (WORD8 src_port, WORD8 src_slot, WORD8 dst_port, WORD8 dst_slot);
static void  Epic_Reset_All_Connections (void);
static WORD8 Epic_Encode_Time_Slot (WORD8 type, WORD8 port, WORD8 slot);

/* ============================= */
/* Global function definition    */
/* ============================= */

/*******************************************************************************
Description: 
   Inititialization function of the epic module.
Arguments:
   NONE.
Return:
   NONE.
Remarks:
   This function initializes the EPIC according to the 
   board configuration settings.
 ******************************************************************************/
void Epic_Init (void)
{
                                      /* PCM mode0,                    
                                         PCM single clock,             
                                         eval. PFS with fall. PDC edge,
                                         no altern. inp selection,     
                                         no altern. inp comparison.        */
   if (G_Eeprom [CONFIG_P_CLK] == P_CLK_2MHZ)
   {
      Out ( EPIC_PMOD , 0x00 );
      Epic_Pcm_Mode = 0;
                                      /* Set PCM offset downstream.        */
      Out(EPIC_POFD , 0xF1);               
                                      /* Set PCM offset upstream.          */
      Out(EPIC_POFU , 0x19);               
   }

                                      /* PCM mode1,                    
                                         set altern. inp selection.        */
   if (G_Eeprom [CONFIG_P_CLK] == P_CLK_4MHZ)
   {
      Out ( EPIC_PMOD , 0x44 );
      Epic_Pcm_Mode = 1;
                                      /* Set PCM offset downstream.        */  
      Out(EPIC_POFD , 0xF0);               
                                      /* Set PCM offset upstream.          */
      Out(EPIC_POFU , 0x18);               
   }

                                      /* Sample PCM data with          
                                         falling edge of PDC, transmit 
                                         PCM data with rising          
                                         edge of PDC.                      */
   Out(EPIC_PCSR , 0x67);
   
   
                                      /* Set PCM frame bit number.     
                                         256 bits per PCM frame:       
                                         -> 2Mbps(mode0), 4Mbps(mode1)     */
   Out(EPIC_PBNR , 0xFF); 



                                      /* Sample PCM data with          
                                         falling edge of PDC, transmit 
                                         PCM data with rising          
                                         edge of PDC.                      */
   Out(EPIC_PCSR , 0x67);

                                      /* DCL & FSC selected as clock,  
                                         FSC eval. with fall. PDC edge,
                                         prescale divisor 1,           
                                         no altern. input selection.   
                                         CFI mode1.                        */
   Out(EPIC_CMD1 , 0xA4);

   if (G_Eeprom [CONFIG_P_CLK] == P_CLK_2MHZ)
   {
                                      /* CFI transmission on           
                                         rising CRCL edge, CFI receive 
                                         on falling CRCL edge,         
                                         256 bits per CFI frame.       
                                         -> 2Mbps(mode1)                   */
      Out(EPIC_CMD2 , 0x00);
      Epic_Cfi_Mode = 1;
   }

   if (G_Eeprom [CONFIG_P_CLK] == P_CLK_4MHZ)
   {
                                      /* 512 bits per CFI frame.       
                                         -> 4Mbps(mode1)                   */
      Out(EPIC_CMD2 , 0x01);
      Epic_Cfi_Mode = 1;
   }
   
                                      /* No CFI downstream frame       
                                         bit shifts.                       */                   
   Out(EPIC_CBSR , 0x30);               
      
                                      /* 256 or 512 bits per CFI frame 
                                         depending on CMD2 register.       */
   Out(EPIC_CBNR , 0xFF);

                                      /* Mark time slot nr. 0.             */
   Out(EPIC_CTAR , 0x02);


                                      /* Disable subchannel control.       */
   Out(EPIC_CSCR , 0x00);

                                      /* Memory access registers.      
                                         CM data + code reset.             */
   Out(EPIC_MADR , 0xFF);
   Out(EPIC_MACR , 0x70);
   WHILE_NOT_ABORT ( In(EPIC_STAR) > 0x7F);
   if (G_Abort == TRUE) printf(": EPIC_STAR0\n");    
   
                                      /* CM test mode, PCM output high 
                                         impedance, test loop disabled,
                                         CFI tristate drivers, handsh. 
                                         facility disabled, CFI output 
                                         to high impedance, access reg 
                                         during operation.                 */
   Out(EPIC_OMDR , 0x40); 

                                      /* Memory access registers:      
                                         DM data reset.                    */
   Out(EPIC_MADR , 0x00);
   Out(EPIC_MACR , 0x08);
   WHILE_NOT_ABORT ( In(EPIC_STAR) > 0x7F);
   if (G_Abort == TRUE) printf(": EPIC_STAR1\n");    

                                      /* CM normal operation mode.         */
   Out ( EPIC_OMDR , ( In(EPIC_OMDR) | 0xC0 ) );
   WHILE_NOT_ABORT ( In(EPIC_STAR) != 0x25);
   if (G_Abort == TRUE) printf(": EPIC_STAR2\n");    

                                      /* If EPIC is in normal oper.    
                                         mode: EPIC has clocks.            */
   if (G_Abort == FALSE)
   {
                                      /* Memory access registers.      
                                         DM code reset.                    */
      Out (EPIC_MADR , 0x00);
      Out (EPIC_MACR , 0x68);
      WHILE_NOT_ABORT ( In (EPIC_STAR) > 0x7F);
      if (G_Abort == TRUE) printf(": EPIC_STAR3\n");    

                                      /* CM normal operation mode,     
                                         PCM output pins open, CFI     
                                         output pins are active.           */
      Out (EPIC_OMDR , ( In (EPIC_OMDR) | 0xE2 ) );

                                      /* Disable timer int. generation,
                                         reset signalling FIFO,        
                                         reset MFFIFO.                     */
      Out (EPIC_CMDR , 0x11);
      WHILE_NOT_ABORT ( In(EPIC_STAR) > 0x7F);
      if (G_Abort == TRUE) printf(": EPIC_STAR4\n");    

                                      /* Demask all interrupts.            */
      Out (EPIC_MASK , 0x00);

                                      /* Reset all timeslot connection     */
      Epic_Reset_All_Connections ();
   }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一级二级三级| 亚洲国产精品精华液ab| 成人av影院在线| 久久国产剧场电影| 国产一区二区三区香蕉| 午夜精品久久久久影视| 国产精品萝li| 久久久亚洲欧洲日产国码αv| 久久超碰97人人做人人爱| 久久久久久电影| 欧美一区二区三区白人| 91在线看国产| 91小视频免费看| av中文一区二区三区| 国产成人高清在线| 成人国产精品视频| 成人99免费视频| 成人av电影在线网| 成人精品国产一区二区4080| 麻豆一区二区三区| 日韩精品一区二区三区在线| 欧美群妇大交群中文字幕| 色猫猫国产区一区二在线视频| 91视频免费看| 色欧美乱欧美15图片| 欧美三级日韩在线| 亚洲丝袜美腿综合| 亚洲欧美另类小说| 亚洲国产裸拍裸体视频在线观看乱了| 亚洲制服丝袜在线| 首页国产欧美日韩丝袜| 午夜欧美在线一二页| 日本亚洲欧美天堂免费| 久久99精品国产麻豆婷婷| 亚洲成a人片在线观看中文| 亚洲图片欧美视频| 日韩电影在线观看网站| 狠狠色狠狠色综合日日91app| 国产乱理伦片在线观看夜一区| 国产91在线观看丝袜| 91丨porny丨首页| 欧美日韩中文国产| 欧美成人午夜电影| 国产精品天美传媒沈樵| 一区二区理论电影在线观看| 日本成人在线电影网| 国产一区二区三区不卡在线观看 | 亚洲一区二区美女| 天天做天天摸天天爽国产一区 | 国产91对白在线观看九色| 99久久99精品久久久久久| 欧美伊人精品成人久久综合97 | 久久综合狠狠综合久久综合88 | 高清在线观看日韩| 欧美亚洲综合色| 久久亚洲二区三区| 亚洲激情中文1区| 国产在线播放一区三区四| www.99精品| 欧美一级免费大片| 亚洲欧洲精品一区二区三区不卡| 日韩avvvv在线播放| 一本到三区不卡视频| 精品美女一区二区| 国产精品区一区二区三区| 久久99日本精品| 欧美日韩国产大片| 国产精品免费久久久久| 青娱乐精品视频在线| 91麻豆国产福利在线观看| 日韩欧美精品在线视频| 亚洲电影你懂得| 色综合久久久久综合| 久久精品视频在线免费观看| 日本特黄久久久高潮| 91无套直看片红桃| 国产视频一区二区在线观看| 麻豆精品在线视频| 在线一区二区三区| 中文一区在线播放| 国产在线视视频有精品| 欧美色国产精品| 亚洲一区二区三区在线看| av亚洲精华国产精华| 国产喂奶挤奶一区二区三区| 久久97超碰色| 精品国精品自拍自在线| 天天色综合天天| 97久久超碰国产精品电影| 中文字幕中文在线不卡住| 成人午夜私人影院| 国产精品国产三级国产aⅴ无密码| 狠狠久久亚洲欧美| 精品国产123| 久久er99精品| 久久久不卡网国产精品二区| 精品无人区卡一卡二卡三乱码免费卡| 欧美日本精品一区二区三区| 爽好多水快深点欧美视频| 欧美高清视频不卡网| 亚洲精品第一国产综合野| 欧美日韩aaaaa| 久久99久久久欧美国产| 欧美电视剧在线观看完整版| 精品一区二区三区蜜桃| 久久久久久一级片| k8久久久一区二区三区| 亚洲欧美一区二区久久| 91国产成人在线| 亚洲高清免费视频| 欧美浪妇xxxx高跟鞋交| 亚洲成a人v欧美综合天堂| 日韩一卡二卡三卡四卡| 国产美女在线精品| 自拍偷在线精品自拍偷无码专区| 在线看国产日韩| 日韩一区精品字幕| 久久久久久夜精品精品免费| www.成人在线| 免费精品视频最新在线| 国产精品热久久久久夜色精品三区| 日本道免费精品一区二区三区| 日韩二区在线观看| 国产亚洲va综合人人澡精品| 在线看不卡av| 国产精品乡下勾搭老头1| 亚洲人成7777| 欧美大片拔萝卜| 972aa.com艺术欧美| 全部av―极品视觉盛宴亚洲| 国产亚洲自拍一区| 97se亚洲国产综合自在线 | 欧美日韩一区不卡| 国产一区二区三区国产| 洋洋av久久久久久久一区| 久久女同精品一区二区| 欧美特级限制片免费在线观看| 蜜桃在线一区二区三区| 国产精品三级av| 欧美中文字幕亚洲一区二区va在线| 国产成人精品1024| 六月丁香婷婷色狠狠久久| 亚洲精品视频免费观看| 久久蜜桃av一区精品变态类天堂 | 欧美日韩亚洲国产综合| 国产成人在线视频网站| 性欧美大战久久久久久久久| 久久久影视传媒| 欧美一区二区精品在线| 色狠狠色噜噜噜综合网| 国产91高潮流白浆在线麻豆| 久久精品国内一区二区三区| 亚洲女同ⅹxx女同tv| 国产精品久久二区二区| 亚洲精品在线免费观看视频| 69久久99精品久久久久婷婷| 色香色香欲天天天影视综合网| 国产精品一区二区果冻传媒| 蜜桃久久av一区| 蜜桃视频一区二区三区在线观看| 亚洲国产精品综合小说图片区| 国产精品视频观看| 国产日韩欧美精品综合| 精品国产髙清在线看国产毛片| 成人app网站| 石原莉奈在线亚洲二区| 亚洲成人在线观看视频| 一区二区三区中文字幕| 一区二区三区在线观看动漫| 久久综合色之久久综合| 日韩精品在线一区| 日韩免费看的电影| 欧美成人video| 精品日韩成人av| 国产日本一区二区| 国产精品久久久久久久久动漫| 中文字幕精品在线不卡| 中文字幕高清一区| 久久久久久久性| 欧美激情综合五月色丁香小说| 国产三级久久久| 中文字幕制服丝袜一区二区三区| 久久婷婷一区二区三区| 中文字幕第一区综合| 国产精品三级久久久久三级| 中文字幕一区二| 一区二区三区国产豹纹内裤在线| 一区二区久久久久| 日韩专区欧美专区| 日韩国产欧美在线播放| 青青草国产成人99久久| 国产iv一区二区三区| 成人污视频在线观看| 91久久精品一区二区三| 欧美浪妇xxxx高跟鞋交| 国产色一区二区| 亚洲123区在线观看| 国产精品1区2区3区在线观看| 色综合av在线| 精品欧美一区二区久久|