| /**************************************************************************** |
| **************************************************************************** |
| *** |
| *** This header was automatically generated from a Linux kernel header |
| *** of the same name, to make information necessary for userspace to |
| *** call into the kernel available to libc. It contains only constants, |
| *** structures, and macros generated from the original header, and thus, |
| *** contains no copyrightable information. |
| *** |
| *** To edit the content of this header, modify the corresponding |
| *** source file (e.g. under external/kernel-headers/original/) then |
| *** run bionic/libc/kernel/tools/update_all.py |
| *** |
| *** Any manual change here will be lost the next time this script will |
| *** be run. You've been warned! |
| *** |
| **************************************************************************** |
| ****************************************************************************/ |
| #ifndef UFS_MTK_IOCTL_H__ |
| #define UFS_MTK_IOCTL_H__ |
| #include "ufs-mtk-ioctl-private.h" |
| #define UFS_IOCTL_QUERY 0x5388 |
| #define UFS_IOCTL_FFU 0x5389 |
| #define UFS_IOCTL_GET_FW_VER 0x5390 |
| #define UFS_IOCTL_RPMB 0x5391 |
| #define HPB_QUERY_OPCODE 0x5500 |
| #define UFS_IOCTL_FFU_MAX_FW_SIZE_BYTES (512L * 1024) |
| #define UFS_IOCTL_FFU_MAX_FW_VER_BYTES (4) |
| #define UFS_IOCTL_FFU_MAX_FW_VER_STRING_DESCR_BYTES (10) |
| struct ufs_ioctl_query_data { |
| __u32 opcode; |
| __u8 idn; |
| __u8 idx; |
| __u16 buf_byte; |
| __u8 * buf_ptr; |
| }; |
| struct ufs_ioctl_query_data_hpb { |
| __u32 opcode; |
| __u8 idn; |
| __u16 buf_size; |
| __u8 buffer[0]; |
| }; |
| struct ufs_ioctl_ffu_data { |
| __u32 buf_byte; |
| __u8 * buf_ptr; |
| }; |
| struct ufs_ioctl_query_fw_ver_data { |
| __u16 buf_byte; |
| __u8 * buf_ptr; |
| }; |
| #endif |