162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/******************************************************************************
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci    AudioScience HPI driver
562306a36Sopenharmony_ci    Copyright (C) 1997-2011  AudioScience Inc. <support@audioscience.com>
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci Hardware Programming Interface (HPI) Utility functions
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci (C) Copyright AudioScience Inc. 2007
1162306a36Sopenharmony_ci*******************************************************************************/
1262306a36Sopenharmony_ci/* Initialise response headers, or msg/response pairs.
1362306a36Sopenharmony_ciNote that it is valid to just init a response e.g. when a lower level is
1462306a36Sopenharmony_cipreparing a response to a message.
1562306a36Sopenharmony_ciHowever, when sending a message, a matching response buffer must always be
1662306a36Sopenharmony_ciprepared.
1762306a36Sopenharmony_ci*/
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#ifndef _HPIMSGINIT_H_
2062306a36Sopenharmony_ci#define _HPIMSGINIT_H_
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_civoid hpi_init_response(struct hpi_response *phr, u16 object, u16 function,
2362306a36Sopenharmony_ci	u16 error);
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_civoid hpi_init_message_response(struct hpi_message *phm,
2662306a36Sopenharmony_ci	struct hpi_response *phr, u16 object, u16 function);
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_civoid hpi_init_responseV1(struct hpi_response_header *phr, u16 size,
2962306a36Sopenharmony_ci	u16 object, u16 function);
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_civoid hpi_init_message_responseV1(struct hpi_message_header *phm, u16 msg_size,
3262306a36Sopenharmony_ci	struct hpi_response_header *phr, u16 res_size, u16 object,
3362306a36Sopenharmony_ci	u16 function);
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci#endif				/* _HPIMSGINIT_H_ */
36