2 * arch/ubicom32/include/asm/pcm_tio.h
3 * Ubicom32 architecture PCM TIO definitions.
5 * (C) Copyright 2009, Ubicom, Inc.
7 * This file is part of the Ubicom32 Linux Kernel Port.
9 * The Ubicom32 Linux Kernel Port is free software: you can redistribute
10 * it and/or modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation, either version 2 of the
12 * License, or (at your option) any later version.
14 * The Ubicom32 Linux Kernel Port is distributed in the hope that it
15 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
16 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
17 * the GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with the Ubicom32 Linux Kernel Port. If not,
21 * see <http://www.gnu.org/licenses/>.
23 #ifndef _ASM_UBICOM32_PCM_TIO_H
24 #define _ASM_UBICOM32_PCM_TIO_H
26 #include <asm/devtree.h>
28 #define PCM_TIO_REGS_VERSION 2
31 * set this value to 1 to reload the parameters and restart the HRT
36 * Pointers to the input and output buffers
42 * Buffer size (see pcm_hrt.S for constraints)
47 * Current cycle. This variable increases every time half the buffer
53 * Fields below this line are not accessed by the HRT. They are purely
54 * informational for the user of this TIO.
58 * Version of this structure
63 * Number of channels supported
70 u32_t max_buffer_size
;
76 #define PCM_TIO_NODE_VERSION 1
78 struct devtree_node dn
;
80 struct pcm_tio_regs
*regs
;