1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef __UAPI_SOUND_SCARLETT2_H 8 #define __UAPI_SOUND_SCARLETT2_H 9 #include <linux/types.h> 10 #include <linux/ioctl.h> 11 #define SCARLETT2_HWDEP_MAJOR 1 12 #define SCARLETT2_HWDEP_MINOR 0 13 #define SCARLETT2_HWDEP_SUBMINOR 0 14 #define SCARLETT2_HWDEP_VERSION ((SCARLETT2_HWDEP_MAJOR << 16) | (SCARLETT2_HWDEP_MINOR << 8) | SCARLETT2_HWDEP_SUBMINOR) 15 #define SCARLETT2_HWDEP_VERSION_MAJOR(v) (((v) >> 16) & 0xFF) 16 #define SCARLETT2_HWDEP_VERSION_MINOR(v) (((v) >> 8) & 0xFF) 17 #define SCARLETT2_HWDEP_VERSION_SUBMINOR(v) ((v) & 0xFF) 18 #define SCARLETT2_IOCTL_PVERSION _IOR('S', 0x60, int) 19 #define SCARLETT2_IOCTL_REBOOT _IO('S', 0x61) 20 #define SCARLETT2_SEGMENT_ID_SETTINGS 0 21 #define SCARLETT2_SEGMENT_ID_FIRMWARE 1 22 #define SCARLETT2_SEGMENT_ID_COUNT 2 23 #define SCARLETT2_IOCTL_SELECT_FLASH_SEGMENT _IOW('S', 0x62, int) 24 #define SCARLETT2_IOCTL_ERASE_FLASH_SEGMENT _IO('S', 0x63) 25 struct scarlett2_flash_segment_erase_progress { 26 unsigned char progress; 27 unsigned char num_blocks; 28 }; 29 #define SCARLETT2_IOCTL_GET_ERASE_PROGRESS _IOR('S', 0x64, struct scarlett2_flash_segment_erase_progress) 30 #endif 31