#ifndef SOUND_TASCAM_H_INCLUDED
#define SOUND_TASCAM_H_INCLUDED
#include <linux/device.h>
#include <linux/firewire.h>
#include <linux/firewire-constants.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/compat.h>
#include <linux/sched/signal.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/info.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/firewire.h>
#include <sound/hwdep.h>
#include <sound/rawmidi.h>
#include "../lib.h"
#include "../amdtp-stream.h"
#include "../iso-resources.h"
struct snd_tscm_spec { … };
#define TSCM_MIDI_IN_PORT_MAX …
#define TSCM_MIDI_OUT_PORT_MAX …
struct snd_fw_async_midi_port { … };
#define SND_TSCM_QUEUE_COUNT …
struct snd_tscm { … };
#define TSCM_ADDR_BASE …
#define TSCM_OFFSET_FIRMWARE_REGISTER …
#define TSCM_OFFSET_FIRMWARE_FPGA …
#define TSCM_OFFSET_FIRMWARE_ARM …
#define TSCM_OFFSET_FIRMWARE_HW …
#define TSCM_OFFSET_ISOC_TX_CH …
#define TSCM_OFFSET_UNKNOWN …
#define TSCM_OFFSET_START_STREAMING …
#define TSCM_OFFSET_ISOC_RX_CH …
#define TSCM_OFFSET_ISOC_RX_ON …
#define TSCM_OFFSET_TX_PCM_CHANNELS …
#define TSCM_OFFSET_RX_PCM_CHANNELS …
#define TSCM_OFFSET_MULTIPLEX_MODE …
#define TSCM_OFFSET_ISOC_TX_ON …
#define TSCM_OFFSET_CLOCK_STATUS …
#define TSCM_OFFSET_SET_OPTION …
#define TSCM_OFFSET_MIDI_TX_ON …
#define TSCM_OFFSET_MIDI_TX_ADDR_HI …
#define TSCM_OFFSET_MIDI_TX_ADDR_LO …
#define TSCM_OFFSET_LED_POWER …
#define TSCM_OFFSET_MIDI_RX_QUAD …
enum snd_tscm_clock { … };
int amdtp_tscm_init(struct amdtp_stream *s, struct fw_unit *unit,
enum amdtp_stream_direction dir, unsigned int pcm_channels);
int amdtp_tscm_set_parameters(struct amdtp_stream *s, unsigned int rate);
int amdtp_tscm_add_pcm_hw_constraints(struct amdtp_stream *s,
struct snd_pcm_runtime *runtime);
int snd_tscm_stream_get_rate(struct snd_tscm *tscm, unsigned int *rate);
int snd_tscm_stream_get_clock(struct snd_tscm *tscm,
enum snd_tscm_clock *clock);
int snd_tscm_stream_init_duplex(struct snd_tscm *tscm);
void snd_tscm_stream_update_duplex(struct snd_tscm *tscm);
void snd_tscm_stream_destroy_duplex(struct snd_tscm *tscm);
int snd_tscm_stream_reserve_duplex(struct snd_tscm *tscm, unsigned int rate,
unsigned int frames_per_period,
unsigned int frames_per_buffer);
int snd_tscm_stream_start_duplex(struct snd_tscm *tscm, unsigned int rate);
void snd_tscm_stream_stop_duplex(struct snd_tscm *tscm);
void snd_tscm_stream_lock_changed(struct snd_tscm *tscm);
int snd_tscm_stream_lock_try(struct snd_tscm *tscm);
void snd_tscm_stream_lock_release(struct snd_tscm *tscm);
void snd_fw_async_midi_port_init(struct snd_fw_async_midi_port *port);
static inline void
snd_fw_async_midi_port_run(struct snd_fw_async_midi_port *port,
struct snd_rawmidi_substream *substream)
{ … }
static inline void
snd_fw_async_midi_port_finish(struct snd_fw_async_midi_port *port)
{ … }
int snd_tscm_transaction_register(struct snd_tscm *tscm);
int snd_tscm_transaction_reregister(struct snd_tscm *tscm);
void snd_tscm_transaction_unregister(struct snd_tscm *tscm);
void snd_tscm_proc_init(struct snd_tscm *tscm);
int snd_tscm_create_pcm_devices(struct snd_tscm *tscm);
int snd_tscm_create_midi_devices(struct snd_tscm *tscm);
int snd_tscm_create_hwdep_device(struct snd_tscm *tscm);
#endif