Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Copyright (c) 2003-2018, Intel Corporation. All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * Intel Management Engine Interface (Intel MEI) Linux driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #ifndef _MEI_HBM_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #define _MEI_HBM_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) struct mei_device;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct mei_msg_hdr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) struct mei_cl;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)  * enum mei_hbm_state - host bus message protocol state
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)  * @MEI_HBM_IDLE : protocol not started
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)  * @MEI_HBM_STARTING : start request message was sent
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)  * @MEI_HBM_CAP_SETUP : capabilities request message was sent
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)  * @MEI_HBM_DR_SETUP : dma ring setup request message was sent
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)  * @MEI_HBM_ENUM_CLIENTS : enumeration request was sent
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)  * @MEI_HBM_CLIENT_PROPERTIES : acquiring clients properties
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)  * @MEI_HBM_STARTED : enumeration was completed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)  * @MEI_HBM_STOPPED : stopping exchange
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) enum mei_hbm_state {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	MEI_HBM_IDLE = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	MEI_HBM_STARTING,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	MEI_HBM_CAP_SETUP,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	MEI_HBM_DR_SETUP,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	MEI_HBM_ENUM_CLIENTS,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	MEI_HBM_CLIENT_PROPERTIES,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	MEI_HBM_STARTED,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	MEI_HBM_STOPPED,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) const char *mei_hbm_state_str(enum mei_hbm_state state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) void mei_hbm_idle(struct mei_device *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) void mei_hbm_reset(struct mei_device *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) int mei_hbm_start_req(struct mei_device *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) int mei_hbm_start_wait(struct mei_device *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) int mei_hbm_cl_flow_control_req(struct mei_device *dev, struct mei_cl *cl);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) int mei_hbm_cl_disconnect_req(struct mei_device *dev, struct mei_cl *cl);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) int mei_hbm_cl_disconnect_rsp(struct mei_device *dev, struct mei_cl *cl);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) int mei_hbm_cl_connect_req(struct mei_device *dev, struct mei_cl *cl);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) bool mei_hbm_version_is_supported(struct mei_device *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) int mei_hbm_pg(struct mei_device *dev, u8 pg_cmd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) void mei_hbm_pg_resume(struct mei_device *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) int mei_hbm_cl_notify_req(struct mei_device *dev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) 			  struct mei_cl *cl, u8 request);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) #endif /* _MEI_HBM_H_ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56)