xref: /linux/drivers/misc/issei/ham.h (revision 93e4b3076b5f2d853462b9777d083c77fc0b7b23)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2023-2026 Intel Corporation */
3 #ifndef _ISSEI_HAM_H_
4 #define _ISSEI_HAM_H_
5 
6 #include <linux/types.h>
7 
8 struct issei_device;
9 
10 int issei_ham_send_start_req(struct issei_device *idev);
11 int issei_ham_send_clients_req(struct issei_device *idev);
12 
13 static inline bool issei_is_ham_rsp(u16 fw_id, u16 host_id)
14 {
15 	return fw_id == 0 && host_id == 0;
16 }
17 
18 int issei_ham_process_ham_rsp(struct issei_device *idev, const u8 *buf, size_t length);
19 
20 #endif /* _ISSEI_HAM_H_ */
21