The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | **************************************************************************** |
| 11 | ****************************************************************************/ |
| 12 | #ifndef __LINUX_MSM_ADSP_H |
| 13 | #define __LINUX_MSM_ADSP_H |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 14 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 15 | #include <linux/types.h> |
| 16 | #include <linux/ioctl.h> |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 17 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 18 | #define ADSP_IOCTL_MAGIC 'q' |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 19 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 20 | struct adsp_command_t { |
| 21 | uint16_t queue; |
| 22 | uint32_t len; |
| 23 | uint8_t *data; |
| 24 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 25 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 26 | struct adsp_event_t { |
| 27 | uint16_t type; |
| 28 | uint32_t timeout_ms; |
| 29 | uint16_t msg_id; |
| 30 | uint16_t flags; |
| 31 | uint32_t len; |
| 32 | uint8_t *data; |
| 33 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 34 | |
David 'Digit' Turner | 9cfccef | 2009-06-12 14:37:15 +0200 | [diff] [blame] | 35 | #define ADSP_IOCTL_ENABLE _IOR(ADSP_IOCTL_MAGIC, 1, unsigned) |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 36 | |
David 'Digit' Turner | 9cfccef | 2009-06-12 14:37:15 +0200 | [diff] [blame] | 37 | #define ADSP_IOCTL_DISABLE _IOR(ADSP_IOCTL_MAGIC, 2, unsigned) |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 38 | |
David 'Digit' Turner | 9cfccef | 2009-06-12 14:37:15 +0200 | [diff] [blame] | 39 | #define ADSP_IOCTL_DISABLE_ACK _IOR(ADSP_IOCTL_MAGIC, 3, unsigned) |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 40 | |
David 'Digit' Turner | 9cfccef | 2009-06-12 14:37:15 +0200 | [diff] [blame] | 41 | #define ADSP_IOCTL_WRITE_COMMAND _IOR(ADSP_IOCTL_MAGIC, 4, struct adsp_command_t *) |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 42 | |
David 'Digit' Turner | 9cfccef | 2009-06-12 14:37:15 +0200 | [diff] [blame] | 43 | #define ADSP_IOCTL_GET_EVENT _IOWR(ADSP_IOCTL_MAGIC, 5, struct adsp_event_data_t *) |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 44 | |
David 'Digit' Turner | 9cfccef | 2009-06-12 14:37:15 +0200 | [diff] [blame] | 45 | #define ADSP_IOCTL_SET_CLKRATE _IOR(ADSP_IOCTL_MAGIC, 6, unsigned) |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 46 | |
David 'Digit' Turner | 9cfccef | 2009-06-12 14:37:15 +0200 | [diff] [blame] | 47 | #define ADSP_IOCTL_DISABLE_EVENT_RSP _IOR(ADSP_IOCTL_MAGIC, 10, unsigned) |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 48 | |
Iliyan Malchev | 1c8e109 | 2009-05-20 16:51:12 -0700 | [diff] [blame] | 49 | struct adsp_pmem_info { |
| 50 | int fd; |
| 51 | void *vaddr; |
| 52 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 53 | |
David 'Digit' Turner | 9cfccef | 2009-06-12 14:37:15 +0200 | [diff] [blame] | 54 | #define ADSP_IOCTL_REGISTER_PMEM _IOW(ADSP_IOCTL_MAGIC, 13, unsigned) |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 55 | |
David 'Digit' Turner | 9cfccef | 2009-06-12 14:37:15 +0200 | [diff] [blame] | 56 | #define ADSP_IOCTL_UNREGISTER_PMEM _IOW(ADSP_IOCTL_MAGIC, 14, unsigned) |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 57 | |
David 'Digit' Turner | 9cfccef | 2009-06-12 14:37:15 +0200 | [diff] [blame] | 58 | #define ADSP_IOCTL_ABORT_EVENT_READ _IOW(ADSP_IOCTL_MAGIC, 15, unsigned) |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 59 | |
David 'Digit' Turner | 9cfccef | 2009-06-12 14:37:15 +0200 | [diff] [blame] | 60 | #define ADSP_IOCTL_LINK_TASK _IOW(ADSP_IOCTL_MAGIC, 16, unsigned) |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 61 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 62 | #endif |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 63 | |