Helper function to parse HTP architecture from string
| 12 | |
| 13 | // Helper function to parse HTP architecture from string |
| 14 | QcomHTPArch parseHTPArch(const std::string& arch_str) { |
| 15 | if (arch_str == "NONE") return QcomHTPArch::NONE; |
| 16 | if (arch_str == "V68") return QcomHTPArch::V68; |
| 17 | if (arch_str == "V69") return QcomHTPArch::V69; |
| 18 | if (arch_str == "V73") return QcomHTPArch::V73; |
| 19 | if (arch_str == "V75") return QcomHTPArch::V75; |
| 20 | if (arch_str == "V79") return QcomHTPArch::V79; |
| 21 | if (arch_str == "V81") return QcomHTPArch::V81; |
| 22 | throw std::invalid_argument("Unknown HTP architecture: " + arch_str); |
| 23 | } |
| 24 | |
| 25 | // Helper function to parse chipset from string |
| 26 | QcomChipset parseChipset(const std::string& chipset_str) { |
no outgoing calls
no test coverage detected