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

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

?? sysalib.s

?? VxWorks下 Mv2100的BSP源碼
?? S
?? 第 1 頁 / 共 2 頁
字號:
** This function writes a word to a specified io address or to local memory.* It operates in big-endian mode and does not perform any translation* operations on either the supplied address or data.** RETURNS: N/A** void sysOutWord (UINT16 * dataPtr, UINT16 data)*/sysOutWord:        /* Write a word to address */        sthx    r4,r0,r3        /* Sync I/O operation */	sync        /* Return to caller */        bclr    20,0/******************************************************************************* sysPciInWord - reads a word from PCI I/O or Memory space** This function reads a word from a specified PCI I/O or Memory address* via the PCI bridge chip.  This function should be used for access* to the I/O or Memory mapped registers of a PCI device.  These* registers are mapped as little-endian, so we byte swap the data in order* to make the value returned look the same as it would in PCI space.** RETURNS: word from address.** UINT16 sysPciInWord (UINT16 * dataPtr)*/sysPciInWord:        /* Read word from address */        lhbrx    r3,r0,r3        /* Return to caller */        bclr    20,0/******************************************************************************* sysPciOutWord - writes a word to PCI I/O or Memory space** This function writes a word to a specified PCI I/O or Memory address* via the PCI bridge chip.  This function should be used for access* to the I/O or Memory mapped registers of a PCI device.  These* registers are mapped as little-endian, so we byte swap the data in order* to make the value written correct for the registers in PCI space.** RETURNS: N/A** void sysPciOutWord (UINT16 * dataPtr, UINT16 data)*/sysPciOutWord:        /* Write a word to the address */        sthbrx    r4,r0,r3        /* Sync I/O operation */	sync        /* Return to caller */        bclr    20,0/******************************************************************************* sysPciConfigInWord - reads a word from a PCI configuration space address.** This function reads a word from a specified PCI configuration space* address.  This function uses the indirect PCI configuration space access* method.  It writes the input configuration space address to the CAR and* then reads the data from the CDR.  All reads/writes larger than 8 bits * use byte swapping.** Register Usage* r3 - Configuration space address to read from / returned data* r4 - dummy parameter, used for holding the CAR address* r5 - dummy parameter, used for holding the CDR address** RETURNS: N/A** UINT16 sysPciConfigInWord (UINT16 * dataPtr, UINT dummy1, UINT dummy2)*/sysPciConfigInWord:        andi.   r4,r3,3                 /* save the 2 LSBs of the PCI addr */        addis   r5,r0,HIADJ(PCI_MSTR_PRIMARY_CDR)        ori     r5,r5,LO(PCI_MSTR_PRIMARY_CDR)        or      r5,r5,r4                /* add the LSBs value to the CDR */        andi.   r4,r4,0                 /* the config. space address must */        ori     r4,r4,3                 /* be 4-byte aligned */        andc    r3,r3,r4                /* mask off the 2 LSBs */        addis   r4,r0,HIADJ(PCI_MSTR_PRIMARY_CAR)        ori     r4,r4,LO(PCI_MSTR_PRIMARY_CAR)        stwbrx  r3,r0,r4                /* write config. space addr. to CAR */        sync                            /* ensure memory access is complete */	andi.	r3,r3,0        lhbrx   r3,r0,r5                /* read data out of the CDR */        bclr    20,0                    /* return to caller *//******************************************************************************* sysPciConfigOutWord - writes a word to a PCI configuration space address.** This function writes a word to a specified PCI configuration space* address.  This function uses the indirect PCI configuration space access* method.  It writes the input configuration space address to the CAR and* then writes the data to the CDR.  All writes larger than 8 bits use byte* swapping.** Register Usage* r3 - Configuration space address to write to* r4 - data to be written* r5 - dummy parameter, used for holding the CAR address* r6 - dummy parameter, used for holding the CDR address** RETURNS: N/A** void sysPciConfigOutWord (UINT16 * dataPtr, UINT16 data, *                           UINT dummy1, UINT dummy2)*/sysPciConfigOutWord:        andi.   r5,r3,3                 /* save the 2 LSBs of the PCI addr */        addis   r6,r0,HIADJ(PCI_MSTR_PRIMARY_CDR)        ori     r6,r6,LO(PCI_MSTR_PRIMARY_CDR)        or      r6,r6,r5                /* add the LSBs value to the CDR */        andi.   r5,r5,0                 /* the config. space address must */        ori     r5,r5,3                 /* be 4-byte aligned */        andc    r3,r3,r5                /* mask off the 2 LSBs */        addis   r5,r0,HIADJ(PCI_MSTR_PRIMARY_CAR)        ori     r5,r5,LO(PCI_MSTR_PRIMARY_CAR)        stwbrx  r3,r0,r5                /* write config. space addr. to CAR */        sync                            /* ensure memory access is complete */        sthbrx  r4,r0,r6                /* write data to CDR */        sync        bclr    20,0                    /* return to caller *//******************************************************************************* sysInLong - reads a long (32-bit big-endian) from an io address.** This function reads a long from a specified io address or from local memory.* It operates in big-endian mode and does not perform any translation* operations on either the supplied address or the retrieved data.** RETURNS: long (32-bit big-endian) from address** UINT32 sysInLong ( UINT32 * dataPtr)*/sysInLong:        /* Read long from address */        lwzx    r3,r0,r3        /* Return to caller */        bclr    20,0/******************************************************************************** sysOutLong - writes a long (32-bit big-endian) to an io address.** This function writes a long to a specified io address or to local memory.* It operates in big-endian mode and does not perform any translation* operations on either the supplied address or data.* This function writes a long to a specified io address.** RETURNS: N/A** void sysOutLong (UINT32 * dataPtr, UINT32 data)*/sysOutLong:        /* Write a long to address */        stwx    r4,r0,r3        /* Sync I/O operation */	sync        /* Return to caller */        bclr    20,0/******************************************************************************* sysPciInLong - reads a longword from PCI I/O or Memory space** This function reads a longword from a specified PCI I/O or Memory address* via the PCI bridge chip.  This function should be used for access* to the I/O or Memory mapped registers of a PCI device.  These* registers are mapped as little-endian, so we byte reverse the data in order* to make the value returned look the same as it would in PCI space.** RETURNS: longword from address.** UINT32 sysPciInLong (UINT32 * dataPtr)*/sysPciInLong:        /* Read a longword from the address, and reverse the bytes */        lwbrx    r3,r0,r3        /* Return to caller */        bclr    20,0/******************************************************************************* sysPciOutLong - writes a longword to PCI I/O or Memory space** This function writes a longword to a specified PCI I/O or Memory address* via the PCI bridge chip.  This function should be used for access* to the I/O or Memory mapped registers of a PCI device.  These* registers are mapped as little-endian, so we byte reverse the data in order* to make the value written correct for the registers in PCI space.** RETURNS: N/A** void sysPciOutLong (UINT32 * dataPtr, UINT32 data)*/sysPciOutLong:        /* Write a long to the address, reversing the bytes */        stwbrx    r4,r0,r3        /* Sync I/O operation */	sync        /* Return to caller */        bclr    20,0/******************************************************************************* sysPciConfigInLong - reads a longword from a PCI configuration space address.** This function reads a longword from a specified PCI configuration space* address.  This function uses the indirect PCI configuration space access* method.  It writes the input configuration space address to the CAR and* then reads the data from the CDR.  All reads/writes larger than 8 bits* use byte swapping.** Register Usage* r3 - Configuration space address to read from / returned data* r4 - dummy parameter, used for holding the CAR address* r5 - dummy parameter, used for holding the CDR address** RETURNS: N/A** UINT32 sysPciConfigInLong (UINT32 * dataPtr, UINT dummy1, UINT dummy2)*/sysPciConfigInLong:        addis   r4,r0,HIADJ(PCI_MSTR_PRIMARY_CAR)        ori     r4,r4,LO(PCI_MSTR_PRIMARY_CAR)        addis   r5,r0,HIADJ(PCI_MSTR_PRIMARY_CDR)        ori     r5,r5,LO(PCI_MSTR_PRIMARY_CDR)        stwbrx  r3,r0,r4                /* write config. space addr. to CAR */        sync                            /* ensure memory access is complete */        andi.   r3,r3,0        lwbrx   r3,r0,r5                /* read data out of the CDR */        bclr    20,0                    /* return to caller *//******************************************************************************* sysPciConfigOutLong - writes a longword to a PCI configuration space address.** This function writes a longword to a specified PCI configuration space* address.  This function uses the indirect PCI configuration space access* method.  It writes the input configuration space address to the CAR and* then writes the data to the CDR.  All writes larger than 8 bits use byte* swapping.** Register Usage* r3 - Configuration space address to write to* r4 - data to be written* r5 - dummy parameter, used for holding the CAR address* r6 - dummy parameter, used for holding the CDR address** RETURNS: N/A** void sysPciConfigOutLong (UINT32 * dataPtr, UINT32 data, *                           UINT dummy1, UINT dummy2)*/sysPciConfigOutLong:        addis   r5,r0,HIADJ(PCI_MSTR_PRIMARY_CAR)        ori     r5,r5,LO(PCI_MSTR_PRIMARY_CAR)        addis   r6,r0,HIADJ(PCI_MSTR_PRIMARY_CDR)        ori     r6,r6,LO(PCI_MSTR_PRIMARY_CDR)        stwbrx  r3,r0,r5                /* write config. space addr. to CAR */        sync                            /* ensure memory access is complete */        stwbrx	r4,r0,r6                /* write data to CDR */        sync                            /* ensure memory access is complete */        bclr    20,0                    /* return to caller *//********************************************************************************* sysMemProbeSup - sysBusProbe support routine** This routine is called to try to read byte, word, or long, as specified* by length, from the specified source to the specified destination.** RETURNS: OK if successful probe, else ERRORSTATUS sysMemProbeSup (length, src, dest)    (    int         length, // length of cell to test (1, 2, 4, 8, 16) *    char *      src,    // address to read *    char *      dest    // address to write *    )*/sysMemProbeSup:        addi    p7, p0, 0       /* save length to p7 */        xor     p0, p0, p0      /* set return status */        cmpwi   p7, 1           /* check for byte access */        bne     sbpShort        /* no, go check for short word access */        lbz     p6, 0(p1)       /* load byte from source */        stb     p6, 0(p2)       /* store byte to destination */        sync        isync                   /* enforce for immediate exception handling */        blrsbpShort:        cmpwi   p7, 2           /* check for short word access */        bne     sbpWord         /* no, check for word access */        lhz     p6, 0(p1)       /* load half word from source */        sth     p6, 0(p2)       /* store half word to destination */        sync        isync                   /* enforce for immediate exception handling */        blrsbpWord:        cmpwi   p7, 4           /* check for short word access */        bne     sysProbeExc     /* no, check for double word access */        lwz     p6, 0(p1)       /* load half word from source */        stw     p6, 0(p2)       /* store half word to destination */        sync        isync                   /* enforce for immediate exception handling */        blrsysProbeExc:        li      p0, -1          /* shouldn't ever get here, but... */        blr/******************************************************************************** sysTimeBaseLGet - Get lower half of Time Base Register** This routine will read the contents the lower half of the Time* Base Register (TBL - TBR 268).** From a C point of view, the routine is defined as follows:**    UINT32 sysTimeBaseLGet(void)** RETURNS: value of TBR 268 (in r3)*/sysTimeBaseLGet:	mftb 3	bclr 20,0/******************************************************************************** sysHid1Get - read from HID1 register SPR1009.** This routine will return the contents of the HID1 (SPR1009)** From a C point of view, the routine is defined as follows:**    UINT sysHid1Get()** RETURNS: value of SPR1009 (in r3)*/sysHid1Get:	mfspr r3,1009	bclr 20,0/******************************************************************************** sysHid2Get - read from HID2 register SPR1011.** This routine will return the contents of the HID2 (SPR1011)** From a C point of view, the routine is defined as follows:**    UINT sysHid2Get()** RETURNS: value of SPR1011 (in r3)*/sysHid2Get:        mfspr r3,1011        bclr 20,0/******************************************************************************** sysHid2Set - write data to HID2 register SPR1011.** This routine will store the contents of HID2 (SPR1011) with the data* supplied in R3.** From a C point of view, the routine is defined as follows:**    UINT sysHid2Set(UINT dataValue)** RETURNS: N/A*/sysHid2Set:        mtspr 1011,r3        bclr 20,0

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美一区二区三区孕妇| 国产成人超碰人人澡人人澡| 国产另类ts人妖一区二区| www..com久久爱| 日韩欧美亚洲国产精品字幕久久久| 日本一区二区三区四区在线视频| 丝袜美腿亚洲一区二区图片| 99久久精品国产网站| 久久综合狠狠综合久久激情| 天天射综合影视| 一本色道久久加勒比精品| 久久久久久夜精品精品免费| 日韩精品乱码av一区二区| 91免费视频网址| 中文在线一区二区 | 亚洲欧美日韩系列| 国产一区二区三区在线观看免费 | 亚洲成a人在线观看| 99久久久精品| 国产精品福利在线播放| 久久超级碰视频| 欧美一二三四区在线| 亚洲国产成人av好男人在线观看| 一本到高清视频免费精品| 国产亚洲欧美中文| 久草在线在线精品观看| 日韩一二在线观看| 免费成人性网站| 6080午夜不卡| 日韩有码一区二区三区| 欧美日韩一区二区三区四区五区| 亚洲美女淫视频| 色婷婷亚洲综合| 亚洲午夜三级在线| 欧美系列在线观看| 性感美女久久精品| 日韩一级片在线观看| 免费视频最近日韩| 欧美大胆人体bbbb| 国产在线精品一区二区夜色| 欧美精品一区在线观看| 国产高清不卡一区二区| 国产精品每日更新在线播放网址| 成人高清视频在线| 综合网在线视频| 欧美在线视频不卡| 午夜精品视频一区| 日韩精品一区二区三区在线观看| 另类小说一区二区三区| 国产精品天美传媒沈樵| 91视频www| 男女性色大片免费观看一区二区| 日韩精品一区在线观看| 成人激情视频网站| 一区二区三区高清| 日韩一区二区三区免费观看| 国产精品一级片| 亚洲激情图片一区| 欧美一区二区三区成人| 国产精品18久久久久久vr| 亚洲日本va在线观看| 欧美一区二区不卡视频| 美国av一区二区| 国产精品久久免费看| 欧美羞羞免费网站| 另类专区欧美蜜桃臀第一页| 国产精品三级视频| 欧美日韩国产片| 丰满岳乱妇一区二区三区| 亚洲国产精品久久人人爱蜜臀| 日韩免费高清电影| 91色综合久久久久婷婷| 久久se这里有精品| 一区二区三区在线视频观看| 欧美sm极限捆绑bd| 欧洲中文字幕精品| 国产一区二区三区不卡在线观看 | 欧美日韩美少妇| 国产精品综合二区| 亚洲不卡一区二区三区| 国产亚洲成av人在线观看导航| 在线视频你懂得一区| 国产精品亚洲午夜一区二区三区| 亚洲第一激情av| 久久久久久麻豆| 欧美日韩久久一区二区| 国产成人免费av在线| 青草国产精品久久久久久| 亚洲视频在线一区| 国产视频一区二区在线观看| 欧美日韩一区二区三区四区| 99久久免费国产| 激情丁香综合五月| 免费观看一级特黄欧美大片| 亚洲精品日韩综合观看成人91| 久久精品人人做人人爽人人| 日韩视频免费观看高清完整版 | 亚洲午夜国产一区99re久久| 国产精品视频你懂的| www久久精品| 日韩一级欧美一级| 欧美剧情片在线观看| 色网综合在线观看| 91在线视频网址| 成人黄色av网站在线| 国产成人av电影在线观看| 蜜芽一区二区三区| 日韩av高清在线观看| 亚洲尤物在线视频观看| 中文字幕一区二区三区色视频| 久久久精品欧美丰满| www久久久久| 亚洲精品一区在线观看| 日韩一区二区三| 日韩三级伦理片妻子的秘密按摩| 欧美专区日韩专区| 日本电影欧美片| 在线免费观看日本欧美| 91麻豆6部合集magnet| 91亚洲国产成人精品一区二区三| 99久久99久久精品免费看蜜桃| 成人精品国产免费网站| 91丝袜美女网| 色婷婷激情一区二区三区| 欧美三级乱人伦电影| 欧美精品自拍偷拍动漫精品| 欧美人与z0zoxxxx视频| 91精品视频网| 欧美白人最猛性xxxxx69交| 久久九九99视频| 日韩码欧中文字| 亚洲精品国产精品乱码不99| 夜夜操天天操亚洲| 亚洲成av人综合在线观看| 日本欧洲一区二区| 国产麻豆精品一区二区| bt欧美亚洲午夜电影天堂| 色8久久精品久久久久久蜜| 欧美三级日韩在线| 精品国产乱码久久久久久蜜臀| 久久伊人中文字幕| 亚洲卡通欧美制服中文| 日日夜夜免费精品| 国产成人精品午夜视频免费| 91在线云播放| 欧美一级一区二区| 国产亚洲污的网站| 亚洲精品成人a在线观看| 蜜臀av在线播放一区二区三区| 国产成人综合精品三级| 欧美日韩精品一区视频| 久久综合久久综合亚洲| 亚洲卡通欧美制服中文| 狠狠色2019综合网| 色综合久久久久综合体桃花网| 日韩视频免费直播| 一区二区三区在线观看欧美| 奇米精品一区二区三区在线观看一| 国产福利91精品一区| 欧美三级蜜桃2在线观看| 国产亚洲欧美日韩日本| 午夜精品一区二区三区免费视频| 国产·精品毛片| 欧美丰满美乳xxx高潮www| 国产人伦精品一区二区| 爽好久久久欧美精品| 91在线播放网址| 久久综合久色欧美综合狠狠| 亚洲国产精品影院| 99精品视频中文字幕| 欧美成人伊人久久综合网| 夜夜嗨av一区二区三区网页 | 欧美在线影院一区二区| 久久午夜免费电影| 亚洲第四色夜色| 99久久精品国产精品久久| 久久免费看少妇高潮| 日韩国产在线观看一区| 色哟哟日韩精品| 中文字幕亚洲综合久久菠萝蜜| 麻豆免费看一区二区三区| 欧美日韩综合在线| 亚洲三级电影全部在线观看高清| 国内外成人在线| 欧美一区二区三区免费在线看| 亚洲综合成人网| 99久久精品免费看国产| 欧美高清在线视频| 国产一区二区影院| 欧美精品一区二区三| 免费在线观看日韩欧美| 欧美日韩极品在线观看一区| 一区二区三区av电影| 99久久国产免费看| 亚洲欧美日韩电影| 成人91在线观看| 国产精品久久久久aaaa樱花 | 久久成人免费电影| 日韩区在线观看| 狠狠色丁香久久婷婷综合丁香|