Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef SOUND_FIREWIRE_FCP_H_INCLUDED
|
|
#define SOUND_FIREWIRE_FCP_H_INCLUDED
|
|
|
|
#define AVC_PLUG_INFO_BUF_BYTES 4
|
|
|
|
struct fw_unit;
|
|
|
|
/*
|
|
* AV/C Digital Interface Command Set General Specification 4.2
|
|
* (Sep 2004, 1394TA)
|
|
*/
|
|
enum avc_general_plug_dir {
|
|
AVC_GENERAL_PLUG_DIR_IN = 0,
|
|
AVC_GENERAL_PLUG_DIR_OUT = 1,
|
|
AVC_GENERAL_PLUG_DIR_COUNT
|
|
};
|
|
int avc_general_set_sig_fmt(struct fw_unit *unit, unsigned int rate,
|
|
enum avc_general_plug_dir dir,
|
|
unsigned short plug);
|
|
int avc_general_get_sig_fmt(struct fw_unit *unit, unsigned int *rate,
|
|
enum avc_general_plug_dir dir,
|
|
unsigned short plug);
|
|
int avc_general_get_plug_info(struct fw_unit *unit, unsigned int subunit_type,
|
|
unsigned int subunit_id, unsigned int subfunction,
|
|
u8 info[AVC_PLUG_INFO_BUF_BYTES]);
|
|
|
|
int fcp_avc_transaction(struct fw_unit *unit,
|
|
const void *command, unsigned int command_size,
|
|
void *response, unsigned int response_size,
|
|
unsigned int response_match_bytes);
|
|
void fcp_bus_reset(struct fw_unit *unit);
|
|
|
|
#endif
|