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 MSM_PFT_H_ 20 #define MSM_PFT_H_ 21 #include <linux/types.h> 22 enum pft_command_opcode { 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 PFT_CMD_OPCODE_SET_STATE, 25 PFT_CMD_OPCODE_UPDATE_REG_APP_UID, 26 PFT_CMD_OPCODE_PERFORM_IN_PLACE_FILE_ENC, 27 PFT_CMD_OPCODE_MAX_COMMAND_INDEX 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 }; 30 enum pft_state { 31 PFT_STATE_DEACTIVATED, 32 PFT_STATE_DEACTIVATING, 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 PFT_STATE_KEY_REMOVED, 35 PFT_STATE_REMOVING_KEY, 36 PFT_STATE_KEY_LOADED, 37 PFT_STATE_MAX_INDEX 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 }; 40 enum pft_command_response_code { 41 PFT_CMD_RESP_SUCCESS, 42 PFT_CMD_RESP_GENERAL_ERROR, 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 PFT_CMD_RESP_INVALID_COMMAND, 45 PFT_CMD_RESP_INVALID_CMD_PARAMS, 46 PFT_CMD_RESP_INVALID_STATE, 47 PFT_CMD_RESP_ALREADY_IN_STATE, 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 PFT_CMD_RESP_INPLACE_FILE_IS_OPEN, 50 PFT_CMD_RESP_ENT_FILES_CLOSING_FAILURE, 51 PFT_CMD_RESP_MAX_INDEX 52 }; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 struct pft_command_response { 55 __u32 command_id; 56 __u32 error_code; 57 }; 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 struct pft_command { 60 __u32 opcode; 61 union { 62 struct { 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 __u32 state; 65 } set_state; 66 struct { 67 __u32 items_count; 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 uid_t table[0]; 70 } update_app_list; 71 struct { 72 __u32 file_descriptor; 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 } preform_in_place_file_enc; 75 }; 76 }; 77 #endif 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 80