16280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna/* 26280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * strmdefs.h 36280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * 46280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * DSP-BIOS Bridge driver support functions for TI OMAP processors. 56280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * 66280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * Global STRM constants and types. 76280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * 86280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * Copyright (C) 2005-2006 Texas Instruments, Inc. 96280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * 106280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * This package is free software; you can redistribute it and/or modify 116280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * it under the terms of the GNU General Public License version 2 as 126280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * published by the Free Software Foundation. 136280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * 146280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 156280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 166280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 176280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna */ 186280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna 196280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna#ifndef STRMDEFS_ 206280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna#define STRMDEFS_ 216280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna 226280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Lunastruct strm_mgr; 236280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna 246280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Lunastruct strm_object; 256280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna 266280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Lunastruct strm_attr { 276280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna void *user_event; 28ee4317f78c24cf85efd067f4c09319e281c4fa4aRene Sapiens char *str_event_name; 296280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna void *virt_base; /* Process virtual base address of 306280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * mapped SM */ 31085467b8f5e60a2fe9ef85031ab40bd8724fcac6Rene Sapiens u32 virt_size; /* Size of virtual space in bytes */ 326280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna struct dsp_streamattrin *stream_attr_in; 336280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna}; 346280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna 356280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Lunastruct stream_info { 366280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna enum dsp_strmmode strm_mode; /* transport mode of 376280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * stream(DMA, ZEROCOPY..) */ 386280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna u32 segment_id; /* Segment strm allocs from. 0 is local mem */ 396280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna void *virt_base; /* " " Stream'process virt base */ 406280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna struct dsp_streaminfo *user_strm; /* User's stream information 416280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna * returned */ 426280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna}; 436280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna 446280238c13e16a105fe658e1b6e68380cbc9f055Omar Ramirez Luna#endif /* STRMDEFS_ */ 45