blob: f489408e1476acb1fc15e60845187b2048cfca05 [file] [log] [blame]
Christopher Ferris38062f92014-07-09 15:33:25 -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_FIREWIRE_H_INCLUDED
20#define _UAPI_SOUND_FIREWIRE_H_INCLUDED
21#include <linux/ioctl.h>
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070022#include <linux/types.h>
Christopher Ferris38062f92014-07-09 15:33:25 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070024#define SNDRV_FIREWIRE_EVENT_LOCK_STATUS 0x000010cc
Christopher Ferris38062f92014-07-09 15:33:25 -070025#define SNDRV_FIREWIRE_EVENT_DICE_NOTIFICATION 0xd1ce004e
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070026#define SNDRV_FIREWIRE_EVENT_EFW_RESPONSE 0x4e617475
Christopher Ferris05d08e92016-02-04 13:16:38 -080027#define SNDRV_FIREWIRE_EVENT_DIGI00X_MESSAGE 0x746e736c
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080029struct snd_firewire_event_common {
Tao Baod7db5942015-01-28 10:07:51 -080030 unsigned int type;
Christopher Ferris38062f92014-07-09 15:33:25 -070031};
Christopher Ferris38062f92014-07-09 15:33:25 -070032struct snd_firewire_event_lock_status {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080034 unsigned int type;
Tao Baod7db5942015-01-28 10:07:51 -080035 unsigned int status;
Christopher Ferris38062f92014-07-09 15:33:25 -070036};
Christopher Ferris38062f92014-07-09 15:33:25 -070037struct snd_firewire_event_dice_notification {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080039 unsigned int type;
Tao Baod7db5942015-01-28 10:07:51 -080040 unsigned int notification;
Christopher Ferris38062f92014-07-09 15:33:25 -070041};
Tao Baod7db5942015-01-28 10:07:51 -080042#define SND_EFW_TRANSACTION_USER_SEQNUM_MAX ((__u32) ((__u16) ~0) - 1)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080044struct snd_efw_transaction {
Tao Baod7db5942015-01-28 10:07:51 -080045 __be32 length;
46 __be32 version;
47 __be32 seqnum;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080049 __be32 category;
Tao Baod7db5942015-01-28 10:07:51 -080050 __be32 command;
51 __be32 status;
52 __be32 params[0];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080054};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070055struct snd_firewire_event_efw_response {
Tao Baod7db5942015-01-28 10:07:51 -080056 unsigned int type;
57 __be32 response[0];
Christopher Ferris38062f92014-07-09 15:33:25 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080059};
60struct snd_firewire_event_digi00x_message {
61 unsigned int type;
62 __u32 message;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64};
Christopher Ferris38062f92014-07-09 15:33:25 -070065union snd_firewire_event {
Tao Baod7db5942015-01-28 10:07:51 -080066 struct snd_firewire_event_common common;
67 struct snd_firewire_event_lock_status lock_status;
Christopher Ferris38062f92014-07-09 15:33:25 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080069 struct snd_firewire_event_dice_notification dice_notification;
Tao Baod7db5942015-01-28 10:07:51 -080070 struct snd_firewire_event_efw_response efw_response;
Christopher Ferris05d08e92016-02-04 13:16:38 -080071 struct snd_firewire_event_digi00x_message digi00x_message;
Christopher Ferris38062f92014-07-09 15:33:25 -070072};
Christopher Ferris05d08e92016-02-04 13:16:38 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070074#define SNDRV_FIREWIRE_IOCTL_GET_INFO _IOR('H', 0xf8, struct snd_firewire_get_info)
75#define SNDRV_FIREWIRE_IOCTL_LOCK _IO('H', 0xf9)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070076#define SNDRV_FIREWIRE_IOCTL_UNLOCK _IO('H', 0xfa)
Christopher Ferris38062f92014-07-09 15:33:25 -070077#define SNDRV_FIREWIRE_TYPE_DICE 1
Christopher Ferris05d08e92016-02-04 13:16:38 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070079#define SNDRV_FIREWIRE_TYPE_FIREWORKS 2
80#define SNDRV_FIREWIRE_TYPE_BEBOB 3
Christopher Ferris05d08e92016-02-04 13:16:38 -080081#define SNDRV_FIREWIRE_TYPE_OXFW 4
82#define SNDRV_FIREWIRE_TYPE_DIGI00X 5
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080084#define SNDRV_FIREWIRE_TYPE_TASCAM 6
Christopher Ferris38062f92014-07-09 15:33:25 -070085struct snd_firewire_get_info {
Tao Baod7db5942015-01-28 10:07:51 -080086 unsigned int type;
87 unsigned int card;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080089 unsigned char guid[8];
Tao Baod7db5942015-01-28 10:07:51 -080090 char device_name[16];
Christopher Ferris38062f92014-07-09 15:33:25 -070091};
92#endif
Christopher Ferris05d08e92016-02-04 13:16:38 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */