⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gsblk.h

📁 用于TM1300/PNX1300系列DSP(主要用于视频处理)的操作系统pSOS。包括全部源码
💻 H
字号:
/***********************************************************************//*                                                                     *//*   MODULE:  gsblk.h   1.3                                                *//*   DATE:    11:19:28 - 98/10/21                                                *//*   PURPOSE: Definitions for General Serial Message Blocks            *//*                                                                     *//*---------------------------------------------------------------------*//*                                                                     *//*           Copyright 1994, Integrated Systems, Inc.                  *//*                      ALL RIGHTS RESERVED                            *//*                                                                     *//*   Permission is hereby granted to licensees of Integrated Systems,  *//*   Inc. products to use or abstract this computer program for the    *//*   sole purpose of implementing a product based on Integrated        *//*   Systems, Inc. products.   No other rights to reproduce, use,      *//*   or disseminate this computer program, whether in part or in       *//*   whole, are granted.                                               *//*                                                                     *//*   Integrated Systems, Inc. makes no representation or warranties    *//*   with respect to the performance of this computer program, and     *//*   specifically disclaims any responsibility for any damages,        *//*   special or consequential, connected with the use of this program. *//*                                                                     *//*---------------------------------------------------------------------*//*                                                                     *//*                                                                     *//*                                                                     *//***********************************************************************/#ifndef _GSBLK_H#define _GSBLK_H/*---------------------------------------------------------------------*//* Must include pna.h before this file                                 *//*---------------------------------------------------------------------*/#ifndef _PNA_H    #include "pna.h"#endif#define MAXBUFFERS 256#define BPRI_LO  0#define BPRI_MED 1#define BPRI_HI  2/*----------------------------------------------------------------------*//* Data block structure for esballoc call. It need to store all the     *//* data blocks allocated thru' esballoc in a linked to be freed at      *//* pSOS restart time. Esballoc can be used by the driver attach a data  *//* buffer. This can be done before pSOS is initialized                  *//*----------------------------------------------------------------------*/struct esbdatab  {  dblk_t esb_dblk;              /* Data block */  struct esbdatab *next;        /* Next link */  struct esbdatab *prev;        /* Previous link */  };typedef struct esbdatab esbdblk_t;  /*----------------------------------------------------------------------*//* Structure for holding the esballoc allocated buffers                 *//*----------------------------------------------------------------------*/struct dblkq  {  esbdblk_t *next;  esbdblk_t *prev;  };/*----------------------------------------------------------------------*//* Definition of the buffer configuration table                         *//*----------------------------------------------------------------------*/struct gsblk_bufcfg    {    unsigned long nbuffers;   /* Number of buffers */    unsigned long bsize;      /* Buffer size */    unsigned long reserved[2];/* Reserved entries */    };typedef struct gsblk_bufcfg gsblk_bufcfg_t;  /*---------------------------------------------------------------------*//* Prototypes for global functions.                                    *//*---------------------------------------------------------------------*/mblk_t *gs_allocb(int size, int pri);mblk_t *gs_esballoc(unsigned char *base, int size, int pri, frtn_t *frtn);void gs_freemsg(register mblk_t *mp);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -