1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. */
4 #ifndef __QCOM_COMMAND_DB_H__
5 #define __QCOM_COMMAND_DB_H__
10 CMD_DB_HW_INVALID = 0,
12 CMD_DB_HW_ARC = CMD_DB_HW_MIN,
15 CMD_DB_HW_MAX = CMD_DB_HW_BCM,
19 #if IS_ENABLED(CONFIG_QCOM_COMMAND_DB)
20 u32 cmd_db_read_addr(const char *resource_id);
22 const void *cmd_db_read_aux_data(const char *resource_id, size_t *len);
24 enum cmd_db_hw_type cmd_db_read_slave_id(const char *resource_id);
26 int cmd_db_ready(void);
28 static inline u32 cmd_db_read_addr(const char *resource_id)
31 static inline const void *cmd_db_read_aux_data(const char *resource_id, size_t *len)
32 { return ERR_PTR(-ENODEV); }
34 static inline enum cmd_db_hw_type cmd_db_read_slave_id(const char *resource_id)
37 static inline int cmd_db_ready(void)
39 #endif /* CONFIG_QCOM_COMMAND_DB */
40 #endif /* __QCOM_COMMAND_DB_H__ */