Caleb Connolly | 90ff581 | 2024-07-15 12:08:02 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. |
| 4 | * Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved. |
| 5 | */ |
| 6 | |
| 7 | #ifndef __QCOM_COMMAND_DB_H__ |
| 8 | #define __QCOM_COMMAND_DB_H__ |
| 9 | |
| 10 | #include <linux/err.h> |
| 11 | |
| 12 | enum cmd_db_hw_type { |
| 13 | CMD_DB_HW_INVALID = 0, |
| 14 | CMD_DB_HW_MIN = 3, |
| 15 | CMD_DB_HW_ARC = CMD_DB_HW_MIN, |
| 16 | CMD_DB_HW_VRM = 4, |
| 17 | CMD_DB_HW_BCM = 5, |
| 18 | CMD_DB_HW_MAX = CMD_DB_HW_BCM, |
| 19 | CMD_DB_HW_ALL = 0xff, |
| 20 | }; |
| 21 | |
| 22 | #if IS_ENABLED(CONFIG_QCOM_COMMAND_DB) |
| 23 | u32 cmd_db_read_addr(const char *resource_id); |
| 24 | |
Caleb Connolly | 90ff581 | 2024-07-15 12:08:02 +0200 | [diff] [blame] | 25 | #else |
| 26 | static inline u32 cmd_db_read_addr(const char *resource_id) |
| 27 | { return 0; } |
| 28 | |
Caleb Connolly | 90ff581 | 2024-07-15 12:08:02 +0200 | [diff] [blame] | 29 | #endif /* CONFIG_QCOM_COMMAND_DB */ |
| 30 | #endif /* __QCOM_COMMAND_DB_H__ */ |