Balint Dobszay | 550ce87 | 2022-12-15 15:28:40 +0100 | [diff] [blame] | 1 | /* |
2 | * Copyright (c) 2023, Arm Limited. All rights reserved. | ||||
3 | * | ||||
4 | * SPDX-License-Identifier: BSD-3-Clause | ||||
5 | * | ||||
6 | */ | ||||
7 | |||||
8 | #include <stdbool.h> | ||||
9 | #include <stdint.h> | ||||
10 | |||||
11 | #include "config/interface/config_store.h" | ||||
12 | #include "crc32_discovery.h" | ||||
13 | |||||
14 | bool crc32_armv8a_hw_available(void) | ||||
15 | { | ||||
16 | uint32_t value = 0; | ||||
17 | |||||
18 | if (!config_store_query(CONFIG_CLASSIFIER_HW_FEATURE, "crc32", 0, &value, sizeof(value))) | ||||
19 | return false; | ||||
20 | |||||
21 | return value != 0; | ||||
22 | } |