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

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

?? quce.c

?? 基于OMAP1510的Nucleus移植代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*************************************************************************/
/*                                                                       */
/*               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       */
/*                                                                       */
/*      quce.c                                         Nucleus PLUS 1.14 */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      QU - Queue Management                                            */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains error checking routines for core functions    */
/*      of the Queue component.  This permits easy removal of error      */
/*      checking logic when it is not needed.                            */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      QUCE_Create_Queue                   Create a queue               */
/*      QUCE_Delete_Queue                   Delete a queue               */
/*      QUCE_Send_To_Queue                  Send a queue message         */
/*      QUCE_Receive_From_Queue             Receive a queue message      */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      cs_extr.h                           Common Service functions     */
/*      tc_extr.h                           Thread Control functions     */
/*      qu_extr.h                           Queue functions              */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Split original error checking                    */
/*                      file and changed function                        */
/*                      interfaces, resulting in                         */
/*                      version 1.1                                      */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      04-17-1996      updated to version 1.2                           */
/*      10-28-1997      Modified QUCE_Receive_From_Queue                 */
/*                      to correct SPR142. This                          */
/*                      created version 1.2a.                            */
/*      03-24-1998      Released version 1.3.                            */
/*      06-04-1998      Modified QUCE_Send_To_Queue to                   */
/*                      check for a size of 0, created                   */
/*                      version 1.3a. (SPR493)                           */
/*      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           */


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      QUCE_Create_Queue                                                */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function performs error checking on the parameters supplied */
/*      to the queue create function.                                    */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      QUC_Create_Queue                    Actual create queue function */
/*                                                                       */
/* 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_INVALID_QUEUE                    Invalid queue pointer        */
/*      NU_INVALID_MEMORY                   Invalid queue starting addr  */
/*      NU_INVALID_SIZE                     Invalid queue size and/or    */
/*                                            size of message            */
/*      NU_INVALID_MESSAGE                  Invalid message type         */
/*      NU_INVALID_SUSPEND                  Invalid suspend type         */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*        DATE                    REMARKS                                */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Modified function interface,                     */
/*                      resulting in version 1.1                         */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  QUCE_Create_Queue(NU_QUEUE *queue_ptr, CHAR *name, 
                      VOID *start_address, UNSIGNED queue_size, 
                      OPTION message_type, UNSIGNED message_size,
                      OPTION suspend_type)
{

QU_QCB         *queue;
STATUS          status;
INT             overhead;

    
    /* Move input queue pointer into internal pointer.  */
    queue =  (QU_QCB *) queue_ptr;
    
    /* Determine if queue supports variable length messages.  If so, an
       additional word of overhead is required.  */
    if (message_type == NU_VARIABLE_SIZE)
    
        /* Variable-size queues require an additional word of overhead.  */
        overhead =  1;
    else
    
        /* Fixed-size message queues require no additional overhead.  */
        overhead =  0;

    /* Determine if there is an error with the queue pointer.  */
    if ((queue == NU_NULL) || (queue -> qu_id == QU_QUEUE_ID))
    
        /* Indicate that the queue pointer is invalid.  */
        status =  NU_INVALID_QUEUE;
        
    else if (start_address == NU_NULL)
    
        /* Indicate that the starting address of the queue is invalid.  */
        status =  NU_INVALID_MEMORY;
        
    else if ((queue_size == 0) || (message_size == 0) || 
                                ((message_size+overhead) > queue_size))
             
        /* Indicate that one or both of the size parameters are invalid.  */
        status =  NU_INVALID_SIZE;
        
    else if ((message_type != NU_FIXED_SIZE) && 
                        (message_type != NU_VARIABLE_SIZE))
                                
        /* Indicate that the message type is invalid.  */
        status =  NU_INVALID_MESSAGE;
        
    else if ((suspend_type != NU_FIFO) && (suspend_type != NU_PRIORITY))
    
        /* Indicate that the suspend type is invalid.  */
        status =  NU_INVALID_SUSPEND;
        
    else
    
        /* All the parameters are okay, call the actual function to create
           a queue.  */
        status =  QUC_Create_Queue(queue_ptr, name, start_address, queue_size,
                                  message_type, message_size, suspend_type);
                                  
    /* Return completion status.  */
    return(status);
}


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      QUCE_Delete_Queue                                                */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function performs error checking on the parameter supplied  */
/*      to the queue delete function.                                    */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      QUC_Delete_Queue                    Actual delete queue function */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      queue_ptr                           Queue control block pointer  */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_INVALID_QUEUE                    Invalid queue pointer        */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Modified function interface,                     */
/*                      resulting in version 1.1                         */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  QUCE_Delete_Queue(NU_QUEUE *queue_ptr)
{

QU_QCB         *queue;                      
STATUS          status;


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

    /* Determine if there is an error with the queue pointer.  */
    if (queue == NU_NULL)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产免费久久综合| 欧美三级韩国三级日本一级| 国产精品看片你懂得| 99精品视频中文字幕| 同产精品九九九| 中文字幕第一区| 7799精品视频| 97精品视频在线观看自产线路二| 香蕉加勒比综合久久| 欧美激情中文字幕| 欧美一区二区三区小说| 91在线精品一区二区| 精品影院一区二区久久久| 亚洲免费在线视频一区 二区| 欧美成人三级电影在线| 欧洲人成人精品| www.欧美色图| 国产美女在线精品| 亚洲a一区二区| 亚洲丝袜美腿综合| 国产欧美一区二区精品久导航| 91精品国产品国语在线不卡| 色综合天天狠狠| 成人做爰69片免费看网站| 精品一区二区三区视频在线观看 | 成人免费小视频| 久久免费电影网| 日韩一区二区在线观看| 精品视频一区二区三区免费| 色婷婷av一区二区三区大白胸| 国产成人午夜精品5599| 精品亚洲欧美一区| 久久精品国产色蜜蜜麻豆| 婷婷久久综合九色综合绿巨人 | 亚洲欧洲综合另类| 国产精品视频你懂的| 国产午夜亚洲精品羞羞网站| 26uuu亚洲婷婷狠狠天堂| 日韩欧美激情一区| 欧美肥妇bbw| 在线观看91精品国产麻豆| 欧美综合一区二区| 欧美少妇bbb| 欧美日韩一区二区电影| 欧美日精品一区视频| 欧美日韩情趣电影| 69久久夜色精品国产69蝌蚪网| 欧美日韩视频在线一区二区| 欧美在线你懂得| 欧美日韩国产天堂| 91麻豆精品国产91久久久使用方法| 欧美日韩一区二区在线视频| 欧美精品乱码久久久久久按摩| 欧美日韩精品三区| 欧美xxxxx牲另类人与| 亚洲精品一区二区三区香蕉| 国产亚洲人成网站| 国产精品初高中害羞小美女文 | 毛片一区二区三区| 激情综合五月婷婷| 国产精品亚洲а∨天堂免在线| 国产黄色成人av| 99re这里只有精品首页| 色老头久久综合| 欧美日韩国产大片| 欧美成人综合网站| 国产精品欧美久久久久无广告| 日韩伦理免费电影| 丝袜美腿成人在线| 国产一区二区三区四区五区入口 | 日韩毛片视频在线看| 亚洲成在线观看| 久久国产精品无码网站| 成人免费高清在线| 欧美日韩中文字幕精品| 欧美成人精品高清在线播放| 中文字幕欧美激情| 五月天激情综合| 国产一区二区三区蝌蚪| 91麻豆精东视频| 日韩情涩欧美日韩视频| 国产精品久久二区二区| 日韩精品亚洲一区| 风间由美一区二区三区在线观看 | 国产精品 欧美精品| 91视频免费观看| 欧美亚洲国产怡红院影院| 精品久久久久一区| 亚洲精品欧美二区三区中文字幕| 日韩和欧美一区二区三区| 国产99久久久国产精品潘金网站| 欧美丝袜自拍制服另类| 久久老女人爱爱| 亚洲成人精品在线观看| 国产寡妇亲子伦一区二区| 91久久久免费一区二区| 久久婷婷综合激情| 亚洲成av人影院在线观看网| 国产美女视频91| 欧美日韩不卡在线| 国产精品国产a| 蓝色福利精品导航| 欧美电影精品一区二区| 一区二区三区四区亚洲| 国产精品正在播放| 欧美精品精品一区| 亚洲免费在线电影| 国产乱人伦精品一区二区在线观看| 91国内精品野花午夜精品 | 亚洲国产精品自拍| 久久九九久久九九| 石原莉奈在线亚洲二区| 92国产精品观看| 国产亚洲美州欧州综合国| 美女在线一区二区| 精品视频在线免费| 尤物在线观看一区| av一二三不卡影片| 久久久久久免费毛片精品| 日本免费新一区视频| 欧美性videosxxxxx| 中文字幕在线一区二区三区| 国产精品一二三区| 精品三级av在线| 日本亚洲免费观看| 51精品国自产在线| 亚洲高清视频的网址| 色婷婷av一区| 亚洲国产欧美日韩另类综合 | 精品美女一区二区三区| 日日噜噜夜夜狠狠视频欧美人 | 日韩欧美国产麻豆| 香蕉影视欧美成人| 欧美日韩一卡二卡三卡 | 久久精品欧美一区二区三区不卡| 免费欧美日韩国产三级电影| 在线播放日韩导航| 日韩福利电影在线| 日韩欧美久久一区| 久久99精品久久久久久动态图| 日韩一区二区三区三四区视频在线观看| 欧美色视频一区| 亚洲一区二区影院| 欧美三级电影在线看| 亚洲二区在线观看| 欧美伦理影视网| 免费观看在线色综合| 日韩欧美精品在线视频| 国产麻豆日韩欧美久久| 久久精品无码一区二区三区| 国产福利一区二区三区视频在线| 久久久美女毛片| 99r精品视频| 亚洲影视在线播放| 91精品麻豆日日躁夜夜躁| 蜜臀av性久久久久蜜臀aⅴ流畅| 日韩美女视频在线| 国产精品影视在线| 综合久久久久久| 欧美性生活影院| 理论电影国产精品| 久久久久国产精品免费免费搜索| 国产丶欧美丶日本不卡视频| 国产精品美女久久久久aⅴ国产馆| heyzo一本久久综合| 一个色在线综合| 日韩免费在线观看| 高清不卡一二三区| 亚洲精品日日夜夜| 欧美一级一级性生活免费录像| 久久成人免费网站| 国产精品久久久久久久久免费樱桃 | 中文字幕制服丝袜成人av| 欧亚洲嫩模精品一区三区| 五月天激情综合网| 国产欧美一区二区精品忘忧草| 91免费版在线看| 日本不卡123| 欧美国产日韩精品免费观看| 91久久免费观看| 国产一区二区精品久久| 亚洲欧美自拍偷拍| 91精品国产黑色紧身裤美女| 国产不卡在线视频| 亚洲电影你懂得| 国产欧美日韩在线看| 精品视频一区二区不卡| 国产成a人无v码亚洲福利| 婷婷开心久久网| 日韩理论片在线| 日韩欧美中文一区二区| 97久久人人超碰| 日韩精品一区二区三区视频播放| 国内精品免费**视频| 亚洲午夜精品在线| 国产拍揄自揄精品视频麻豆| 欧美日韩在线播| 97久久精品人人澡人人爽| 国精产品一区一区三区mba桃花| 亚洲精品日日夜夜|