hbm.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. *
  3. * Intel Management Engine Interface (Intel MEI) Linux driver
  4. * Copyright (c) 2003-2012, Intel Corporation.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms and conditions of the GNU General Public License,
  8. * version 2, as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  13. * more details.
  14. *
  15. */
  16. #ifndef _MEI_HBM_H_
  17. #define _MEI_HBM_H_
  18. struct mei_device;
  19. struct mei_msg_hdr;
  20. struct mei_cl;
  21. /**
  22. * enum mei_hbm_state - host bus message protocol state
  23. *
  24. * @MEI_HBM_IDLE : protocol not started
  25. * @MEI_HBM_STARTING : start request message was sent
  26. * @MEI_HBM_ENUM_CLIENTS : enumeration request was sent
  27. * @MEI_HBM_CLIENT_PROPERTIES : acquiring clients properties
  28. * @MEI_HBM_STARTED : enumeration was completed
  29. * @MEI_HBM_STOPPED : stopping exchange
  30. */
  31. enum mei_hbm_state {
  32. MEI_HBM_IDLE = 0,
  33. MEI_HBM_STARTING,
  34. MEI_HBM_ENUM_CLIENTS,
  35. MEI_HBM_CLIENT_PROPERTIES,
  36. MEI_HBM_STARTED,
  37. MEI_HBM_STOPPED,
  38. };
  39. const char *mei_hbm_state_str(enum mei_hbm_state state);
  40. int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr);
  41. void mei_hbm_idle(struct mei_device *dev);
  42. void mei_hbm_reset(struct mei_device *dev);
  43. int mei_hbm_start_req(struct mei_device *dev);
  44. int mei_hbm_start_wait(struct mei_device *dev);
  45. int mei_hbm_cl_flow_control_req(struct mei_device *dev, struct mei_cl *cl);
  46. int mei_hbm_cl_disconnect_req(struct mei_device *dev, struct mei_cl *cl);
  47. int mei_hbm_cl_disconnect_rsp(struct mei_device *dev, struct mei_cl *cl);
  48. int mei_hbm_cl_connect_req(struct mei_device *dev, struct mei_cl *cl);
  49. bool mei_hbm_version_is_supported(struct mei_device *dev);
  50. int mei_hbm_pg(struct mei_device *dev, u8 pg_cmd);
  51. void mei_hbm_pg_resume(struct mei_device *dev);
  52. int mei_hbm_cl_notify_req(struct mei_device *dev,
  53. struct mei_cl *cl, u8 request);
  54. #endif /* _MEI_HBM_H_ */