Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
cs5535audio.h File Reference

Go to the source code of this file.

Data Structures

struct  cs5535audio_dma_ops
 
struct  cs5535audio_dma_desc
 
struct  cs5535audio_dma
 
struct  cs5535audio
 

Macros

#define cs_writel(cs5535au, reg, val)   outl(val, (cs5535au)->port + reg)
 
#define cs_writeb(cs5535au, reg, val)   outb(val, (cs5535au)->port + reg)
 
#define cs_readl(cs5535au, reg)   inl((cs5535au)->port + reg)
 
#define cs_readw(cs5535au, reg)   inw((cs5535au)->port + reg)
 
#define cs_readb(cs5535au, reg)   inb((cs5535au)->port + reg)
 
#define CS5535AUDIO_MAX_DESCRIPTORS   128
 
#define ACC_GPIO_STATUS   0x00
 
#define ACC_CODEC_STATUS   0x08
 
#define ACC_CODEC_CNTL   0x0C
 
#define ACC_IRQ_STATUS   0x12
 
#define ACC_BM0_CMD   0x20
 
#define ACC_BM1_CMD   0x28
 
#define ACC_BM0_PRD   0x24
 
#define ACC_BM1_PRD   0x2C
 
#define ACC_BM0_STATUS   0x21
 
#define ACC_BM1_STATUS   0x29
 
#define ACC_BM0_PNTR   0x60
 
#define ACC_BM1_PNTR   0x64
 
#define IRQ_STS   0
 
#define WU_IRQ_STS   1
 
#define BM0_IRQ_STS   2
 
#define BM1_IRQ_STS   3
 
#define EOP   (1<<0)
 
#define BM_EOP_ERR   (1<<1)
 
#define BM_CTL_EN   0x01
 
#define BM_CTL_PAUSE   0x03
 
#define BM_CTL_DIS   0x00
 
#define BM_CTL_BYTE_ORD_LE   0x00
 
#define BM_CTL_BYTE_ORD_BE   0x04
 
#define CMD_MASK   0xFF00FFFF
 
#define CMD_NEW   0x00010000
 
#define STS_NEW   0x00020000
 
#define PRM_RDY_STS   0x00800000
 
#define ACC_CODEC_CNTL_WR_CMD   (~0x80000000)
 
#define ACC_CODEC_CNTL_RD_CMD   0x80000000
 
#define ACC_CODEC_CNTL_LNK_SHUTDOWN   0x00040000
 
#define ACC_CODEC_CNTL_LNK_WRM_RST   0x00020000
 
#define PRD_JMP   0x2000
 
#define PRD_EOP   0x4000
 
#define PRD_EOT   0x8000
 

Enumerations

enum  { CS5535AUDIO_DMA_PLAYBACK, CS5535AUDIO_DMA_CAPTURE, NUM_CS5535AUDIO_DMAS }
 

Functions

int __devinit snd_cs5535audio_pcm (struct cs5535audio *cs5535audio)
 

Variables

struct dev_pm_ops snd_cs5535audio_pm
 

Macro Definition Documentation

#define ACC_BM0_CMD   0x20

Definition at line 17 of file cs5535audio.h.

#define ACC_BM0_PNTR   0x60

Definition at line 23 of file cs5535audio.h.

#define ACC_BM0_PRD   0x24

Definition at line 19 of file cs5535audio.h.

#define ACC_BM0_STATUS   0x21

Definition at line 21 of file cs5535audio.h.

#define ACC_BM1_CMD   0x28

Definition at line 18 of file cs5535audio.h.

#define ACC_BM1_PNTR   0x64

Definition at line 24 of file cs5535audio.h.

#define ACC_BM1_PRD   0x2C

Definition at line 20 of file cs5535audio.h.

#define ACC_BM1_STATUS   0x29

Definition at line 22 of file cs5535audio.h.

#define ACC_CODEC_CNTL   0x0C

Definition at line 15 of file cs5535audio.h.

#define ACC_CODEC_CNTL_LNK_SHUTDOWN   0x00040000

Definition at line 48 of file cs5535audio.h.

#define ACC_CODEC_CNTL_LNK_WRM_RST   0x00020000

Definition at line 49 of file cs5535audio.h.

#define ACC_CODEC_CNTL_RD_CMD   0x80000000

Definition at line 47 of file cs5535audio.h.

#define ACC_CODEC_CNTL_WR_CMD   (~0x80000000)

Definition at line 46 of file cs5535audio.h.

#define ACC_CODEC_STATUS   0x08

Definition at line 14 of file cs5535audio.h.

#define ACC_GPIO_STATUS   0x00

Definition at line 13 of file cs5535audio.h.

#define ACC_IRQ_STATUS   0x12

Definition at line 16 of file cs5535audio.h.

#define BM0_IRQ_STS   2

Definition at line 30 of file cs5535audio.h.

#define BM1_IRQ_STS   3

Definition at line 31 of file cs5535audio.h.

#define BM_CTL_BYTE_ORD_BE   0x04

Definition at line 40 of file cs5535audio.h.

#define BM_CTL_BYTE_ORD_LE   0x00

Definition at line 39 of file cs5535audio.h.

#define BM_CTL_DIS   0x00

Definition at line 38 of file cs5535audio.h.

#define BM_CTL_EN   0x01

Definition at line 36 of file cs5535audio.h.

#define BM_CTL_PAUSE   0x03

Definition at line 37 of file cs5535audio.h.

#define BM_EOP_ERR   (1<<1)

Definition at line 34 of file cs5535audio.h.

#define CMD_MASK   0xFF00FFFF

Definition at line 42 of file cs5535audio.h.

#define CMD_NEW   0x00010000

Definition at line 43 of file cs5535audio.h.

#define CS5535AUDIO_MAX_DESCRIPTORS   128

Definition at line 10 of file cs5535audio.h.

#define cs_readb (   cs5535au,
  reg 
)    inb((cs5535au)->port + reg)

Definition at line 8 of file cs5535audio.h.

#define cs_readl (   cs5535au,
  reg 
)    inl((cs5535au)->port + reg)

Definition at line 6 of file cs5535audio.h.

#define cs_readw (   cs5535au,
  reg 
)    inw((cs5535au)->port + reg)

Definition at line 7 of file cs5535audio.h.

#define cs_writeb (   cs5535au,
  reg,
  val 
)    outb(val, (cs5535au)->port + reg)

Definition at line 5 of file cs5535audio.h.

#define cs_writel (   cs5535au,
  reg,
  val 
)    outl(val, (cs5535au)->port + reg)

Definition at line 4 of file cs5535audio.h.

#define EOP   (1<<0)

Definition at line 33 of file cs5535audio.h.

#define IRQ_STS   0

Definition at line 28 of file cs5535audio.h.

#define PRD_EOP   0x4000

Definition at line 51 of file cs5535audio.h.

#define PRD_EOT   0x8000

Definition at line 52 of file cs5535audio.h.

#define PRD_JMP   0x2000

Definition at line 50 of file cs5535audio.h.

#define PRM_RDY_STS   0x00800000

Definition at line 45 of file cs5535audio.h.

#define STS_NEW   0x00020000

Definition at line 44 of file cs5535audio.h.

#define WU_IRQ_STS   1

Definition at line 29 of file cs5535audio.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
CS5535AUDIO_DMA_PLAYBACK 
CS5535AUDIO_DMA_CAPTURE 
NUM_CS5535AUDIO_DMAS 

Definition at line 54 of file cs5535audio.h.

Function Documentation

int __devinit snd_cs5535audio_pcm ( struct cs5535audio cs5535audio)

Definition at line 425 of file cs5535audio_pcm.c.

Variable Documentation

struct dev_pm_ops snd_cs5535audio_pm