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

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

?? quc.c

?? 基于OMAP1510的Nucleus移植代碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
/*************************************************************************/
/*                                                                       */
/*               Copyright Mentor Graphics Corporation 2002              */
/*                         All Rights Reserved.                          */
/*                                                                       */
/* THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION WHICH IS  */
/* THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AND IS   */
/* SUBJECT TO LICENSE TERMS.                                             */
/*                                                                       */
/*************************************************************************/

/*************************************************************************/
/*                                                                       */
/* FILE NAME                                               VERSION       */
/*                                                                       */
/*      quc.c                                          Nucleus PLUS 1.14 */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      QU - Queue Management                                            */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains the core routines for the Queue management    */
/*      component.                                                       */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      QUC_Create_Queue                    Create a message queue       */
/*      QUC_Delete_Queue                    Delete a message queue       */
/*      QUC_Send_To_Queue                   Send message to a queue      */
/*      QUC_Receive_From_Queue              Receive a message from queue */
/*      QUC_Cleanup                         Cleanup on timeout or a      */
/*                                            terminate condition        */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      cs_extr.h                           Common Service functions     */
/*      tc_extr.h                           Thread Control functions     */
/*      qu_extr.h                           Queue functions              */
/*      hi_extr.h                           History functions            */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      08-09-1993      Corrected pointer retrieval                      */
/*                      loop, resulting in version 1.0a                  */
/*      08-09-1993      Verified version 1.0a                            */
/*      11-01-1993      Corrected a problem with fixed-                  */
/*                      size queues of a size equal to                   */
/*                      one message, resulting in                        */
/*                      version 1.0b                                     */
/*      11-01-1993      Verified version 1.0b                            */
/*      03-01-1994      Moved non-core functions into                    */
/*                      supplemental files, changed                      */
/*                      function interfaces to match                     */
/*                      those in prototype, added                        */
/*                      register options, changed                        */
/*                      protection logic to reduce                       */
/*                      overhead, corrected bug in                       */
/*                      queue reset, optimized item                      */
/*                      copy loops, resulting in                         */
/*                      version 1.1                                      */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      04-17-1996      updated to version 1.2                           */
/*      01-28-1998      Corrected SPR412 resulting in                    */
/*                      version 1.2a.                                    */
/*      03-24-1998      Released version 1.3                             */
/*      03-26-1999      Released 1.11m (new release                      */
/*                        numbering scheme)                              */
/*      04-17-2002      Released version 1.13m                           */
/*      11-07-2002      Released version 1.14                            */
/*************************************************************************/
#define         NU_SOURCE_FILE


#include        "cs_extr.h"                 /* Common service functions  */
#include        "tc_extr.h"                 /* Thread control functions  */
#include        "qu_extr.h"                 /* Queue functions           */
#include        "hi_extr.h"                 /* History functions         */


/* Define external inner-component global data references.  */

extern CS_NODE         *QUD_Created_Queues_List;
extern UNSIGNED         QUD_Total_Queues;
extern TC_PROTECT       QUD_List_Protect;


/* Define internal component function prototypes.  */

VOID    QUC_Cleanup(VOID *information);


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      QUC_Create_Queue                                                 */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function creates a queue and then places it on the list     */
/*      of created queues.                                               */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      QUCE_Create_Queue                   Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      CSC_Place_On_List                   Add node to linked-list      */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Protect                         Protect created list         */
/*      TCT_Unprotect                       Un-protect data structure    */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      queue_ptr                           Queue control block pointer  */
/*      name                                Queue name                   */
/*      start_address                       Starting address of actual   */
/*                                            queue area                 */
/*      queue_size                          Total size of queue          */
/*      message_type                        Type of message supported by */
/*                                            the queue (fixed/variable) */
/*      message_size                        Size of message.  Variable   */
/*                                            message-length queues, this*/
/*                                            represents the maximum size*/
/*      suspend_type                        Suspension type              */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_SUCCESS                                                       */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Changed function interfaces to                   */
/*                      match those in prototype,                        */
/*                      added register options,                          */
/*                      resulting in version 1.1                         */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  QUC_Create_Queue(NU_QUEUE *queue_ptr, CHAR *name,
                      VOID *start_address, UNSIGNED queue_size,
                      OPTION message_type, UNSIGNED message_size,
                      OPTION suspend_type)
{

R1 QU_QCB      *queue;                      /* Queue control block ptr   */
INT             i;                          /* Working index variable    */
NU_SUPERV_USER_VARIABLES

    /* Switch to supervisor mode */
    NU_SUPERVISOR_MODE();

    /* Move input queue pointer into internal pointer.  */
    queue =  (QU_QCB *) queue_ptr;


#ifdef  NU_ENABLE_STACK_CHECK

    /* Call stack checking function to check for an overflow condition.  */
    TCT_Check_Stack();

#endif

#ifdef  NU_ENABLE_HISTORY

    /* Make an entry that corresponds to this function in the system history
       log.  */
    HIC_Make_History_Entry(NU_CREATE_QUEUE_ID, (UNSIGNED) queue,
                                (UNSIGNED) name, (UNSIGNED) start_address);

#endif

    /* First, clear the queue ID just in case it is an old Queue
       Control Block.  */
    queue -> qu_id =             0;

    /* Fill in the queue name.  */
    for (i = 0; i < NU_MAX_NAME; i++)
        queue -> qu_name[i] =  name[i];

    /* Setup the queue suspension type.  */
    if (suspend_type == NU_FIFO)

        /* FIFO suspension is selected, setup the flag accordingly.  */
        queue -> qu_fifo_suspend =  NU_TRUE;

    else

        /* Priority suspension is selected.  */
        queue -> qu_fifo_suspend =  NU_FALSE;

    /* Setup the queue message type.  */
    if (message_type == NU_FIXED_SIZE)

        /* Fixed-size messages are required.  */
        queue -> qu_fixed_size =  NU_TRUE;
    else

        /* Variable-size messages are required.  */
        queue -> qu_fixed_size =  NU_FALSE;

    /* Setup the message size.  */
    queue -> qu_message_size =  message_size;

    /* Clear the messages counter.   */
    queue -> qu_messages =  0;

    /* Setup the actual queue parameters.  */
    queue -> qu_queue_size =    queue_size;

    /* If the queue supports fixed-size messages, make sure that the queue
       size is an even multiple of the message size.  */
    if (queue -> qu_fixed_size)

        /* Adjust the area of the queue being used.  */
        queue_size =  (queue_size / message_size) * message_size;

    queue -> qu_available =     queue_size;
    queue -> qu_start =         (UNSIGNED *) start_address;
    queue -> qu_end =           queue -> qu_start + queue_size;
    queue -> qu_read =          (UNSIGNED *) start_address;
    queue -> qu_write =         (UNSIGNED *) start_address;

    /* Clear the suspension list pointer.  */
    queue -> qu_suspension_list =  NU_NULL;

    /* Clear the number of tasks waiting on the queue counter.  */
    queue -> qu_tasks_waiting =  0;

    /* Clear the urgent message list pointer.  */
    queue -> qu_urgent_list =  NU_NULL;

    /* Initialize link pointers.  */
    queue -> qu_created.cs_previous =    NU_NULL;
    queue -> qu_created.cs_next =        NU_NULL;

    /* Protect against access to the list of created queues.  */
    TCT_Protect(&QUD_List_Protect);

    /* At this point the queue is completely built.  The ID can now be
       set and it can be linked into the created queue list.  */
    queue -> qu_id =                     QU_QUEUE_ID;

    /* Link the queue into the list of created queues and increment the
       total number of queues in the system.  */
    CSC_Place_On_List(&QUD_Created_Queues_List, &(queue -> qu_created));
    QUD_Total_Queues++;

#ifdef INCLUDE_PROVIEW
    _RTProf_DumpQueue(RT_PROF_CREATE_QUEUE,queue,RT_PROF_OK);
#endif

    /* Release protection against access to the list of created queues.  */
    TCT_Unprotect();

    /* Return to user mode */
    NU_USER_MODE();

    /* Return successful completion.  */
    return(NU_SUCCESS);
}


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      QUC_Delete_Queue                                                 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
五月激情综合色| 欧美日韩大陆在线| 日本一区二区三区久久久久久久久不 | 国产一区二区h| 中文字幕不卡在线| 欧美无人高清视频在线观看| 亚洲精品日韩一| 色爱区综合激月婷婷| 亚洲18影院在线观看| 亚洲精品一区二区在线观看| 国产电影一区二区三区| 中文字幕欧美一| 日韩精品一区二区三区老鸭窝 | 国产精品久久免费看| 欧美色中文字幕| 国产91高潮流白浆在线麻豆| 亚洲国产中文字幕| 国产精品久久久久久久久久久免费看| 99精品视频在线观看| 奇米影视一区二区三区小说| 亚洲国产精品成人综合色在线婷婷| 色哟哟一区二区在线观看| 亚洲动漫第一页| 最新不卡av在线| 国产视频911| 2023国产一二三区日本精品2022| 99精品久久99久久久久| 国产真实精品久久二三区| 午夜欧美大尺度福利影院在线看| 国产精品国产三级国产普通话蜜臀 | 精品国产网站在线观看| 亚洲6080在线| 亚洲午夜在线观看视频在线| 亚洲乱码国产乱码精品精的特点 | 色偷偷成人一区二区三区91| 日本中文一区二区三区| 亚洲成人免费电影| 亚洲成人动漫av| 婷婷夜色潮精品综合在线| 亚洲一二三四在线观看| 亚洲人吸女人奶水| 精品国产污污免费网站入口 | 亚洲三级免费观看| 久久综合成人精品亚洲另类欧美 | 色av成人天堂桃色av| 成人黄色av电影| 日本电影欧美片| 91精品国产综合久久小美女| 日韩亚洲欧美一区二区三区| 久久久久久久久久久久久夜| 亚洲欧洲日产国码二区| 亚洲 欧美综合在线网络| 精品亚洲成a人| 99视频有精品| 精品国产髙清在线看国产毛片| 亚洲精品一线二线三线无人区| 国产精品成人免费精品自在线观看| 亚洲欧洲日韩女同| 国产黄色91视频| 欧美猛男男办公室激情| 中文字幕免费不卡| 国产剧情一区二区| 欧美一区二区三区思思人| 亚洲国产精品二十页| 日本午夜精品一区二区三区电影| 国产精品99久久不卡二区| 91精品国产欧美一区二区成人| 中文av一区二区| 春色校园综合激情亚洲| 精品免费国产一区二区三区四区| 亚洲一二三四在线观看| 色综合久久综合中文综合网| 国产人久久人人人人爽| 国产麻豆一精品一av一免费| 欧美xxxxx裸体时装秀| 激情综合色综合久久综合| 日韩亚洲欧美在线观看| 日日欢夜夜爽一区| 欧美一区二区三级| 黄色资源网久久资源365| 日韩一区二区在线看片| 精品亚洲aⅴ乱码一区二区三区| 欧美一区二区福利视频| 九九九精品视频| 国产精品沙发午睡系列990531| 国产成a人亚洲| 亚洲一区二区欧美激情| 在线电影国产精品| 国产精品一二三四五| 国产精品久久久久久久久免费相片| 成人激情免费视频| 亚洲黄色av一区| 91精品国产一区二区三区香蕉| 奇米色777欧美一区二区| 国产日韩v精品一区二区| 91国偷自产一区二区三区观看 | 欧美国产禁国产网站cc| 色综合天天在线| 久久精品免费观看| 亚洲免费在线视频一区 二区| 欧美α欧美αv大片| a亚洲天堂av| 国产一区二区三区观看| 一区二区三区国产精品| 久久久久久久久久美女| 5858s免费视频成人| 91亚洲精品久久久蜜桃| 国产麻豆视频一区二区| 天天色天天爱天天射综合| 国产女人18水真多18精品一级做| 欧美日韩在线一区二区| 91色porny| 91网站在线观看视频| 成人综合婷婷国产精品久久免费| 青娱乐精品视频| 亚洲1区2区3区视频| 亚洲午夜一二三区视频| 亚洲欧洲一区二区三区| 国产精品国产馆在线真实露脸| 久久久久久电影| 欧美成人艳星乳罩| 久久久国产精品午夜一区ai换脸| 欧美一区二区国产| 久久久久亚洲蜜桃| 国产欧美日韩激情| 一区二区三区免费网站| 亚洲综合久久久| 日韩极品在线观看| 久久97超碰色| 99国产精品国产精品毛片| 欧美日韩综合不卡| 国产精品99久久久久| 亚洲一区二区欧美| 18涩涩午夜精品.www| 日韩欧美区一区二| 在线视频中文字幕一区二区| 亚洲人成精品久久久久久| 欧美片网站yy| 久久久久久日产精品| 亚洲男同1069视频| 国产一区二区福利视频| 91丝袜呻吟高潮美腿白嫩在线观看| 色94色欧美sute亚洲13| 欧美电视剧在线看免费| 亚洲女女做受ⅹxx高潮| 美女视频黄久久| 色综合久久综合网| 欧美亚洲精品一区| 日韩欧美123| 亚洲狠狠丁香婷婷综合久久久| 婷婷综合五月天| 成人小视频免费在线观看| 在线不卡一区二区| 国产精品国产三级国产三级人妇| 水蜜桃久久夜色精品一区的特点| 99精品在线免费| 国产精品久久久久久久久免费相片| 蜜桃精品视频在线观看| 欧美日韩一区二区在线视频| 国产精品久久久久久久久图文区| 久久av中文字幕片| 91精品欧美福利在线观看| 婷婷国产v国产偷v亚洲高清| 99国产精品久久久久久久久久久| 一色屋精品亚洲香蕉网站| 国产成人免费在线观看| 国产拍欧美日韩视频二区| 国产精品一级黄| 中文一区二区在线观看| 北条麻妃国产九九精品视频| 国产欧美视频一区二区三区| 国产麻豆成人精品| 亚洲国产精品国自产拍av| 一本久道久久综合中文字幕 | 国产美女精品在线| 国产亚洲欧美一区在线观看| 成年人国产精品| 一区二区三区高清不卡| 欧美一级爆毛片| www.日韩在线| 天使萌一区二区三区免费观看| 欧美一区二区福利视频| 成人午夜在线免费| 日本美女视频一区二区| 国产欧美一区二区精品性色| 欧美性猛交xxxxxx富婆| 精品系列免费在线观看| 亚洲精品视频自拍| 国产精品理伦片| 91.成人天堂一区| 色呦呦国产精品| 国产激情一区二区三区四区 | 94色蜜桃网一区二区三区| 亚洲福利一区二区三区| 欧美激情一区二区三区不卡 | 国产色综合一区| 欧美日韩中文字幕精品| 成人中文字幕合集| 99精品在线观看视频| 国产成人综合亚洲91猫咪|