![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-only */ 0002 /****************************************************************************** 0003 0004 AudioScience HPI driver 0005 Copyright (C) 1997-2011 AudioScience Inc. <support@audioscience.com> 0006 0007 0008 Hardware Programming Interface (HPI) Utility functions 0009 0010 (C) Copyright AudioScience Inc. 2007 0011 *******************************************************************************/ 0012 /* Initialise response headers, or msg/response pairs. 0013 Note that it is valid to just init a response e.g. when a lower level is 0014 preparing a response to a message. 0015 However, when sending a message, a matching response buffer must always be 0016 prepared. 0017 */ 0018 0019 #ifndef _HPIMSGINIT_H_ 0020 #define _HPIMSGINIT_H_ 0021 0022 void hpi_init_response(struct hpi_response *phr, u16 object, u16 function, 0023 u16 error); 0024 0025 void hpi_init_message_response(struct hpi_message *phm, 0026 struct hpi_response *phr, u16 object, u16 function); 0027 0028 void hpi_init_responseV1(struct hpi_response_header *phr, u16 size, 0029 u16 object, u16 function); 0030 0031 void hpi_init_message_responseV1(struct hpi_message_header *phm, u16 msg_size, 0032 struct hpi_response_header *phr, u16 res_size, u16 object, 0033 u16 function); 0034 0035 #endif /* _HPIMSGINIT_H_ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |