Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
au88x0.h File Reference
#include "au88x0_eq.h"
#include "au88x0_a3d.h"
#include "au88x0_wt.h"

Go to the source code of this file.

Data Structures

struct  pcm_vol
 
struct  stream_t
 
struct  snd_vortex
 

Macros

#define hwread(x, y)   readl((x)+(y))
 
#define hwwrite(x, y, z)   writel((z),(x)+(y))
 
#define MIDI_CLOCK_DIV   0x61
 
#define MPU401_RESET   0xff
 
#define MPU401_ENTER_UART   0x3f
 
#define MPU401_ACK   0xfe
 
#define SRC_RATIO(x, y)   ((((x<<15)/y) + 1)/2)
 
#define FIFO_STOP   0
 
#define FIFO_START   1
 
#define FIFO_PAUSE   2
 
#define IRQ_ERR_MASK   0x00ff
 
#define IRQ_FATAL   0x0001
 
#define IRQ_PARITY   0x0002
 
#define IRQ_REG   0x0004
 
#define IRQ_FIFO   0x0008
 
#define IRQ_DMA   0x0010
 
#define IRQ_PCMOUT   0x0020 /* PCM OUT page crossing */
 
#define IRQ_TIMER   0x1000
 
#define IRQ_MIDI   0x2000
 
#define IRQ_MODEM   0x4000
 
#define VORTEX_RESOURCE_DMA   0x00000000
 
#define VORTEX_RESOURCE_SRC   0x00000001
 
#define VORTEX_RESOURCE_MIXIN   0x00000002
 
#define VORTEX_RESOURCE_MIXOUT   0x00000003
 
#define VORTEX_RESOURCE_A3D   0x00000004
 
#define VORTEX_RESOURCE_LAST   0x00000005
 
#define VORTEX_CODEC_ID_SHIFT   24
 
#define VORTEX_CODEC_WRITE   0x00800000
 
#define VORTEX_CODEC_ADDSHIFT   16
 
#define VORTEX_CODEC_ADDMASK   0x7f0000
 
#define VORTEX_CODEC_DATSHIFT   0
 
#define VORTEX_CODEC_DATMASK   0xffff
 
#define VORTEX_IS_QUAD(x)   ((x)->isquad)
 
#define IS_BAD_CHIP(x)
 
#define VORTEX_PCM_ADB   0
 
#define VORTEX_PCM_SPDIF   1
 
#define VORTEX_PCM_A3D   2
 
#define VORTEX_PCM_WT   3
 
#define VORTEX_PCM_I2S   4
 
#define VORTEX_PCM_LAST   5
 
#define MIX_CAPT(x)   (vortex->mixcapt[x])
 
#define MIX_PLAYB(x)   (vortex->mixplayb[x])
 
#define MIX_SPDIF(x)   (vortex->mixspdif[x])
 
#define NR_WTPB   0x20 /* WT channels per each bank. */
 
#define NR_PCM   0x10
 

Typedefs

typedef struct snd_vortex vortex_t
 

Macro Definition Documentation

#define FIFO_PAUSE   2

Definition at line 56 of file au88x0.h.

#define FIFO_START   1

Definition at line 55 of file au88x0.h.

#define FIFO_STOP   0

Definition at line 54 of file au88x0.h.

#define hwread (   x,
  y 
)    readl((x)+(y))

Definition at line 40 of file au88x0.h.

#define hwwrite (   x,
  y,
 
)    writel((z),(x)+(y))

Definition at line 41 of file au88x0.h.

#define IRQ_DMA   0x0010

Definition at line 64 of file au88x0.h.

#define IRQ_ERR_MASK   0x00ff

Definition at line 59 of file au88x0.h.

#define IRQ_FATAL   0x0001

Definition at line 60 of file au88x0.h.

#define IRQ_FIFO   0x0008

Definition at line 63 of file au88x0.h.

#define IRQ_MIDI   0x2000

Definition at line 67 of file au88x0.h.

#define IRQ_MODEM   0x4000

Definition at line 68 of file au88x0.h.

#define IRQ_PARITY   0x0002

Definition at line 61 of file au88x0.h.

#define IRQ_PCMOUT   0x0020 /* PCM OUT page crossing */

Definition at line 65 of file au88x0.h.

#define IRQ_REG   0x0004

Definition at line 62 of file au88x0.h.

#define IRQ_TIMER   0x1000

Definition at line 66 of file au88x0.h.

#define IS_BAD_CHIP (   x)
Value:
(\
(x->rev == 0xfe && x->device == PCI_DEVICE_ID_AUREAL_VORTEX_2) || \
(x->rev == 0xfe && x->device == PCI_DEVICE_ID_AUREAL_ADVANTAGE))

Definition at line 90 of file au88x0.h.

#define MIDI_CLOCK_DIV   0x61

Definition at line 44 of file au88x0.h.

#define MIX_CAPT (   x)    (vortex->mixcapt[x])

Definition at line 103 of file au88x0.h.

#define MIX_PLAYB (   x)    (vortex->mixplayb[x])

Definition at line 104 of file au88x0.h.

#define MIX_SPDIF (   x)    (vortex->mixspdif[x])

Definition at line 105 of file au88x0.h.

#define MPU401_ACK   0xfe

Definition at line 48 of file au88x0.h.

#define MPU401_ENTER_UART   0x3f

Definition at line 47 of file au88x0.h.

#define MPU401_RESET   0xff

Definition at line 46 of file au88x0.h.

#define NR_PCM   0x10

Definition at line 108 of file au88x0.h.

#define NR_WTPB   0x20 /* WT channels per each bank. */

Definition at line 107 of file au88x0.h.

#define SRC_RATIO (   x,
  y 
)    ((((x<<15)/y) + 1)/2)

Definition at line 51 of file au88x0.h.

#define VORTEX_CODEC_ADDMASK   0x7f0000

Definition at line 82 of file au88x0.h.

#define VORTEX_CODEC_ADDSHIFT   16

Definition at line 81 of file au88x0.h.

#define VORTEX_CODEC_DATMASK   0xffff

Definition at line 84 of file au88x0.h.

#define VORTEX_CODEC_DATSHIFT   0

Definition at line 83 of file au88x0.h.

#define VORTEX_CODEC_ID_SHIFT   24

Definition at line 79 of file au88x0.h.

#define VORTEX_CODEC_WRITE   0x00800000

Definition at line 80 of file au88x0.h.

#define VORTEX_IS_QUAD (   x)    ((x)->isquad)

Definition at line 88 of file au88x0.h.

#define VORTEX_PCM_A3D   2

Definition at line 98 of file au88x0.h.

#define VORTEX_PCM_ADB   0

Definition at line 96 of file au88x0.h.

#define VORTEX_PCM_I2S   4

Definition at line 100 of file au88x0.h.

#define VORTEX_PCM_LAST   5

Definition at line 101 of file au88x0.h.

#define VORTEX_PCM_SPDIF   1

Definition at line 97 of file au88x0.h.

#define VORTEX_PCM_WT   3

Definition at line 99 of file au88x0.h.

#define VORTEX_RESOURCE_A3D   0x00000004

Definition at line 75 of file au88x0.h.

#define VORTEX_RESOURCE_DMA   0x00000000

Definition at line 71 of file au88x0.h.

#define VORTEX_RESOURCE_LAST   0x00000005

Definition at line 76 of file au88x0.h.

#define VORTEX_RESOURCE_MIXIN   0x00000002

Definition at line 73 of file au88x0.h.

#define VORTEX_RESOURCE_MIXOUT   0x00000003

Definition at line 74 of file au88x0.h.

#define VORTEX_RESOURCE_SRC   0x00000001

Definition at line 72 of file au88x0.h.

Typedef Documentation

Definition at line 143 of file au88x0.h.