Merge branch 'sh/pci-express-integration'
[pandora-kernel.git] / drivers / staging / tidspbridge / include / dspbridge / strmdefs.h
1 /*
2  * strmdefs.h
3  *
4  * DSP-BIOS Bridge driver support functions for TI OMAP processors.
5  *
6  * Global STRM constants and types.
7  *
8  * Copyright (C) 2005-2006 Texas Instruments, Inc.
9  *
10  * This package is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License version 2 as
12  * published by the Free Software Foundation.
13  *
14  * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17  */
18
19 #ifndef STRMDEFS_
20 #define STRMDEFS_
21
22 #define STRM_MAXEVTNAMELEN      32
23
24 struct strm_mgr;
25
26 struct strm_object;
27
28 struct strm_attr {
29         void *user_event;
30         char *pstr_event_name;
31         void *virt_base;        /* Process virtual base address of
32                                  * mapped SM */
33         u32 ul_virt_size;       /* Size of virtual space in bytes */
34         struct dsp_streamattrin *stream_attr_in;
35 };
36
37 struct stream_info {
38         enum dsp_strmmode strm_mode;    /* transport mode of
39                                          * stream(DMA, ZEROCOPY..) */
40         u32 segment_id;         /* Segment strm allocs from. 0 is local mem */
41         void *virt_base;        /* "      " Stream'process virt base */
42         struct dsp_streaminfo *user_strm;       /* User's stream information
43                                                  * returned */
44 };
45
46 #endif /* STRMDEFS_ */