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

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

?? atm.c

?? gumstiz u-boot loader in linux
?? C
?? 第 1 頁 / 共 2 頁
字號:
  /*-----------------------------------------------------------------*/  /* SRFCR - SAR receive function code                               */  /* 0-2 rsvd = 000                                                  */  /* 3-4 BO   = 11  Byte ordering (big endian).                      */  /* 5-7 FC   = 000 Value driven on the address type signals AT[1-3] */  /*                when the SDMA channel accesses memory.           */  /*-----------------------------------------------------------------*/  *SRFCR(immr) = 0x18;  /*-----------------------------------------------------------------*/  /* SRSTATE - SAR receive status                                    */  /* 0 EXT  = 0 Extended mode off.                                   */  /* 1 ACP  = 0 Valid only if EXT = 1.                               */  /* 2 EC   = 0 Standard 53-byte ATM cell.                           */  /* 3 SNC  = 0 In sync. Must be set to 0 during initialization.     */  /* 4 ESAR = 1 Enhanced SAR functionality enabled.                  */  /* 5 MCF  = 1 Management Cell Filter active.                       */  /* 6 SER  = 0 UTOPIA mode.                                         */  /* 7 MPY  = 1 Multiple PHY mode.                                   */  /*-----------------------------------------------------------------*/  *SRSTATE(immr) = 0x0D;  /*-----------------------------------------------------------------*/  /* MRBLR - Maximum receive buffer length register.                 */  /* Must be cleared for ATM operation (see also SMRBLR).            */  /*-----------------------------------------------------------------*/  *MRBLR(immr) = 0;  /*-----------------------------------------------------------------*/  /* RSTATE - SCC internal receive state parameters                  */  /* The first byte must be initialized with the value of SRFCR.     */  /*-----------------------------------------------------------------*/  *RSTATE(immr) = (uint32)(*SRFCR(immr)) << 24;  /*-----------------------------------------------------------------*/  /* STFCR - SAR transmit function code                              */  /* 0-2 rsvd = 000                                                  */  /* 3-4 BO   = 11  Byte ordering (big endian).                      */  /* 5-7 FC   = 000 Value driven on the address type signals AT[1-3] */  /*                when the SDMA channel accesses memory.           */  /*-----------------------------------------------------------------*/  *STFCR(immr) = 0x18;  /*-----------------------------------------------------------------*/  /* SRSTATE - SAR transmit status                                   */  /* 0 EXT  = 0 : Extended mode off                                  */  /* 1 rsvd = 0 :                                                    */  /* 2 EC   = 0 : Standard 53-byte ATM cell                          */  /* 3 rsvd = 0 :                                                    */  /* 4 ESAR = 1 : Enhanced SAR functionality enabled                 */  /* 5 rsvd = 0 :                                                    */  /* 6 SER  = 0 : UTOPIA mode                                        */  /* 7 MPY  = 1 : Multiple PHY mode                                  */  /*-----------------------------------------------------------------*/  *STSTATE(immr) = 0x09;  /*-----------------------------------------------------------------*/  /* TBDBASE - Transmit buffer descriptors base address              */  /* The TBDs reside in cache safe external memory.                  */  /*-----------------------------------------------------------------*/  *TBDBASE(immr) = (uint32)g_atm.tbd_base_ptr;  /*-----------------------------------------------------------------*/  /* TSTATE - SCC internal transmit state parameters                 */  /* The first byte must be initialized with the value of STFCR.     */  /*-----------------------------------------------------------------*/  *TSTATE(immr) = (uint32)(*STFCR(immr)) << 24;  /*-----------------------------------------------------------------*/  /* CTBASE - Connection table base address                          */  /* Offset from the beginning of DPRAM (64-byte aligned).           */  /*-----------------------------------------------------------------*/  *CTBASE(immr) = CT_BASE;  /*-----------------------------------------------------------------*/  /* INTBASE - Interrupt queue base pointer.                         */  /* The interrupt queue resides in cache safe external memory.      */  /*-----------------------------------------------------------------*/  *INTBASE(immr) = (uint32)g_atm.int_reload_ptr;  /*-----------------------------------------------------------------*/  /* INTPTR - Pointer into interrupt queue.                          */  /* Initialize to INTBASE.                                          */  /*-----------------------------------------------------------------*/  *INTPTR(immr) = *INTBASE(immr);  /*-----------------------------------------------------------------*/  /* C_MASK - Constant mask for CRC32                                */  /* Must be initialized to 0xDEBB20E3.                              */  /*-----------------------------------------------------------------*/  *C_MASK(immr) = 0xDEBB20E3;  /*-----------------------------------------------------------------*/  /* INT_ICNT - Interrupt threshold value                            */  /*-----------------------------------------------------------------*/  *INT_ICNT(immr) = 1;  /*-----------------------------------------------------------------*/  /* INT_CNT - Interrupt counter                                     */  /* Initalize to INT_ICNT. Decremented for each interrupt entry     */  /* reported in the interrupt queue. On zero an interrupt is        */  /* signaled to the host by setting the GINT bit in the event       */  /* register. The counter is reinitialized with INT_ICNT.           */  /*-----------------------------------------------------------------*/  *INT_CNT(immr) = *INT_ICNT(immr);  /*-----------------------------------------------------------------*/  /* SMRBLR - SAR maximum receive buffer length register.            */  /* Must be a multiple of 48 bytes. Common for all ATM connections. */  /*-----------------------------------------------------------------*/  *SMRBLR(immr) = SAR_RXB_SIZE;  /*-----------------------------------------------------------------*/  /* APCST - APC status register.                                    */  /* 0     rsvd 0                                                    */  /* 1-2   CSER 11  Initialize with the same value as NSER.          */  /* 3-4   NSER 11  Next serial or UTOPIA channel.                   */  /* 5-7   rsvd 000                                                  */  /* 8-10  rsvd 000                                                  */  /* 11    rsvd 0                                                    */  /* 12    ESAR 1   UTOPIA Level 2 MPHY enabled.                     */  /* 13    DIS  0   APC disable. Must be initiazed to 0.             */  /* 14    PL2  0   Not used.                                        */  /* 15    MPY  1   Multiple PHY mode on.                            */  /*-----------------------------------------------------------------*/  *APCST(immr) = 0x7809;  /*-----------------------------------------------------------------*/  /* APCPTR - Pointer to the APC parameter table                     */  /* In MPHY master mode this parameter points to the MPHY pointing  */  /* table. 2-byte aligned.                                          */  /*-----------------------------------------------------------------*/  *APCPTR(immr) = MPHYPT_BASE;  /*-----------------------------------------------------------------*/  /* HMASK - Header mask                                             */  /* Each incoming cell is masked with HMASK before being compared   */  /* to the entries in the address matching table.                   */  /*-----------------------------------------------------------------*/  *HMASK(immr) = AM_HMASK;  /*-----------------------------------------------------------------*/  /* AMBASE - Address matching table base address                    */  /*-----------------------------------------------------------------*/  *AMBASE(immr) = AM_BASE;  /*-----------------------------------------------------------------*/  /* AMEND - Address matching table end address                      */  /*-----------------------------------------------------------------*/  *AMEND(immr) = AM_BASE;  /*-----------------------------------------------------------------*/  /* APBASE - Address pointing table base address                    */  /*-----------------------------------------------------------------*/  *APBASE(immr) = AP_BASE;  /*-----------------------------------------------------------------*/  /* MPHYST - MPHY status register                                   */  /* 0-1   rsvd  00                                                  */  /* 2-6   NMPHY 00000 1 PHY                                         */  /* 7-9   rsvd  000                                                 */  /* 10-14 CMPHY 00000 Initialize with same value as NMPHY           */  /*-----------------------------------------------------------------*/  *MPHYST(immr) = 0x0000;  /*-----------------------------------------------------------------*/  /* TCTEBASE - Transmit connection table extension base address     */  /* Offset from the beginning of DPRAM (32-byte aligned).           */  /*-----------------------------------------------------------------*/  *TCTEBASE(immr) = TCTE_BASE;  /*-----------------------------------------------------------------*/  /* Clear not used registers.                                       */  /*-----------------------------------------------------------------*/}/***************************************************************************** * * FUNCTION NAME: atmUtpInit * * DESCRIPTION: * * This function initializes the ATM interface for * * - UTOPIA mode * - muxed bus * - master operation * - multi PHY (because of a bug in the MPC860P rev. E.0) * - internal clock = SYSCLK / 2 * * EXTERNAL EFFECTS: * * After calling this function, the MPC860ESAR UTOPIA bus is * active and uses the following ports/pins: * * Port    Pin  Signal   Description * ------  ---  -------  ------------------------------------------- * PB[15]  R17  TxClav   Transmit cell available input/output signal * PC[15]  D16  RxClav   Receive cell available input/output signal * PD[15]  U17  UTPB[0]  UTOPIA bus bit 0 input/output signal * PD[14]  V19  UTPB[1]  UTOPIA bus bit 1 input/output signal * PD[13]  V18  UTPB[2]  UTOPIA bus bit 2 input/output signal * PD[12]  R16  UTPB[3]  UTOPIA bus bit 3 input/output signal * PD[11]  T16  RXENB    Receive enable input/output signal * PD[10]  W18  TXENB    Transmit enable input/output signal * PD[9]   V17  UTPCLK   UTOPIA clock input/output signal * PD[7]   T15  UTPB[4]  UTOPIA bus bit 4 input/output signal * PD[6]   V16  UTPB[5]  UTOPIA bus bit 5 input/output signal * PD[5]   U15  UTPB[6]  UTOPIA bus bit 6 input/output signal * PD[4]   U16  UTPB[7]  UTOPIA bus bit 7 input/output signal * PD[3]   W16  SOC      Start of cell input/output signal * * PARAMETERS: none * * RETURNS: void * * REMARK: * * The ATM parameters and data structures must be configured before * initializing the UTOPIA port. The UTOPIA port activates immediately * upon initialization, and if its associated data structures are not * initialized, the CPM will lock up. * ****************************************************************************/void atmUtpInit(){  volatile immap_t       *immap  = (immap_t *)CFG_IMMR;  volatile iop8xx_t      *iop    = &immap->im_ioport;  volatile car8xx_t	 *car    = &immap->im_clkrst;  volatile cpm8xx_t	 *cpm    = &immap->im_cpm;  int flag;  flag = disable_interrupts();  /*-----------------------------------------------------------------*/  /* SCCR - System Clock Control Register                            */  /*                                                                 */  /* The UTOPIA clock can be selected to be internal clock or        */  /* external clock (selected by the UTOPIA mode register).          */  /* In case of internal clock, the UTOPIA clock is derived from     */  /* the system frequency divided by two dividers.                   */  /* Bits 27-31 of the SCCR register are defined to control the      */  /* UTOPIA clock.                                                   */  /*                                                                 */  /* SCCR[27:29] DFUTP  Division factor. Divide the system clock     */  /*                    by 2^DFUTP.                                  */  /* SCCR[30:31] DFAUTP Additional division factor. Divide the       */  /*                    system clock by the following value:         */  /*                    00 = divide by 1                             */  /*                    00 = divide by 3                             */  /*                    10 = divide by 5                             */  /*                    11 = divide by 7                             */  /*                                                                 */  /* Note that the UTOPIA clock must be programmed as to operate     */  /* within the range SYSCLK/10 .. 50Mhz.                            */  /*-----------------------------------------------------------------*/  car->car_sccr &= 0xFFFFFFE0;  car->car_sccr |= 0x00000008; /* UTPCLK = SYSCLK / 4 */  /*-----------------------------------------------------------------*/  /* RCCR - RISC Controller Configuration Register                   */  /*                                                                 */  /* RCCR[8]     DR1M IDMA Request 0 Mode                            */  /*                  0 = edge sensitive                             */  /*                  1 = level sensitive                            */  /* RCCR[9]     DR0M IDMA Request 0 Mode                            */  /*                  0 = edge sensitive                             */  /*                  1 = level sensitive                            */  /* RCCR[10:11] DRQP IDMA Request Priority                          */  /*                  00 = IDMA req. have more prio. than SCCs       */  /*                  01 = IDMA req. have less prio. then SCCs       */  /*                  10 = IDMA requests have the lowest prio.       */  /*                  11 = reserved                                  */  /*                                                                 */  /* The RCCR[DR0M] and RCCR[DR1M] bits must be set to enable UTOPIA */  /* operation. Also, program RCCR[DPQP] to 01 to give SCC transfers */  /* higher priority.                                                */  /*-----------------------------------------------------------------*/  cpm->cp_rccr &= 0xFF0F;  cpm->cp_rccr |= 0x00D0;  /*-----------------------------------------------------------------*/  /* Port B - TxClav Signal                                          */  /*-----------------------------------------------------------------*/  cpm->cp_pbpar |= 0x00010000; /* PBPAR[15] = 1 */  cpm->cp_pbdir &= 0xFFFEFFFF; /* PBDIR[15] = 0 */  /*-----------------------------------------------------------------*/  /* UTOPIA Mode Register                                            */  /*                                                                 */  /* - muxed bus (master operation only)                             */  /* - multi PHY (because of a bug in the MPC860P rev.E.0)           */  /* - internal clock                                                */  /* - no loopback                                                   */  /* - do no activate statistical counters                           */  /*-----------------------------------------------------------------*/  iop->utmode = 0x00000004; SYNC;  /*-----------------------------------------------------------------*/  /* Port D - UTOPIA Data and Control Signals                        */  /*                                                                 */  /* 15-12 UTPB[0:3] UTOPIA bus bit 0 - 3 input/output signals       */  /* 11    RXENB     UTOPIA receive enable input/output signal       */  /* 10    TXENB     UTOPIA transmit enable input/output signal      */  /* 9     TUPCLK    UTOPIA clock input/output signal                */  /* 8     MII-MDC   Used by MII in simult. MII and UTOPIA operation */  /* 7-4   UTPB[4:7] UTOPIA bus bit 4 - 7 input/output signals       */  /* 3     SOC       UTOPIA Start of cell input/output signal        */  /* 2               Reserved                                        */  /* 1               Enable UTOPIA mode                              */  /* 0               Enable SAR                                      */  /*-----------------------------------------------------------------*/  iop->iop_pdpar |= 0xDF7F; SYNC;  iop->iop_pddir &= 0x2080; SYNC;  /*-----------------------------------------------------------------*/  /* Port C - RxClav Signal                                          */  /*-----------------------------------------------------------------*/  iop->iop_pcpar  |= 0x0001; /* PCPAR[15] = 1 */  iop->iop_pcdir  &= 0xFFFE; /* PCDIR[15] = 0 */  iop->iop_pcso   &= 0xFFFE; /* PCSO[15]  = 0 */  if (flag)    enable_interrupts();}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品嫩草影院久久| 男女男精品视频| www.66久久| 国产精品午夜春色av| 成人精品一区二区三区四区| 亚洲激情av在线| 粉嫩av一区二区三区在线播放 | 日韩黄色免费电影| 欧美日韩色综合| 日本欧洲一区二区| 国产日产欧美一区| www.66久久| 日韩影院精彩在线| 欧美国产丝袜视频| 欧美偷拍一区二区| 国产又黄又大久久| 亚洲精品免费在线观看| 欧美一区二区三区影视| 国产美女精品在线| 一区二区三区不卡在线观看 | 久久国产福利国产秒拍| 国产嫩草影院久久久久| 色狠狠一区二区| 国内精品伊人久久久久av一坑| 国产精品美女一区二区三区 | av在线一区二区| 日韩精品一二三| 国产欧美一区二区三区在线看蜜臀| 91麻豆精东视频| 激情成人午夜视频| 亚洲国产欧美日韩另类综合 | 一区二区国产视频| 久久日韩粉嫩一区二区三区| 91在线国产观看| 久久电影网电视剧免费观看| 亚洲品质自拍视频| 欧美精品一区二区蜜臀亚洲| 91视频在线看| 紧缚奴在线一区二区三区| 亚洲免费成人av| 欧美国产精品v| 欧美不卡一二三| 欧美在线观看一区二区| 国产suv一区二区三区88区| 日韩国产在线观看一区| 亚洲欧美色一区| 国产午夜精品久久久久久久 | 精品无码三级在线观看视频 | 日韩一区二区在线观看| 色综合激情久久| 国产精品99久| 捆绑变态av一区二区三区| 亚洲国产乱码最新视频 | 亚洲欧洲日韩在线| 久久亚洲精品小早川怜子| 欧美在线免费观看视频| 色综合咪咪久久| 成人午夜视频网站| 国产在线麻豆精品观看| 日本午夜一本久久久综合| 亚洲大片免费看| 亚洲一区二区黄色| 亚洲男人的天堂在线观看| 亚洲欧美怡红院| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 制服丝袜日韩国产| 欧美日韩一区二区三区视频| 色偷偷一区二区三区| 成人国产亚洲欧美成人综合网| 国产剧情一区二区| 久久91精品国产91久久小草| 毛片一区二区三区| 男女性色大片免费观看一区二区| 日韩成人伦理电影在线观看| 午夜电影网亚洲视频| 婷婷久久综合九色综合绿巨人 | 日本不卡不码高清免费观看| 午夜精品久久久久久| 香蕉加勒比综合久久| 午夜电影网一区| 六月丁香综合在线视频| 久久er精品视频| 国产黄人亚洲片| www.成人在线| 欧美手机在线视频| 欧美精品第1页| 精品少妇一区二区三区日产乱码| 精品sm捆绑视频| 国产日韩av一区| 亚洲靠逼com| 丝袜亚洲另类欧美综合| 久久66热偷产精品| 成人app软件下载大全免费| 91影视在线播放| 在线电影一区二区三区| 欧美成人激情免费网| 久久精品一区蜜桃臀影院| 亚洲欧美视频一区| 日韩精品乱码av一区二区| 国产一区二区三区不卡在线观看 | 成人av第一页| 欧美色图片你懂的| 久久夜色精品国产噜噜av| 中文字幕精品在线不卡| 亚洲与欧洲av电影| 久久99精品久久只有精品| 波多野结衣的一区二区三区| 欧美午夜宅男影院| 精品欧美一区二区在线观看| 国产精品久久久久精k8| 婷婷一区二区三区| 成人深夜在线观看| 欧美日韩国产片| 日本一区二区免费在线| 亚洲大尺度视频在线观看| 国产一区二区三区精品视频| 91精彩视频在线| 久久综合久久久久88| 亚洲欧美激情一区二区| 老汉av免费一区二区三区| 一本一道久久a久久精品| 精品国产一区二区在线观看| ㊣最新国产の精品bt伙计久久| 日本女优在线视频一区二区| 国产不卡在线一区| 7777精品伊人久久久大香线蕉超级流畅 | 国产精品久久久久9999吃药| 婷婷综合在线观看| 91丝袜美女网| 精品成人在线观看| 亚洲成a人在线观看| 成人爱爱电影网址| 精品国产欧美一区二区| 亚洲综合免费观看高清在线观看| 国产综合久久久久久久久久久久| 在线观看日韩国产| 国产精品灌醉下药二区| 久久99久久精品| 91精品国产综合久久香蕉的特点| 亚洲欧美日韩精品久久久久| 国产成人精品免费网站| 日韩一区二区视频在线观看| 午夜免费欧美电影| 91年精品国产| 国产精品丝袜黑色高跟| 国产一区亚洲一区| 精品日韩欧美在线| 青青草原综合久久大伊人精品 | 国产精品丝袜在线| 国产精品亚洲第一区在线暖暖韩国| 欧美精品久久久久久久久老牛影院| 一区二区三区四区在线播放| aaa亚洲精品一二三区| 国产色一区二区| 国产综合色精品一区二区三区| 日韩一区二区精品在线观看| 三级成人在线视频| 欧美日韩精品福利| 香蕉加勒比综合久久| 欧美三级中文字幕| 亚洲国产成人tv| 欧美亚男人的天堂| 亚洲一区二区三区四区五区黄 | 国产制服丝袜一区| 久久久综合视频| 国产成人精品网址| 国产嫩草影院久久久久| 成人午夜精品一区二区三区| 亚洲国产激情av| 93久久精品日日躁夜夜躁欧美| 中文字幕第一区二区| av成人免费在线观看| 中文字幕在线一区| 日本乱人伦aⅴ精品| 一区二区三区 在线观看视频| 欧美午夜精品一区二区蜜桃| 亚洲国产精品一区二区久久| 欧美丰满高潮xxxx喷水动漫| 日本成人中文字幕在线视频| 欧美大片顶级少妇| 国产精品羞羞答答xxdd| 国产精品亲子伦对白| 91免费看视频| 午夜精品国产更新| 精品国产区一区| 成人激情动漫在线观看| 亚洲精品国产一区二区精华液 | 久久精品国内一区二区三区| 欧美变态tickling挠脚心| 国产成人av在线影院| 亚洲人成精品久久久久久| 欧美日韩极品在线观看一区| 久久国产夜色精品鲁鲁99| 久久免费的精品国产v∧| av在线播放一区二区三区| 一区二区三区视频在线观看| 欧美一区二区三区免费视频 | 亚洲免费在线看| 日韩欧美久久一区| 成人黄色一级视频|