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

Go to the source code of this file.

Data Structures

struct  kirkwood_dma_data
 

Macros

#define KIRKWOOD_RECORD_WIN   0
 
#define KIRKWOOD_PLAYBACK_WIN   1
 
#define KIRKWOOD_MAX_AUDIO_WIN   2
 
#define KIRKWOOD_AUDIO_WIN_BASE_REG(win)   (0xA00 + ((win)<<3))
 
#define KIRKWOOD_AUDIO_WIN_CTRL_REG(win)   (0xA04 + ((win)<<3))
 
#define KIRKWOOD_RECCTL   0x1000
 
#define KIRKWOOD_RECCTL_SPDIF_EN   (1<<11)
 
#define KIRKWOOD_RECCTL_I2S_EN   (1<<10)
 
#define KIRKWOOD_RECCTL_PAUSE   (1<<9)
 
#define KIRKWOOD_RECCTL_MUTE   (1<<8)
 
#define KIRKWOOD_RECCTL_BURST_MASK   (3<<5)
 
#define KIRKWOOD_RECCTL_BURST_128   (2<<5)
 
#define KIRKWOOD_RECCTL_BURST_32   (1<<5)
 
#define KIRKWOOD_RECCTL_MONO   (1<<4)
 
#define KIRKWOOD_RECCTL_MONO_CHAN_RIGHT   (1<<3)
 
#define KIRKWOOD_RECCTL_MONO_CHAN_LEFT   (0<<3)
 
#define KIRKWOOD_RECCTL_SIZE_MASK   (7<<0)
 
#define KIRKWOOD_RECCTL_SIZE_16   (7<<0)
 
#define KIRKWOOD_RECCTL_SIZE_16_C   (3<<0)
 
#define KIRKWOOD_RECCTL_SIZE_20   (2<<0)
 
#define KIRKWOOD_RECCTL_SIZE_24   (1<<0)
 
#define KIRKWOOD_RECCTL_SIZE_32   (0<<0)
 
#define KIRKWOOD_REC_BUF_ADDR   0x1004
 
#define KIRKWOOD_REC_BUF_SIZE   0x1008
 
#define KIRKWOOD_REC_BYTE_COUNT   0x100C
 
#define KIRKWOOD_PLAYCTL   0x1100
 
#define KIRKWOOD_PLAYCTL_PLAY_BUSY   (1<<16)
 
#define KIRKWOOD_PLAYCTL_BURST_MASK   (3<<11)
 
#define KIRKWOOD_PLAYCTL_BURST_128   (2<<11)
 
#define KIRKWOOD_PLAYCTL_BURST_32   (1<<11)
 
#define KIRKWOOD_PLAYCTL_PAUSE   (1<<9)
 
#define KIRKWOOD_PLAYCTL_SPDIF_MUTE   (1<<8)
 
#define KIRKWOOD_PLAYCTL_MONO_MASK   (3<<5)
 
#define KIRKWOOD_PLAYCTL_MONO_BOTH   (3<<5)
 
#define KIRKWOOD_PLAYCTL_MONO_OFF   (0<<5)
 
#define KIRKWOOD_PLAYCTL_I2S_MUTE   (1<<7)
 
#define KIRKWOOD_PLAYCTL_SPDIF_EN   (1<<4)
 
#define KIRKWOOD_PLAYCTL_I2S_EN   (1<<3)
 
#define KIRKWOOD_PLAYCTL_SIZE_MASK   (7<<0)
 
#define KIRKWOOD_PLAYCTL_SIZE_16   (7<<0)
 
#define KIRKWOOD_PLAYCTL_SIZE_16_C   (3<<0)
 
#define KIRKWOOD_PLAYCTL_SIZE_20   (2<<0)
 
#define KIRKWOOD_PLAYCTL_SIZE_24   (1<<0)
 
#define KIRKWOOD_PLAYCTL_SIZE_32   (0<<0)
 
#define KIRKWOOD_PLAY_BUF_ADDR   0x1104
 
#define KIRKWOOD_PLAY_BUF_SIZE   0x1108
 
#define KIRKWOOD_PLAY_BYTE_COUNT   0x110C
 
#define KIRKWOOD_DCO_CTL   0x1204
 
#define KIRKWOOD_DCO_CTL_OFFSET_MASK   (0xFFF<<2)
 
#define KIRKWOOD_DCO_CTL_OFFSET_0   (0x800<<2)
 
#define KIRKWOOD_DCO_CTL_FREQ_MASK   (3<<0)
 
#define KIRKWOOD_DCO_CTL_FREQ_11   (0<<0)
 
#define KIRKWOOD_DCO_CTL_FREQ_12   (1<<0)
 
#define KIRKWOOD_DCO_CTL_FREQ_24   (2<<0)
 
#define KIRKWOOD_DCO_SPCR_STATUS   0x120c
 
#define KIRKWOOD_DCO_SPCR_STATUS_DCO_LOCK   (1<<16)
 
#define KIRKWOOD_ERR_CAUSE   0x1300
 
#define KIRKWOOD_ERR_MASK   0x1304
 
#define KIRKWOOD_INT_CAUSE   0x1308
 
#define KIRKWOOD_INT_MASK   0x130C
 
#define KIRKWOOD_INT_CAUSE_PLAY_BYTES   (1<<14)
 
#define KIRKWOOD_INT_CAUSE_REC_BYTES   (1<<13)
 
#define KIRKWOOD_INT_CAUSE_DMA_PLAY_END   (1<<7)
 
#define KIRKWOOD_INT_CAUSE_DMA_PLAY_3Q   (1<<6)
 
#define KIRKWOOD_INT_CAUSE_DMA_PLAY_HALF   (1<<5)
 
#define KIRKWOOD_INT_CAUSE_DMA_PLAY_1Q   (1<<4)
 
#define KIRKWOOD_INT_CAUSE_DMA_REC_END   (1<<3)
 
#define KIRKWOOD_INT_CAUSE_DMA_REC_3Q   (1<<2)
 
#define KIRKWOOD_INT_CAUSE_DMA_REC_HALF   (1<<1)
 
#define KIRKWOOD_INT_CAUSE_DMA_REC_1Q   (1<<0)
 
#define KIRKWOOD_REC_BYTE_INT_COUNT   0x1310
 
#define KIRKWOOD_PLAY_BYTE_INT_COUNT   0x1314
 
#define KIRKWOOD_BYTE_INT_COUNT_MASK   0xffffff
 
#define KIRKWOOD_I2S_PLAYCTL   0x2508
 
#define KIRKWOOD_I2S_RECCTL   0x2408
 
#define KIRKWOOD_I2S_CTL_JUST_MASK   (0xf<<26)
 
#define KIRKWOOD_I2S_CTL_LJ   (0<<26)
 
#define KIRKWOOD_I2S_CTL_I2S   (5<<26)
 
#define KIRKWOOD_I2S_CTL_RJ   (8<<26)
 
#define KIRKWOOD_I2S_CTL_SIZE_MASK   (3<<30)
 
#define KIRKWOOD_I2S_CTL_SIZE_16   (3<<30)
 
#define KIRKWOOD_I2S_CTL_SIZE_20   (2<<30)
 
#define KIRKWOOD_I2S_CTL_SIZE_24   (1<<30)
 
#define KIRKWOOD_I2S_CTL_SIZE_32   (0<<30)
 
#define KIRKWOOD_AUDIO_BUF_MAX   (16*1024*1024)
 
#define KIRKWOOD_SND_MIN_PERIODS   8
 
#define KIRKWOOD_SND_MAX_PERIODS   16
 
#define KIRKWOOD_SND_MIN_PERIOD_BYTES   0x4000
 
#define KIRKWOOD_SND_MAX_PERIOD_BYTES   0x4000
 

Macro Definition Documentation

#define KIRKWOOD_AUDIO_BUF_MAX   (16*1024*1024)

Definition at line 112 of file kirkwood.h.

#define KIRKWOOD_AUDIO_WIN_BASE_REG (   win)    (0xA00 + ((win)<<3))

Definition at line 19 of file kirkwood.h.

#define KIRKWOOD_AUDIO_WIN_CTRL_REG (   win)    (0xA04 + ((win)<<3))

Definition at line 20 of file kirkwood.h.

#define KIRKWOOD_BYTE_INT_COUNT_MASK   0xffffff

Definition at line 98 of file kirkwood.h.

#define KIRKWOOD_DCO_CTL   0x1204

Definition at line 69 of file kirkwood.h.

#define KIRKWOOD_DCO_CTL_FREQ_11   (0<<0)

Definition at line 73 of file kirkwood.h.

#define KIRKWOOD_DCO_CTL_FREQ_12   (1<<0)

Definition at line 74 of file kirkwood.h.

#define KIRKWOOD_DCO_CTL_FREQ_24   (2<<0)

Definition at line 75 of file kirkwood.h.

#define KIRKWOOD_DCO_CTL_FREQ_MASK   (3<<0)

Definition at line 72 of file kirkwood.h.

#define KIRKWOOD_DCO_CTL_OFFSET_0   (0x800<<2)

Definition at line 71 of file kirkwood.h.

#define KIRKWOOD_DCO_CTL_OFFSET_MASK   (0xFFF<<2)

Definition at line 70 of file kirkwood.h.

#define KIRKWOOD_DCO_SPCR_STATUS   0x120c

Definition at line 77 of file kirkwood.h.

#define KIRKWOOD_DCO_SPCR_STATUS_DCO_LOCK   (1<<16)

Definition at line 78 of file kirkwood.h.

#define KIRKWOOD_ERR_CAUSE   0x1300

Definition at line 80 of file kirkwood.h.

#define KIRKWOOD_ERR_MASK   0x1304

Definition at line 81 of file kirkwood.h.

#define KIRKWOOD_I2S_CTL_I2S   (5<<26)

Definition at line 104 of file kirkwood.h.

#define KIRKWOOD_I2S_CTL_JUST_MASK   (0xf<<26)

Definition at line 102 of file kirkwood.h.

#define KIRKWOOD_I2S_CTL_LJ   (0<<26)

Definition at line 103 of file kirkwood.h.

#define KIRKWOOD_I2S_CTL_RJ   (8<<26)

Definition at line 105 of file kirkwood.h.

#define KIRKWOOD_I2S_CTL_SIZE_16   (3<<30)

Definition at line 107 of file kirkwood.h.

#define KIRKWOOD_I2S_CTL_SIZE_20   (2<<30)

Definition at line 108 of file kirkwood.h.

#define KIRKWOOD_I2S_CTL_SIZE_24   (1<<30)

Definition at line 109 of file kirkwood.h.

#define KIRKWOOD_I2S_CTL_SIZE_32   (0<<30)

Definition at line 110 of file kirkwood.h.

#define KIRKWOOD_I2S_CTL_SIZE_MASK   (3<<30)

Definition at line 106 of file kirkwood.h.

#define KIRKWOOD_I2S_PLAYCTL   0x2508

Definition at line 100 of file kirkwood.h.

#define KIRKWOOD_I2S_RECCTL   0x2408

Definition at line 101 of file kirkwood.h.

#define KIRKWOOD_INT_CAUSE   0x1308

Definition at line 83 of file kirkwood.h.

#define KIRKWOOD_INT_CAUSE_DMA_PLAY_1Q   (1<<4)

Definition at line 90 of file kirkwood.h.

#define KIRKWOOD_INT_CAUSE_DMA_PLAY_3Q   (1<<6)

Definition at line 88 of file kirkwood.h.

#define KIRKWOOD_INT_CAUSE_DMA_PLAY_END   (1<<7)

Definition at line 87 of file kirkwood.h.

#define KIRKWOOD_INT_CAUSE_DMA_PLAY_HALF   (1<<5)

Definition at line 89 of file kirkwood.h.

#define KIRKWOOD_INT_CAUSE_DMA_REC_1Q   (1<<0)

Definition at line 94 of file kirkwood.h.

#define KIRKWOOD_INT_CAUSE_DMA_REC_3Q   (1<<2)

Definition at line 92 of file kirkwood.h.

#define KIRKWOOD_INT_CAUSE_DMA_REC_END   (1<<3)

Definition at line 91 of file kirkwood.h.

#define KIRKWOOD_INT_CAUSE_DMA_REC_HALF   (1<<1)

Definition at line 93 of file kirkwood.h.

#define KIRKWOOD_INT_CAUSE_PLAY_BYTES   (1<<14)

Definition at line 85 of file kirkwood.h.

#define KIRKWOOD_INT_CAUSE_REC_BYTES   (1<<13)

Definition at line 86 of file kirkwood.h.

#define KIRKWOOD_INT_MASK   0x130C

Definition at line 84 of file kirkwood.h.

#define KIRKWOOD_MAX_AUDIO_WIN   2

Definition at line 17 of file kirkwood.h.

#define KIRKWOOD_PLAY_BUF_ADDR   0x1104

Definition at line 65 of file kirkwood.h.

#define KIRKWOOD_PLAY_BUF_SIZE   0x1108

Definition at line 66 of file kirkwood.h.

#define KIRKWOOD_PLAY_BYTE_COUNT   0x110C

Definition at line 67 of file kirkwood.h.

#define KIRKWOOD_PLAY_BYTE_INT_COUNT   0x1314

Definition at line 97 of file kirkwood.h.

#define KIRKWOOD_PLAYBACK_WIN   1

Definition at line 16 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL   0x1100

Definition at line 45 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_BURST_128   (2<<11)

Definition at line 48 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_BURST_32   (1<<11)

Definition at line 49 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_BURST_MASK   (3<<11)

Definition at line 47 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_I2S_EN   (1<<3)

Definition at line 57 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_I2S_MUTE   (1<<7)

Definition at line 55 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_MONO_BOTH   (3<<5)

Definition at line 53 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_MONO_MASK   (3<<5)

Definition at line 52 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_MONO_OFF   (0<<5)

Definition at line 54 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_PAUSE   (1<<9)

Definition at line 50 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_PLAY_BUSY   (1<<16)

Definition at line 46 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_SIZE_16   (7<<0)

Definition at line 59 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_SIZE_16_C   (3<<0)

Definition at line 60 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_SIZE_20   (2<<0)

Definition at line 61 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_SIZE_24   (1<<0)

Definition at line 62 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_SIZE_32   (0<<0)

Definition at line 63 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_SIZE_MASK   (7<<0)

Definition at line 58 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_SPDIF_EN   (1<<4)

Definition at line 56 of file kirkwood.h.

#define KIRKWOOD_PLAYCTL_SPDIF_MUTE   (1<<8)

Definition at line 51 of file kirkwood.h.

#define KIRKWOOD_REC_BUF_ADDR   0x1004

Definition at line 41 of file kirkwood.h.

#define KIRKWOOD_REC_BUF_SIZE   0x1008

Definition at line 42 of file kirkwood.h.

#define KIRKWOOD_REC_BYTE_COUNT   0x100C

Definition at line 43 of file kirkwood.h.

#define KIRKWOOD_REC_BYTE_INT_COUNT   0x1310

Definition at line 96 of file kirkwood.h.

#define KIRKWOOD_RECCTL   0x1000

Definition at line 23 of file kirkwood.h.

#define KIRKWOOD_RECCTL_BURST_128   (2<<5)

Definition at line 29 of file kirkwood.h.

#define KIRKWOOD_RECCTL_BURST_32   (1<<5)

Definition at line 30 of file kirkwood.h.

#define KIRKWOOD_RECCTL_BURST_MASK   (3<<5)

Definition at line 28 of file kirkwood.h.

#define KIRKWOOD_RECCTL_I2S_EN   (1<<10)

Definition at line 25 of file kirkwood.h.

#define KIRKWOOD_RECCTL_MONO   (1<<4)

Definition at line 31 of file kirkwood.h.

#define KIRKWOOD_RECCTL_MONO_CHAN_LEFT   (0<<3)

Definition at line 33 of file kirkwood.h.

#define KIRKWOOD_RECCTL_MONO_CHAN_RIGHT   (1<<3)

Definition at line 32 of file kirkwood.h.

#define KIRKWOOD_RECCTL_MUTE   (1<<8)

Definition at line 27 of file kirkwood.h.

#define KIRKWOOD_RECCTL_PAUSE   (1<<9)

Definition at line 26 of file kirkwood.h.

#define KIRKWOOD_RECCTL_SIZE_16   (7<<0)

Definition at line 35 of file kirkwood.h.

#define KIRKWOOD_RECCTL_SIZE_16_C   (3<<0)

Definition at line 36 of file kirkwood.h.

#define KIRKWOOD_RECCTL_SIZE_20   (2<<0)

Definition at line 37 of file kirkwood.h.

#define KIRKWOOD_RECCTL_SIZE_24   (1<<0)

Definition at line 38 of file kirkwood.h.

#define KIRKWOOD_RECCTL_SIZE_32   (0<<0)

Definition at line 39 of file kirkwood.h.

#define KIRKWOOD_RECCTL_SIZE_MASK   (7<<0)

Definition at line 34 of file kirkwood.h.

#define KIRKWOOD_RECCTL_SPDIF_EN   (1<<11)

Definition at line 24 of file kirkwood.h.

#define KIRKWOOD_RECORD_WIN   0

Definition at line 15 of file kirkwood.h.

#define KIRKWOOD_SND_MAX_PERIOD_BYTES   0x4000

Definition at line 119 of file kirkwood.h.

#define KIRKWOOD_SND_MAX_PERIODS   16

Definition at line 117 of file kirkwood.h.

#define KIRKWOOD_SND_MIN_PERIOD_BYTES   0x4000

Definition at line 118 of file kirkwood.h.

#define KIRKWOOD_SND_MIN_PERIODS   8

Definition at line 116 of file kirkwood.h.