blob: 91289c00d03645752dd4b2687b79a4cf2006db52 [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 Ferrisba8d4f42014-09-03 19:56:49 -070023#define SNDRV_FIREWIRE_EVENT_LOCK_STATUS 0x000010cc
Christopher Ferris38062f92014-07-09 15:33:25 -070024#define SNDRV_FIREWIRE_EVENT_DICE_NOTIFICATION 0xd1ce004e
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070025#define SNDRV_FIREWIRE_EVENT_EFW_RESPONSE 0x4e617475
Christopher Ferris05d08e92016-02-04 13:16:38 -080026#define SNDRV_FIREWIRE_EVENT_DIGI00X_MESSAGE 0x746e736c
Christopher Ferris525ce912017-07-26 13:12:53 -070027#define SNDRV_FIREWIRE_EVENT_MOTU_NOTIFICATION 0x64776479
Christopher Ferris05d08e92016-02-04 13:16:38 -080028struct snd_firewire_event_common {
Tao Baod7db5942015-01-28 10:07:51 -080029 unsigned int type;
Christopher Ferris38062f92014-07-09 15:33:25 -070030};
Christopher Ferris38062f92014-07-09 15:33:25 -070031struct snd_firewire_event_lock_status {
Christopher Ferris05d08e92016-02-04 13:16:38 -080032 unsigned int type;
Tao Baod7db5942015-01-28 10:07:51 -080033 unsigned int status;
Christopher Ferris38062f92014-07-09 15:33:25 -070034};
Christopher Ferris38062f92014-07-09 15:33:25 -070035struct snd_firewire_event_dice_notification {
Christopher Ferris05d08e92016-02-04 13:16:38 -080036 unsigned int type;
Tao Baod7db5942015-01-28 10:07:51 -080037 unsigned int notification;
Christopher Ferris38062f92014-07-09 15:33:25 -070038};
Tao Baod7db5942015-01-28 10:07:51 -080039#define SND_EFW_TRANSACTION_USER_SEQNUM_MAX ((__u32) ((__u16) ~0) - 1)
Christopher Ferris05d08e92016-02-04 13:16:38 -080040struct snd_efw_transaction {
Tao Baod7db5942015-01-28 10:07:51 -080041 __be32 length;
42 __be32 version;
43 __be32 seqnum;
Christopher Ferris05d08e92016-02-04 13:16:38 -080044 __be32 category;
Tao Baod7db5942015-01-28 10:07:51 -080045 __be32 command;
46 __be32 status;
47 __be32 params[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -080048};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070049struct snd_firewire_event_efw_response {
Tao Baod7db5942015-01-28 10:07:51 -080050 unsigned int type;
51 __be32 response[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -080052};
53struct snd_firewire_event_digi00x_message {
54 unsigned int type;
55 __u32 message;
Christopher Ferris05d08e92016-02-04 13:16:38 -080056};
Christopher Ferris525ce912017-07-26 13:12:53 -070057struct snd_firewire_event_motu_notification {
58 unsigned int type;
59 __u32 message;
60};
Christopher Ferris38062f92014-07-09 15:33:25 -070061union snd_firewire_event {
Tao Baod7db5942015-01-28 10:07:51 -080062 struct snd_firewire_event_common common;
63 struct snd_firewire_event_lock_status lock_status;
Christopher Ferris05d08e92016-02-04 13:16:38 -080064 struct snd_firewire_event_dice_notification dice_notification;
Tao Baod7db5942015-01-28 10:07:51 -080065 struct snd_firewire_event_efw_response efw_response;
Christopher Ferris05d08e92016-02-04 13:16:38 -080066 struct snd_firewire_event_digi00x_message digi00x_message;
Christopher Ferris525ce912017-07-26 13:12:53 -070067 struct snd_firewire_event_motu_notification motu_notification;
Christopher Ferris38062f92014-07-09 15:33:25 -070068};
69#define SNDRV_FIREWIRE_IOCTL_GET_INFO _IOR('H', 0xf8, struct snd_firewire_get_info)
70#define SNDRV_FIREWIRE_IOCTL_LOCK _IO('H', 0xf9)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070071#define SNDRV_FIREWIRE_IOCTL_UNLOCK _IO('H', 0xfa)
Christopher Ferris38062f92014-07-09 15:33:25 -070072#define SNDRV_FIREWIRE_TYPE_DICE 1
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070073#define SNDRV_FIREWIRE_TYPE_FIREWORKS 2
74#define SNDRV_FIREWIRE_TYPE_BEBOB 3
Christopher Ferris05d08e92016-02-04 13:16:38 -080075#define SNDRV_FIREWIRE_TYPE_OXFW 4
76#define SNDRV_FIREWIRE_TYPE_DIGI00X 5
Christopher Ferris05d08e92016-02-04 13:16:38 -080077#define SNDRV_FIREWIRE_TYPE_TASCAM 6
Christopher Ferris525ce912017-07-26 13:12:53 -070078#define SNDRV_FIREWIRE_TYPE_MOTU 7
79#define SNDRV_FIREWIRE_TYPE_FIREFACE 8
Christopher Ferris38062f92014-07-09 15:33:25 -070080struct snd_firewire_get_info {
Tao Baod7db5942015-01-28 10:07:51 -080081 unsigned int type;
82 unsigned int card;
Christopher Ferris05d08e92016-02-04 13:16:38 -080083 unsigned char guid[8];
Tao Baod7db5942015-01-28 10:07:51 -080084 char device_name[16];
Christopher Ferris38062f92014-07-09 15:33:25 -070085};
86#endif