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

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

?? l1_command.c

?? 根據添加了fs2410平臺的arch目錄
?? C
?? 第 1 頁 / 共 3 頁
字號:
int elsc_partition_set(elsc_t *e, int partition){    char msg[BRL1_QSIZE];       /* L1 request/response info */    int subch;                  /* system controller subchannel used */    int len;                    /* length of message */    /* fill in msg with the opcode & params */    bzero( msg, BRL1_QSIZE );    if( (subch = sc_open( e, L1_ADDR_LOCAL )) < 0 ) {	return ELSC_ERROR_CMD_SEND;    }    if( (len = sc_construct_msg( e, subch, msg, BRL1_QSIZE,				 L1_ADDR_TASK_GENERAL,				 L1_REQ_PARTITION_SET, 2,				 L1_ARG_INT, partition )) < 0 )    {		sc_close( e, subch );	return( ELSC_ERROR_CMD_ARGS );    }    /* send the request to the L1 */    if( sc_command( e, subch, msg, msg, &len ) ) {	sc_close( e, subch );	return( ELSC_ERROR_CMD_SEND );    }    /* free up subchannel */    sc_close( e, subch );    /* check response */    if( sc_interpret_resp( msg, 0 ) < 0 )    {	return( ELSC_ERROR_RESP_FORMAT );    }        return( 0 );}int elsc_partition_get(elsc_t *e){    char msg[BRL1_QSIZE];       /* L1 request/response info */    int subch;                  /* system controller subchannel used */    int len;                    /* length of message */    uint32_t partition_id;    /* used to copy partition id out of msg */    /* fill in msg with the opcode & params */    bzero( msg, BRL1_QSIZE );    if( (subch = sc_open( e, L1_ADDR_LOCAL )) < 0 ) {	return ELSC_ERROR_CMD_SEND;    }    if( (len = sc_construct_msg( e, subch, msg, BRL1_QSIZE,				 L1_ADDR_TASK_GENERAL,				 L1_REQ_PARTITION_GET, 0 )) < 0 )    {	sc_close( e, subch );	return( ELSC_ERROR_CMD_ARGS );    }    /* send the request to the L1 */    if( sc_command( e, subch, msg, msg, &len ) ) {	sc_close( e, subch );	return( ELSC_ERROR_CMD_SEND );    }    /* free up subchannel */    sc_close( e, subch );    /* check response */    if( sc_interpret_resp( msg, 2, L1_ARG_INT, &partition_id ) < 0 )    {	return( ELSC_ERROR_RESP_FORMAT );    }        return( partition_id );}/* * elsc_cons_subch selects the "active" console subchannel for this node * (i.e., the one that will currently receive input) */int elsc_cons_subch(elsc_t *e, uint ch){    char msg[BRL1_QSIZE];       /* L1 request/response info */    int subch;                  /* system controller subchannel used */    int len;                    /* length of message */    /* fill in msg with the opcode & params */    bzero( msg, BRL1_QSIZE );    subch = sc_open( e, L1_ADDR_LOCAL );        if( (len = sc_construct_msg( e, subch, msg, BRL1_QSIZE,				 L1_ADDR_TASK_GENERAL,				 L1_REQ_CONS_SUBCH, 2,				 L1_ARG_INT, ch)) < 0 )    {	sc_close( e, subch );	return( ELSC_ERROR_CMD_ARGS );    }    /* send the request to the L1 */    if( SC_COMMAND( e, subch, msg, msg, &len ) ) {	sc_close( e, subch );	return( ELSC_ERROR_CMD_SEND );    }    /* free up subchannel */    sc_close( e, subch );    /* check response */    if( sc_interpret_resp( msg, 0 ) < 0 )    {	return( ELSC_ERROR_RESP_FORMAT );    }    return 0;}/* * elsc_cons_node should only be executed by one node.  It declares to * the system controller that the node from which it is called will be * the owner of the system console. */int elsc_cons_node(elsc_t *e){    char msg[BRL1_QSIZE];       /* L1 request/response info */    int subch;                  /* system controller subchannel used */    int len;                    /* length of message */    /* fill in msg with the opcode & params */    bzero( msg, BRL1_QSIZE );    subch = sc_open( e, L1_ADDR_LOCAL );        if( (len = sc_construct_msg( e, subch, msg, BRL1_QSIZE,				 L1_ADDR_TASK_GENERAL,				 L1_REQ_CONS_NODE, 0 )) < 0 )    {	sc_close( e, subch );	return( ELSC_ERROR_CMD_ARGS );    }    /* send the request to the L1 */    if( SC_COMMAND( e, subch, msg, msg, &len ) ) {	sc_close( e, subch );	return( ELSC_ERROR_CMD_SEND );    }    /* free up subchannel */    sc_close( e, subch );    /* check response */    if( sc_interpret_resp( msg, 0 ) < 0 )    {	return( ELSC_ERROR_RESP_FORMAT );    }    return 0;}    /* elsc_display_line writes up to 12 characters to either the top or bottom * line of the L1 display.  line points to a buffer containing the message * to be displayed.  The zero-based line number is specified by lnum (so * lnum == 0 specifies the top line and lnum == 1 specifies the bottom). * Lines longer than 12 characters, or line numbers not less than * L1_DISPLAY_LINES, cause elsc_display_line to return an error. */int elsc_display_line(elsc_t *e, char *line, int lnum){    char	msg[BRL1_QSIZE];    int		subch;  /* system controller subchannel used */    int		len;	/* number of msg buffer bytes used */    /* argument sanity checking */    if( !(lnum < L1_DISPLAY_LINES) )	return( ELSC_ERROR_CMD_ARGS );    if( !(strlen( line ) <= L1_DISPLAY_LINE_LENGTH) )	return( ELSC_ERROR_CMD_ARGS );    /* fill in msg with the opcode & params */    bzero( msg, BRL1_QSIZE );    subch = sc_open( (l1sc_t *)e, L1_ADDR_LOCAL );    if( (len = sc_construct_msg( (l1sc_t *)e, subch, msg, BRL1_QSIZE,				 L1_ADDR_TASK_GENERAL,				 (L1_REQ_DISP1+lnum), 2,				 L1_ARG_ASCII, line )) < 0 )    {	sc_close( e, subch );	return( ELSC_ERROR_CMD_ARGS );    }    /* send the request to the L1 */    if( SC_COMMAND( (l1sc_t *)e, subch, msg, msg, &len ) < 0 )    {	sc_close( e, subch );	return( ELSC_ERROR_CMD_SEND );    }    /* free up subchannel */    sc_close( (l1sc_t *)e, subch );    /* check response */    if( sc_interpret_resp( msg, 0 ) < 0 )    {	return( ELSC_ERROR_RESP_FORMAT );    }    return 0;}/* elsc_display_mesg silently drops message characters beyond the 12th. */int elsc_display_mesg(elsc_t *e, char *chr){    char line[L1_DISPLAY_LINE_LENGTH+1];    int numlines, i;    int result;    numlines = (strlen( chr ) + L1_DISPLAY_LINE_LENGTH - 1) /	L1_DISPLAY_LINE_LENGTH;    if( numlines > L1_DISPLAY_LINES )	numlines = L1_DISPLAY_LINES;    for( i = 0; i < numlines; i++ )    {	strncpy( line, chr, L1_DISPLAY_LINE_LENGTH );	line[L1_DISPLAY_LINE_LENGTH] = '\0';	/* generally we want to leave the first line of the L1 display	 * alone (so the L1 can manipulate it).  If you need to be able	 * to display to both lines (for debugging purposes), define	 * L1_DISP_2LINES in irix/kern/ksys/l1.h, or add -DL1_DISP_2LINES	 * to your 'defs file.	 */#if defined(L1_DISP_2LINES)	if( (result = elsc_display_line( e, line, i )) < 0 )#else	if( (result = elsc_display_line( e, line, i+1 )) < 0 )#endif	    return result;	chr += L1_DISPLAY_LINE_LENGTH;    }        return 0;}int elsc_password_set(elsc_t *e, char *password){    /* shush compiler */    e = e;    password = password;    /* fill in buffer with the opcode & params; call elsc_command */    return 0;}int elsc_password_get(elsc_t *e, char *password){    /* shush compiler */    e = e;    password = password;    /* fill in buffer with the opcode & params; call elsc_command */    return 0;}/* * sc_portspeed_get * * retrieve the current portspeed setting for the bedrock II */int sc_portspeed_get(l1sc_t *sc){    char	msg[BRL1_QSIZE];    int         len;    /* length of message being sent */    int         subch;  /* system controller subchannel used */    int		portspeed_a, portspeed_b;			/* ioport clock rates */    bzero( msg, BRL1_QSIZE );    subch = sc_open( sc, L1_ADDR_LOCAL );    if( (len = sc_construct_msg( sc, subch, msg, BRL1_QSIZE,                                 L1_ADDR_TASK_GENERAL,				 L1_REQ_PORTSPEED,				 0 )) < 0 )    {	sc_close( sc, subch );	return( ELSC_ERROR_CMD_ARGS );    }        /* send the request to the L1 */    if( sc_command( sc, subch, msg, msg, &len ) < 0 )    {        sc_close( sc, subch );        return( ELSC_ERROR_CMD_SEND );    }    /* free up subchannel */    sc_close( sc, subch );    /* check response */    if( sc_interpret_resp( msg, 4, 			   L1_ARG_INT, &portspeed_a,			   L1_ARG_INT, &portspeed_b ) < 0 )    {	return( ELSC_ERROR_RESP_FORMAT );    }    /* for the c-brick, we ignore the portspeed_b value */    return (portspeed_a ? 600 : 400);}/* * elsc_power_query * *   To be used after system reset, this command returns 1 if the reset *   was the result of a power-on, 0 otherwise. * *   The power query status is cleared to 0 after it is read. */int elsc_power_query(elsc_t *e){    e = e; /* shush the compiler */    /* fill in buffer with the opcode & params; call elsc_command */    return 1;}int elsc_rpwr_query(elsc_t *e, int is_master){    /* shush the compiler */    e = e;    is_master = is_master;    /* fill in buffer with the opcode & params; call elsc_command */    return 0;} /* * elsc_power_down * *   Sets up system to shut down in "sec" seconds (or modifies the *   shutdown time if one is already in effect).  Use 0 to power *   down immediately. */int elsc_power_down(elsc_t *e, int sec){    /* shush compiler */    e = e;    sec = sec;    /* fill in buffer with the opcode & params; call elsc_command */    return 0;}int elsc_system_reset(elsc_t *e){    char	msg[BRL1_QSIZE];    int		subch;  /* system controller subchannel used */    int		len;	/* number of msg buffer bytes used */    int		result;    /* fill in msg with the opcode & params */    bzero( msg, BRL1_QSIZE );    if( (subch = sc_open( e, L1_ADDR_LOCAL )) < 0 ) {	return ELSC_ERROR_CMD_SEND;    }    if( (len = sc_construct_msg( e, subch, msg, BRL1_QSIZE,				 L1_ADDR_TASK_GENERAL,				 L1_REQ_RESET, 0 )) < 0 )    {	sc_close( e, subch );	return( ELSC_ERROR_CMD_ARGS );    }    /* send the request to the L1 */    if( (result = sc_command( e, subch, msg, msg, &len )) ) {	sc_close( e, subch );	if( result == SC_NMSG ) {	    /* timeout is OK.  We've sent the reset.  Now it's just	     * a matter of time...	     */	    return( 0 );	}	return( ELSC_ERROR_CMD_SEND );    }    /* free up subchannel */    sc_close( e, subch );    /* check response */    if( sc_interpret_resp( msg, 0 ) < 0 )    {	return( ELSC_ERROR_RESP_FORMAT );    }    return 0;}int elsc_power_cycle(elsc_t *e){    /* shush compiler */    e = e;    /* fill in buffer with the opcode & params; call sc_command */    return 0;}/* * L1 Support for reading  * cbrick uid. */int elsc_nic_get(elsc_t *e, uint64_t *nic, int verbose){    /* this parameter included only for SN0 compatibility */    verbose = verbose;    /* We don't go straight to the bedrock/L1 protocol on this one, but let     * the eeprom layer prepare the eeprom data as we would like it to     * appear to the caller     */    return cbrick_uid_get( e->nasid, nic );}int _elsc_hbt(elsc_t *e, int ival, int rdly){    e = e;    ival = ival;    rdly = rdly;    /* fill in buffer with the opcode & params; call elsc_command */    return 0;}/* send a command string to an L1 */int sc_command_interp( l1sc_t *sc, l1addr_t compt, l1addr_t rack, l1addr_t bay,		       char *cmd ){    char        msg[BRL1_QSIZE];    int         len;    /* length of message being sent */    int         subch;  /* system controller subchannel used */    l1addr_t	target; /* target system controller for command */    /* fill in msg with the opcode & params */    bzero( msg, BRL1_QSIZE );    L1_BUILD_ADDR( &target, compt, rack, bay, 0 );    subch = sc_open( sc, target );    if( (len = sc_construct_msg( sc, subch, msg, BRL1_QSIZE,				 L1_ADDR_TASK_CMD, L1_REQ_EXEC_CMD, 2,				 L1_ARG_ASCII, cmd )) < 0 )    {	sc_close( sc, subch );	return( ELSC_ERROR_CMD_ARGS );    }		   

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品久久人人爱| 亚洲国产精品久久久久婷婷884| 色综合咪咪久久| 久久99精品久久久久久动态图 | 欧美日韩国产一区二区三区地区| 激情国产一区二区 | 国产精品白丝av| 亚洲成av人片在线| 国产精品丝袜在线| 欧美一区二区三区的| 色婷婷精品久久二区二区蜜臂av| 国产盗摄视频一区二区三区| 日产国产欧美视频一区精品| 亚洲免费观看在线视频| 欧美国产国产综合| 久久尤物电影视频在线观看| 欧美精品乱码久久久久久| 色狠狠一区二区三区香蕉| 不卡一卡二卡三乱码免费网站| 韩国一区二区三区| 老司机免费视频一区二区三区| 婷婷丁香激情综合| 亚洲午夜激情网站| 一区二区三区在线免费| 国产精品国产三级国产普通话蜜臀| 精品国产电影一区二区| 日韩欧美成人午夜| 日韩一级二级三级精品视频| 91精品一区二区三区久久久久久| 欧美日韩在线播| 欧美日韩久久久一区| 欧美私模裸体表演在线观看| 色综合天天综合网天天看片| 一道本成人在线| 91小宝寻花一区二区三区| 成人av免费观看| 91色porny在线视频| 91在线码无精品| 91福利精品第一导航| 在线免费观看日本一区| 欧美在线制服丝袜| 欧美理论电影在线| 日韩午夜激情av| 精品国产乱码久久久久久浪潮| 日韩你懂的在线观看| 欧美哺乳videos| 久久久一区二区三区| 国产欧美精品区一区二区三区| 国产视频在线观看一区二区三区 | 久久久久99精品一区| 久久久高清一区二区三区| 欧美激情一区二区| 中文字幕亚洲区| 一区二区三区精品视频在线| 午夜精品成人在线视频| 日本系列欧美系列| 国内精品伊人久久久久av影院| 国产不卡在线播放| 色综合久久综合网97色综合 | 国产精品成人在线观看| 亚洲欧美激情视频在线观看一区二区三区 | 亚洲国产精品成人综合| 中文字幕亚洲不卡| 亚洲国产另类av| 久久精品国产亚洲a| 成人免费毛片app| 在线视频综合导航| 欧美草草影院在线视频| 中文字幕在线播放不卡一区| 亚洲一卡二卡三卡四卡| 免费成人性网站| www.日韩大片| 91精品一区二区三区在线观看| 国产目拍亚洲精品99久久精品| 亚洲欧美日韩小说| 久88久久88久久久| 91免费在线看| 日韩欧美在线一区二区三区| 中文幕一区二区三区久久蜜桃| 亚洲国产婷婷综合在线精品| 国产在线精品视频| 一本久道中文字幕精品亚洲嫩| 777久久久精品| 中文字幕免费一区| 日本sm残虐另类| av一二三不卡影片| 日韩欧美成人一区| 亚洲国产视频一区| 国产一区二区福利| 欧美日韩在线不卡| 亚洲欧洲日韩av| 老司机精品视频一区二区三区| 91小视频在线免费看| 久久久精品免费免费| 日韩中文字幕av电影| thepron国产精品| 欧美变态tickling挠脚心| 一区二区在线观看免费视频播放| 国产一区三区三区| 欧美电影一区二区| 亚洲另类在线一区| 成人久久久精品乱码一区二区三区| 8x福利精品第一导航| 亚洲乱码国产乱码精品精可以看| 国产一区二区调教| 91麻豆精品国产91久久久使用方法 | 久久国产生活片100| 欧美日韩mp4| 亚洲精品老司机| 成人免费看的视频| www激情久久| 奇米色一区二区三区四区| 在线精品观看国产| 欧美国产精品专区| 国产精品1024| 久久久亚洲精华液精华液精华液| 日本成人在线电影网| 欧美视频一区二区三区四区| 亚洲欧美经典视频| 99精品热视频| 国产精品盗摄一区二区三区| 国产成人在线色| 久久人人超碰精品| 激情欧美一区二区| 精品久久国产97色综合| 精品系列免费在线观看| 精品久久久久久久久久久久久久久 | 欧美亚洲日本一区| 亚洲精选视频在线| 色婷婷综合激情| 亚洲欧美国产毛片在线| 色狠狠综合天天综合综合| 亚洲精品免费一二三区| 91热门视频在线观看| 中文字幕一区二区三区不卡| 99久久国产免费看| 亚洲色图19p| 欧美这里有精品| 午夜欧美大尺度福利影院在线看 | 久久久精品国产免大香伊 | 国产一区视频在线看| 久久久久97国产精华液好用吗| 国产传媒日韩欧美成人| 国产欧美日韩卡一| 成人精品gif动图一区| 中文字幕中文在线不卡住| 99re热这里只有精品视频| 国产精品无码永久免费888| 成人精品视频.| 亚洲精选一二三| 欧美放荡的少妇| 国产综合色在线| 国产精品妹子av| 欧美亚洲一区二区在线| 青草国产精品久久久久久| 精品国产91乱码一区二区三区 | 99国产一区二区三精品乱码| 亚洲精品高清在线| 欧美猛男gaygay网站| 麻豆精品蜜桃视频网站| 国产精品久久久久9999吃药| 色婷婷综合久久久久中文| 日本欧洲一区二区| 欧美国产1区2区| 欧美日韩在线直播| 国产精品自在欧美一区| 成人免费视频在线观看| 91精品国产麻豆| 丁香另类激情小说| 亚洲一区二区三区国产| 久久久久青草大香线综合精品| 91亚洲男人天堂| 另类小说图片综合网| 最新热久久免费视频| 91精品麻豆日日躁夜夜躁| 国产精品白丝jk黑袜喷水| 亚洲最新视频在线观看| 久久免费偷拍视频| 在线观看精品一区| 国产一区二区三区在线观看精品| 亚洲日本中文字幕区| 日韩一卡二卡三卡| 91猫先生在线| 韩国午夜理伦三级不卡影院| 亚洲乱码国产乱码精品精可以看| 欧美zozo另类异族| 91高清视频在线| 国产精品亚洲成人| 五月天视频一区| 亚洲欧洲国产日韩| 日韩欧美国产一区在线观看| 在线观看区一区二| 国产aⅴ精品一区二区三区色成熟| 亚洲电影在线播放| 自拍偷拍国产亚洲| 国产校园另类小说区| 日韩欧美一区二区免费| 欧美亚洲综合色| 99久久777色| 国产精品一区二区不卡|