GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / drivers / staging / dream / include / linux / msm_adsp.h
blobe775f3e94f1d1cbe76e23bb2cf14be68637e367a
1 /* drivers/staging/dream/include/linux/msm_adsp.h
3 * Copyright (c) QUALCOMM Incorporated
4 * Copyright (C) 2007 Google, Inc.
5 * Author: Iliyan Malchev <ibm@android.com>
7 * This software is licensed under the terms of the GNU General Public
8 * License version 2, as published by the Free Software Foundation, and
9 * may be copied, distributed, and modified under those terms.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
17 #ifndef __LINUX_MSM_ADSP_H
18 #define __LINUX_MSM_ADSP_H
20 #include <linux/types.h>
21 #include <linux/ioctl.h>
23 #define ADSP_IOCTL_MAGIC 'q'
25 /* ADSP_IOCTL_WRITE_COMMAND */
26 struct adsp_command_t {
27 uint16_t queue;
28 uint32_t len; /* bytes */
29 uint8_t *data;
32 /* ADSP_IOCTL_GET_EVENT */
33 struct adsp_event_t {
34 uint16_t type; /* 1 == event (RPC), 0 == message (adsp) */
35 uint32_t timeout_ms; /* -1 for infinite, 0 for immediate return */
36 uint16_t msg_id;
37 uint16_t flags; /* 1 == 16--bit event, 0 == 32-bit event */
38 uint32_t len; /* size in, number of bytes out */
39 uint8_t *data;
42 #define ADSP_IOCTL_ENABLE \
43 _IOR(ADSP_IOCTL_MAGIC, 1, unsigned)
45 #define ADSP_IOCTL_DISABLE \
46 _IOR(ADSP_IOCTL_MAGIC, 2, unsigned)
48 #define ADSP_IOCTL_DISABLE_ACK \
49 _IOR(ADSP_IOCTL_MAGIC, 3, unsigned)
51 #define ADSP_IOCTL_WRITE_COMMAND \
52 _IOR(ADSP_IOCTL_MAGIC, 4, struct adsp_command_t *)
54 #define ADSP_IOCTL_GET_EVENT \
55 _IOWR(ADSP_IOCTL_MAGIC, 5, struct adsp_event_data_t *)
57 #define ADSP_IOCTL_SET_CLKRATE \
58 _IOR(ADSP_IOCTL_MAGIC, 6, unsigned)
60 #define ADSP_IOCTL_DISABLE_EVENT_RSP \
61 _IOR(ADSP_IOCTL_MAGIC, 10, unsigned)
63 struct adsp_pmem_info {
64 int fd;
65 void *vaddr;
68 #define ADSP_IOCTL_REGISTER_PMEM \
69 _IOW(ADSP_IOCTL_MAGIC, 13, unsigned)
71 #define ADSP_IOCTL_UNREGISTER_PMEM \
72 _IOW(ADSP_IOCTL_MAGIC, 14, unsigned)
74 /* Cause any further GET_EVENT ioctls to fail (-ENODEV)
75 * until the device is closed and reopened. Useful for
76 * terminating event dispatch threads
78 #define ADSP_IOCTL_ABORT_EVENT_READ \
79 _IOW(ADSP_IOCTL_MAGIC, 15, unsigned)
81 #define ADSP_IOCTL_LINK_TASK \
82 _IOW(ADSP_IOCTL_MAGIC, 16, unsigned)
84 #endif