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__
11 CMD_DB_HW_ARC
= CMD_DB_HW_MIN
,
14 CMD_DB_HW_MAX
= CMD_DB_HW_BCM
,
18 #if IS_ENABLED(CONFIG_QCOM_COMMAND_DB)
19 u32
cmd_db_read_addr(const char *resource_id
);
21 const void *cmd_db_read_aux_data(const char *resource_id
, size_t *len
);
23 enum cmd_db_hw_type
cmd_db_read_slave_id(const char *resource_id
);
25 int cmd_db_ready(void);
27 static inline u32
cmd_db_read_addr(const char *resource_id
)
30 static inline const void *cmd_db_read_aux_data(const char *resource_id
, size_t *len
)
31 { return ERR_PTR(-ENODEV
); }
33 static inline enum cmd_db_hw_type
cmd_db_read_slave_id(const char *resource_id
)
36 static inline int cmd_db_ready(void)
38 #endif /* CONFIG_QCOM_COMMAND_DB */
39 #endif /* __QCOM_COMMAND_DB_H__ */