diff options
Diffstat (limited to 'sound/pci/asihpi/hpi6205.h')
-rw-r--r-- | sound/pci/asihpi/hpi6205.h | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/sound/pci/asihpi/hpi6205.h b/sound/pci/asihpi/hpi6205.h index df2f02c0c7b..ec0827b633a 100644 --- a/sound/pci/asihpi/hpi6205.h +++ b/sound/pci/asihpi/hpi6205.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /***************************************************************************** | 1 | /***************************************************************************** |
2 | 2 | ||
3 | AudioScience HPI driver | 3 | AudioScience HPI driver |
4 | Copyright (C) 1997-2010 AudioScience Inc. <support@audioscience.com> | 4 | Copyright (C) 1997-2011 AudioScience Inc. <support@audioscience.com> |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify | 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 | 7 | it under the terms of version 2 of the GNU General Public License as |
@@ -70,15 +70,28 @@ The Host located memory buffer that the 6205 will bus master | |||
70 | in and out of. | 70 | in and out of. |
71 | ************************************************************/ | 71 | ************************************************************/ |
72 | #define HPI6205_SIZEOF_DATA (16*1024) | 72 | #define HPI6205_SIZEOF_DATA (16*1024) |
73 | |||
74 | struct message_buffer_6205 { | ||
75 | struct hpi_message message; | ||
76 | char data[256]; | ||
77 | }; | ||
78 | |||
79 | struct response_buffer_6205 { | ||
80 | struct hpi_response response; | ||
81 | char data[256]; | ||
82 | }; | ||
83 | |||
84 | union buffer_6205 { | ||
85 | struct message_buffer_6205 message_buffer; | ||
86 | struct response_buffer_6205 response_buffer; | ||
87 | u8 b_data[HPI6205_SIZEOF_DATA]; | ||
88 | }; | ||
89 | |||
73 | struct bus_master_interface { | 90 | struct bus_master_interface { |
74 | u32 host_cmd; | 91 | u32 host_cmd; |
75 | u32 dsp_ack; | 92 | u32 dsp_ack; |
76 | u32 transfer_size_in_bytes; | 93 | u32 transfer_size_in_bytes; |
77 | union { | 94 | union buffer_6205 u; |
78 | struct hpi_message_header message_buffer; | ||
79 | struct hpi_response_header response_buffer; | ||
80 | u8 b_data[HPI6205_SIZEOF_DATA]; | ||
81 | } u; | ||
82 | struct controlcache_6205 control_cache; | 95 | struct controlcache_6205 control_cache; |
83 | struct async_event_buffer_6205 async_buffer; | 96 | struct async_event_buffer_6205 async_buffer; |
84 | struct hpi_hostbuffer_status | 97 | struct hpi_hostbuffer_status |