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

Go to the source code of this file.

Data Structures

struct  pcxhr_rmh
 

Macros

#define PCXHR_DSP_TIME_MASK   0x00ffffff
 
#define PCXHR_DSP_TIME_INVALID   0x10000000
 
#define PCXHR_SIZE_MAX_CMD   8
 
#define PCXHR_SIZE_MAX_STATUS   16
 
#define PCXHR_SIZE_MAX_LONG_STATUS   256
 
#define MASK_DSP_WORD   0x00ffffff
 
#define MASK_ALL_STREAM   0x00ffffff
 
#define MASK_DSP_WORD_LEVEL   0x000001ff
 
#define MASK_FIRST_FIELD   0x0000001f
 
#define FIELD_SIZE   5
 
#define DSP_EXT_CMD_SET(x)   (x->dsp_version > 0x012800)
 
#define IO_NUM_REG_CONT   0
 
#define IO_NUM_REG_GENCLK   1
 
#define IO_NUM_REG_MUTE_OUT   2
 
#define IO_NUM_SPEED_RATIO   4
 
#define IO_NUM_REG_STATUS   5
 
#define IO_NUM_REG_CUER   10
 
#define IO_NUM_UER_CHIP_REG   11
 
#define IO_NUM_REG_CONFIG_SRC   12
 
#define IO_NUM_REG_OUT_ANA_LEVEL   20
 
#define IO_NUM_REG_IN_ANA_LEVEL   21
 
#define REG_CONT_VALSMPTE   0x000800
 
#define REG_CONT_UNMUTE_INPUTS   0x020000
 
#define REG_STATUS_OPTIONS   0
 
#define REG_STATUS_AES_SYNC   8
 
#define REG_STATUS_AES_1   9
 
#define REG_STATUS_AES_2   10
 
#define REG_STATUS_AES_3   11
 
#define REG_STATUS_AES_4   12
 
#define REG_STATUS_WORD_CLOCK   13
 
#define REG_STATUS_INTER_SYNC   14
 
#define REG_STATUS_CURRENT   0x80
 
#define REG_STATUS_OPT_NO_VIDEO_SIGNAL   0x01
 
#define REG_STATUS_OPT_DAUGHTER_MASK   0x1c
 
#define REG_STATUS_OPT_ANALOG_BOARD   0x00
 
#define REG_STATUS_OPT_NO_DAUGHTER   0x1c
 
#define REG_STATUS_OPT_COMPANION_MASK   0xe0
 
#define REG_STATUS_OPT_NO_COMPANION   0xe0
 
#define REG_STATUS_SYNC_32000   0x00
 
#define REG_STATUS_SYNC_44100   0x01
 
#define REG_STATUS_SYNC_48000   0x02
 
#define REG_STATUS_SYNC_64000   0x03
 
#define REG_STATUS_SYNC_88200   0x04
 
#define REG_STATUS_SYNC_96000   0x05
 
#define REG_STATUS_SYNC_128000   0x06
 
#define REG_STATUS_SYNC_176400   0x07
 
#define REG_STATUS_SYNC_192000   0x08
 
#define CS8416_RUN   0x200401
 
#define CS8416_FORMAT_DETECT   0x200b00
 
#define CS8416_CSB0   0x201900
 
#define CS8416_CSB1   0x201a00
 
#define CS8416_CSB2   0x201b00
 
#define CS8416_CSB3   0x201c00
 
#define CS8416_CSB4   0x201d00
 
#define CS8416_VERSION   0x207f00
 
#define CS8420_DATA_FLOW_CTL   0x200301
 
#define CS8420_CLOCK_SRC_CTL   0x200401
 
#define CS8420_RECEIVER_ERRORS   0x201000
 
#define CS8420_SRC_RATIO   0x201e00
 
#define CS8420_CSB0   0x202000
 
#define CS8420_CSB1   0x202100
 
#define CS8420_CSB2   0x202200
 
#define CS8420_CSB3   0x202300
 
#define CS8420_CSB4   0x202400
 
#define CS8420_VERSION   0x207f00
 
#define CS4271_MODE_CTL_1   0x200101
 
#define CS4271_DAC_CTL   0x200201
 
#define CS4271_VOLMIX   0x200301
 
#define CS4271_VOLMUTE_LEFT   0x200401
 
#define CS4271_VOLMUTE_RIGHT   0x200501
 
#define CS4271_ADC_CTL   0x200601
 
#define CS4271_MODE_CTL_2   0x200701
 
#define CHIP_SIG_AND_MAP_SPI   0xff7f00
 
#define CS4271_01_CS   0x160018
 
#define CS4271_23_CS   0x160019
 
#define CS4271_45_CS   0x16001a
 
#define CS4271_67_CS   0x16001b
 
#define CS4271_89_CS   0x16001c
 
#define CS4271_AB_CS   0x16001d
 
#define CS8420_01_CS   0x080090
 
#define CS8420_23_CS   0x080092
 
#define CS8420_45_CS   0x080094
 
#define CS8420_67_CS   0x080096
 
#define CS8416_01_CS   0x080098
 

Enumerations

enum  {
  CMD_VERSION, CMD_SUPPORTED, CMD_TEST_IT, CMD_SEND_IRQA,
  CMD_ACCESS_IO_WRITE, CMD_ACCESS_IO_READ, CMD_ASYNC, CMD_MODIFY_CLOCK,
  CMD_RESYNC_AUDIO_INPUTS, CMD_GET_DSP_RESOURCES, CMD_SET_TIMER_INTERRUPT, CMD_RES_PIPE,
  CMD_FREE_PIPE, CMD_CONF_PIPE, CMD_STOP_PIPE, CMD_PIPE_SAMPLE_COUNT,
  CMD_CAN_START_PIPE, CMD_START_STREAM, CMD_STREAM_OUT_LEVEL_ADJUST, CMD_STOP_STREAM,
  CMD_UPDATE_R_BUFFERS, CMD_FORMAT_STREAM_OUT, CMD_FORMAT_STREAM_IN, CMD_STREAM_SAMPLE_COUNT,
  CMD_AUDIO_LEVEL_ADJUST, CMD_GET_TIME_CODE, CMD_MANAGE_SIGNAL, CMD_LAST_INDEX
}
 

Functions

void pcxhr_reset_xilinx_com (struct pcxhr_mgr *mgr)
 
void pcxhr_reset_dsp (struct pcxhr_mgr *mgr)
 
void pcxhr_enable_dsp (struct pcxhr_mgr *mgr)
 
int pcxhr_load_xilinx_binary (struct pcxhr_mgr *mgr, const struct firmware *xilinx, int second)
 
int pcxhr_load_eeprom_binary (struct pcxhr_mgr *mgr, const struct firmware *eeprom)
 
int pcxhr_load_boot_binary (struct pcxhr_mgr *mgr, const struct firmware *boot)
 
int pcxhr_load_dsp_binary (struct pcxhr_mgr *mgr, const struct firmware *dsp)
 
void pcxhr_init_rmh (struct pcxhr_rmh *rmh, int cmd)
 
void pcxhr_set_pipe_cmd_params (struct pcxhr_rmh *rmh, int capture, unsigned int param1, unsigned int param2, unsigned int param3)
 
int pcxhr_send_msg (struct pcxhr_mgr *mgr, struct pcxhr_rmh *rmh)
 
int pcxhr_set_pipe_state (struct pcxhr_mgr *mgr, int playback_mask, int capture_mask, int start)
 
int pcxhr_write_io_num_reg_cont (struct pcxhr_mgr *mgr, unsigned int mask, unsigned int value, int *changed)
 
irqreturn_t pcxhr_interrupt (int irq, void *dev_id)
 
void pcxhr_msg_tasklet (unsigned long arg)
 

Macro Definition Documentation

#define CHIP_SIG_AND_MAP_SPI   0xff7f00

Definition at line 185 of file pcxhr_core.h.

#define CS4271_01_CS   0x160018

Definition at line 188 of file pcxhr_core.h.

#define CS4271_23_CS   0x160019

Definition at line 189 of file pcxhr_core.h.

#define CS4271_45_CS   0x16001a

Definition at line 190 of file pcxhr_core.h.

#define CS4271_67_CS   0x16001b

Definition at line 191 of file pcxhr_core.h.

#define CS4271_89_CS   0x16001c

Definition at line 192 of file pcxhr_core.h.

#define CS4271_AB_CS   0x16001d

Definition at line 193 of file pcxhr_core.h.

#define CS4271_ADC_CTL   0x200601

Definition at line 182 of file pcxhr_core.h.

#define CS4271_DAC_CTL   0x200201

Definition at line 178 of file pcxhr_core.h.

#define CS4271_MODE_CTL_1   0x200101

Definition at line 177 of file pcxhr_core.h.

#define CS4271_MODE_CTL_2   0x200701

Definition at line 183 of file pcxhr_core.h.

#define CS4271_VOLMIX   0x200301

Definition at line 179 of file pcxhr_core.h.

#define CS4271_VOLMUTE_LEFT   0x200401

Definition at line 180 of file pcxhr_core.h.

#define CS4271_VOLMUTE_RIGHT   0x200501

Definition at line 181 of file pcxhr_core.h.

#define CS8416_01_CS   0x080098

Definition at line 198 of file pcxhr_core.h.

#define CS8416_CSB0   0x201900

Definition at line 159 of file pcxhr_core.h.

#define CS8416_CSB1   0x201a00

Definition at line 160 of file pcxhr_core.h.

#define CS8416_CSB2   0x201b00

Definition at line 161 of file pcxhr_core.h.

#define CS8416_CSB3   0x201c00

Definition at line 162 of file pcxhr_core.h.

#define CS8416_CSB4   0x201d00

Definition at line 163 of file pcxhr_core.h.

#define CS8416_FORMAT_DETECT   0x200b00

Definition at line 158 of file pcxhr_core.h.

#define CS8416_RUN   0x200401

Definition at line 157 of file pcxhr_core.h.

#define CS8416_VERSION   0x207f00

Definition at line 164 of file pcxhr_core.h.

#define CS8420_01_CS   0x080090

Definition at line 194 of file pcxhr_core.h.

#define CS8420_23_CS   0x080092

Definition at line 195 of file pcxhr_core.h.

#define CS8420_45_CS   0x080094

Definition at line 196 of file pcxhr_core.h.

#define CS8420_67_CS   0x080096

Definition at line 197 of file pcxhr_core.h.

#define CS8420_CLOCK_SRC_CTL   0x200401

Definition at line 167 of file pcxhr_core.h.

#define CS8420_CSB0   0x202000

Definition at line 170 of file pcxhr_core.h.

#define CS8420_CSB1   0x202100

Definition at line 171 of file pcxhr_core.h.

#define CS8420_CSB2   0x202200

Definition at line 172 of file pcxhr_core.h.

#define CS8420_CSB3   0x202300

Definition at line 173 of file pcxhr_core.h.

#define CS8420_CSB4   0x202400

Definition at line 174 of file pcxhr_core.h.

#define CS8420_DATA_FLOW_CTL   0x200301

Definition at line 166 of file pcxhr_core.h.

#define CS8420_RECEIVER_ERRORS   0x201000

Definition at line 168 of file pcxhr_core.h.

#define CS8420_SRC_RATIO   0x201e00

Definition at line 169 of file pcxhr_core.h.

#define CS8420_VERSION   0x207f00

Definition at line 175 of file pcxhr_core.h.

#define DSP_EXT_CMD_SET (   x)    (x->dsp_version > 0x012800)

Definition at line 101 of file pcxhr_core.h.

#define FIELD_SIZE   5

Definition at line 91 of file pcxhr_core.h.

#define IO_NUM_REG_CONFIG_SRC   12

Definition at line 117 of file pcxhr_core.h.

#define IO_NUM_REG_CONT   0

Definition at line 110 of file pcxhr_core.h.

#define IO_NUM_REG_CUER   10

Definition at line 115 of file pcxhr_core.h.

#define IO_NUM_REG_GENCLK   1

Definition at line 111 of file pcxhr_core.h.

#define IO_NUM_REG_IN_ANA_LEVEL   21

Definition at line 119 of file pcxhr_core.h.

#define IO_NUM_REG_MUTE_OUT   2

Definition at line 112 of file pcxhr_core.h.

#define IO_NUM_REG_OUT_ANA_LEVEL   20

Definition at line 118 of file pcxhr_core.h.

#define IO_NUM_REG_STATUS   5

Definition at line 114 of file pcxhr_core.h.

#define IO_NUM_SPEED_RATIO   4

Definition at line 113 of file pcxhr_core.h.

#define IO_NUM_UER_CHIP_REG   11

Definition at line 116 of file pcxhr_core.h.

#define MASK_ALL_STREAM   0x00ffffff

Definition at line 88 of file pcxhr_core.h.

#define MASK_DSP_WORD   0x00ffffff

Definition at line 87 of file pcxhr_core.h.

#define MASK_DSP_WORD_LEVEL   0x000001ff

Definition at line 89 of file pcxhr_core.h.

#define MASK_FIRST_FIELD   0x0000001f

Definition at line 90 of file pcxhr_core.h.

#define PCXHR_DSP_TIME_INVALID   0x10000000

Definition at line 40 of file pcxhr_core.h.

#define PCXHR_DSP_TIME_MASK   0x00ffffff

Definition at line 39 of file pcxhr_core.h.

#define PCXHR_SIZE_MAX_CMD   8

Definition at line 43 of file pcxhr_core.h.

#define PCXHR_SIZE_MAX_LONG_STATUS   256

Definition at line 45 of file pcxhr_core.h.

#define PCXHR_SIZE_MAX_STATUS   16

Definition at line 44 of file pcxhr_core.h.

#define REG_CONT_UNMUTE_INPUTS   0x020000

Definition at line 122 of file pcxhr_core.h.

#define REG_CONT_VALSMPTE   0x000800

Definition at line 121 of file pcxhr_core.h.

#define REG_STATUS_AES_1   9

Definition at line 127 of file pcxhr_core.h.

#define REG_STATUS_AES_2   10

Definition at line 128 of file pcxhr_core.h.

#define REG_STATUS_AES_3   11

Definition at line 129 of file pcxhr_core.h.

#define REG_STATUS_AES_4   12

Definition at line 130 of file pcxhr_core.h.

#define REG_STATUS_AES_SYNC   8

Definition at line 126 of file pcxhr_core.h.

#define REG_STATUS_CURRENT   0x80

Definition at line 133 of file pcxhr_core.h.

#define REG_STATUS_INTER_SYNC   14

Definition at line 132 of file pcxhr_core.h.

#define REG_STATUS_OPT_ANALOG_BOARD   0x00

Definition at line 137 of file pcxhr_core.h.

#define REG_STATUS_OPT_COMPANION_MASK   0xe0

Definition at line 139 of file pcxhr_core.h.

#define REG_STATUS_OPT_DAUGHTER_MASK   0x1c

Definition at line 136 of file pcxhr_core.h.

#define REG_STATUS_OPT_NO_COMPANION   0xe0

Definition at line 140 of file pcxhr_core.h.

#define REG_STATUS_OPT_NO_DAUGHTER   0x1c

Definition at line 138 of file pcxhr_core.h.

#define REG_STATUS_OPT_NO_VIDEO_SIGNAL   0x01

Definition at line 135 of file pcxhr_core.h.

#define REG_STATUS_OPTIONS   0

Definition at line 125 of file pcxhr_core.h.

#define REG_STATUS_SYNC_128000   0x06

Definition at line 147 of file pcxhr_core.h.

#define REG_STATUS_SYNC_176400   0x07

Definition at line 148 of file pcxhr_core.h.

#define REG_STATUS_SYNC_192000   0x08

Definition at line 149 of file pcxhr_core.h.

#define REG_STATUS_SYNC_32000   0x00

Definition at line 141 of file pcxhr_core.h.

#define REG_STATUS_SYNC_44100   0x01

Definition at line 142 of file pcxhr_core.h.

#define REG_STATUS_SYNC_48000   0x02

Definition at line 143 of file pcxhr_core.h.

#define REG_STATUS_SYNC_64000   0x03

Definition at line 144 of file pcxhr_core.h.

#define REG_STATUS_SYNC_88200   0x04

Definition at line 145 of file pcxhr_core.h.

#define REG_STATUS_SYNC_96000   0x05

Definition at line 146 of file pcxhr_core.h.

#define REG_STATUS_WORD_CLOCK   13

Definition at line 131 of file pcxhr_core.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
CMD_VERSION 
CMD_SUPPORTED 
CMD_TEST_IT 
CMD_SEND_IRQA 
CMD_ACCESS_IO_WRITE 
CMD_ACCESS_IO_READ 
CMD_ASYNC 
CMD_MODIFY_CLOCK 
CMD_RESYNC_AUDIO_INPUTS 
CMD_GET_DSP_RESOURCES 
CMD_SET_TIMER_INTERRUPT 
CMD_RES_PIPE 
CMD_FREE_PIPE 
CMD_CONF_PIPE 
CMD_STOP_PIPE 
CMD_PIPE_SAMPLE_COUNT 
CMD_CAN_START_PIPE 
CMD_START_STREAM 
CMD_STREAM_OUT_LEVEL_ADJUST 
CMD_STOP_STREAM 
CMD_UPDATE_R_BUFFERS 
CMD_FORMAT_STREAM_OUT 
CMD_FORMAT_STREAM_IN 
CMD_STREAM_SAMPLE_COUNT 
CMD_AUDIO_LEVEL_ADJUST 
CMD_GET_TIME_CODE 
CMD_MANAGE_SIGNAL 
CMD_LAST_INDEX 

Definition at line 56 of file pcxhr_core.h.

Function Documentation

void pcxhr_enable_dsp ( struct pcxhr_mgr mgr)

Definition at line 271 of file pcxhr_core.c.

void pcxhr_init_rmh ( struct pcxhr_rmh rmh,
int  cmd 
)

pcxhr_init_rmh - initialize the RMH instance : the rmh pointer to be initialized : the rmh command to be set

Definition at line 726 of file pcxhr_core.c.

irqreturn_t pcxhr_interrupt ( int  irq,
void dev_id 
)

Definition at line 1219 of file pcxhr_core.c.

int pcxhr_load_boot_binary ( struct pcxhr_mgr mgr,
const struct firmware boot 
)

Definition at line 415 of file pcxhr_core.c.

int pcxhr_load_dsp_binary ( struct pcxhr_mgr mgr,
const struct firmware dsp 
)

Definition at line 444 of file pcxhr_core.c.

int pcxhr_load_eeprom_binary ( struct pcxhr_mgr mgr,
const struct firmware eeprom 
)

Definition at line 383 of file pcxhr_core.c.

int pcxhr_load_xilinx_binary ( struct pcxhr_mgr mgr,
const struct firmware xilinx,
int  second 
)

Definition at line 280 of file pcxhr_core.c.

void pcxhr_msg_tasklet ( unsigned long  arg)

Definition at line 1041 of file pcxhr_core.c.

void pcxhr_reset_dsp ( struct pcxhr_mgr mgr)

Definition at line 256 of file pcxhr_core.c.

void pcxhr_reset_xilinx_com ( struct pcxhr_mgr mgr)

Definition at line 238 of file pcxhr_core.c.

int pcxhr_send_msg ( struct pcxhr_mgr mgr,
struct pcxhr_rmh rmh 
)

Definition at line 764 of file pcxhr_core.c.

void pcxhr_set_pipe_cmd_params ( struct pcxhr_rmh rmh,
int  capture,
unsigned int  param1,
unsigned int  param2,
unsigned int  param3 
)

Definition at line 738 of file pcxhr_core.c.

int pcxhr_set_pipe_state ( struct pcxhr_mgr mgr,
int  playback_mask,
int  capture_mask,
int  start 
)

Definition at line 902 of file pcxhr_core.c.

int pcxhr_write_io_num_reg_cont ( struct pcxhr_mgr mgr,
unsigned int  mask,
unsigned int  value,
int changed 
)

Definition at line 965 of file pcxhr_core.c.