Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
davinci_voicecodec.h File Reference
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/mfd/core.h>
#include <mach/edma.h>

Go to the source code of this file.

Data Structures

struct  davinci_vcif
 
struct  cq93vc
 
struct  davinci_vc
 

Macros

#define __LINUX_MFD_DAVINIC_VOICECODEC_H_
 
#define DAVINCI_VC_PID   0x00
 
#define DAVINCI_VC_CTRL   0x04
 
#define DAVINCI_VC_INTEN   0x08
 
#define DAVINCI_VC_INTSTATUS   0x0c
 
#define DAVINCI_VC_INTCLR   0x10
 
#define DAVINCI_VC_EMUL_CTRL   0x14
 
#define DAVINCI_VC_RFIFO   0x20
 
#define DAVINCI_VC_WFIFO   0x24
 
#define DAVINCI_VC_FIFOSTAT   0x28
 
#define DAVINCI_VC_TST_CTRL   0x2C
 
#define DAVINCI_VC_REG05   0x94
 
#define DAVINCI_VC_REG09   0xA4
 
#define DAVINCI_VC_REG12   0xB0
 
#define DAVINCI_VC_CTRL_MASK   0x5500
 
#define DAVINCI_VC_CTRL_RSTADC   BIT(0)
 
#define DAVINCI_VC_CTRL_RSTDAC   BIT(1)
 
#define DAVINCI_VC_CTRL_RD_BITS_8   BIT(4)
 
#define DAVINCI_VC_CTRL_RD_UNSIGNED   BIT(5)
 
#define DAVINCI_VC_CTRL_WD_BITS_8   BIT(6)
 
#define DAVINCI_VC_CTRL_WD_UNSIGNED   BIT(7)
 
#define DAVINCI_VC_CTRL_RFIFOEN   BIT(8)
 
#define DAVINCI_VC_CTRL_RFIFOCL   BIT(9)
 
#define DAVINCI_VC_CTRL_RFIFOMD_WORD_1   BIT(10)
 
#define DAVINCI_VC_CTRL_WFIFOEN   BIT(12)
 
#define DAVINCI_VC_CTRL_WFIFOCL   BIT(13)
 
#define DAVINCI_VC_CTRL_WFIFOMD_WORD_1   BIT(14)
 
#define DAVINCI_VC_INT_MASK   0x3F
 
#define DAVINCI_VC_INT_RDRDY_MASK   BIT(0)
 
#define DAVINCI_VC_INT_RERROVF_MASK   BIT(1)
 
#define DAVINCI_VC_INT_RERRUDR_MASK   BIT(2)
 
#define DAVINCI_VC_INT_WDREQ_MASK   BIT(3)
 
#define DAVINCI_VC_INT_WERROVF_MASKBIT   BIT(4)
 
#define DAVINCI_VC_INT_WERRUDR_MASK   BIT(5)
 
#define DAVINCI_VC_REG05_PGA_GAIN   0x07
 
#define DAVINCI_VC_REG09_MUTE   0x40
 
#define DAVINCI_VC_REG09_DIG_ATTEN   0x3F
 
#define DAVINCI_VC_REG12_POWER_ALL_ON   0xFD
 
#define DAVINCI_VC_REG12_POWER_ALL_OFF   0x00
 
#define DAVINCI_VC_CELLS   2
 

Enumerations

enum  davinci_vc_cells { DAVINCI_VC_VCIF_CELL, DAVINCI_VC_CQ93VC_CELL }
 

Macro Definition Documentation

#define __LINUX_MFD_DAVINIC_VOICECODEC_H_

Definition at line 24 of file davinci_voicecodec.h.

#define DAVINCI_VC_CELLS   2

Definition at line 84 of file davinci_voicecodec.h.

#define DAVINCI_VC_CTRL   0x04

Definition at line 36 of file davinci_voicecodec.h.

#define DAVINCI_VC_CTRL_MASK   0x5500

Definition at line 50 of file davinci_voicecodec.h.

#define DAVINCI_VC_CTRL_RD_BITS_8   BIT(4)

Definition at line 53 of file davinci_voicecodec.h.

#define DAVINCI_VC_CTRL_RD_UNSIGNED   BIT(5)

Definition at line 54 of file davinci_voicecodec.h.

#define DAVINCI_VC_CTRL_RFIFOCL   BIT(9)

Definition at line 58 of file davinci_voicecodec.h.

#define DAVINCI_VC_CTRL_RFIFOEN   BIT(8)

Definition at line 57 of file davinci_voicecodec.h.

#define DAVINCI_VC_CTRL_RFIFOMD_WORD_1   BIT(10)

Definition at line 59 of file davinci_voicecodec.h.

#define DAVINCI_VC_CTRL_RSTADC   BIT(0)

Definition at line 51 of file davinci_voicecodec.h.

#define DAVINCI_VC_CTRL_RSTDAC   BIT(1)

Definition at line 52 of file davinci_voicecodec.h.

#define DAVINCI_VC_CTRL_WD_BITS_8   BIT(6)

Definition at line 55 of file davinci_voicecodec.h.

#define DAVINCI_VC_CTRL_WD_UNSIGNED   BIT(7)

Definition at line 56 of file davinci_voicecodec.h.

#define DAVINCI_VC_CTRL_WFIFOCL   BIT(13)

Definition at line 61 of file davinci_voicecodec.h.

#define DAVINCI_VC_CTRL_WFIFOEN   BIT(12)

Definition at line 60 of file davinci_voicecodec.h.

#define DAVINCI_VC_CTRL_WFIFOMD_WORD_1   BIT(14)

Definition at line 62 of file davinci_voicecodec.h.

#define DAVINCI_VC_EMUL_CTRL   0x14

Definition at line 40 of file davinci_voicecodec.h.

#define DAVINCI_VC_FIFOSTAT   0x28

Definition at line 43 of file davinci_voicecodec.h.

#define DAVINCI_VC_INT_MASK   0x3F

Definition at line 65 of file davinci_voicecodec.h.

#define DAVINCI_VC_INT_RDRDY_MASK   BIT(0)

Definition at line 66 of file davinci_voicecodec.h.

#define DAVINCI_VC_INT_RERROVF_MASK   BIT(1)

Definition at line 67 of file davinci_voicecodec.h.

#define DAVINCI_VC_INT_RERRUDR_MASK   BIT(2)

Definition at line 68 of file davinci_voicecodec.h.

#define DAVINCI_VC_INT_WDREQ_MASK   BIT(3)

Definition at line 69 of file davinci_voicecodec.h.

#define DAVINCI_VC_INT_WERROVF_MASKBIT   BIT(4)

Definition at line 70 of file davinci_voicecodec.h.

#define DAVINCI_VC_INT_WERRUDR_MASK   BIT(5)

Definition at line 71 of file davinci_voicecodec.h.

#define DAVINCI_VC_INTCLR   0x10

Definition at line 39 of file davinci_voicecodec.h.

#define DAVINCI_VC_INTEN   0x08

Definition at line 37 of file davinci_voicecodec.h.

#define DAVINCI_VC_INTSTATUS   0x0c

Definition at line 38 of file davinci_voicecodec.h.

#define DAVINCI_VC_PID   0x00

Definition at line 35 of file davinci_voicecodec.h.

#define DAVINCI_VC_REG05   0x94

Definition at line 45 of file davinci_voicecodec.h.

#define DAVINCI_VC_REG05_PGA_GAIN   0x07

Definition at line 74 of file davinci_voicecodec.h.

#define DAVINCI_VC_REG09   0xA4

Definition at line 46 of file davinci_voicecodec.h.

#define DAVINCI_VC_REG09_DIG_ATTEN   0x3F

Definition at line 78 of file davinci_voicecodec.h.

#define DAVINCI_VC_REG09_MUTE   0x40

Definition at line 77 of file davinci_voicecodec.h.

#define DAVINCI_VC_REG12   0xB0

Definition at line 47 of file davinci_voicecodec.h.

#define DAVINCI_VC_REG12_POWER_ALL_OFF   0x00

Definition at line 82 of file davinci_voicecodec.h.

#define DAVINCI_VC_REG12_POWER_ALL_ON   0xFD

Definition at line 81 of file davinci_voicecodec.h.

#define DAVINCI_VC_RFIFO   0x20

Definition at line 41 of file davinci_voicecodec.h.

#define DAVINCI_VC_TST_CTRL   0x2C

Definition at line 44 of file davinci_voicecodec.h.

#define DAVINCI_VC_WFIFO   0x24

Definition at line 42 of file davinci_voicecodec.h.

Enumeration Type Documentation

Enumerator:
DAVINCI_VC_VCIF_CELL 
DAVINCI_VC_CQ93VC_CELL 

Definition at line 86 of file davinci_voicecodec.h.