firmware.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Greybus Firmware Management Header
  3. *
  4. * Copyright 2016 Google Inc.
  5. * Copyright 2016 Linaro Ltd.
  6. *
  7. * Released under the GPLv2 only.
  8. */
  9. #ifndef __FIRMWARE_H
  10. #define __FIRMWARE_H
  11. #include "greybus.h"
  12. #define FW_NAME_PREFIX /*(DEBLOBBED)*/
  13. /*
  14. * Length of the string in format: /*(DEBLOBBED)*/
  15. #define FW_NAME_SIZE 56
  16. /* Firmware Management Protocol specific functions */
  17. int fw_mgmt_init(void);
  18. void fw_mgmt_exit(void);
  19. struct gb_connection *to_fw_mgmt_connection(struct device *dev);
  20. int gb_fw_mgmt_request_handler(struct gb_operation *op);
  21. int gb_fw_mgmt_connection_init(struct gb_connection *connection);
  22. void gb_fw_mgmt_connection_exit(struct gb_connection *connection);
  23. /* Firmware Download Protocol specific functions */
  24. int gb_fw_download_request_handler(struct gb_operation *op);
  25. int gb_fw_download_connection_init(struct gb_connection *connection);
  26. void gb_fw_download_connection_exit(struct gb_connection *connection);
  27. /* CAP Protocol specific functions */
  28. int cap_init(void);
  29. void cap_exit(void);
  30. int gb_cap_connection_init(struct gb_connection *connection);
  31. void gb_cap_connection_exit(struct gb_connection *connection);
  32. #endif /* __FIRMWARE_H */