| // Copyright 2018 The Chromium OS Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // NOTE: THIS FILE IS AUTOMATICALLY GENERATED - DO NOT MODIFY |
| |
| #include "hermes/uim_cmd.h" |
| |
| struct qmi_elem_info uim_qmi_result_ei[] = { |
| { |
| .data_type = QMI_UNSIGNED_2_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint16_t), |
| .offset = offsetof(struct uim_qmi_result, result), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_2_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint16_t), |
| .offset = offsetof(struct uim_qmi_result, error), |
| }, |
| {}}; |
| |
| struct qmi_elem_info uim_card_result_t_ei[] = { |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .offset = offsetof(struct uim_card_result_t, sw1), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .offset = offsetof(struct uim_card_result_t, sw2), |
| }, |
| {}}; |
| |
| struct qmi_elem_info uim_open_logical_channel_req_ei[] = { |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .tlv_type = 0x01, |
| .offset = offsetof(struct uim_open_logical_channel_req, slot), |
| }, |
| { |
| .data_type = QMI_OPT_FLAG, |
| .elem_len = 1, |
| .elem_size = sizeof(bool), |
| .tlv_type = 0x10, |
| .offset = offsetof(struct uim_open_logical_channel_req, aid_valid), |
| }, |
| { |
| .data_type = QMI_DATA_LEN, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .tlv_type = 0x10, |
| .offset = offsetof(struct uim_open_logical_channel_req, aid_len), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = kBufferDataSize, |
| .elem_size = sizeof(uint8_t), |
| .array_type = VAR_LEN_ARRAY, |
| .tlv_type = 0x10, |
| .offset = offsetof(struct uim_open_logical_channel_req, aid), |
| }, |
| {}}; |
| |
| struct qmi_elem_info uim_open_logical_channel_resp_ei[] = { |
| { |
| .data_type = QMI_STRUCT, |
| .elem_len = 1, |
| .elem_size = sizeof(uim_qmi_result), |
| .tlv_type = 0x2, |
| .offset = offsetof(struct uim_open_logical_channel_resp, result), |
| .ei_array = uim_qmi_result_ei, |
| }, |
| { |
| .data_type = QMI_OPT_FLAG, |
| .elem_len = 1, |
| .elem_size = sizeof(bool), |
| .tlv_type = 0x10, |
| .offset = |
| offsetof(struct uim_open_logical_channel_resp, channel_id_valid), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .tlv_type = 0x10, |
| .offset = offsetof(struct uim_open_logical_channel_resp, channel_id), |
| }, |
| { |
| .data_type = QMI_OPT_FLAG, |
| .elem_len = 1, |
| .elem_size = sizeof(bool), |
| .tlv_type = 0x11, |
| .offset = |
| offsetof(struct uim_open_logical_channel_resp, card_result_valid), |
| }, |
| { |
| .data_type = QMI_STRUCT, |
| .elem_len = 1, |
| .elem_size = sizeof(uim_card_result_t), |
| .tlv_type = 0x11, |
| .offset = offsetof(struct uim_open_logical_channel_resp, card_result), |
| .ei_array = uim_card_result_t_ei, |
| }, |
| { |
| .data_type = QMI_OPT_FLAG, |
| .elem_len = 1, |
| .elem_size = sizeof(bool), |
| .tlv_type = 0x12, |
| .offset = offsetof(struct uim_open_logical_channel_resp, |
| select_response_valid), |
| }, |
| { |
| .data_type = QMI_DATA_LEN, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .tlv_type = 0x12, |
| .offset = |
| offsetof(struct uim_open_logical_channel_resp, select_response_len), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = kBufferDataSize, |
| .elem_size = sizeof(uint8_t), |
| .array_type = VAR_LEN_ARRAY, |
| .tlv_type = 0x12, |
| .offset = |
| offsetof(struct uim_open_logical_channel_resp, select_response), |
| }, |
| {}}; |
| |
| struct qmi_elem_info uim_reset_req_ei[] = {{}}; |
| |
| struct qmi_elem_info uim_reset_resp_ei[] = { |
| { |
| .data_type = QMI_STRUCT, |
| .elem_len = 1, |
| .elem_size = sizeof(uim_qmi_result), |
| .tlv_type = 0x2, |
| .offset = offsetof(struct uim_reset_resp, result), |
| .ei_array = uim_qmi_result_ei, |
| }, |
| {}}; |
| |
| struct qmi_elem_info uim_send_apdu_req_ei[] = { |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .tlv_type = 0x01, |
| .offset = offsetof(struct uim_send_apdu_req, slot), |
| }, |
| { |
| .data_type = QMI_DATA_LEN, |
| .elem_len = 1, |
| .elem_size = sizeof(uint16_t), |
| .tlv_type = 0x02, |
| .offset = offsetof(struct uim_send_apdu_req, apdu_len), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = kBufferDataSize, |
| .elem_size = sizeof(uint8_t), |
| .array_type = VAR_LEN_ARRAY, |
| .tlv_type = 0x02, |
| .offset = offsetof(struct uim_send_apdu_req, apdu), |
| }, |
| { |
| .data_type = QMI_OPT_FLAG, |
| .elem_len = 1, |
| .elem_size = sizeof(bool), |
| .tlv_type = 0x10, |
| .offset = offsetof(struct uim_send_apdu_req, channel_id_valid), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .tlv_type = 0x10, |
| .offset = offsetof(struct uim_send_apdu_req, channel_id), |
| }, |
| { |
| .data_type = QMI_OPT_FLAG, |
| .elem_len = 1, |
| .elem_size = sizeof(bool), |
| .tlv_type = 0x11, |
| .offset = offsetof(struct uim_send_apdu_req, procedure_bytes_valid), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .tlv_type = 0x11, |
| .offset = offsetof(struct uim_send_apdu_req, procedure_bytes), |
| }, |
| {}}; |
| |
| struct qmi_elem_info uim_send_apdu_resp_ei[] = { |
| { |
| .data_type = QMI_STRUCT, |
| .elem_len = 1, |
| .elem_size = sizeof(uim_qmi_result), |
| .tlv_type = 0x2, |
| .offset = offsetof(struct uim_send_apdu_resp, result), |
| .ei_array = uim_qmi_result_ei, |
| }, |
| { |
| .data_type = QMI_OPT_FLAG, |
| .elem_len = 1, |
| .elem_size = sizeof(bool), |
| .tlv_type = 0x10, |
| .offset = offsetof(struct uim_send_apdu_resp, apdu_response_valid), |
| }, |
| { |
| .data_type = QMI_DATA_LEN, |
| .elem_len = 1, |
| .elem_size = sizeof(uint16_t), |
| .tlv_type = 0x10, |
| .offset = offsetof(struct uim_send_apdu_resp, apdu_response_len), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = kBufferDataSize, |
| .elem_size = sizeof(uint8_t), |
| .array_type = VAR_LEN_ARRAY, |
| .tlv_type = 0x10, |
| .offset = offsetof(struct uim_send_apdu_resp, apdu_response), |
| }, |
| {}}; |
| |
| struct qmi_elem_info uim_physical_slot_status_ei[] = { |
| { |
| .data_type = QMI_UNSIGNED_4_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint32_t), |
| .offset = |
| offsetof(struct uim_physical_slot_status, physical_card_status), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_4_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint32_t), |
| .offset = |
| offsetof(struct uim_physical_slot_status, physical_slot_state), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .offset = offsetof(struct uim_physical_slot_status, logical_slot), |
| }, |
| { |
| .data_type = QMI_DATA_LEN, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .offset = offsetof(struct uim_physical_slot_status, iccid_len), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = kIccidMaxSize, |
| .elem_size = sizeof(uint8_t), |
| .array_type = VAR_LEN_ARRAY, |
| .offset = offsetof(struct uim_physical_slot_status, iccid), |
| }, |
| {}}; |
| |
| struct qmi_elem_info uim_slot_eid_info_ei[] = { |
| { |
| .data_type = QMI_DATA_LEN, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .offset = offsetof(struct uim_slot_eid_info, eid_len), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = 255, |
| .elem_size = sizeof(uint8_t), |
| .array_type = VAR_LEN_ARRAY, |
| .offset = offsetof(struct uim_slot_eid_info, eid), |
| }, |
| {}}; |
| |
| struct qmi_elem_info uim_physical_slot_info_ei[] = { |
| { |
| .data_type = QMI_UNSIGNED_4_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint32_t), |
| .offset = offsetof(struct uim_physical_slot_info, card_protocol), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .offset = offsetof(struct uim_physical_slot_info, num_app), |
| }, |
| { |
| .data_type = QMI_DATA_LEN, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .offset = offsetof(struct uim_physical_slot_info, atr_len), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = 255, |
| .elem_size = sizeof(uint8_t), |
| .array_type = VAR_LEN_ARRAY, |
| .offset = offsetof(struct uim_physical_slot_info, atr), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .offset = offsetof(struct uim_physical_slot_info, is_euicc), |
| }, |
| {}}; |
| |
| struct qmi_elem_info uim_get_slots_req_ei[] = {{}}; |
| |
| struct qmi_elem_info uim_get_slots_resp_ei[] = { |
| { |
| .data_type = QMI_STRUCT, |
| .elem_len = 1, |
| .elem_size = sizeof(uim_qmi_result), |
| .tlv_type = 0x2, |
| .offset = offsetof(struct uim_get_slots_resp, result), |
| .ei_array = uim_qmi_result_ei, |
| }, |
| { |
| .data_type = QMI_OPT_FLAG, |
| .elem_len = 1, |
| .elem_size = sizeof(bool), |
| .tlv_type = 0x10, |
| .offset = offsetof(struct uim_get_slots_resp, status_valid), |
| }, |
| { |
| .data_type = QMI_DATA_LEN, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .tlv_type = 0x10, |
| .offset = offsetof(struct uim_get_slots_resp, status_len), |
| }, |
| { |
| .data_type = QMI_STRUCT, |
| .elem_len = 10, |
| .elem_size = sizeof(uim_physical_slot_status), |
| .array_type = VAR_LEN_ARRAY, |
| .tlv_type = 0x10, |
| .offset = offsetof(struct uim_get_slots_resp, status), |
| .ei_array = uim_physical_slot_status_ei, |
| }, |
| { |
| .data_type = QMI_OPT_FLAG, |
| .elem_len = 1, |
| .elem_size = sizeof(bool), |
| .tlv_type = 0x11, |
| .offset = offsetof(struct uim_get_slots_resp, slot_info_valid), |
| }, |
| { |
| .data_type = QMI_DATA_LEN, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .tlv_type = 0x11, |
| .offset = offsetof(struct uim_get_slots_resp, slot_info_len), |
| }, |
| { |
| .data_type = QMI_STRUCT, |
| .elem_len = 10, |
| .elem_size = sizeof(uim_physical_slot_info), |
| .array_type = VAR_LEN_ARRAY, |
| .tlv_type = 0x11, |
| .offset = offsetof(struct uim_get_slots_resp, slot_info), |
| .ei_array = uim_physical_slot_info_ei, |
| }, |
| { |
| .data_type = QMI_OPT_FLAG, |
| .elem_len = 1, |
| .elem_size = sizeof(bool), |
| .tlv_type = 0x12, |
| .offset = offsetof(struct uim_get_slots_resp, eid_info_valid), |
| }, |
| { |
| .data_type = QMI_DATA_LEN, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .tlv_type = 0x12, |
| .offset = offsetof(struct uim_get_slots_resp, eid_info_len), |
| }, |
| { |
| .data_type = QMI_STRUCT, |
| .elem_len = 10, |
| .elem_size = sizeof(uim_slot_eid_info), |
| .array_type = VAR_LEN_ARRAY, |
| .tlv_type = 0x12, |
| .offset = offsetof(struct uim_get_slots_resp, eid_info), |
| .ei_array = uim_slot_eid_info_ei, |
| }, |
| {}}; |
| |
| struct qmi_elem_info uim_switch_slot_req_ei[] = { |
| { |
| .data_type = QMI_UNSIGNED_1_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint8_t), |
| .tlv_type = 0x01, |
| .offset = offsetof(struct uim_switch_slot_req, logical_slot), |
| }, |
| { |
| .data_type = QMI_UNSIGNED_4_BYTE, |
| .elem_len = 1, |
| .elem_size = sizeof(uint32_t), |
| .tlv_type = 0x02, |
| .offset = offsetof(struct uim_switch_slot_req, physical_slot), |
| }, |
| {}}; |
| |
| struct qmi_elem_info uim_switch_slot_resp_ei[] = { |
| { |
| .data_type = QMI_STRUCT, |
| .elem_len = 1, |
| .elem_size = sizeof(uim_qmi_result), |
| .tlv_type = 0x2, |
| .offset = offsetof(struct uim_switch_slot_resp, result), |
| .ei_array = uim_qmi_result_ei, |
| }, |
| {}}; |