~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/pci/asihpi/hpi6205.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*****************************************************************************
  3 
  4     AudioScience HPI driver
  5     Copyright (C) 1997-2011  AudioScience Inc. <support@audioscience.com>
  6 
  7 
  8 Host Interface module for an ASI6205 based
  9 bus mastering PCI adapter.
 10 
 11 Copyright AudioScience, Inc., 2003
 12 ******************************************************************************/
 13 
 14 #ifndef _HPI6205_H_
 15 #define _HPI6205_H_
 16 
 17 #include "hpi_internal.h"
 18 
 19 /***********************************************************
 20         Defines used for basic messaging
 21 ************************************************************/
 22 #define H620_HIF_RESET          0
 23 #define H620_HIF_IDLE           1
 24 #define H620_HIF_GET_RESP       2
 25 #define H620_HIF_DATA_DONE      3
 26 #define H620_HIF_DATA_MASK      0x10
 27 #define H620_HIF_SEND_DATA      0x14
 28 #define H620_HIF_GET_DATA       0x15
 29 #define H620_HIF_UNKNOWN                0x0000ffff
 30 
 31 /***********************************************************
 32         Types used for mixer control caching
 33 ************************************************************/
 34 
 35 #define H620_MAX_ISTREAMS 32
 36 #define H620_MAX_OSTREAMS 32
 37 #define HPI_NMIXER_CONTROLS 2048
 38 
 39 /*********************************************************************
 40 This is used for dynamic control cache allocation
 41 **********************************************************************/
 42 struct controlcache_6205 {
 43         u32 number_of_controls;
 44         u32 physical_address32;
 45         u32 size_in_bytes;
 46 };
 47 
 48 /*********************************************************************
 49 This is used for dynamic allocation of async event array
 50 **********************************************************************/
 51 struct async_event_buffer_6205 {
 52         u32 physical_address32;
 53         u32 spare;
 54         struct hpi_fifo_buffer b;
 55 };
 56 
 57 /***********************************************************
 58 The Host located memory buffer that the 6205 will bus master
 59 in and out of.
 60 ************************************************************/
 61 #define HPI6205_SIZEOF_DATA (16*1024)
 62 
 63 struct message_buffer_6205 {
 64         struct hpi_message message;
 65         char data[256];
 66 };
 67 
 68 struct response_buffer_6205 {
 69         struct hpi_response response;
 70         char data[256];
 71 };
 72 
 73 union buffer_6205 {
 74         struct message_buffer_6205 message_buffer;
 75         struct response_buffer_6205 response_buffer;
 76         u8 b_data[HPI6205_SIZEOF_DATA];
 77 };
 78 
 79 struct bus_master_interface {
 80         u32 host_cmd;
 81         u32 dsp_ack;
 82         u32 transfer_size_in_bytes;
 83         union buffer_6205 u;
 84         struct controlcache_6205 control_cache;
 85         struct async_event_buffer_6205 async_buffer;
 86         struct hpi_hostbuffer_status
 87          instream_host_buffer_status[H620_MAX_ISTREAMS];
 88         struct hpi_hostbuffer_status
 89          outstream_host_buffer_status[H620_MAX_OSTREAMS];
 90 };
 91 
 92 #endif
 93 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php