122851890Sopenharmony_ci/*
222851890Sopenharmony_ci * This header was generated from the Linux kernel headers by update_headers.py,
322851890Sopenharmony_ci * to provide necessary information from kernel to userspace, such as constants,
422851890Sopenharmony_ci * structures, and macros, and thus, contains no copyrightable information.
522851890Sopenharmony_ci */
622851890Sopenharmony_ci#ifndef _UAPI_SOUND_FIREWIRE_H_INCLUDED
722851890Sopenharmony_ci#define _UAPI_SOUND_FIREWIRE_H_INCLUDED
822851890Sopenharmony_ci#include <linux/ioctl.h>
922851890Sopenharmony_ci#include <linux/types.h>
1022851890Sopenharmony_ci#define SNDRV_FIREWIRE_EVENT_LOCK_STATUS	0x000010cc
1122851890Sopenharmony_ci#define SNDRV_FIREWIRE_EVENT_DICE_NOTIFICATION	0xd1ce004e
1222851890Sopenharmony_ci#define SNDRV_FIREWIRE_EVENT_EFW_RESPONSE	0x4e617475
1322851890Sopenharmony_ci#define SNDRV_FIREWIRE_EVENT_DIGI00X_MESSAGE	0x746e736c
1422851890Sopenharmony_ci#define SNDRV_FIREWIRE_EVENT_MOTU_NOTIFICATION	0x64776479
1522851890Sopenharmony_cistruct snd_firewire_event_common {
1622851890Sopenharmony_ci	unsigned int type;
1722851890Sopenharmony_ci};
1822851890Sopenharmony_cistruct snd_firewire_event_lock_status {
1922851890Sopenharmony_ci	unsigned int type;
2022851890Sopenharmony_ci	unsigned int status;
2122851890Sopenharmony_ci};
2222851890Sopenharmony_cistruct snd_firewire_event_dice_notification {
2322851890Sopenharmony_ci	unsigned int type;
2422851890Sopenharmony_ci	unsigned int notification;
2522851890Sopenharmony_ci};
2622851890Sopenharmony_ci#define SND_EFW_TRANSACTION_USER_SEQNUM_MAX	((__u32)((__u16)~0) - 1)
2722851890Sopenharmony_cistruct snd_efw_transaction {
2822851890Sopenharmony_ci	__be32 length;
2922851890Sopenharmony_ci	__be32 version;
3022851890Sopenharmony_ci	__be32 seqnum;
3122851890Sopenharmony_ci	__be32 category;
3222851890Sopenharmony_ci	__be32 command;
3322851890Sopenharmony_ci	__be32 status;
3422851890Sopenharmony_ci	__be32 params[0];
3522851890Sopenharmony_ci};
3622851890Sopenharmony_cistruct snd_firewire_event_efw_response {
3722851890Sopenharmony_ci	unsigned int type;
3822851890Sopenharmony_ci	__be32 response[0];
3922851890Sopenharmony_ci};
4022851890Sopenharmony_cistruct snd_firewire_event_digi00x_message {
4122851890Sopenharmony_ci	unsigned int type;
4222851890Sopenharmony_ci	__u32 message;
4322851890Sopenharmony_ci};
4422851890Sopenharmony_cistruct snd_firewire_event_motu_notification {
4522851890Sopenharmony_ci	unsigned int type;
4622851890Sopenharmony_ci	__u32 message;
4722851890Sopenharmony_ci};
4822851890Sopenharmony_ciunion snd_firewire_event {
4922851890Sopenharmony_ci	struct snd_firewire_event_common            common;
5022851890Sopenharmony_ci	struct snd_firewire_event_lock_status       lock_status;
5122851890Sopenharmony_ci	struct snd_firewire_event_dice_notification dice_notification;
5222851890Sopenharmony_ci	struct snd_firewire_event_efw_response      efw_response;
5322851890Sopenharmony_ci	struct snd_firewire_event_digi00x_message   digi00x_message;
5422851890Sopenharmony_ci	struct snd_firewire_event_motu_notification motu_notification;
5522851890Sopenharmony_ci};
5622851890Sopenharmony_ci#define SNDRV_FIREWIRE_IOCTL_GET_INFO _IOR('H', 0xf8, struct snd_firewire_get_info)
5722851890Sopenharmony_ci#define SNDRV_FIREWIRE_IOCTL_LOCK      _IO('H', 0xf9)
5822851890Sopenharmony_ci#define SNDRV_FIREWIRE_IOCTL_UNLOCK    _IO('H', 0xfa)
5922851890Sopenharmony_ci#define SNDRV_FIREWIRE_TYPE_DICE	1
6022851890Sopenharmony_ci#define SNDRV_FIREWIRE_TYPE_FIREWORKS	2
6122851890Sopenharmony_ci#define SNDRV_FIREWIRE_TYPE_BEBOB	3
6222851890Sopenharmony_ci#define SNDRV_FIREWIRE_TYPE_OXFW	4
6322851890Sopenharmony_ci#define SNDRV_FIREWIRE_TYPE_DIGI00X	5
6422851890Sopenharmony_ci#define SNDRV_FIREWIRE_TYPE_TASCAM	6
6522851890Sopenharmony_ci#define SNDRV_FIREWIRE_TYPE_MOTU	7
6622851890Sopenharmony_ci#define SNDRV_FIREWIRE_TYPE_FIREFACE	8
6722851890Sopenharmony_cistruct snd_firewire_get_info {
6822851890Sopenharmony_ci	unsigned int type;
6922851890Sopenharmony_ci	unsigned int card;
7022851890Sopenharmony_ci	unsigned char guid[8];
7122851890Sopenharmony_ci	char device_name[16];
7222851890Sopenharmony_ci};
7322851890Sopenharmony_ci#endif
74