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 22struct strm_mgr; 23 24struct strm_object; 25 26struct strm_attr { 27 void *user_event; 28 char *str_event_name; 29 void *virt_base; /* Process virtual base address of 30 * mapped SM */ 31 u32 virt_size; /* Size of virtual space in bytes */ 32 struct dsp_streamattrin *stream_attr_in; 33}; 34 35struct stream_info { 36 enum dsp_strmmode strm_mode; /* transport mode of 37 * stream(DMA, ZEROCOPY..) */ 38 u32 segment_id; /* Segment strm allocs from. 0 is local mem */ 39 void *virt_base; /* " " Stream'process virt base */ 40 struct dsp_streaminfo *user_strm; /* User's stream information 41 * returned */ 42}; 43 44#endif /* STRMDEFS_ */ 45