| 1 | /* |
| 2 | * arch/ubicom32/include/asm/audio.h |
| 3 | * Audio include file |
| 4 | * |
| 5 | * (C) Copyright 2009, Ubicom, Inc. |
| 6 | * |
| 7 | * This file is part of the Ubicom32 Linux Kernel Port. |
| 8 | * |
| 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. |
| 13 | * |
| 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. |
| 18 | * |
| 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/>. |
| 22 | */ |
| 23 | |
| 24 | #ifndef _AUDIO_H |
| 25 | #define _AUDIO_H |
| 26 | |
| 27 | #include <asm/devtree.h> |
| 28 | #include <asm/audionode.h> |
| 29 | |
| 30 | /* |
| 31 | * Resource indices used to access IRQs via platform_get_resource |
| 32 | */ |
| 33 | #define AUDIO_MEM_RESOURCE 0 |
| 34 | #define AUDIO_TX_IRQ_RESOURCE 0 |
| 35 | #define AUDIO_RX_IRQ_RESOURCE 1 |
| 36 | |
| 37 | extern struct platform_device * __init audio_device_alloc(const char *driver_name, const char *node_name, const char *inst_name, int priv_size); |
| 38 | |
| 39 | #define audio_device_priv(pdev) (((struct ubi32pcm_platform_data *)(((struct platform_device *)(pdev))->dev.platform_data))->priv_data) |
| 40 | #endif |
| 41 | |