Home | History | Annotate | Download | only in inc
      1 /*
      2  * dspbridge/mpu_api/inc/strmdefs.h
      3  *
      4  * DSP-BIOS Bridge driver support functions for TI OMAP processors.
      5  *
      6  * Copyright (C) 2007 Texas Instruments, Inc.
      7  *
      8  * This program is free software; you can redistribute it and/or modify it
      9  * under the terms of the GNU Lesser General Public License as published
     10  * by the Free Software Foundation version 2.1 of the License.
     11  *
     12  * This program is distributed .as is. WITHOUT ANY WARRANTY of any kind,
     13  * whether express or implied; without even the implied warranty of
     14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     15  * Lesser General Public License for more details.
     16  */
     17 
     18 
     19 /*
     20  *  ======== strmdefs.h ========
     21  *  Purpose:
     22  *      Global STRM constants and types.
     23  *
     24  *! Revision History
     25  *! ================
     26  *! 19-Nov-2001 ag      Added STRM_INFO..
     27  *! 25-Sep-2000 jeh     Created.
     28  */
     29 
     30 #ifndef STRMDEFS_
     31 #define STRMDEFS_
     32 
     33 #ifdef __cplusplus
     34 extern "C" {
     35 #endif
     36 
     37 #define STRM_MAXEVTNAMELEN      32
     38 
     39 	struct STRM_MGR;
     40 	/*typedef struct STRM_MGR *STRM_HMGR;*/
     41 	struct STRM_OBJECT;
     42 	/*typedef struct STRM_OBJECT *STRM_HOBJECT;*/
     43 
     44 	struct STRM_ATTR {
     45 		HANDLE hUserEvent;
     46 		PSTR pstrEventName;
     47 		PVOID pVirtBase;	/* Process virtual base address of mapped SM */
     48 		ULONG ulVirtSize;	/* Size of virtual space in bytes */
     49 		struct DSP_STREAMATTRIN *pStreamAttrIn;
     50 	} ;
     51 
     52 	struct STRM_INFO {
     53 		UINT lMode;	/* transport mode of stream(DMA, ZEROCOPY..) */
     54 		UINT uSegment;	/* Segment strm allocs from. 0 is local mem */
     55 		PVOID pVirtBase;	/*    "       "    Stream'process virt base */
     56 		struct DSP_STREAMINFO *pUser;	/* User's stream information returned */
     57 	} ;
     58 
     59 #ifdef __cplusplus
     60 }
     61 #endif
     62 #endif				/* STRMDEFS_ */
     63 
     64