blob: fb58991a8f1f6504166b2c4cfa49d2c4adfba3d8 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI__SOUND_ASEQUENCER_H
20#define _UAPI__SOUND_ASEQUENCER_H
Tao Baod7db5942015-01-28 10:07:51 -080021#define SNDRV_SEQ_VERSION SNDRV_PROTOCOL_VERSION(1, 0, 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070022#define SNDRV_SEQ_EVENT_SYSTEM 0
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define SNDRV_SEQ_EVENT_RESULT 1
25#define SNDRV_SEQ_EVENT_NOTE 5
26#define SNDRV_SEQ_EVENT_NOTEON 6
27#define SNDRV_SEQ_EVENT_NOTEOFF 7
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define SNDRV_SEQ_EVENT_KEYPRESS 8
30#define SNDRV_SEQ_EVENT_CONTROLLER 10
31#define SNDRV_SEQ_EVENT_PGMCHANGE 11
32#define SNDRV_SEQ_EVENT_CHANPRESS 12
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define SNDRV_SEQ_EVENT_PITCHBEND 13
35#define SNDRV_SEQ_EVENT_CONTROL14 14
36#define SNDRV_SEQ_EVENT_NONREGPARAM 15
37#define SNDRV_SEQ_EVENT_REGPARAM 16
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define SNDRV_SEQ_EVENT_SONGPOS 20
40#define SNDRV_SEQ_EVENT_SONGSEL 21
41#define SNDRV_SEQ_EVENT_QFRAME 22
42#define SNDRV_SEQ_EVENT_TIMESIGN 23
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define SNDRV_SEQ_EVENT_KEYSIGN 24
45#define SNDRV_SEQ_EVENT_START 30
46#define SNDRV_SEQ_EVENT_CONTINUE 31
47#define SNDRV_SEQ_EVENT_STOP 32
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define SNDRV_SEQ_EVENT_SETPOS_TICK 33
50#define SNDRV_SEQ_EVENT_SETPOS_TIME 34
51#define SNDRV_SEQ_EVENT_TEMPO 35
52#define SNDRV_SEQ_EVENT_CLOCK 36
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define SNDRV_SEQ_EVENT_TICK 37
55#define SNDRV_SEQ_EVENT_QUEUE_SKEW 38
56#define SNDRV_SEQ_EVENT_TUNE_REQUEST 40
57#define SNDRV_SEQ_EVENT_RESET 41
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define SNDRV_SEQ_EVENT_SENSING 42
60#define SNDRV_SEQ_EVENT_ECHO 50
61#define SNDRV_SEQ_EVENT_OSS 51
62#define SNDRV_SEQ_EVENT_CLIENT_START 60
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define SNDRV_SEQ_EVENT_CLIENT_EXIT 61
65#define SNDRV_SEQ_EVENT_CLIENT_CHANGE 62
66#define SNDRV_SEQ_EVENT_PORT_START 63
67#define SNDRV_SEQ_EVENT_PORT_EXIT 64
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define SNDRV_SEQ_EVENT_PORT_CHANGE 65
70#define SNDRV_SEQ_EVENT_PORT_SUBSCRIBED 66
71#define SNDRV_SEQ_EVENT_PORT_UNSUBSCRIBED 67
72#define SNDRV_SEQ_EVENT_USR0 90
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define SNDRV_SEQ_EVENT_USR1 91
75#define SNDRV_SEQ_EVENT_USR2 92
76#define SNDRV_SEQ_EVENT_USR3 93
77#define SNDRV_SEQ_EVENT_USR4 94
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define SNDRV_SEQ_EVENT_USR5 95
80#define SNDRV_SEQ_EVENT_USR6 96
81#define SNDRV_SEQ_EVENT_USR7 97
82#define SNDRV_SEQ_EVENT_USR8 98
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define SNDRV_SEQ_EVENT_USR9 99
85#define SNDRV_SEQ_EVENT_SYSEX 130
86#define SNDRV_SEQ_EVENT_BOUNCE 131
87#define SNDRV_SEQ_EVENT_USR_VAR0 135
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define SNDRV_SEQ_EVENT_USR_VAR1 136
90#define SNDRV_SEQ_EVENT_USR_VAR2 137
91#define SNDRV_SEQ_EVENT_USR_VAR3 138
92#define SNDRV_SEQ_EVENT_USR_VAR4 139
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define SNDRV_SEQ_EVENT_KERNEL_ERROR 150
95#define SNDRV_SEQ_EVENT_KERNEL_QUOTE 151
96#define SNDRV_SEQ_EVENT_NONE 255
97typedef unsigned char snd_seq_event_type_t;
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99struct snd_seq_addr {
Tao Baod7db5942015-01-28 10:07:51 -0800100 unsigned char client;
101 unsigned char port;
Ben Cheng655a7c02013-10-16 16:09:24 -0700102};
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104struct snd_seq_connect {
Tao Baod7db5942015-01-28 10:07:51 -0800105 struct snd_seq_addr sender;
106 struct snd_seq_addr dest;
Ben Cheng655a7c02013-10-16 16:09:24 -0700107};
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define SNDRV_SEQ_ADDRESS_UNKNOWN 253
110#define SNDRV_SEQ_ADDRESS_SUBSCRIBERS 254
111#define SNDRV_SEQ_ADDRESS_BROADCAST 255
112#define SNDRV_SEQ_QUEUE_DIRECT 253
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114#define SNDRV_SEQ_TIME_STAMP_TICK (0 << 0)
115#define SNDRV_SEQ_TIME_STAMP_REAL (1 << 0)
116#define SNDRV_SEQ_TIME_STAMP_MASK (1 << 0)
117#define SNDRV_SEQ_TIME_MODE_ABS (0 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119#define SNDRV_SEQ_TIME_MODE_REL (1 << 1)
120#define SNDRV_SEQ_TIME_MODE_MASK (1 << 1)
121#define SNDRV_SEQ_EVENT_LENGTH_FIXED (0 << 2)
122#define SNDRV_SEQ_EVENT_LENGTH_VARIABLE (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124#define SNDRV_SEQ_EVENT_LENGTH_VARUSR (2 << 2)
125#define SNDRV_SEQ_EVENT_LENGTH_MASK (3 << 2)
126#define SNDRV_SEQ_PRIORITY_NORMAL (0 << 4)
127#define SNDRV_SEQ_PRIORITY_HIGH (1 << 4)
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129#define SNDRV_SEQ_PRIORITY_MASK (1 << 4)
Ben Cheng655a7c02013-10-16 16:09:24 -0700130struct snd_seq_ev_note {
Tao Baod7db5942015-01-28 10:07:51 -0800131 unsigned char channel;
132 unsigned char note;
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 unsigned char velocity;
135 unsigned char off_velocity;
136 unsigned int duration;
Ben Cheng655a7c02013-10-16 16:09:24 -0700137};
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139struct snd_seq_ev_ctrl {
Tao Baod7db5942015-01-28 10:07:51 -0800140 unsigned char channel;
141 unsigned char unused1, unused2, unused3;
142 unsigned int param;
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 signed int value;
Ben Cheng655a7c02013-10-16 16:09:24 -0700145};
146struct snd_seq_ev_raw8 {
Tao Baod7db5942015-01-28 10:07:51 -0800147 unsigned char d[12];
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149};
150struct snd_seq_ev_raw32 {
Tao Baod7db5942015-01-28 10:07:51 -0800151 unsigned int d[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700152};
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154struct snd_seq_ev_ext {
Tao Baod7db5942015-01-28 10:07:51 -0800155 unsigned int len;
156 void * ptr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700157} __attribute__((packed));
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159struct snd_seq_result {
Tao Baod7db5942015-01-28 10:07:51 -0800160 int event;
161 int result;
Ben Cheng655a7c02013-10-16 16:09:24 -0700162};
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164struct snd_seq_real_time {
Tao Baod7db5942015-01-28 10:07:51 -0800165 unsigned int tv_sec;
166 unsigned int tv_nsec;
Ben Cheng655a7c02013-10-16 16:09:24 -0700167};
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169typedef unsigned int snd_seq_tick_time_t;
170union snd_seq_timestamp {
Tao Baod7db5942015-01-28 10:07:51 -0800171 snd_seq_tick_time_t tick;
172 struct snd_seq_real_time time;
Ben Cheng655a7c02013-10-16 16:09:24 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174};
175struct snd_seq_queue_skew {
Tao Baod7db5942015-01-28 10:07:51 -0800176 unsigned int value;
177 unsigned int base;
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179};
180struct snd_seq_ev_queue_control {
Tao Baod7db5942015-01-28 10:07:51 -0800181 unsigned char queue;
182 unsigned char pad[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800184 union {
185 signed int value;
186 union snd_seq_timestamp time;
187 unsigned int position;
Ben Cheng655a7c02013-10-16 16:09:24 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800189 struct snd_seq_queue_skew skew;
190 unsigned int d32[2];
191 unsigned char d8[8];
192 } param;
Ben Cheng655a7c02013-10-16 16:09:24 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194};
195struct snd_seq_ev_quote {
Tao Baod7db5942015-01-28 10:07:51 -0800196 struct snd_seq_addr origin;
197 unsigned short value;
Ben Cheng655a7c02013-10-16 16:09:24 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800199 struct snd_seq_event * event;
Ben Cheng655a7c02013-10-16 16:09:24 -0700200} __attribute__((packed));
201struct snd_seq_event {
Tao Baod7db5942015-01-28 10:07:51 -0800202 snd_seq_event_type_t type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800204 unsigned char flags;
205 char tag;
206 unsigned char queue;
207 union snd_seq_timestamp time;
Ben Cheng655a7c02013-10-16 16:09:24 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800209 struct snd_seq_addr source;
210 struct snd_seq_addr dest;
211 union {
212 struct snd_seq_ev_note note;
Ben Cheng655a7c02013-10-16 16:09:24 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800214 struct snd_seq_ev_ctrl control;
215 struct snd_seq_ev_raw8 raw8;
216 struct snd_seq_ev_raw32 raw32;
217 struct snd_seq_ev_ext ext;
Ben Cheng655a7c02013-10-16 16:09:24 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800219 struct snd_seq_ev_queue_control queue;
220 union snd_seq_timestamp time;
221 struct snd_seq_addr addr;
222 struct snd_seq_connect connect;
Ben Cheng655a7c02013-10-16 16:09:24 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800224 struct snd_seq_result result;
225 struct snd_seq_ev_quote quote;
226 } data;
Ben Cheng655a7c02013-10-16 16:09:24 -0700227};
228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229struct snd_seq_event_bounce {
Tao Baod7db5942015-01-28 10:07:51 -0800230 int err;
231 struct snd_seq_event event;
Ben Cheng655a7c02013-10-16 16:09:24 -0700232};
233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234struct snd_seq_system_info {
Tao Baod7db5942015-01-28 10:07:51 -0800235 int queues;
236 int clients;
237 int ports;
Ben Cheng655a7c02013-10-16 16:09:24 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800239 int channels;
240 int cur_clients;
241 int cur_queues;
242 char reserved[24];
Ben Cheng655a7c02013-10-16 16:09:24 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
244};
245struct snd_seq_running_info {
Tao Baod7db5942015-01-28 10:07:51 -0800246 unsigned char client;
247 unsigned char big_endian;
Ben Cheng655a7c02013-10-16 16:09:24 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800249 unsigned char cpu_mode;
250 unsigned char pad;
251 unsigned char reserved[12];
Ben Cheng655a7c02013-10-16 16:09:24 -0700252};
253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
254#define SNDRV_SEQ_CLIENT_SYSTEM 0
255#define SNDRV_SEQ_CLIENT_DUMMY 14
256#define SNDRV_SEQ_CLIENT_OSS 15
257typedef int __bitwise snd_seq_client_type_t;
258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
259#define NO_CLIENT ((__force snd_seq_client_type_t) 0)
260#define USER_CLIENT ((__force snd_seq_client_type_t) 1)
261#define KERNEL_CLIENT ((__force snd_seq_client_type_t) 2)
Tao Baod7db5942015-01-28 10:07:51 -0800262#define SNDRV_SEQ_FILTER_BROADCAST (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800264#define SNDRV_SEQ_FILTER_MULTICAST (1 << 1)
265#define SNDRV_SEQ_FILTER_BOUNCE (1 << 2)
266#define SNDRV_SEQ_FILTER_USE_EVENT (1 << 31)
Ben Cheng655a7c02013-10-16 16:09:24 -0700267struct snd_seq_client_info {
268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800269 int client;
270 snd_seq_client_type_t type;
271 char name[64];
272 unsigned int filter;
Ben Cheng655a7c02013-10-16 16:09:24 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800274 unsigned char multicast_filter[8];
275 unsigned char event_filter[32];
276 int num_ports;
277 int event_lost;
Ben Cheng655a7c02013-10-16 16:09:24 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800279 char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700280};
281struct snd_seq_client_pool {
Tao Baod7db5942015-01-28 10:07:51 -0800282 int client;
Ben Cheng655a7c02013-10-16 16:09:24 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800284 int output_pool;
285 int input_pool;
286 int output_room;
287 int output_free;
Ben Cheng655a7c02013-10-16 16:09:24 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800289 int input_free;
290 char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700291};
Tao Baod7db5942015-01-28 10:07:51 -0800292#define SNDRV_SEQ_REMOVE_INPUT (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800294#define SNDRV_SEQ_REMOVE_OUTPUT (1 << 1)
295#define SNDRV_SEQ_REMOVE_DEST (1 << 2)
296#define SNDRV_SEQ_REMOVE_DEST_CHANNEL (1 << 3)
297#define SNDRV_SEQ_REMOVE_TIME_BEFORE (1 << 4)
Ben Cheng655a7c02013-10-16 16:09:24 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800299#define SNDRV_SEQ_REMOVE_TIME_AFTER (1 << 5)
300#define SNDRV_SEQ_REMOVE_TIME_TICK (1 << 6)
301#define SNDRV_SEQ_REMOVE_EVENT_TYPE (1 << 7)
302#define SNDRV_SEQ_REMOVE_IGNORE_OFF (1 << 8)
Ben Cheng655a7c02013-10-16 16:09:24 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800304#define SNDRV_SEQ_REMOVE_TAG_MATCH (1 << 9)
Ben Cheng655a7c02013-10-16 16:09:24 -0700305struct snd_seq_remove_events {
Tao Baod7db5942015-01-28 10:07:51 -0800306 unsigned int remove_mode;
307 union snd_seq_timestamp time;
Ben Cheng655a7c02013-10-16 16:09:24 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800309 unsigned char queue;
310 struct snd_seq_addr dest;
311 unsigned char channel;
312 int type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800314 char tag;
315 int reserved[10];
Ben Cheng655a7c02013-10-16 16:09:24 -0700316};
317#define SNDRV_SEQ_PORT_SYSTEM_TIMER 0
318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
319#define SNDRV_SEQ_PORT_SYSTEM_ANNOUNCE 1
Tao Baod7db5942015-01-28 10:07:51 -0800320#define SNDRV_SEQ_PORT_CAP_READ (1 << 0)
321#define SNDRV_SEQ_PORT_CAP_WRITE (1 << 1)
322#define SNDRV_SEQ_PORT_CAP_SYNC_READ (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800324#define SNDRV_SEQ_PORT_CAP_SYNC_WRITE (1 << 3)
325#define SNDRV_SEQ_PORT_CAP_DUPLEX (1 << 4)
326#define SNDRV_SEQ_PORT_CAP_SUBS_READ (1 << 5)
327#define SNDRV_SEQ_PORT_CAP_SUBS_WRITE (1 << 6)
Ben Cheng655a7c02013-10-16 16:09:24 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800329#define SNDRV_SEQ_PORT_CAP_NO_EXPORT (1 << 7)
330#define SNDRV_SEQ_PORT_TYPE_SPECIFIC (1 << 0)
331#define SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC (1 << 1)
332#define SNDRV_SEQ_PORT_TYPE_MIDI_GM (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800334#define SNDRV_SEQ_PORT_TYPE_MIDI_GS (1 << 3)
335#define SNDRV_SEQ_PORT_TYPE_MIDI_XG (1 << 4)
336#define SNDRV_SEQ_PORT_TYPE_MIDI_MT32 (1 << 5)
337#define SNDRV_SEQ_PORT_TYPE_MIDI_GM2 (1 << 6)
Ben Cheng655a7c02013-10-16 16:09:24 -0700338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800339#define SNDRV_SEQ_PORT_TYPE_SYNTH (1 << 10)
340#define SNDRV_SEQ_PORT_TYPE_DIRECT_SAMPLE (1 << 11)
341#define SNDRV_SEQ_PORT_TYPE_SAMPLE (1 << 12)
342#define SNDRV_SEQ_PORT_TYPE_HARDWARE (1 << 16)
Ben Cheng655a7c02013-10-16 16:09:24 -0700343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800344#define SNDRV_SEQ_PORT_TYPE_SOFTWARE (1 << 17)
345#define SNDRV_SEQ_PORT_TYPE_SYNTHESIZER (1 << 18)
346#define SNDRV_SEQ_PORT_TYPE_PORT (1 << 19)
347#define SNDRV_SEQ_PORT_TYPE_APPLICATION (1 << 20)
Ben Cheng655a7c02013-10-16 16:09:24 -0700348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800349#define SNDRV_SEQ_PORT_FLG_GIVEN_PORT (1 << 0)
350#define SNDRV_SEQ_PORT_FLG_TIMESTAMP (1 << 1)
351#define SNDRV_SEQ_PORT_FLG_TIME_REAL (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700352struct snd_seq_port_info {
353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800354 struct snd_seq_addr addr;
355 char name[64];
356 unsigned int capability;
357 unsigned int type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800359 int midi_channels;
360 int midi_voices;
361 int synth_voices;
362 int read_use;
Ben Cheng655a7c02013-10-16 16:09:24 -0700363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800364 int write_use;
365 void * kernel;
366 unsigned int flags;
367 unsigned char time_queue;
Ben Cheng655a7c02013-10-16 16:09:24 -0700368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800369 char reserved[59];
Ben Cheng655a7c02013-10-16 16:09:24 -0700370};
Tao Baod7db5942015-01-28 10:07:51 -0800371#define SNDRV_SEQ_QUEUE_FLG_SYNC (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700372struct snd_seq_queue_info {
373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800374 int queue;
375 int owner;
376 unsigned locked : 1;
377 char name[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800379 unsigned int flags;
380 char reserved[60];
Ben Cheng655a7c02013-10-16 16:09:24 -0700381};
382struct snd_seq_queue_status {
383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800384 int queue;
385 int events;
386 snd_seq_tick_time_t tick;
387 struct snd_seq_real_time time;
Ben Cheng655a7c02013-10-16 16:09:24 -0700388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800389 int running;
390 int flags;
391 char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700392};
393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
394struct snd_seq_queue_tempo {
Tao Baod7db5942015-01-28 10:07:51 -0800395 int queue;
396 unsigned int tempo;
397 int ppq;
Ben Cheng655a7c02013-10-16 16:09:24 -0700398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800399 unsigned int skew_value;
400 unsigned int skew_base;
401 char reserved[24];
Ben Cheng655a7c02013-10-16 16:09:24 -0700402};
403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
404#define SNDRV_SEQ_TIMER_ALSA 0
405#define SNDRV_SEQ_TIMER_MIDI_CLOCK 1
406#define SNDRV_SEQ_TIMER_MIDI_TICK 2
407struct snd_seq_queue_timer {
408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800409 int queue;
410 int type;
411 union {
412 struct {
Ben Cheng655a7c02013-10-16 16:09:24 -0700413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800414 struct snd_timer_id id;
415 unsigned int resolution;
416 } alsa;
417 } u;
Ben Cheng655a7c02013-10-16 16:09:24 -0700418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800419 char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700420};
421struct snd_seq_queue_client {
Tao Baod7db5942015-01-28 10:07:51 -0800422 int queue;
Ben Cheng655a7c02013-10-16 16:09:24 -0700423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800424 int client;
425 int used;
426 char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700427};
428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800429#define SNDRV_SEQ_PORT_SUBS_EXCLUSIVE (1 << 0)
430#define SNDRV_SEQ_PORT_SUBS_TIMESTAMP (1 << 1)
431#define SNDRV_SEQ_PORT_SUBS_TIME_REAL (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700432struct snd_seq_port_subscribe {
433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800434 struct snd_seq_addr sender;
435 struct snd_seq_addr dest;
436 unsigned int voices;
437 unsigned int flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800439 unsigned char queue;
440 unsigned char pad[3];
441 char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700442};
443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
444#define SNDRV_SEQ_QUERY_SUBS_READ 0
445#define SNDRV_SEQ_QUERY_SUBS_WRITE 1
446struct snd_seq_query_subs {
Tao Baod7db5942015-01-28 10:07:51 -0800447 struct snd_seq_addr root;
Ben Cheng655a7c02013-10-16 16:09:24 -0700448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800449 int type;
450 int index;
451 int num_subs;
452 struct snd_seq_addr addr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800454 unsigned char queue;
455 unsigned int flags;
456 char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700457};
458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800459#define SNDRV_SEQ_IOCTL_PVERSION _IOR('S', 0x00, int)
460#define SNDRV_SEQ_IOCTL_CLIENT_ID _IOR('S', 0x01, int)
Ben Cheng655a7c02013-10-16 16:09:24 -0700461#define SNDRV_SEQ_IOCTL_SYSTEM_INFO _IOWR('S', 0x02, struct snd_seq_system_info)
462#define SNDRV_SEQ_IOCTL_RUNNING_MODE _IOWR('S', 0x03, struct snd_seq_running_info)
463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
464#define SNDRV_SEQ_IOCTL_GET_CLIENT_INFO _IOWR('S', 0x10, struct snd_seq_client_info)
Tao Baod7db5942015-01-28 10:07:51 -0800465#define SNDRV_SEQ_IOCTL_SET_CLIENT_INFO _IOW('S', 0x11, struct snd_seq_client_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700466#define SNDRV_SEQ_IOCTL_CREATE_PORT _IOWR('S', 0x20, struct snd_seq_port_info)
Tao Baod7db5942015-01-28 10:07:51 -0800467#define SNDRV_SEQ_IOCTL_DELETE_PORT _IOW('S', 0x21, struct snd_seq_port_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
469#define SNDRV_SEQ_IOCTL_GET_PORT_INFO _IOWR('S', 0x22, struct snd_seq_port_info)
Tao Baod7db5942015-01-28 10:07:51 -0800470#define SNDRV_SEQ_IOCTL_SET_PORT_INFO _IOW('S', 0x23, struct snd_seq_port_info)
471#define SNDRV_SEQ_IOCTL_SUBSCRIBE_PORT _IOW('S', 0x30, struct snd_seq_port_subscribe)
472#define SNDRV_SEQ_IOCTL_UNSUBSCRIBE_PORT _IOW('S', 0x31, struct snd_seq_port_subscribe)
Ben Cheng655a7c02013-10-16 16:09:24 -0700473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
474#define SNDRV_SEQ_IOCTL_CREATE_QUEUE _IOWR('S', 0x32, struct snd_seq_queue_info)
Tao Baod7db5942015-01-28 10:07:51 -0800475#define SNDRV_SEQ_IOCTL_DELETE_QUEUE _IOW('S', 0x33, struct snd_seq_queue_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700476#define SNDRV_SEQ_IOCTL_GET_QUEUE_INFO _IOWR('S', 0x34, struct snd_seq_queue_info)
477#define SNDRV_SEQ_IOCTL_SET_QUEUE_INFO _IOWR('S', 0x35, struct snd_seq_queue_info)
478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
479#define SNDRV_SEQ_IOCTL_GET_NAMED_QUEUE _IOWR('S', 0x36, struct snd_seq_queue_info)
480#define SNDRV_SEQ_IOCTL_GET_QUEUE_STATUS _IOWR('S', 0x40, struct snd_seq_queue_status)
481#define SNDRV_SEQ_IOCTL_GET_QUEUE_TEMPO _IOWR('S', 0x41, struct snd_seq_queue_tempo)
Tao Baod7db5942015-01-28 10:07:51 -0800482#define SNDRV_SEQ_IOCTL_SET_QUEUE_TEMPO _IOW('S', 0x42, struct snd_seq_queue_tempo)
Ben Cheng655a7c02013-10-16 16:09:24 -0700483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
484#define SNDRV_SEQ_IOCTL_GET_QUEUE_OWNER _IOWR('S', 0x43, struct snd_seq_queue_owner)
Tao Baod7db5942015-01-28 10:07:51 -0800485#define SNDRV_SEQ_IOCTL_SET_QUEUE_OWNER _IOW('S', 0x44, struct snd_seq_queue_owner)
Ben Cheng655a7c02013-10-16 16:09:24 -0700486#define SNDRV_SEQ_IOCTL_GET_QUEUE_TIMER _IOWR('S', 0x45, struct snd_seq_queue_timer)
Tao Baod7db5942015-01-28 10:07:51 -0800487#define SNDRV_SEQ_IOCTL_SET_QUEUE_TIMER _IOW('S', 0x46, struct snd_seq_queue_timer)
Ben Cheng655a7c02013-10-16 16:09:24 -0700488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
489#define SNDRV_SEQ_IOCTL_GET_QUEUE_CLIENT _IOWR('S', 0x49, struct snd_seq_queue_client)
Tao Baod7db5942015-01-28 10:07:51 -0800490#define SNDRV_SEQ_IOCTL_SET_QUEUE_CLIENT _IOW('S', 0x4a, struct snd_seq_queue_client)
Ben Cheng655a7c02013-10-16 16:09:24 -0700491#define SNDRV_SEQ_IOCTL_GET_CLIENT_POOL _IOWR('S', 0x4b, struct snd_seq_client_pool)
Tao Baod7db5942015-01-28 10:07:51 -0800492#define SNDRV_SEQ_IOCTL_SET_CLIENT_POOL _IOW('S', 0x4c, struct snd_seq_client_pool)
Ben Cheng655a7c02013-10-16 16:09:24 -0700493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800494#define SNDRV_SEQ_IOCTL_REMOVE_EVENTS _IOW('S', 0x4e, struct snd_seq_remove_events)
Ben Cheng655a7c02013-10-16 16:09:24 -0700495#define SNDRV_SEQ_IOCTL_QUERY_SUBS _IOWR('S', 0x4f, struct snd_seq_query_subs)
496#define SNDRV_SEQ_IOCTL_GET_SUBSCRIPTION _IOWR('S', 0x50, struct snd_seq_port_subscribe)
497#define SNDRV_SEQ_IOCTL_QUERY_NEXT_CLIENT _IOWR('S', 0x51, struct snd_seq_client_info)
498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
499#define SNDRV_SEQ_IOCTL_QUERY_NEXT_PORT _IOWR('S', 0x52, struct snd_seq_port_info)
500#endif