Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mixart_hwdep.h File Reference
#include <sound/hwdep.h>

Go to the source code of this file.

Macros

#define readl_be(x)   be32_to_cpu(__raw_readl(x))
 
#define writel_be(data, addr)   __raw_writel(cpu_to_be32(data),addr)
 
#define readl_le(x)   le32_to_cpu(__raw_readl(x))
 
#define writel_le(data, addr)   __raw_writel(cpu_to_le32(data),addr)
 
#define MIXART_MEM(mgr, x)   ((mgr)->mem[0].virt + (x))
 
#define MIXART_REG(mgr, x)   ((mgr)->mem[1].virt + (x))
 
#define DAUGHTER_TYPE_MASK   0x0F
 
#define DAUGHTER_VER_MASK   0xF0
 
#define DAUGHTER_TYPEVER_MASK   (DAUGHTER_TYPE_MASK|DAUGHTER_VER_MASK)
 
#define MIXART_DAUGHTER_TYPE_NONE   0x00
 
#define MIXART_DAUGHTER_TYPE_COBRANET   0x08
 
#define MIXART_DAUGHTER_TYPE_AES   0x0E
 
#define MIXART_BA0_SIZE   (16 * 1024 * 1024) /* 16M */
 
#define MIXART_BA1_SIZE   (4 * 1024) /* 4k */
 
#define MIXART_PSEUDOREG   0x2000 /* base address for pseudoregister */
 
#define MIXART_PSEUDOREG_BOARDNUMBER   MIXART_PSEUDOREG+0 /* board number */
 
#define MIXART_PSEUDOREG_PERF_STREAM_LOAD_OFFSET   MIXART_PSEUDOREG+0x70 /* streaming load */
 
#define MIXART_PSEUDOREG_PERF_SYSTEM_LOAD_OFFSET   MIXART_PSEUDOREG+0x78 /* system load (reference)*/
 
#define MIXART_PSEUDOREG_PERF_MAILBX_LOAD_OFFSET   MIXART_PSEUDOREG+0x7C /* mailbox load */
 
#define MIXART_PSEUDOREG_PERF_INTERR_LOAD_OFFSET   MIXART_PSEUDOREG+0x74 /* interrupt handling load */
 
#define MIXART_PSEUDOREG_MXLX_BASE_ADDR_OFFSET   MIXART_PSEUDOREG+0x9C /* 0x00600000 */
 
#define MIXART_PSEUDOREG_MXLX_SIZE_OFFSET   MIXART_PSEUDOREG+0xA0 /* xilinx size in bytes */
 
#define MIXART_PSEUDOREG_MXLX_STATUS_OFFSET   MIXART_PSEUDOREG+0xA4 /* status = EMBEBBED_STAT_XXX */
 
#define MIXART_PSEUDOREG_ELF_STATUS_OFFSET   MIXART_PSEUDOREG+0xB0 /* status = EMBEBBED_STAT_XXX */
 
#define MIXART_PSEUDOREG_DBRD_PRESENCE_OFFSET   MIXART_PSEUDOREG+0x990
 
#define MIXART_PSEUDOREG_DBRD_TYPE_OFFSET   MIXART_PSEUDOREG+0x994 /* Type and version of daughterboard */
 
#define MIXART_PSEUDOREG_DXLX_BASE_ADDR_OFFSET   MIXART_PSEUDOREG+0x998 /* get the address here where to write the file */
 
#define MIXART_PSEUDOREG_DXLX_SIZE_OFFSET   MIXART_PSEUDOREG+0x99C /* xilinx size in bytes */
 
#define MIXART_PSEUDOREG_DXLX_STATUS_OFFSET   MIXART_PSEUDOREG+0x9A0 /* status = EMBEBBED_STAT_XXX */
 
#define MIXART_FLOWTABLE_PTR   0x3000 /* pointer to flow table */
 
#define MSG_INBOUND_POST_HEAD   0x010008 /* DRV posts MF + increment4 */
 
#define MSG_INBOUND_POST_TAIL   0x01000C /* EMB gets MF + increment4 */
 
#define MSG_OUTBOUND_POST_TAIL   0x01001C /* DRV gets MF + increment4 */
 
#define MSG_OUTBOUND_POST_HEAD   0x010018 /* EMB posts MF + increment4 */
 
#define MSG_INBOUND_FREE_TAIL   0x010004 /* DRV gets MFA + increment4 */
 
#define MSG_OUTBOUND_FREE_TAIL   0x010014 /* EMB gets MFA + increment4 */
 
#define MSG_OUTBOUND_FREE_HEAD   0x010010 /* DRV puts MFA + increment4 */
 
#define MSG_INBOUND_FREE_HEAD   0x010000 /* EMB puts MFA + increment4 */
 
#define MSG_BOUND_STACK_SIZE   0x004000 /* size of each following stack */
 
#define MSG_OUTBOUND_POST_STACK   0x108000 /* stack of messages to the DRV */
 
#define MSG_INBOUND_POST_STACK   0x104000 /* stack of messages to the EMB */
 
#define MSG_OUTBOUND_FREE_STACK   0x10C000 /* stack of free enveloped for EMB */
 
#define MSG_INBOUND_FREE_STACK   0x100000 /* stack of free enveloped for DRV */
 
#define MSG_FRAME_OFFSET   0x64
 
#define MSG_FRAME_SIZE   0x6400
 
#define MSG_FRAME_NUMBER   32
 
#define MSG_FROM_AGENT_ITMF_OFFSET   (MSG_FRAME_OFFSET + (MSG_FRAME_SIZE * MSG_FRAME_NUMBER))
 
#define MSG_TO_AGENT_ITMF_OFFSET   (MSG_FROM_AGENT_ITMF_OFFSET + MSG_FRAME_SIZE)
 
#define MSG_HOST_RSC_PROTECTION   (MSG_TO_AGENT_ITMF_OFFSET + MSG_FRAME_SIZE)
 
#define MSG_AGENT_RSC_PROTECTION   (MSG_HOST_RSC_PROTECTION + 4)
 
#define MIXART_PCI_OMIMR_OFFSET   0x34 /* outbound message interrupt mask register */
 
#define MIXART_PCI_OMISR_OFFSET   0x30 /* outbound message interrupt status register */
 
#define MIXART_PCI_ODBR_OFFSET   0x60 /* outbound doorbell register */
 
#define MIXART_BA1_BRUTAL_RESET_OFFSET   0x68 /* write 1 in LSBit to reset board */
 
#define MIXART_HOST_ALL_INTERRUPT_MASKED   0x02B /* 0000 0010 1011 */
 
#define MIXART_ALLOW_OUTBOUND_DOORBELL   0x023 /* 0000 0010 0011 */
 
#define MIXART_OIDI   0x008 /* 0000 0000 1000 */
 

Functions

int snd_mixart_setup_firmware (struct mixart_mgr *mgr)
 

Macro Definition Documentation

#define DAUGHTER_TYPE_MASK   0x0F

Definition at line 49 of file mixart_hwdep.h.

#define DAUGHTER_TYPEVER_MASK   (DAUGHTER_TYPE_MASK|DAUGHTER_VER_MASK)

Definition at line 51 of file mixart_hwdep.h.

#define DAUGHTER_VER_MASK   0xF0

Definition at line 50 of file mixart_hwdep.h.

#define MIXART_ALLOW_OUTBOUND_DOORBELL   0x023 /* 0000 0010 0011 */

Definition at line 149 of file mixart_hwdep.h.

#define MIXART_BA0_SIZE   (16 * 1024 * 1024) /* 16M */

Definition at line 59 of file mixart_hwdep.h.

#define MIXART_BA1_BRUTAL_RESET_OFFSET   0x68 /* write 1 in LSBit to reset board */

Definition at line 146 of file mixart_hwdep.h.

#define MIXART_BA1_SIZE   (4 * 1024) /* 4k */

Definition at line 60 of file mixart_hwdep.h.

#define MIXART_DAUGHTER_TYPE_AES   0x0E

Definition at line 55 of file mixart_hwdep.h.

#define MIXART_DAUGHTER_TYPE_COBRANET   0x08

Definition at line 54 of file mixart_hwdep.h.

#define MIXART_DAUGHTER_TYPE_NONE   0x00

Definition at line 53 of file mixart_hwdep.h.

#define MIXART_FLOWTABLE_PTR   0x3000 /* pointer to flow table */

Definition at line 100 of file mixart_hwdep.h.

#define MIXART_HOST_ALL_INTERRUPT_MASKED   0x02B /* 0000 0010 1011 */

Definition at line 148 of file mixart_hwdep.h.

#define MIXART_MEM (   mgr,
  x 
)    ((mgr)->mem[0].virt + (x))

Definition at line 44 of file mixart_hwdep.h.

#define MIXART_OIDI   0x008 /* 0000 0000 1000 */

Definition at line 150 of file mixart_hwdep.h.

#define MIXART_PCI_ODBR_OFFSET   0x60 /* outbound doorbell register */

Definition at line 144 of file mixart_hwdep.h.

#define MIXART_PCI_OMIMR_OFFSET   0x34 /* outbound message interrupt mask register */

Definition at line 142 of file mixart_hwdep.h.

#define MIXART_PCI_OMISR_OFFSET   0x30 /* outbound message interrupt status register */

Definition at line 143 of file mixart_hwdep.h.

#define MIXART_PSEUDOREG   0x2000 /* base address for pseudoregister */

Definition at line 65 of file mixart_hwdep.h.

#define MIXART_PSEUDOREG_BOARDNUMBER   MIXART_PSEUDOREG+0 /* board number */

Definition at line 67 of file mixart_hwdep.h.

#define MIXART_PSEUDOREG_DBRD_PRESENCE_OFFSET   MIXART_PSEUDOREG+0x990

Definition at line 88 of file mixart_hwdep.h.

#define MIXART_PSEUDOREG_DBRD_TYPE_OFFSET   MIXART_PSEUDOREG+0x994 /* Type and version of daughterboard */

Definition at line 91 of file mixart_hwdep.h.

#define MIXART_PSEUDOREG_DXLX_BASE_ADDR_OFFSET   MIXART_PSEUDOREG+0x998 /* get the address here where to write the file */

Definition at line 95 of file mixart_hwdep.h.

#define MIXART_PSEUDOREG_DXLX_SIZE_OFFSET   MIXART_PSEUDOREG+0x99C /* xilinx size in bytes */

Definition at line 96 of file mixart_hwdep.h.

#define MIXART_PSEUDOREG_DXLX_STATUS_OFFSET   MIXART_PSEUDOREG+0x9A0 /* status = EMBEBBED_STAT_XXX */

Definition at line 97 of file mixart_hwdep.h.

#define MIXART_PSEUDOREG_ELF_STATUS_OFFSET   MIXART_PSEUDOREG+0xB0 /* status = EMBEBBED_STAT_XXX */

Definition at line 81 of file mixart_hwdep.h.

#define MIXART_PSEUDOREG_MXLX_BASE_ADDR_OFFSET   MIXART_PSEUDOREG+0x9C /* 0x00600000 */

Definition at line 76 of file mixart_hwdep.h.

#define MIXART_PSEUDOREG_MXLX_SIZE_OFFSET   MIXART_PSEUDOREG+0xA0 /* xilinx size in bytes */

Definition at line 77 of file mixart_hwdep.h.

#define MIXART_PSEUDOREG_MXLX_STATUS_OFFSET   MIXART_PSEUDOREG+0xA4 /* status = EMBEBBED_STAT_XXX */

Definition at line 78 of file mixart_hwdep.h.

#define MIXART_PSEUDOREG_PERF_INTERR_LOAD_OFFSET   MIXART_PSEUDOREG+0x74 /* interrupt handling load */

Definition at line 73 of file mixart_hwdep.h.

#define MIXART_PSEUDOREG_PERF_MAILBX_LOAD_OFFSET   MIXART_PSEUDOREG+0x7C /* mailbox load */

Definition at line 72 of file mixart_hwdep.h.

#define MIXART_PSEUDOREG_PERF_STREAM_LOAD_OFFSET   MIXART_PSEUDOREG+0x70 /* streaming load */

Definition at line 70 of file mixart_hwdep.h.

#define MIXART_PSEUDOREG_PERF_SYSTEM_LOAD_OFFSET   MIXART_PSEUDOREG+0x78 /* system load (reference)*/

Definition at line 71 of file mixart_hwdep.h.

#define MIXART_REG (   mgr,
  x 
)    ((mgr)->mem[1].virt + (x))

Definition at line 45 of file mixart_hwdep.h.

#define MSG_AGENT_RSC_PROTECTION   (MSG_HOST_RSC_PROTECTION + 4)

Definition at line 134 of file mixart_hwdep.h.

#define MSG_BOUND_STACK_SIZE   0x004000 /* size of each following stack */

Definition at line 118 of file mixart_hwdep.h.

#define MSG_FRAME_NUMBER   32

Definition at line 130 of file mixart_hwdep.h.

#define MSG_FRAME_OFFSET   0x64

Definition at line 128 of file mixart_hwdep.h.

#define MSG_FRAME_SIZE   0x6400

Definition at line 129 of file mixart_hwdep.h.

#define MSG_FROM_AGENT_ITMF_OFFSET   (MSG_FRAME_OFFSET + (MSG_FRAME_SIZE * MSG_FRAME_NUMBER))

Definition at line 131 of file mixart_hwdep.h.

#define MSG_HOST_RSC_PROTECTION   (MSG_TO_AGENT_ITMF_OFFSET + MSG_FRAME_SIZE)

Definition at line 133 of file mixart_hwdep.h.

#define MSG_INBOUND_FREE_HEAD   0x010000 /* EMB puts MFA + increment4 */

Definition at line 115 of file mixart_hwdep.h.

#define MSG_INBOUND_FREE_STACK   0x100000 /* stack of free enveloped for DRV */

Definition at line 124 of file mixart_hwdep.h.

#define MSG_INBOUND_FREE_TAIL   0x010004 /* DRV gets MFA + increment4 */

Definition at line 111 of file mixart_hwdep.h.

#define MSG_INBOUND_POST_HEAD   0x010008 /* DRV posts MF + increment4 */

Definition at line 105 of file mixart_hwdep.h.

#define MSG_INBOUND_POST_STACK   0x104000 /* stack of messages to the EMB */

Definition at line 121 of file mixart_hwdep.h.

#define MSG_INBOUND_POST_TAIL   0x01000C /* EMB gets MF + increment4 */

Definition at line 106 of file mixart_hwdep.h.

#define MSG_OUTBOUND_FREE_HEAD   0x010010 /* DRV puts MFA + increment4 */

Definition at line 114 of file mixart_hwdep.h.

#define MSG_OUTBOUND_FREE_STACK   0x10C000 /* stack of free enveloped for EMB */

Definition at line 123 of file mixart_hwdep.h.

#define MSG_OUTBOUND_FREE_TAIL   0x010014 /* EMB gets MFA + increment4 */

Definition at line 112 of file mixart_hwdep.h.

#define MSG_OUTBOUND_POST_HEAD   0x010018 /* EMB posts MF + increment4 */

Definition at line 109 of file mixart_hwdep.h.

#define MSG_OUTBOUND_POST_STACK   0x108000 /* stack of messages to the DRV */

Definition at line 120 of file mixart_hwdep.h.

#define MSG_OUTBOUND_POST_TAIL   0x01001C /* DRV gets MF + increment4 */

Definition at line 108 of file mixart_hwdep.h.

#define MSG_TO_AGENT_ITMF_OFFSET   (MSG_FROM_AGENT_ITMF_OFFSET + MSG_FRAME_SIZE)

Definition at line 132 of file mixart_hwdep.h.

#define readl_be (   x)    be32_to_cpu(__raw_readl(x))

Definition at line 29 of file mixart_hwdep.h.

#define readl_le (   x)    le32_to_cpu(__raw_readl(x))

Definition at line 37 of file mixart_hwdep.h.

#define writel_be (   data,
  addr 
)    __raw_writel(cpu_to_be32(data),addr)

Definition at line 33 of file mixart_hwdep.h.

#define writel_le (   data,
  addr 
)    __raw_writel(cpu_to_le32(data),addr)

Definition at line 41 of file mixart_hwdep.h.

Function Documentation

int snd_mixart_setup_firmware ( struct mixart_mgr mgr)

Definition at line 633 of file mixart_hwdep.c.