974d0cd63d0ff5b3db5a9180b9c9e1eab5d14d61
2 * arch/ubicom32/include/asm/audio.h
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/>.
27 #include <asm/devtree.h>
28 #include <asm/audionode.h>
31 * Resource indices used to access IRQs via platform_get_resource
33 #define AUDIO_MEM_RESOURCE 0
34 #define AUDIO_TX_IRQ_RESOURCE 0
35 #define AUDIO_RX_IRQ_RESOURCE 1
37 extern struct platform_device
* __init
audio_device_alloc(const char *driver_name
, const char *node_name
, const char *inst_name
, int priv_size
);
39 #define audio_device_priv(pdev) (((struct ubi32pcm_platform_data *)(((struct platform_device *)(pdev))->dev.platform_data))->priv_data)