2016-02-08 01:30:33 +08:00
|
|
|
package rmtfs;
|
|
|
|
|
|
|
|
const QMI_RMTFS_RESULT_SUCCESS = 0;
|
|
|
|
const QMI_RMTFS_RESULT_FAILURE = 1;
|
|
|
|
|
|
|
|
const QMI_RMTFS_ERR_NONE = 0;
|
|
|
|
const QMI_RMTFS_ERR_INTERNAL = 1;
|
|
|
|
const QMI_RMTFS_ERR_MALFORMED_MSG = 2;
|
|
|
|
|
|
|
|
const QMI_RMTFS_OPEN = 1;
|
|
|
|
const QMI_RMTFS_CLOSE = 2;
|
|
|
|
const QMI_RMTFS_RW_IOVEC = 3;
|
|
|
|
const QMI_RMTFS_ALLOC_BUFF = 4;
|
|
|
|
const QMI_RMTFS_GET_DEV_ERROR = 5;
|
|
|
|
const QMI_RMTFS_FORCE_SYNC_IND = 6;
|
|
|
|
|
|
|
|
struct qmi_result {
|
|
|
|
u16 result;
|
|
|
|
u16 error;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct iovec_entry {
|
|
|
|
u32 sector_addr;
|
|
|
|
u32 phys_offset;
|
|
|
|
u32 num_sector;
|
|
|
|
};
|
|
|
|
|
2016-02-08 13:33:54 +08:00
|
|
|
request open_req {
|
2016-02-08 01:30:33 +08:00
|
|
|
required string path = 1;
|
|
|
|
} = 1;
|
|
|
|
|
2016-02-08 13:33:54 +08:00
|
|
|
response open_resp {
|
2016-02-08 01:30:33 +08:00
|
|
|
required qmi_result result = 2;
|
|
|
|
optional u32 caller_id = 0x10;
|
|
|
|
} = 1;
|
|
|
|
|
2016-02-08 13:33:54 +08:00
|
|
|
request close_req {
|
2016-02-08 01:30:33 +08:00
|
|
|
required u32 caller_id = 1;
|
|
|
|
} = 2;
|
|
|
|
|
2016-02-08 13:33:54 +08:00
|
|
|
response close_resp {
|
2016-02-08 01:30:33 +08:00
|
|
|
required qmi_result result = 2;
|
|
|
|
} = 2;
|
|
|
|
|
2016-02-08 13:33:54 +08:00
|
|
|
request iovec_req {
|
2016-02-08 01:30:33 +08:00
|
|
|
required u32 caller_id = 1;
|
|
|
|
required u8 direction = 2;
|
2018-02-01 12:39:46 +08:00
|
|
|
required iovec_entry iovec(255) = 3;
|
2016-02-08 01:30:33 +08:00
|
|
|
required u8 is_force_sync = 4;
|
|
|
|
} = 3;
|
|
|
|
|
2016-02-08 13:33:54 +08:00
|
|
|
response iovec_resp {
|
2016-02-08 01:30:33 +08:00
|
|
|
required qmi_result result = 2;
|
|
|
|
} = 3;
|
|
|
|
|
2016-02-08 13:33:54 +08:00
|
|
|
request alloc_buf_req {
|
2016-02-08 01:30:33 +08:00
|
|
|
required u32 caller_id = 1;
|
|
|
|
required u32 buff_size = 2;
|
|
|
|
} = 4;
|
|
|
|
|
2016-02-08 13:33:54 +08:00
|
|
|
response alloc_buf_resp {
|
2016-02-08 01:30:33 +08:00
|
|
|
required qmi_result result = 2;
|
|
|
|
optional u64 buff_address = 0x10;
|
|
|
|
} = 4;
|
|
|
|
|
2016-02-08 13:33:54 +08:00
|
|
|
request dev_error_req {
|
2016-02-08 01:30:33 +08:00
|
|
|
required u32 caller_id = 1;
|
|
|
|
} = 5;
|
|
|
|
|
2016-02-08 13:33:54 +08:00
|
|
|
response dev_error_resp {
|
2016-02-08 01:30:33 +08:00
|
|
|
required qmi_result result = 2;
|
|
|
|
optional u8 status = 0x10;
|
|
|
|
} = 5;
|
|
|
|
|
2016-02-08 13:33:54 +08:00
|
|
|
indication force_sync {
|
2018-02-01 12:39:46 +08:00
|
|
|
required u32 caller_id(10) = 1;
|
2016-02-08 01:30:33 +08:00
|
|
|
} = 6;
|