hpicmn.h (f43dc23d5ea91fca257be02138a255f02d98e806) | hpicmn.h (3285ea10e9b09d68da18d2f805980246ec53523a) |
---|---|
1/** 2 3 AudioScience HPI driver 4 Copyright (C) 1997-2010 AudioScience Inc. <support@audioscience.com> 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of version 2 of the GNU General Public License as 8 published by the Free Software Foundation; --- 26 unchanged lines hidden (view full) --- 35struct hpi_control_cache { 36 u32 init; /**< indicates whether the 37 structures are initialized */ 38 u32 control_count; 39 u32 cache_size_in_bytes; 40 struct hpi_control_cache_info 41 **p_info; /**< pointer to allocated memory of 42 lookup pointers. */ | 1/** 2 3 AudioScience HPI driver 4 Copyright (C) 1997-2010 AudioScience Inc. <support@audioscience.com> 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of version 2 of the GNU General Public License as 8 published by the Free Software Foundation; --- 26 unchanged lines hidden (view full) --- 35struct hpi_control_cache { 36 u32 init; /**< indicates whether the 37 structures are initialized */ 38 u32 control_count; 39 u32 cache_size_in_bytes; 40 struct hpi_control_cache_info 41 **p_info; /**< pointer to allocated memory of 42 lookup pointers. */ |
43 struct hpi_control_cache_single 44 *p_cache; /**< pointer to DSP's control cache. */ | 43 u8 *p_cache; /**< pointer to DSP's control cache. */ |
45}; 46 47struct hpi_adapter_obj *hpi_find_adapter(u16 adapter_index); 48u16 hpi_add_adapter(struct hpi_adapter_obj *pao); 49 50void hpi_delete_adapter(struct hpi_adapter_obj *pao); 51 52short hpi_check_control_cache(struct hpi_control_cache *pC, 53 struct hpi_message *phm, struct hpi_response *phr); 54struct hpi_control_cache *hpi_alloc_control_cache(const u32 | 44}; 45 46struct hpi_adapter_obj *hpi_find_adapter(u16 adapter_index); 47u16 hpi_add_adapter(struct hpi_adapter_obj *pao); 48 49void hpi_delete_adapter(struct hpi_adapter_obj *pao); 50 51short hpi_check_control_cache(struct hpi_control_cache *pC, 52 struct hpi_message *phm, struct hpi_response *phr); 53struct hpi_control_cache *hpi_alloc_control_cache(const u32 |
55 number_of_controls, const u32 size_in_bytes, 56 struct hpi_control_cache_info 57 *pDSP_control_buffer); | 54 number_of_controls, const u32 size_in_bytes, u8 *pDSP_control_buffer); |
58void hpi_free_control_cache(struct hpi_control_cache *p_cache); 59 | 55void hpi_free_control_cache(struct hpi_control_cache *p_cache); 56 |
60void hpi_sync_control_cache(struct hpi_control_cache *pC, | 57void hpi_cmn_control_cache_sync_to_msg(struct hpi_control_cache *pC, |
61 struct hpi_message *phm, struct hpi_response *phr); 62u16 hpi_validate_response(struct hpi_message *phm, struct hpi_response *phr); 63short hpi_check_buffer_mapping(struct hpi_control_cache *p_cache, 64 struct hpi_message *phm, void **p, unsigned int *pN); | 58 struct hpi_message *phm, struct hpi_response *phr); 59u16 hpi_validate_response(struct hpi_message *phm, struct hpi_response *phr); 60short hpi_check_buffer_mapping(struct hpi_control_cache *p_cache, 61 struct hpi_message *phm, void **p, unsigned int *pN); |