linux/include/uapi/sound/scarlett2.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
 *   Focusrite Scarlett 2 Protocol Driver for ALSA
 *   (including Scarlett 2nd Gen, 3rd Gen, 4th Gen, Clarett USB, and
 *   Clarett+ series products)
 *
 *   Copyright (c) 2023 by Geoffrey D. Bennett <g at b4.vu>
 */
#ifndef __UAPI_SOUND_SCARLETT2_H
#define __UAPI_SOUND_SCARLETT2_H

#include <linux/types.h>
#include <linux/ioctl.h>

#define SCARLETT2_HWDEP_MAJOR
#define SCARLETT2_HWDEP_MINOR
#define SCARLETT2_HWDEP_SUBMINOR

#define SCARLETT2_HWDEP_VERSION

#define SCARLETT2_HWDEP_VERSION_MAJOR(v)
#define SCARLETT2_HWDEP_VERSION_MINOR(v)
#define SCARLETT2_HWDEP_VERSION_SUBMINOR(v)

/* Get protocol version */
#define SCARLETT2_IOCTL_PVERSION

/* Reboot */
#define SCARLETT2_IOCTL_REBOOT

/* Select flash segment */
#define SCARLETT2_SEGMENT_ID_SETTINGS
#define SCARLETT2_SEGMENT_ID_FIRMWARE
#define SCARLETT2_SEGMENT_ID_COUNT

#define SCARLETT2_IOCTL_SELECT_FLASH_SEGMENT

/* Erase selected flash segment */
#define SCARLETT2_IOCTL_ERASE_FLASH_SEGMENT

/* Get selected flash segment erase progress
 * 1 through to num_blocks, or 255 for complete
 */
struct scarlett2_flash_segment_erase_progress {};
#define SCARLETT2_IOCTL_GET_ERASE_PROGRESS

#endif /* __UAPI_SOUND_SCARLETT2_H */