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

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

?? i2o1.c

?? gumstiz u-boot loader in linux
?? C
?? 第 1 頁 / 共 2 頁
字號:
/********************************************************* * $Id * * copyright @ Motorola, 1999 *********************************************************/#include "i2o.h"extern unsigned int load_runtime_reg( unsigned int eumbbar, unsigned int reg );#pragma Alias( load_runtime_reg, "load_runtime_reg" );extern void store_runtime_reg( unsigned int eumbbar, unsigned int reg, unsigned int val );#pragma Alias( store_runtime_reg, "store_runtime_reg" );typedef struct _fifo_stat{    QUEUE_SIZE   qsz;    unsigned int qba;} FIFOSTAT;FIFOSTAT fifo_stat = { QSIZE_4K, 0xffffffff };/********************************************************************************** * function: I2OMsgEnable * * description: Enable the interrupt associated with in/out bound msg *              return I2OSUCCESS if no error, otherwise return I2OMSGINVALID. * *              All previously enabled interrupts are preserved. * note: * Inbound message interrupt generated by PCI master and serviced by local processor * Outbound message interrupt generated by local processor and serviced by PCI master * * local processor needs to enable its inbound interrupts it wants to handle(LOCAL) * PCI master needs to enable the outbound interrupts of devices it wants to handle(REMOTE) ************************************************************************************/I2OSTATUS I2OMsgEnable ( LOCATION loc,        /*  REMOTE/LOCAL   */			 unsigned int base,   /* pcsrbar/eumbbar */			 unsigned char n )    /* b'1' - msg 0					       * b'10'- msg 1					       * b'11'- both					       */{    unsigned int reg, val;    if ( ( n & 0x3 ) == 0 )    {	/* neither msg 0, nor msg 1 */	return I2OMSGINVALID;    }    n = (~n) & 0x3;    /* LOCATION - REMOTE : enable outbound message of device, pcsrbar as base     *            LOCAL  : enable local inbound message, eumbbar as base     */    reg = ( loc == REMOTE ? I2O_OMIMR : I2O_IMIMR );    val = load_runtime_reg( base, reg );    val &= 0xfffffffc; /* masked out the msg interrupt bits */    val |= n;          /* LSB are the one we want */    store_runtime_reg( base, reg, val );    return I2OSUCCESS;}/********************************************************************************* * function: I2OMsgDisable * * description: Disable the interrupt associated with in/out bound msg *              Other previously enabled interrupts are preserved. *              return I2OSUCCESS if no error otherwise return I2OMSGINVALID * * note: *  local processor needs to disable its inbound interrupts it is not interested(LOCAL) *  PCI master needs to disable outbound interrupts of devices it is not interested(REMOTE) *********************************************************************************/I2OSTATUS I2OMsgDisable( LOCATION loc,      /*  REMOTE/LOCAL   */			 unsigned int base, /* pcsrbar/eumbbar */			 unsigned char n )  /* b'1' - msg 0					     * b'10'- msg 1					     * b'11'- both					     */{    unsigned int reg, val;    if ( ( n & 0x3 ) == 0 )    {	/* neither msg 0, nor msg 1 */	return I2OMSGINVALID;    }    /* LOCATION - REMOTE : disable outbound message interrupt of device, pcsrbar as base     *            LOCAL  : disable local inbound message interrupt, eumbbar as base     */    reg = ( loc == REMOTE ? I2O_OMIMR : I2O_IMIMR );    val = load_runtime_reg( base, reg );    val &= 0xfffffffc; /* masked out the msg interrupt bits */    val |= ( n & 0x3 );    store_runtime_reg( base, reg, val );    return I2OSUCCESS;}/************************************************************************** * function: I2OMsgGet * * description: Local processor reads the nth Msg register from its inbound msg, *              or a PCI Master reads nth outbound msg from device * *              return I2OSUCCESS if no error, otherwise return I2OMSGINVALID. * * note: * If it is not local, pcsrbar must be passed to the function. Otherwise eumbbar is passed. * If it is remote, outbound msg on the device is read; otherwise local inbound msg is read *************************************************************************/I2OSTATUS I2OMsgGet ( LOCATION loc,             /* REMOTE/LOCAL */			 unsigned int base,        /*pcsrbar/eumbbar */			 unsigned int n,           /* 0 or 1 */			 unsigned int *msg ){    if ( n >= I2O_NUM_MSG || msg == 0 )    {	return I2OMSGINVALID;    }    if ( loc == REMOTE )    {	/* read the outbound msg of the device, pcsrbar as base */	*msg = load_runtime_reg( base, I2O_OMR0+n*I2O_REG_OFFSET );    }    else    {	/* read the inbound msg sent by PCI master, eumbbar as base */	*msg = load_runtime_reg( base, I2O_IMR0+n*I2O_REG_OFFSET );    }    return I2OSUCCESS;}/*************************************************************** * function: I2OMsgPost * * description: Kahlua  writes to its nth outbound msg register *              PCI master writes to nth inbound msg register of device * *              return I2OSUCCESS if no error, otherwise return I2OMSGINVALID. * * note: * If it is not local, pcsrbar must be passed to the function. Otherwise eumbbar is passed. * * If it is remote, inbound msg on the device is written; otherwise local outbound msg is written ***************************************************************/I2OSTATUS I2OMsgPost( LOCATION loc,             /* REMOTE/LOCAL */		      unsigned int base,        /*pcsrbar/eumbbar */		      unsigned int n,           /* 0 or 1 */		      unsigned int msg ){    if ( n >= I2O_NUM_MSG )    {	return I2OMSGINVALID;    }    if ( loc == REMOTE )    {	/* write to the inbound msg register of the device, pcsrbar as base  */	store_runtime_reg( base, I2O_IMR0+n*I2O_REG_OFFSET, msg );    }    else    {	/* write to the outbound msg register for PCI master to read, eumbbar as base */	store_runtime_reg( base, I2O_OMR0+n*I2O_REG_OFFSET, msg );    }    return I2OSUCCESS;}/*********************************************************************** * function: I2ODBEnable * * description: Local processor enables it's inbound doorbell interrupt *              PCI master enables outbound doorbell interrupt of devices *              Other previously enabled interrupts are preserved. *              Return I2OSUCCESS if no error otherwise return I2ODBINVALID * * note: * In DoorBell interrupt is generated by PCI master and serviced by local processor * Out Doorbell interrupt is generated by local processor and serviced by PCI master * * Out Doorbell interrupt is generated by local processor and serviced by PCI master * PCI master needs to enable the outbound doorbell interrupts of device it wants to handle **********************************************************************/I2OSTATUS I2ODBEnable( LOCATION loc,        /*  REMOTE/LOCAL   */		  unsigned int base,   /* pcsrbar/eumbbar */		  unsigned int in_db ) /* when LOCAL, I2O_IN_DB, MC, I2O_IN_DB|MC */{    /* LOCATION - REMOTE : PCI master initializes outbound doorbell message of device     *            LOCAL  : Kahlua initializes its inbound doorbell message     */    unsigned int val;    if ( loc == LOCAL && ( in_db & 0x3 ) == 0 )    {	return I2ODBINVALID;    }    if ( loc == REMOTE )    {	/* pcsrbar is base */	val = load_runtime_reg( base, I2O_OMIMR );	val &= 0xfffffff7;	store_runtime_reg( base, I2O_OMIMR , val );    }    else    {	/* eumbbar is base */	val = load_runtime_reg( base, I2O_IMIMR);	in_db = ( (~in_db) & 0x3 ) << 3;	val = ( val & 0xffffffe7) | in_db;	store_runtime_reg( base,  I2O_IMIMR, val );    }    return I2OSUCCESS;}/********************************************************************************** * function: I2ODBDisable * * description: local processor disables its inbound DoorBell Interrupt *              PCI master disables outbound DoorBell interrupt of device *              Other previously enabled interrupts are preserved. *              return I2OSUCCESS if no error.Otherwise return I2ODBINVALID * * note: * local processor needs to disable its inbound doorbell interrupts it is not interested * * PCI master needs to disable outbound doorbell interrupts of device it is not interested ************************************************************************************/I2OSTATUS I2ODBDisable( LOCATION loc,          /*  REMOTE/LOCAL   */			unsigned int base,     /* pcsrbar/eumbbar */			unsigned int in_db )   /* when LOCAL, I2O_IN_DB, MC, I2O_IN_DB|MC */{    /* LOCATION - REMOTE : handle device's out bound message initialization     *            LOCAL  : handle local in bound message initialization     */    unsigned int val;    if ( loc == LOCAL && ( in_db & 0x3 ) == 0 )    {	    return I2ODBINVALID;    }    if ( loc == REMOTE )    {	/* pcsrbar is the base */	val = load_runtime_reg( base, I2O_OMIMR );	val |= 0x8;	store_runtime_reg( base, I2O_OMIMR, val );    }    else    {	    val = load_runtime_reg( base, I2O_IMIMR);	    in_db = ( in_db & 0x3 ) << 3;	    val |= in_db;	    store_runtime_reg( base, I2O_IMIMR, val );    }    return I2OSUCCESS;}/********************************************************************************** * function: I2ODBGet * * description: Local processor reads its in doorbell register, *              PCI master reads the outdoorbell register of device. *              After a doorbell register is read, the whole register will be cleared. *              Otherwise, HW keeps generating interrupt. * * note: * If it is not local, pcsrbar must be passed to the function. * Otherwise eumbbar is passed. * * If it is remote, out doorbell register on the device is read. * Otherwise local in doorbell is read * * If the register is not cleared by write to it, any remaining bit of b'1's * will cause interrupt pending. *********************************************************************************/unsigned int I2ODBGet( LOCATION loc,         /*  REMOTE/LOCAL   */		       unsigned int base)    /* pcsrbar/eumbbar */{    unsigned int msg, val;    if ( loc == REMOTE )    {	/* read outbound doorbell register of device, pcsrbar is the base */	val = load_runtime_reg( base, I2O_ODBR );	msg = val & 0xe0000000;	store_runtime_reg( base, I2O_ODBR, val ); /* clear the register */    }    else    {	/* read the inbound doorbell register, eumbbar is the base */	val = load_runtime_reg( base, I2O_IDBR );	store_runtime_reg( base, I2O_IDBR, val ); /* clear the register */	msg = val;    }    return msg;}/********************************************************************** * function: I2ODBPost * * description: local processor writes to a outbound doorbell register, *              PCI master writes to the inbound doorbell register of device * * note: * If it is not local, pcsrbar must be passed to the function. * Otherwise eumbbar is passed. * * If it is remote, in doorbell register on the device is written. * Otherwise local out doorbell is written *********************************************************************/void I2ODBPost( LOCATION loc,             /*  REMOTE/LOCAL   */		unsigned int base,        /* pcsrbar/eumbbar */		unsigned int msg )        /*   in   / out    */{    if ( loc == REMOTE )    {	/* write to inbound doorbell register of device, pcsrbar is the base */	store_runtime_reg( base, I2O_IDBR, msg );    }    else    {	/* write to local outbound doorbell register, eumbbar is the base */	store_runtime_reg( base, I2O_ODBR, msg & 0x1fffffff );    }}/******************************************************************** * function: I2OOutMsgStatGet * * description: PCI master reads device's outbound msg unit interrupt status. *              Reading an interrupt status register, *              the register will be cleared. * *              The value of the status register is AND with the outbound *              interrupt mask and result is returned. * * note: * pcsrbar must be passed to the function. ********************************************************************/I2OSTATUS I2OOutMsgStatGet( unsigned int pcsrbar, I2OOMSTAT *val ){    unsigned int stat;    unsigned int mask;    if ( val == 0 )    {	    return I2OINVALID;    }    /* read device's outbound status */    stat = load_runtime_reg( pcsrbar, I2O_OMISR );    mask = load_runtime_reg( pcsrbar, I2O_OMIMR );    store_runtime_reg( pcsrbar, I2O_OMISR, stat & 0xffffffd7);    stat &= mask;    val->rsvd0 = ( stat & 0xffffffc0 ) >> 6;    val->opqi  = ( stat & 0x00000020 ) >> 5;    val->rsvd1 = ( stat & 0x00000010 ) >> 4;    val->odi   = ( stat & 0x00000008 ) >> 3;    val->rsvd2 = ( stat & 0x00000004 ) >> 2;    val->om1i  = ( stat & 0x00000002 ) >> 1;    val->om0i  = ( stat & 0x00000001 );    return I2OSUCCESS;}/******************************************************************** * function: I2OInMsgStatGet * * description: Local processor reads its inbound msg unit interrupt status. *              Reading an interrupt status register, *              the register will be cleared. * *              The inbound msg interrupt status is AND with the inbound *              msg interrupt mask and result is returned. * * note: * eumbbar must be passed to the function. ********************************************************************/I2OSTATUS I2OInMsgStatGet(unsigned int eumbbar, I2OIMSTAT *val){    unsigned int stat;    unsigned int mask;    if ( val == 0 )    {	    return I2OINVALID;    }    /* read device's outbound status */    stat = load_runtime_reg( eumbbar, I2O_OMISR );    mask = load_runtime_reg( eumbbar, I2O_OMIMR );    store_runtime_reg( eumbbar, I2O_OMISR, stat & 0xffffffe7 );    stat &= mask;    val->rsvd0 = ( stat & 0xfffffe00 ) >> 9;    val->ofoi  = ( stat & 0x00000100 ) >> 8;    val->ipoi  = ( stat & 0x00000080 ) >> 7;    val->rsvd1 = ( stat & 0x00000040 ) >> 6;    val->ipqi  = ( stat & 0x00000020 ) >> 5;    val->mci   = ( stat & 0x00000010 ) >> 4;    val->idi   = ( stat & 0x00000008 ) >> 3;    val->rsvd2 = ( stat & 0x00000004 ) >> 2;    val->im1i  = ( stat & 0x00000002 ) >> 1;    val->im0i  = ( stat & 0x00000001 );    return I2OSUCCESS;}/*********************************************************** * function: I2OFIFOInit * * description: Configure the I2O FIFO, including QBAR, *              IFHPR/IFTPR, IPHPR/IPTPR, OFHPR/OFTPR, *              OPHPR/OPTPR, MUCR. * *              return I2OSUCCESS if no error, *              otherwise return I2OQUEINVALID * * note: It is NOT this driver's responsibility of initializing *       MFA blocks, i.e., FIFO queue itself. The MFA blocks *       must be initialized before I2O unit can be used. ***********************************************************/I2OSTATUS I2OFIFOInit( unsigned int eumbbar,		       QUEUE_SIZE   sz,      /* value of CQS of MUCR */		       unsigned int qba)     /* queue base address that must be aligned at 1M */{    if ( ( qba & 0xfffff ) != 0 )    {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品三级在线观看| 亚洲视频网在线直播| voyeur盗摄精品| 日韩在线a电影| 自拍偷拍国产精品| 欧美一二三在线| 色婷婷激情综合| 国产一区二区三区高清播放| 亚洲综合激情另类小说区| 久久新电视剧免费观看| 欧美日韩一级黄| 不卡的看片网站| 国产一区二区三区视频在线播放 | 自拍偷拍国产亚洲| 欧美精品一区二区三区四区| 欧美三级日韩三级| 91网站最新地址| 粉嫩绯色av一区二区在线观看| 麻豆国产精品官网| 亚洲成人免费影院| 夜夜揉揉日日人人青青一国产精品 | 亚洲日穴在线视频| 中文av字幕一区| 久久久久久电影| xf在线a精品一区二区视频网站| 91精品国产色综合久久不卡电影| 欧美性色欧美a在线播放| av不卡免费电影| 99久久久国产精品免费蜜臀| 成人午夜视频免费看| 国产一区二区不卡在线| 激情小说欧美图片| 精品一区二区三区免费毛片爱| 日本视频在线一区| 热久久一区二区| 蜜臀av性久久久久蜜臀aⅴ| 婷婷开心激情综合| 日韩国产欧美在线观看| 三级亚洲高清视频| 男女男精品视频网| 蜜乳av一区二区| 麻豆一区二区99久久久久| 久久电影国产免费久久电影| 久久av资源网| 国产精品一二三在| 成人app软件下载大全免费| 成人av电影在线| 在线亚洲高清视频| 欧美剧情片在线观看| 欧美群妇大交群的观看方式| 555夜色666亚洲国产免| 欧美一级在线免费| 久久久亚洲精华液精华液精华液| 久久精品人人做人人爽人人| 国产精品视频免费| 亚洲最新在线观看| 日本视频免费一区| 极品少妇一区二区三区精品视频| 国产精品影视网| 97se亚洲国产综合在线| 欧美综合视频在线观看| 欧美一区二区三区视频| 久久久久久久久一| 日韩伦理免费电影| 天堂va蜜桃一区二区三区漫画版| 麻豆精品国产91久久久久久| 国产成人亚洲综合色影视| 91免费国产视频网站| 欧美日韩中文字幕一区| 欧美成人a在线| 亚洲色图欧美偷拍| 麻豆精品一区二区综合av| 成人激情动漫在线观看| 欧美日韩黄色影视| 久久久久9999亚洲精品| 一区二区在线免费观看| 麻豆精品国产91久久久久久| 91小视频免费观看| 欧美一级片在线| 亚洲欧美自拍偷拍| 欧美a级一区二区| av成人免费在线| 日韩一区二区在线看| 亚洲三级在线看| 激情综合网天天干| 欧美亚洲丝袜传媒另类| 久久精品亚洲乱码伦伦中文| 亚洲综合色自拍一区| 国产成a人无v码亚洲福利| 欧美久久一区二区| 18成人在线视频| 久久99精品久久久久久动态图| 色就色 综合激情| 国产欧美日韩不卡| 免费观看日韩av| 色天天综合久久久久综合片| 久久亚洲影视婷婷| 午夜影院久久久| 波多野结衣视频一区| 精品久久久久久久久久久久包黑料| 亚洲日穴在线视频| 国产精品99久久久久久久vr| 欧美高清视频一二三区| 亚洲视频在线观看三级| 国产乱码精品1区2区3区| 欧美高清精品3d| 亚洲欧美日韩一区| 成人app在线观看| 久久综合视频网| 免费在线观看不卡| 欧美影视一区在线| 18成人在线视频| 成人精品在线视频观看| 久久新电视剧免费观看| 全部av―极品视觉盛宴亚洲| 色激情天天射综合网| 日韩一区有码在线| 岛国精品在线观看| 精品国产乱码久久久久久浪潮 | 日韩福利电影在线观看| 欧美体内she精视频| 亚洲精选一二三| 93久久精品日日躁夜夜躁欧美| 国产日本一区二区| 国产一二三精品| 久久久久久久久久久久电影| 狠狠色丁香婷综合久久| 欧美岛国在线观看| 美美哒免费高清在线观看视频一区二区| 欧美性猛片aaaaaaa做受| 亚洲最大成人网4388xx| 91农村精品一区二区在线| 亚洲日本在线视频观看| 一本大道久久a久久综合婷婷| 国产精品久久久久一区二区三区共| 国产成人午夜99999| 久久精品日韩一区二区三区| 国产黑丝在线一区二区三区| 国产亚洲精品久| 国产suv精品一区二区883| 国产精品少妇自拍| 99久久国产综合色|国产精品| 国产精品福利一区| 日本高清不卡在线观看| 亚洲免费在线播放| 欧美日韩精品系列| 性做久久久久久免费观看欧美| 欧美日韩你懂的| 美女视频黄免费的久久 | 久久婷婷成人综合色| 国内精品国产成人国产三级粉色 | 日本成人在线一区| 日韩精品一区在线| 床上的激情91.| 亚洲女人****多毛耸耸8| 精品污污网站免费看| 午夜精品福利在线| 欧美精品一区二区三区视频| 粉嫩aⅴ一区二区三区四区| 亚洲综合成人在线视频| 日韩欧美一区二区视频| 国产精品综合网| 洋洋av久久久久久久一区| 日韩欧美国产小视频| 国产精品18久久久久久vr| 日韩美女视频一区| 欧美一区二区视频在线观看2020 | 另类中文字幕网| 国产欧美精品一区| 在线精品视频小说1| 男女视频一区二区| 国产精品嫩草影院com| 欧美网站大全在线观看| 国产酒店精品激情| 一区二区三区四区精品在线视频| 欧美一级一区二区| 成人av在线资源网| 日本伊人色综合网| 国产精品人成在线观看免费| 欧美性大战久久久久久久| 国产精品18久久久久久久网站| 一区二区在线看| 久久亚洲免费视频| 欧美日韩和欧美的一区二区| 国产精品一区不卡| 丝袜诱惑制服诱惑色一区在线观看| 久久久久久久久久电影| 欧美日韩一区二区三区不卡| 国产精品夜夜爽| 日本女人一区二区三区| 一区二区三区资源| 久久欧美一区二区| 欧美日韩亚洲另类| 国产成人免费高清| 日本成人中文字幕在线视频| 亚洲精品国产视频| 国产精品久久久久影院色老大 | 97精品国产露脸对白| 精品一区二区三区影院在线午夜| 亚洲高清一区二区三区|