blob: fc478f896a424a4266d52b85345c7412c03800bb [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 Ferris05d08e92016-02-04 13:16:38 -080027struct snd_firewire_event_common {
Tao Baod7db5942015-01-28 10:07:51 -080028 unsigned int type;
Christopher Ferris38062f92014-07-09 15:33:25 -070029};
Christopher Ferris38062f92014-07-09 15:33:25 -070030struct snd_firewire_event_lock_status {
Christopher Ferris05d08e92016-02-04 13:16:38 -080031 unsigned int type;
Tao Baod7db5942015-01-28 10:07:51 -080032 unsigned int status;
Christopher Ferris38062f92014-07-09 15:33:25 -070033};
Christopher Ferris38062f92014-07-09 15:33:25 -070034struct snd_firewire_event_dice_notification {
Christopher Ferris05d08e92016-02-04 13:16:38 -080035 unsigned int type;
Tao Baod7db5942015-01-28 10:07:51 -080036 unsigned int notification;
Christopher Ferris38062f92014-07-09 15:33:25 -070037};
Tao Baod7db5942015-01-28 10:07:51 -080038#define SND_EFW_TRANSACTION_USER_SEQNUM_MAX ((__u32) ((__u16) ~0) - 1)
Christopher Ferris05d08e92016-02-04 13:16:38 -080039struct snd_efw_transaction {
Tao Baod7db5942015-01-28 10:07:51 -080040 __be32 length;
41 __be32 version;
42 __be32 seqnum;
Christopher Ferris05d08e92016-02-04 13:16:38 -080043 __be32 category;
Tao Baod7db5942015-01-28 10:07:51 -080044 __be32 command;
45 __be32 status;
46 __be32 params[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -080047};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070048struct snd_firewire_event_efw_response {
Tao Baod7db5942015-01-28 10:07:51 -080049 unsigned int type;
50 __be32 response[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -080051};
52struct snd_firewire_event_digi00x_message {
53 unsigned int type;
54 __u32 message;
Christopher Ferris05d08e92016-02-04 13:16:38 -080055};
Christopher Ferris38062f92014-07-09 15:33:25 -070056union snd_firewire_event {
Tao Baod7db5942015-01-28 10:07:51 -080057 struct snd_firewire_event_common common;
58 struct snd_firewire_event_lock_status lock_status;
Christopher Ferris05d08e92016-02-04 13:16:38 -080059 struct snd_firewire_event_dice_notification dice_notification;
Tao Baod7db5942015-01-28 10:07:51 -080060 struct snd_firewire_event_efw_response efw_response;
Christopher Ferris05d08e92016-02-04 13:16:38 -080061 struct snd_firewire_event_digi00x_message digi00x_message;
Christopher Ferris38062f92014-07-09 15:33:25 -070062};
63#define SNDRV_FIREWIRE_IOCTL_GET_INFO _IOR('H', 0xf8, struct snd_firewire_get_info)
64#define SNDRV_FIREWIRE_IOCTL_LOCK _IO('H', 0xf9)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070065#define SNDRV_FIREWIRE_IOCTL_UNLOCK _IO('H', 0xfa)
Christopher Ferris38062f92014-07-09 15:33:25 -070066#define SNDRV_FIREWIRE_TYPE_DICE 1
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070067#define SNDRV_FIREWIRE_TYPE_FIREWORKS 2
68#define SNDRV_FIREWIRE_TYPE_BEBOB 3
Christopher Ferris05d08e92016-02-04 13:16:38 -080069#define SNDRV_FIREWIRE_TYPE_OXFW 4
70#define SNDRV_FIREWIRE_TYPE_DIGI00X 5
Christopher Ferris05d08e92016-02-04 13:16:38 -080071#define SNDRV_FIREWIRE_TYPE_TASCAM 6
Christopher Ferris38062f92014-07-09 15:33:25 -070072struct snd_firewire_get_info {
Tao Baod7db5942015-01-28 10:07:51 -080073 unsigned int type;
74 unsigned int card;
Christopher Ferris05d08e92016-02-04 13:16:38 -080075 unsigned char guid[8];
Tao Baod7db5942015-01-28 10:07:51 -080076 char device_name[16];
Christopher Ferris38062f92014-07-09 15:33:25 -070077};
78#endif