interface.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. *
  3. * Intel Management Engine Interface (Intel MEI) Linux driver
  4. * Copyright (c) 2003-2011, 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_INTERFACE_H_
  17. #define _MEI_INTERFACE_H_
  18. #include "mei.h"
  19. #include "mei_dev.h"
  20. #define AMT_WD_VALUE 120 /* seconds */
  21. #define MEI_WATCHDOG_DATA_SIZE 16
  22. #define MEI_START_WD_DATA_SIZE 20
  23. #define MEI_WD_PARAMS_SIZE 4
  24. void mei_read_slots(struct mei_device *dev,
  25. unsigned char *buffer, unsigned long buffer_length);
  26. int mei_write_message(struct mei_device *dev,
  27. struct mei_msg_hdr *header,
  28. unsigned char *write_buffer,
  29. unsigned long write_length);
  30. int mei_host_buffer_is_empty(struct mei_device *dev);
  31. int mei_count_full_read_slots(struct mei_device *dev);
  32. int mei_count_empty_write_slots(struct mei_device *dev);
  33. int mei_flow_ctrl_creds(struct mei_device *dev, struct mei_cl *cl);
  34. int mei_wd_send(struct mei_device *dev);
  35. int mei_wd_stop(struct mei_device *dev, bool preserve);
  36. void mei_wd_host_init(struct mei_device *dev);
  37. void mei_wd_start_setup(struct mei_device *dev);
  38. int mei_flow_ctrl_reduce(struct mei_device *dev, struct mei_cl *cl);
  39. int mei_send_flow_control(struct mei_device *dev, struct mei_cl *cl);
  40. int mei_disconnect(struct mei_device *dev, struct mei_cl *cl);
  41. int mei_other_client_is_connecting(struct mei_device *dev, struct mei_cl *cl);
  42. int mei_connect(struct mei_device *dev, struct mei_cl *cl);
  43. #endif /* _MEI_INTERFACE_H_ */