Amit Pundir | 33109f7 | 2020-02-07 22:26:08 +0530 | [diff] [blame] | 1 | package rmtfs; |
| 2 | |
| 3 | const QMI_RMTFS_RESULT_SUCCESS = 0; |
| 4 | const QMI_RMTFS_RESULT_FAILURE = 1; |
| 5 | |
| 6 | const QMI_RMTFS_ERR_NONE = 0; |
| 7 | const QMI_RMTFS_ERR_INTERNAL = 1; |
| 8 | const QMI_RMTFS_ERR_MALFORMED_MSG = 2; |
| 9 | |
| 10 | const QMI_RMTFS_OPEN = 1; |
| 11 | const QMI_RMTFS_CLOSE = 2; |
| 12 | const QMI_RMTFS_RW_IOVEC = 3; |
| 13 | const QMI_RMTFS_ALLOC_BUFF = 4; |
| 14 | const QMI_RMTFS_GET_DEV_ERROR = 5; |
| 15 | const QMI_RMTFS_FORCE_SYNC_IND = 6; |
| 16 | |
| 17 | struct qmi_result { |
| 18 | u16 result; |
| 19 | u16 error; |
| 20 | }; |
| 21 | |
| 22 | struct iovec_entry { |
| 23 | u32 sector_addr; |
| 24 | u32 phys_offset; |
| 25 | u32 num_sector; |
| 26 | }; |
| 27 | |
| 28 | request open_req { |
| 29 | required string path = 1; |
| 30 | } = 1; |
| 31 | |
| 32 | response open_resp { |
| 33 | required qmi_result result = 2; |
| 34 | optional u32 caller_id = 0x10; |
| 35 | } = 1; |
| 36 | |
| 37 | request close_req { |
| 38 | required u32 caller_id = 1; |
| 39 | } = 2; |
| 40 | |
| 41 | response close_resp { |
| 42 | required qmi_result result = 2; |
| 43 | } = 2; |
| 44 | |
| 45 | request iovec_req { |
| 46 | required u32 caller_id = 1; |
| 47 | required u8 direction = 2; |
| 48 | required iovec_entry iovec(255) = 3; |
| 49 | required u8 is_force_sync = 4; |
| 50 | } = 3; |
| 51 | |
| 52 | response iovec_resp { |
| 53 | required qmi_result result = 2; |
| 54 | } = 3; |
| 55 | |
| 56 | request alloc_buf_req { |
| 57 | required u32 caller_id = 1; |
| 58 | required u32 buff_size = 2; |
| 59 | } = 4; |
| 60 | |
| 61 | response alloc_buf_resp { |
| 62 | required qmi_result result = 2; |
| 63 | optional u64 buff_address = 0x10; |
| 64 | } = 4; |
| 65 | |
| 66 | request dev_error_req { |
| 67 | required u32 caller_id = 1; |
| 68 | } = 5; |
| 69 | |
| 70 | response dev_error_resp { |
| 71 | required qmi_result result = 2; |
| 72 | optional u8 status = 0x10; |
| 73 | } = 5; |
| 74 | |
| 75 | indication force_sync { |
| 76 | required u32 caller_id(10) = 1; |
| 77 | } = 6; |