hpimsginit.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /******************************************************************************
  3. AudioScience HPI driver
  4. Copyright (C) 1997-2011 AudioScience Inc. <[email protected]>
  5. Hardware Programming Interface (HPI) Utility functions
  6. (C) Copyright AudioScience Inc. 2007
  7. *******************************************************************************/
  8. /* Initialise response headers, or msg/response pairs.
  9. Note that it is valid to just init a response e.g. when a lower level is
  10. preparing a response to a message.
  11. However, when sending a message, a matching response buffer must always be
  12. prepared.
  13. */
  14. #ifndef _HPIMSGINIT_H_
  15. #define _HPIMSGINIT_H_
  16. void hpi_init_response(struct hpi_response *phr, u16 object, u16 function,
  17. u16 error);
  18. void hpi_init_message_response(struct hpi_message *phm,
  19. struct hpi_response *phr, u16 object, u16 function);
  20. void hpi_init_responseV1(struct hpi_response_header *phr, u16 size,
  21. u16 object, u16 function);
  22. void hpi_init_message_responseV1(struct hpi_message_header *phm, u16 msg_size,
  23. struct hpi_response_header *phr, u16 res_size, u16 object,
  24. u16 function);
  25. #endif /* _HPIMSGINIT_H_ */