1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef UAPI_UFS_H_ 20 #define UAPI_UFS_H_ 21 #define MAX_QUERY_IDN 0x12 22 enum flag_idn { 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 QUERY_FLAG_IDN_FDEVICEINIT = 0x01, 25 QUERY_FLAG_IDN_PERMANENT_WPE = 0x02, 26 QUERY_FLAG_IDN_PWR_ON_WPE = 0x03, 27 QUERY_FLAG_IDN_BKOPS_EN = 0x04, 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 QUERY_FLAG_IDN_RESERVED1 = 0x05, 30 QUERY_FLAG_IDN_PURGE_ENABLE = 0x06, 31 QUERY_FLAG_IDN_RESERVED2 = 0x07, 32 QUERY_FLAG_IDN_FPHYRESOURCEREMOVAL = 0x08, 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 QUERY_FLAG_IDN_BUSY_RTC = 0x09, 35 }; 36 enum attr_idn { 37 QUERY_ATTR_IDN_BOOT_LU_EN = 0x00, 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 QUERY_ATTR_IDN_RESERVED = 0x01, 40 QUERY_ATTR_IDN_POWER_MODE = 0x02, 41 QUERY_ATTR_IDN_ACTIVE_ICC_LVL = 0x03, 42 QUERY_ATTR_IDN_OOO_DATA_EN = 0x04, 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 QUERY_ATTR_IDN_BKOPS_STATUS = 0x05, 45 QUERY_ATTR_IDN_PURGE_STATUS = 0x06, 46 QUERY_ATTR_IDN_MAX_DATA_IN = 0x07, 47 QUERY_ATTR_IDN_MAX_DATA_OUT = 0x08, 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 QUERY_ATTR_IDN_DYN_CAP_NEEDED = 0x09, 50 QUERY_ATTR_IDN_REF_CLK_FREQ = 0x0A, 51 QUERY_ATTR_IDN_CONF_DESC_LOCK = 0x0B, 52 QUERY_ATTR_IDN_MAX_NUM_OF_RTT = 0x0C, 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 QUERY_ATTR_IDN_EE_CONTROL = 0x0D, 55 QUERY_ATTR_IDN_EE_STATUS = 0x0E, 56 QUERY_ATTR_IDN_SECONDS_PASSED = 0x0F, 57 QUERY_ATTR_IDN_CNTX_CONF = 0x10, 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 QUERY_ATTR_IDN_CORR_PRG_BLK_NUM = 0x11, 60 }; 61 #define QUERY_ATTR_IDN_BOOT_LU_EN_MAX 0x02 62 enum desc_idn { 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 QUERY_DESC_IDN_DEVICE = 0x0, 65 QUERY_DESC_IDN_CONFIGURAION = 0x1, 66 QUERY_DESC_IDN_UNIT = 0x2, 67 QUERY_DESC_IDN_RFU_0 = 0x3, 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 QUERY_DESC_IDN_INTERCONNECT = 0x4, 70 QUERY_DESC_IDN_STRING = 0x5, 71 QUERY_DESC_IDN_RFU_1 = 0x6, 72 QUERY_DESC_IDN_GEOMETRY = 0x7, 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 QUERY_DESC_IDN_POWER = 0x8, 75 QUERY_DESC_IDN_RFU_2 = 0x9, 76 QUERY_DESC_IDN_MAX, 77 }; 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 enum query_opcode { 80 UPIU_QUERY_OPCODE_NOP = 0x0, 81 UPIU_QUERY_OPCODE_READ_DESC = 0x1, 82 UPIU_QUERY_OPCODE_WRITE_DESC = 0x2, 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 UPIU_QUERY_OPCODE_READ_ATTR = 0x3, 85 UPIU_QUERY_OPCODE_WRITE_ATTR = 0x4, 86 UPIU_QUERY_OPCODE_READ_FLAG = 0x5, 87 UPIU_QUERY_OPCODE_SET_FLAG = 0x6, 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 UPIU_QUERY_OPCODE_CLEAR_FLAG = 0x7, 90 UPIU_QUERY_OPCODE_TOGGLE_FLAG = 0x8, 91 UPIU_QUERY_OPCODE_MAX, 92 }; 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 #endif 95 96