oemcommands.hpp (877d5dd9aa31462d83a2ce428b14c1c3c6bd3649) | oemcommands.hpp (63c99be4ac026a326d6953d608376edb0e60007a) |
---|---|
1/* 2 * Copyright (c) 2018-present Facebook. All Rights Reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 --- 124 unchanged lines hidden (view full) --- 133#define KEY_PPR_ROW_ADDR "ppr_row_addr" 134#define KEY_PPR_HST_DATA "ppr_history_data" 135#define CC_PARAM_NOT_SUPP_IN_CURR_STATE 0xD5 136#define PPR_ROW_ADDR_LEN 8 137#define PPR_HST_DATA_LEN 17 138 139#define BOOT_SEQ_ARRAY_SIZE 10 140 | 1/* 2 * Copyright (c) 2018-present Facebook. All Rights Reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 --- 124 unchanged lines hidden (view full) --- 133#define KEY_PPR_ROW_ADDR "ppr_row_addr" 134#define KEY_PPR_HST_DATA "ppr_history_data" 135#define CC_PARAM_NOT_SUPP_IN_CURR_STATE 0xD5 136#define PPR_ROW_ADDR_LEN 8 137#define PPR_HST_DATA_LEN 17 138 139#define BOOT_SEQ_ARRAY_SIZE 10 140 |
141const char *bootSeq[] = {"USB_DEV", "NET_IPV4", "SATA_HDD", "SATA_CD", | 141const char* bootSeq[] = {"USB_DEV", "NET_IPV4", "SATA_HDD", "SATA_CD", |
142 "OTHER", "", "", "", 143 "", "NET_IPV6"}; 144std::map<std::string, int> bootMap = {{"USB_DEV", 0}, {"NET_IPV4", 1}, 145 {"NET_IPV6", 9}, {"SATA_HDD", 2}, 146 {"SATA_CD", 3}, {"OTHER", 4}}; 147 | 142 "OTHER", "", "", "", 143 "", "NET_IPV6"}; 144std::map<std::string, int> bootMap = {{"USB_DEV", 0}, {"NET_IPV4", 1}, 145 {"NET_IPV6", 9}, {"SATA_HDD", 2}, 146 {"SATA_CD", 3}, {"OTHER", 4}}; 147 |
148const char *chassisType[] = {"ORV1", "ORV2"}; 149const char *mbType[] = {"SS", "DS", "TYPE3"}; 150const char *riserType[] = {"NO_CARD", "2_SLOT", "3_SLOT"}; 151const char *pcieType[] = {"ABSENT", "AVA1", "AVA2", "AVA3", | 148const char* chassisType[] = {"ORV1", "ORV2"}; 149const char* mbType[] = {"SS", "DS", "TYPE3"}; 150const char* riserType[] = {"NO_CARD", "2_SLOT", "3_SLOT"}; 151const char* pcieType[] = {"ABSENT", "AVA1", "AVA2", "AVA3", |
152 "AVA4", "Re-timer", "HBA", "OTHER"}; 153 154enum fb_ppr_sel 155{ 156 PPR_ACTION = 1, 157 PPR_ROW_COUNT, 158 PPR_ROW_ADDR, 159 PPR_HISTORY_DATA, --- 51 unchanged lines hidden (view full) --- 211{ 212 uint8_t mfrId[3]; 213 uint8_t hddCtrlType; 214 uint8_t hddIndex; 215 uint8_t paramSel; 216 uint8_t data[]; 217} qDriveInfo_t; 218 | 152 "AVA4", "Re-timer", "HBA", "OTHER"}; 153 154enum fb_ppr_sel 155{ 156 PPR_ACTION = 1, 157 PPR_ROW_COUNT, 158 PPR_ROW_ADDR, 159 PPR_HISTORY_DATA, --- 51 unchanged lines hidden (view full) --- 211{ 212 uint8_t mfrId[3]; 213 uint8_t hddCtrlType; 214 uint8_t hddIndex; 215 uint8_t paramSel; 216 uint8_t data[]; 217} qDriveInfo_t; 218 |
219const char *cpuInfoKey[] = {"", "product_name", "basic_info", | 219const char* cpuInfoKey[] = {"", "product_name", "basic_info", |
220 "type", "micro_code", "turbo_mode"}; 221 | 220 "type", "micro_code", "turbo_mode"}; 221 |
222const char *dimmInfoKey[] = { | 222const char* dimmInfoKey[] = { |
223 "", "location", "type", "speed", "part_name", 224 "serial_num", "manufacturer_id", "status", "present_bit"}; 225 | 223 "", "location", "type", "speed", "part_name", 224 "serial_num", "manufacturer_id", "status", "present_bit"}; 225 |
226const char *driveInfoKey[] = {"location", "serial_num", "model_name", | 226const char* driveInfoKey[] = {"location", "serial_num", "model_name", |
227 "fw_version", "capacity", "quantity", 228 "type", "wwn"}; 229 | 227 "fw_version", "capacity", "quantity", 228 "type", "wwn"}; 229 |
230const char *ctrlTypeKey[] = {"bios", "expander", "lsi"}; | 230const char* ctrlTypeKey[] = {"bios", "expander", "lsi"}; |