/*1* tegra_pcm.h - Definitions for Tegra PCM driver2*3* Author: Stephen Warren <[email protected]>4* Copyright (C) 2010 - NVIDIA, Inc.5*6* Based on code copyright/by:7*8* Copyright (c) 2009-2010, NVIDIA Corporation.9* Scott Peterson <[email protected]>10*11* Copyright (C) 2010 Google, Inc.12* Iliyan Malchev <[email protected]>13*14* This program is free software; you can redistribute it and/or15* modify it under the terms of the GNU General Public License16* version 2 as published by the Free Software Foundation.17*18* This program is distributed in the hope that it will be useful, but19* WITHOUT ANY WARRANTY; without even the implied warranty of20* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU21* General Public License for more details.22*23* You should have received a copy of the GNU General Public License24* along with this program; if not, write to the Free Software25* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA26* 02110-1301 USA27*28*/2930#ifndef __TEGRA_PCM_H__31#define __TEGRA_PCM_H__3233#include <mach/dma.h>3435struct tegra_pcm_dma_params {36unsigned long addr;37unsigned long wrap;38unsigned long width;39unsigned long req_sel;40};4142struct tegra_runtime_data {43struct snd_pcm_substream *substream;44spinlock_t lock;45int running;46int dma_pos;47int dma_pos_end;48int period_index;49int dma_req_idx;50struct tegra_dma_req dma_req[2];51struct tegra_dma_channel *dma_chan;52};5354#endif555657