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

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

?? ixp425pciconfiglib.c

?? INTEL IXP425的VXWORKS BSP
?? C
?? 第 1 頁 / 共 2 頁
字號:
    nonPrefetchWrite (addr, byteEnables | NP_CMD_CONFIGWRITE, ldata );            return (OK);}/********************************************************************************* pciConfigOutWord - write one 16-bit word to the PCI configuration space** This routine writes one 16-bit word to the PCI configuration space.** RETURNS:* OK, or ERROR if this library is not initialized.**/STATUS pciConfigOutWord (UINT32 busNo,    /* bus number */		  UINT32 deviceNo, /* device number */		  UINT32 funcNo,   /* function number */		  UINT32 offset,   /* offset into configuration space */		  UINT16 data)     /* data written to the offset */    {    UINT32 addr;    UINT32 byteEnables;    UINT32 n;    UINT32 ldata;        if (pciLibInitStatus != OK)    {        return (ERROR);    }    n = offset % 4;    /*byte enables are 4 bits active low, the position of each      bit maps to the byte that it enables*/    byteEnables = (~(BIT (n)|BIT ((n+1)))) & IXP425_PCI_BOTTOM_NIBBLE_OF_LONG_MASK;     byteEnables = byteEnables << PCI_NP_CBE_BESL;    ldata = data << (8*n);    /*address bits 31:28 specify the device 10:8 specify the function*/    /*Set the address to be written*/    addr = BIT (16 + deviceNo) | (funcNo << PCI_NP_AD_FUNCSL) |  (offset & ~3);		    nonPrefetchWrite (addr, byteEnables | NP_CMD_CONFIGWRITE, ldata );            return (OK);}/********************************************************************************* pciConfigOutLong - write one longword to the PCI configuration space** This routine writes one longword to the PCI configuration space.** RETURNS:* OK, or ERROR if this library is not initialized.**/STATUS pciConfigOutLong (UINT32 busNo,    /* bus number */		  UINT32 deviceNo, /* device number */		  UINT32 funcNo,   /* function number */		  UINT32 offset,   /* offset into configuration space */		  UINT32 data)     /* data written to the offset */    {    UINT32 addr;        if (pciLibInitStatus != OK)    {        return (ERROR);    }        /*address bits 31:28 specify the device 10:8 specify the function*/    /*Set the address to be written*/    addr = BIT (16 + deviceNo) | (funcNo << PCI_NP_AD_FUNCSL) |  (offset & ~3);/*31 by alex*/    nonPrefetchWrite (addr, NP_CMD_CONFIGWRITE, data );            return (OK);}/********************************************************************************* pciIOInByte - read a Byte from the PCI IO space** This routine reads using PCI IO non-prefetch transactions** RETURNS:* OK, or ERROR if this library is not initialized.**/STATUS pciIOInByte (void *pciAddr, 	     UINT8 *pData){    UINT32 byteEnables;    UINT32 n;    UINT32 retval;        if (pciLibInitStatus != OK)    {	return (ERROR);    }        n = (UINT32)pciAddr % 4;    byteEnables = ~(BIT (n)) & IXP425_PCI_BOTTOM_NIBBLE_OF_LONG_MASK;    byteEnables = byteEnables << PCI_NP_CBE_BESL;    nonPrefetchRead ((UINT32)pciAddr,  byteEnables | NP_CMD_IOREAD, &retval);    *pData = retval >> (8*n) ;        return (OK);}/********************************************************************************* pciIOInWord - read a Word from the PCI IO space** This routine reads using PCI IO non-prefetch transactions** RETURNS:* OK, or ERROR if this library is not initialized.**/STATUS pciIOInWord (void *pciAddr, 	     UINT16 *pData){    UINT32 byteEnables;    UINT32 n;    UINT32 retval;        if (pciLibInitStatus != OK)    {	return (ERROR);    }    n = (UINT32)pciAddr % 4;    byteEnables = ~(BIT (n) | BIT (n+1) ) & IXP425_PCI_BOTTOM_NIBBLE_OF_LONG_MASK;    byteEnables = byteEnables << PCI_NP_CBE_BESL;    nonPrefetchRead ((UINT32)pciAddr,  byteEnables | NP_CMD_IOREAD, &retval);    *pData = retval >> (8*n);        return (OK);}/********************************************************************************* pciIOInLong - read a long from the PCI IO space** This routine reads using PCI IO transactions** RETURNS:* OK, or ERROR if this library is not initialized.**/STATUS pciIOInLong (void *pciAddr, 	     UINT32 *pData){    if (pciLibInitStatus != OK)    {				return (ERROR);    }    nonPrefetchRead ((UINT32)pciAddr,  NP_CMD_IOREAD, pData);        return (OK);}/********************************************************************************* pciIOOutByte - write one byte to the PCI IO space** This routine writes one byte to the PCI IO space.** RETURNS:* OK, or ERROR if this library is not initialized.**/STATUS pciIOOutByte (void *pciAddr, 	      UINT8 data){    UINT32 byteEnables;    UINT32 n;    UINT32 ldata;        if (pciLibInitStatus != OK)		    {	return (ERROR);    }    n = (UINT32)pciAddr % 4;    byteEnables = ~(BIT (n) ) & IXP425_PCI_BOTTOM_NIBBLE_OF_LONG_MASK;    byteEnables = byteEnables << PCI_NP_CBE_BESL;    ldata = data << (8*n);    nonPrefetchWrite ((UINT32)pciAddr, byteEnables | NP_CMD_IOWRITE, ldata );            return (OK);}/********************************************************************************* pciIOOutWord - write one word to the PCI IO space** This routine writes one word to the PCI IO space.** RETURNS:* OK, or ERROR if this library is not initialized.**/STATUS pciIOOutWord (void *pciAddr, 	      UINT16 data){    UINT32 byteEnables;    UINT32 n;    UINT32 ldata;        if (pciLibInitStatus != OK)			/* sanity check */        return (ERROR);        n = (UINT32)pciAddr % 4;    byteEnables = ~(BIT (n)|BIT (n+1) ) & IXP425_PCI_BOTTOM_NIBBLE_OF_LONG_MASK;    byteEnables = byteEnables << PCI_NP_CBE_BESL;    ldata = data << (8*n);    nonPrefetchWrite ((UINT32)pciAddr, byteEnables | NP_CMD_IOWRITE, ldata );         return (OK);}/********************************************************************************* pciIOOutLong - write one longword to the PCI IO space** This routine writes one longword to the PCI IO space.** RETURNS:* OK, or ERROR if this library is not initialized.**/STATUS pciIOOutLong (void *pciAddr, 	      UINT32 data){        if (pciLibInitStatus != OK)	     {        return (ERROR);    }        nonPrefetchWrite ((UINT32)pciAddr, NP_CMD_IOWRITE, data);            return (OK);}/********************************************************************************* pciMemInByte - read a Byte from the PCI Memory space** This routine reads using PCI Memory non-prefetch transactions** RETURNS:* OK, or ERROR if this library is not initialized.**/STATUS pciMemInByte (void *pciAddr, 	      UINT8 *pData){    UINT32 byteEnables;    UINT32 n;    UINT32 retval;        if (pciLibInitStatus != OK)		        {	return (ERROR);    }    n = (UINT32)pciAddr % 4;    byteEnables = ~(BIT (n)) & IXP425_PCI_BOTTOM_NIBBLE_OF_LONG_MASK;    byteEnables = byteEnables << PCI_NP_CBE_BESL;    pciAddr = (UINT32*)((UINT32)pciAddr & ~3);    nonPrefetchRead ((UINT32)pciAddr,  byteEnables | NP_CMD_MEMREAD, &retval);    *pData = retval >> (8*n) ;        return (OK);}/********************************************************************************* pciMemInWord - read a Word from the PCI Memory space** This routine reads using PCI Memory non-prefetch transactions** RETURNS:* OK, or ERROR if this library is not initialized.**/STATUS pciMemInWord (void *pciAddr, 	      UINT16 *pData){    UINT32 byteEnables;    UINT32 n;    UINT32 retval;        if (pciLibInitStatus != OK)	     {	return (ERROR);    }    n = (UINT32)pciAddr % 4;    byteEnables = ~(BIT (n) | BIT (n+1) ) & IXP425_PCI_BOTTOM_NIBBLE_OF_LONG_MASK;    byteEnables = byteEnables << PCI_NP_CBE_BESL;    pciAddr = (void*)((UINT32)pciAddr & ~3);    nonPrefetchRead ((UINT32)pciAddr,  byteEnables | NP_CMD_MEMREAD, &retval);    *pData = retval >> (8*n);        return (OK);}/********************************************************************************* pciMemInLong - read a long from the PCI Memory space** This routine reads using PCI Memory transactions** RETURNS:* OK, or ERROR if this library is not initialized.**/STATUS pciMemInLong (void *pciAddr, 	      UINT32 *pData){    if (pciLibInitStatus != OK)	     {	return (ERROR);    }    pciAddr = (UINT32*)((UINT32)pciAddr & ~3);    nonPrefetchRead ((UINT32)pciAddr,  NP_CMD_MEMREAD, pData);        return (OK);}/********************************************************************************* pciMemOutByte - write one byte to the PCI Memory space** This routine writes one byte to the PCI Memory space.** RETURNS:* OK, or ERROR if this library is not initialized.**/STATUS pciMemOutByte (void *pciAddr, 	       UINT8 data){    UINT32 byteEnables;    UINT32 n;    UINT32 ldata;        if (pciLibInitStatus != OK)		    {        return (ERROR);    }        n = (UINT32)pciAddr % 4;    byteEnables = ~(BIT (n)) & IXP425_PCI_BOTTOM_NIBBLE_OF_LONG_MASK;    byteEnables = byteEnables << PCI_NP_CBE_BESL;    ldata = data << (8*n);    pciAddr = (void*)((UINT32)pciAddr & ~3);    nonPrefetchWrite ((UINT32)pciAddr, byteEnables | NP_CMD_MEMWRITE, ldata );            return (OK);}/********************************************************************************* pciMemOutWord - write one word to the PCI Memory space** This routine writes one word to the PCI Memory space.** RETURNS: OK, or ERROR if this library is not initialized.**/STATUS pciMemOutWord (void *pciAddr, 	       UINT16 data){    UINT32 byteEnables;    UINT32 n;    UINT32 ldata;        if (pciLibInitStatus != OK)	         {        return (ERROR);    }        n = (UINT32)pciAddr % 4;    byteEnables = ~(BIT (n)|BIT (n+1) ) & IXP425_PCI_BOTTOM_NIBBLE_OF_LONG_MASK;    byteEnables = byteEnables << PCI_NP_CBE_BESL;    ldata = data << (8*n);    pciAddr = (void*)((UINT32)pciAddr & ~3);    nonPrefetchWrite ((UINT32)pciAddr, byteEnables | NP_CMD_MEMWRITE, ldata );            return (OK);}/********************************************************************************* pciMemOutLong - write one longword to the PCI Memory space** This routine writes one longword to the PCI Memory space.** RETURNS: OK, or ERROR if this library is not initialized.**/STATUS pciMemOutLong (void *pciAddr, 	       UINT32 data){        if (pciLibInitStatus != OK)	         {        return (ERROR);    }    pciAddr = (void*)((UINT32)pciAddr & ~3);    nonPrefetchWrite ((UINT32)pciAddr, NP_CMD_MEMWRITE, data );            return (OK);}/********************************************************************************* pciSpecialCycle - generate a special cycle with a message** This routine generates a special cycle with a message.** RETURNS: OK, or ERROR if this library is not initialized.**/STATUS pciSpecialCycle (UINT32 busNo,   /* bus number */		 UINT32 message) /* data on AD[31:0] during the special cycle */    {    if (pciLibInitStatus != OK)		    {        return (ERROR);    }    nonPrefetchWrite (message, NP_CMD_SPECIAL, message);            return (OK);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆专区一区二区三区四区五区| 91亚洲精华国产精华精华液| 国产精品77777| 91黄色免费看| 欧美国产丝袜视频| 美日韩一区二区三区| 91一区二区三区在线播放| 日韩欧美电影一二三| 一区二区视频在线看| 国产激情精品久久久第一区二区 | 欧美激情在线一区二区三区| 亚洲一卡二卡三卡四卡五卡| 国产成人免费视频网站高清观看视频 | 午夜激情一区二区三区| 91一区二区三区在线观看| 国产女人18毛片水真多成人如厕 | 精品视频在线看| 国产精品国产馆在线真实露脸| 蜜桃一区二区三区在线| 欧美日韩国产免费| 亚洲线精品一区二区三区八戒| av亚洲精华国产精华精华| 精品电影一区二区三区| 热久久久久久久| 欧美一区三区四区| 婷婷丁香激情综合| 欧美日韩1234| 日本在线不卡视频| 91精品国产福利在线观看| 一区二区免费视频| 欧美少妇xxx| 天天影视色香欲综合网老头| 欧美午夜精品一区二区蜜桃| 亚洲一级二级在线| 欧美理论电影在线| 日本大胆欧美人术艺术动态| 欧美高清一级片在线| 日韩av一级片| 精品久久人人做人人爰| 精品在线免费观看| 精品国产乱码久久久久久蜜臀| 久久精品国产亚洲aⅴ| 精品国产一区二区三区不卡| 国产精品99久久不卡二区| 国产精品无码永久免费888| 成人福利视频网站| 亚洲精品中文字幕乱码三区| 欧美三级日本三级少妇99| 午夜久久久久久久久| 7777精品伊人久久久大香线蕉经典版下载| 午夜伊人狠狠久久| 欧美成人精品3d动漫h| 国产精品99久久久久久似苏梦涵 | 国产日产精品1区| av电影天堂一区二区在线| 亚洲欧洲精品一区二区精品久久久| 91免费视频网| 美腿丝袜亚洲色图| 一区二区中文字幕在线| 在线不卡一区二区| 国产91综合网| 亚洲五月六月丁香激情| 精品国产乱码久久久久久老虎 | 国产一区二区在线观看免费| 国产精品久久久久影院色老大| 在线观看精品一区| 精品一区二区三区视频在线观看| 亚洲欧洲韩国日本视频| 91麻豆精品久久久久蜜臀| 国产激情精品久久久第一区二区| 亚洲综合免费观看高清完整版在线| 欧美一区二区视频观看视频| 成人午夜电影小说| 石原莉奈在线亚洲二区| 中文字幕欧美三区| 91麻豆精品国产自产在线| 成人综合婷婷国产精品久久免费| 亚洲五月六月丁香激情| 久久久国产一区二区三区四区小说 | 亚洲影视在线播放| 久久夜色精品一区| 欧美三级视频在线观看| 成人丝袜视频网| 日韩高清在线不卡| 亚洲一区在线观看视频| 欧美极品aⅴ影院| 日韩欧美中文字幕精品| 欧美亚洲另类激情小说| 99久久久免费精品国产一区二区| 蜜臀久久99精品久久久画质超高清 | 日韩国产欧美视频| 亚洲精品日产精品乱码不卡| 国产午夜精品美女毛片视频| 91精品国产色综合久久久蜜香臀| 97久久精品人人爽人人爽蜜臀| 激情综合五月天| 午夜视频一区二区| 一区二区视频在线| 综合色中文字幕| 国产精品三级av| 久久久久国产精品免费免费搜索| 欧美精品日韩一本| 欧美日韩精品一区视频| 在线观看免费视频综合| 色成年激情久久综合| www.一区二区| 波多野结衣视频一区| 国产美女一区二区三区| 黑人巨大精品欧美一区| 蜜桃精品视频在线| 麻豆国产精品官网| 美女在线一区二区| 国内精品视频666| 国产在线播放一区二区三区| 美女脱光内衣内裤视频久久网站| 日韩中文字幕1| 日本不卡123| 久久精品国产一区二区| 国产一区高清在线| 成人免费视频一区| 99久久精品国产一区| 99久久99久久精品免费观看| 91在线一区二区三区| 色噜噜久久综合| 在线免费精品视频| 精品视频999| 日韩欧美激情四射| 久久免费国产精品| 亚洲男人天堂av网| 日韩影院在线观看| 国产麻豆精品95视频| caoporn国产精品| 欧美亚洲国产一卡| 欧美电影免费观看高清完整版在线 | 国产精品18久久久久久久网站| 国产精品一区二区三区网站| 成人午夜视频在线| 欧美日韩视频第一区| 日韩精品最新网址| 日韩美女啊v在线免费观看| 亚洲卡通动漫在线| 精品一区二区三区蜜桃| 99免费精品在线观看| 欧美久久久久久蜜桃| 久久久国产午夜精品 | 一道本成人在线| 制服.丝袜.亚洲.另类.中文| 国产喂奶挤奶一区二区三区| 一区二区三区中文在线| 久久国产精品99久久人人澡| 成人a免费在线看| 欧美撒尿777hd撒尿| 久久久久久99精品| 亚洲图片欧美色图| 国产美女娇喘av呻吟久久| 91久久精品网| 久久精品视频免费| 一区二区免费在线播放| 国产福利精品导航| 欧美精品日日鲁夜夜添| 日韩理论片一区二区| 免费观看在线综合色| 91啪亚洲精品| 久久精品人人做人人综合| 天天影视色香欲综合网老头| 不卡电影一区二区三区| 日韩一级在线观看| 亚洲高清免费视频| 不卡高清视频专区| 国产亚洲精品7777| 激情文学综合网| 欧美日韩三级在线| 国产精品人人做人人爽人人添| 日韩黄色片在线观看| 色94色欧美sute亚洲13| 欧美国产综合一区二区| 精一区二区三区| 日韩视频123| 午夜视频一区二区三区| 日本精品裸体写真集在线观看| 国产亚洲1区2区3区| 麻豆一区二区99久久久久| 欧美人妇做爰xxxⅹ性高电影| 最新日韩在线视频| 成人在线视频首页| 国产蜜臀av在线一区二区三区| 美脚の诱脚舐め脚责91| 欧美精品久久一区| 日日骚欧美日韩| 欧美日韩国产成人在线免费| 亚洲在线观看免费视频| 91国偷自产一区二区三区观看| √…a在线天堂一区| 99re成人精品视频| 亚洲蜜臀av乱码久久精品| 91日韩一区二区三区| 一区二区三区在线视频观看58 | 成人免费观看视频| 久久久久国产精品麻豆ai换脸| 国产一区二区三区久久悠悠色av |