1/* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6#ifndef _UAPI_SOUND_FIREWIRE_H_INCLUDED 7#define _UAPI_SOUND_FIREWIRE_H_INCLUDED 8#include <linux/ioctl.h> 9#include <linux/types.h> 10#define SNDRV_FIREWIRE_EVENT_LOCK_STATUS 0x000010cc 11#define SNDRV_FIREWIRE_EVENT_DICE_NOTIFICATION 0xd1ce004e 12#define SNDRV_FIREWIRE_EVENT_EFW_RESPONSE 0x4e617475 13#define SNDRV_FIREWIRE_EVENT_DIGI00X_MESSAGE 0x746e736c 14#define SNDRV_FIREWIRE_EVENT_MOTU_NOTIFICATION 0x64776479 15struct snd_firewire_event_common { 16 unsigned int type; 17}; 18struct snd_firewire_event_lock_status { 19 unsigned int type; 20 unsigned int status; 21}; 22struct snd_firewire_event_dice_notification { 23 unsigned int type; 24 unsigned int notification; 25}; 26#define SND_EFW_TRANSACTION_USER_SEQNUM_MAX ((__u32)((__u16)~0) - 1) 27struct snd_efw_transaction { 28 __be32 length; 29 __be32 version; 30 __be32 seqnum; 31 __be32 category; 32 __be32 command; 33 __be32 status; 34 __be32 params[0]; 35}; 36struct snd_firewire_event_efw_response { 37 unsigned int type; 38 __be32 response[0]; 39}; 40struct snd_firewire_event_digi00x_message { 41 unsigned int type; 42 __u32 message; 43}; 44struct snd_firewire_event_motu_notification { 45 unsigned int type; 46 __u32 message; 47}; 48union snd_firewire_event { 49 struct snd_firewire_event_common common; 50 struct snd_firewire_event_lock_status lock_status; 51 struct snd_firewire_event_dice_notification dice_notification; 52 struct snd_firewire_event_efw_response efw_response; 53 struct snd_firewire_event_digi00x_message digi00x_message; 54 struct snd_firewire_event_motu_notification motu_notification; 55}; 56#define SNDRV_FIREWIRE_IOCTL_GET_INFO _IOR('H', 0xf8, struct snd_firewire_get_info) 57#define SNDRV_FIREWIRE_IOCTL_LOCK _IO('H', 0xf9) 58#define SNDRV_FIREWIRE_IOCTL_UNLOCK _IO('H', 0xfa) 59#define SNDRV_FIREWIRE_TYPE_DICE 1 60#define SNDRV_FIREWIRE_TYPE_FIREWORKS 2 61#define SNDRV_FIREWIRE_TYPE_BEBOB 3 62#define SNDRV_FIREWIRE_TYPE_OXFW 4 63#define SNDRV_FIREWIRE_TYPE_DIGI00X 5 64#define SNDRV_FIREWIRE_TYPE_TASCAM 6 65#define SNDRV_FIREWIRE_TYPE_MOTU 7 66#define SNDRV_FIREWIRE_TYPE_FIREFACE 8 67struct snd_firewire_get_info { 68 unsigned int type; 69 unsigned int card; 70 unsigned char guid[8]; 71 char device_name[16]; 72}; 73#endif 74