blob: dcec84d837a93a8a1329b839983ae3ef9b069eb1 [file] [log] [blame]
preludedrewf4ed1b62010-12-30 20:53:51 -07001/*
2 * Copyright 2001-2008 Texas Instruments - http://www.ti.com/
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * ======== strmdefs.h ========
19 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
20 * Purpose:
21 * Global STRM constants and types.
22 *
23 *! Revision History
24 *! ================
25 *! 19-Nov-2001 ag Added STRM_INFO..
26 *! 25-Sep-2000 jeh Created.
27 */
28
29#ifndef STRMDEFS_
30#define STRMDEFS_
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36#define STRM_MAXEVTNAMELEN 32
37
38 struct STRM_MGR;
39 /*typedef struct STRM_MGR *STRM_HMGR;*/
40 struct STRM_OBJECT;
41 /*typedef struct STRM_OBJECT *STRM_HOBJECT;*/
42
43 struct STRM_ATTR {
44 HANDLE hUserEvent;
45 PSTR pstrEventName;
46 PVOID pVirtBase; /* Process virtual base address of mapped SM */
47 ULONG ulVirtSize; /* Size of virtual space in bytes */
48 struct DSP_STREAMATTRIN *pStreamAttrIn;
49 } ;
50
51 struct STRM_INFO {
52 UINT lMode; /* transport mode of stream(DMA, ZEROCOPY..) */
53 UINT uSegment; /* Segment strm allocs from. 0 is local mem */
54 PVOID pVirtBase; /* " " Stream'process virt base */
55 struct DSP_STREAMINFO *pUser; /* User's stream information returned */
56 } ;
57
58#ifdef __cplusplus
59}
60#endif
61#endif /* STRMDEFS_ */
62