/******************************************************************************12AudioScience HPI driver3Copyright (C) 1997-2010 AudioScience Inc. <[email protected]>45This program is free software; you can redistribute it and/or modify6it under the terms of version 2 of the GNU General Public License as7published by the Free Software Foundation;89This program is distributed in the hope that it will be useful,10but WITHOUT ANY WARRANTY; without even the implied warranty of11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12GNU General Public License for more details.1314You should have received a copy of the GNU General Public License15along with this program; if not, write to the Free Software16Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA1718Hardware Programming Interface (HPI) Utility functions1920(C) Copyright AudioScience Inc. 200721*******************************************************************************/22/* Initialise response headers, or msg/response pairs.23Note that it is valid to just init a response e.g. when a lower level is24preparing a response to a message.25However, when sending a message, a matching response buffer must always be26prepared.27*/2829#ifndef _HPIMSGINIT_H_30#define _HPIMSGINIT_H_3132void hpi_init_response(struct hpi_response *phr, u16 object, u16 function,33u16 error);3435void hpi_init_message_response(struct hpi_message *phm,36struct hpi_response *phr, u16 object, u16 function);3738void hpi_init_responseV1(struct hpi_response_header *phr, u16 size,39u16 object, u16 function);4041void hpi_init_message_responseV1(struct hpi_message_header *phm, u16 msg_size,42struct hpi_response_header *phr, u16 res_size, u16 object,43u16 function);4445#endif /* _HPIMSGINIT_H_ */464748