Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
lx_core.h File Reference
#include <linux/interrupt.h>
#include "lx_defs.h"

Go to the source code of this file.

Data Structures

struct  lx_rmh
 

Macros

#define REG_CRM_NUMBER   12
 
#define HEADER_FMT_BASE   HEADER_FMT_BASE_LIN
 
#define HEADER_FMT_BASE_LIN   0xFED00000
 
#define HEADER_FMT_BASE_FLOAT   0xFAD00000
 
#define HEADER_FMT_MONO
 
#define HEADER_FMT_INTEL   0x00008000
 
#define HEADER_FMT_16BITS   0x00002000
 
#define HEADER_FMT_24BITS   0x00004000
 
#define HEADER_FMT_UPTO11
 
#define HEADER_FMT_UPTO32
 
#define BIT_FMP_HEADER   23
 
#define BIT_FMP_SD   22
 
#define BIT_FMP_MULTICHANNEL   19
 
#define START_STATE   1
 
#define PAUSE_STATE   0
 
#define START_PAUSE_IMMEDIATE   0
 
#define START_PAUSE_ON_SYNCHRO   1
 
#define START_PAUSE_ON_TIME_CODE   2
 
#define START_STATE   1
 
#define PAUSE_STATE   0
 

Enumerations

enum  {
  eReg_BASE, eReg_CSM, eReg_CRM1, eReg_CRM2,
  eReg_CRM3, eReg_CRM4, eReg_CRM5, eReg_CRM6,
  eReg_CRM7, eReg_CRM8, eReg_CRM9, eReg_CRM10,
  eReg_CRM11, eReg_CRM12, eReg_ICR, eReg_CVR,
  eReg_ISR, eReg_RXHTXH, eReg_RXMTXM, eReg_RHLTXL,
  eReg_RESETDSP, eReg_CSUF, eReg_CSES, eReg_CRESMSB,
  eReg_CRESLSB, eReg_ADMACESMSB, eReg_ADMACESLSB, eReg_CONFES,
  eMaxPortLx
}
 
enum  {
  ePLX_PCICR, ePLX_MBOX0, ePLX_MBOX1, ePLX_MBOX2,
  ePLX_MBOX3, ePLX_MBOX4, ePLX_MBOX5, ePLX_MBOX6,
  ePLX_MBOX7, ePLX_L2PCIDB, ePLX_IRQCS, ePLX_CHIPSC,
  eMaxPort
}
 

Functions

unsigned long lx_dsp_reg_read (struct lx6464es *chip, int port)
 
void lx_dsp_reg_write (struct lx6464es *chip, int port, unsigned data)
 
unsigned long lx_plx_reg_read (struct lx6464es *chip, int port)
 
void lx_plx_reg_write (struct lx6464es *chip, int port, u32 data)
 
int __devinit lx_dsp_get_version (struct lx6464es *chip, u32 *rdsp_version)
 
int lx_dsp_get_clock_frequency (struct lx6464es *chip, u32 *rfreq)
 
int lx_dsp_set_granularity (struct lx6464es *chip, u32 gran)
 
int lx_dsp_read_async_events (struct lx6464es *chip, u32 *data)
 
int lx_dsp_get_mac (struct lx6464es *chip)
 
int lx_pipe_allocate (struct lx6464es *chip, u32 pipe, int is_capture, int channels)
 
int lx_pipe_release (struct lx6464es *chip, u32 pipe, int is_capture)
 
int lx_pipe_sample_count (struct lx6464es *chip, u32 pipe, int is_capture, u64 *rsample_count)
 
int lx_pipe_state (struct lx6464es *chip, u32 pipe, int is_capture, u16 *rstate)
 
int lx_pipe_stop (struct lx6464es *chip, u32 pipe, int is_capture)
 
int lx_pipe_start (struct lx6464es *chip, u32 pipe, int is_capture)
 
int lx_pipe_pause (struct lx6464es *chip, u32 pipe, int is_capture)
 
int lx_pipe_wait_for_start (struct lx6464es *chip, u32 pipe, int is_capture)
 
int lx_pipe_wait_for_idle (struct lx6464es *chip, u32 pipe, int is_capture)
 
int lx_stream_set_format (struct lx6464es *chip, struct snd_pcm_runtime *runtime, u32 pipe, int is_capture)
 
int lx_stream_state (struct lx6464es *chip, u32 pipe, int is_capture, int *rstate)
 
int lx_stream_sample_position (struct lx6464es *chip, u32 pipe, int is_capture, u64 *r_bytepos)
 
int lx_stream_set_state (struct lx6464es *chip, u32 pipe, int is_capture, enum stream_state_t state)
 
int lx_buffer_ask (struct lx6464es *chip, u32 pipe, int is_capture, u32 *r_needed, u32 *r_freed, u32 *size_array)
 
int lx_buffer_give (struct lx6464es *chip, u32 pipe, int is_capture, u32 buffer_size, u32 buf_address_lo, u32 buf_address_hi, u32 *r_buffer_index)
 
int lx_buffer_free (struct lx6464es *chip, u32 pipe, int is_capture, u32 *r_buffer_size)
 
int lx_buffer_cancel (struct lx6464es *chip, u32 pipe, int is_capture, u32 buffer_index)
 
int lx_level_unmute (struct lx6464es *chip, int is_capture, int unmute)
 
int lx_level_peaks (struct lx6464es *chip, int is_capture, int channels, u32 *r_levels)
 
irqreturn_t lx_interrupt (int irq, void *dev_id)
 
void lx_irq_enable (struct lx6464es *chip)
 
void lx_irq_disable (struct lx6464es *chip)
 
void lx_tasklet_capture (unsigned long data)
 
void lx_tasklet_playback (unsigned long data)
 

Macro Definition Documentation

#define BIT_FMP_HEADER   23

Definition at line 203 of file lx_core.h.

#define BIT_FMP_MULTICHANNEL   19

Definition at line 205 of file lx_core.h.

#define BIT_FMP_SD   22

Definition at line 204 of file lx_core.h.

#define HEADER_FMT_16BITS   0x00002000

Definition at line 197 of file lx_core.h.

#define HEADER_FMT_24BITS   0x00004000

Definition at line 198 of file lx_core.h.

#define HEADER_FMT_BASE   HEADER_FMT_BASE_LIN

Definition at line 192 of file lx_core.h.

#define HEADER_FMT_BASE_FLOAT   0xFAD00000

Definition at line 194 of file lx_core.h.

#define HEADER_FMT_BASE_LIN   0xFED00000

Definition at line 193 of file lx_core.h.

#define HEADER_FMT_INTEL   0x00008000

Definition at line 196 of file lx_core.h.

#define HEADER_FMT_MONO
Value:
0x00000080 /* bit 23 in header_lo. WARNING: old
* bit 22 is ignored in float
* format */

Definition at line 195 of file lx_core.h.

#define HEADER_FMT_UPTO11
Value:
0x00000200 /* frequency is less or equ. to 11k.
* */

Definition at line 199 of file lx_core.h.

#define HEADER_FMT_UPTO32
Value:
0x00000100 /* frequency is over 11k and less
* then 32k.*/

Definition at line 200 of file lx_core.h.

#define PAUSE_STATE   0

Definition at line 223 of file lx_core.h.

#define PAUSE_STATE   0

Definition at line 223 of file lx_core.h.

#define REG_CRM_NUMBER   12

Definition at line 32 of file lx_core.h.

#define START_PAUSE_IMMEDIATE   0

Definition at line 216 of file lx_core.h.

#define START_PAUSE_ON_SYNCHRO   1

Definition at line 217 of file lx_core.h.

#define START_PAUSE_ON_TIME_CODE   2

Definition at line 218 of file lx_core.h.

#define START_STATE   1

Definition at line 222 of file lx_core.h.

#define START_STATE   1

Definition at line 222 of file lx_core.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
eReg_BASE 
eReg_CSM 
eReg_CRM1 
eReg_CRM2 
eReg_CRM3 
eReg_CRM4 
eReg_CRM5 
eReg_CRM6 
eReg_CRM7 
eReg_CRM8 
eReg_CRM9 
eReg_CRM10 
eReg_CRM11 
eReg_CRM12 
eReg_ICR 
eReg_CVR 
eReg_ISR 
eReg_RXHTXH 
eReg_RXMTXM 
eReg_RHLTXL 
eReg_RESETDSP 
eReg_CSUF 
eReg_CSES 
eReg_CRESMSB 
eReg_CRESLSB 
eReg_ADMACESMSB 
eReg_ADMACESLSB 
eReg_CONFES 
eMaxPortLx 

Definition at line 39 of file lx_core.h.

anonymous enum
Enumerator:
ePLX_PCICR 
ePLX_MBOX0 
ePLX_MBOX1 
ePLX_MBOX2 
ePLX_MBOX3 
ePLX_MBOX4 
ePLX_MBOX5 
ePLX_MBOX6 
ePLX_MBOX7 
ePLX_L2PCIDB 
ePLX_IRQCS 
ePLX_CHIPSC 
eMaxPort 

Definition at line 78 of file lx_core.h.

Function Documentation

int lx_buffer_ask ( struct lx6464es chip,
u32  pipe,
int  is_capture,
u32 r_needed,
u32 r_freed,
u32 size_array 
)

Definition at line 568 of file lx_core.c.

int lx_buffer_cancel ( struct lx6464es chip,
u32  pipe,
int  is_capture,
u32  buffer_index 
)

Definition at line 944 of file lx_core.c.

int lx_buffer_free ( struct lx6464es chip,
u32  pipe,
int  is_capture,
u32 r_buffer_size 
)

Definition at line 920 of file lx_core.c.

int lx_buffer_give ( struct lx6464es chip,
u32  pipe,
int  is_capture,
u32  buffer_size,
u32  buf_address_lo,
u32  buf_address_hi,
u32 r_buffer_index 
)

Definition at line 873 of file lx_core.c.

int lx_dsp_get_clock_frequency ( struct lx6464es chip,
u32 rfreq 
)

Definition at line 403 of file lx_core.c.

int lx_dsp_get_mac ( struct lx6464es chip)

Definition at line 436 of file lx_core.c.

int __devinit lx_dsp_get_version ( struct lx6464es chip,
u32 rdsp_version 
)

Definition at line 388 of file lx_core.c.

int lx_dsp_read_async_events ( struct lx6464es chip,
u32 data 
)

Definition at line 470 of file lx_core.c.

unsigned long lx_dsp_reg_read ( struct lx6464es chip,
int  port 
)

Definition at line 75 of file lx_core.c.

void lx_dsp_reg_write ( struct lx6464es chip,
int  port,
unsigned  data 
)

Definition at line 93 of file lx_core.c.

int lx_dsp_set_granularity ( struct lx6464es chip,
u32  gran 
)

Definition at line 455 of file lx_core.c.

irqreturn_t lx_interrupt ( int  irq,
void dev_id 
)

Definition at line 1256 of file lx_core.c.

void lx_irq_disable ( struct lx6464es chip)

Definition at line 1353 of file lx_core.c.

void lx_irq_enable ( struct lx6464es chip)

Definition at line 1347 of file lx_core.c.

int lx_level_peaks ( struct lx6464es chip,
int  is_capture,
int  channels,
u32 r_levels 
)

Definition at line 1014 of file lx_core.c.

int lx_level_unmute ( struct lx6464es chip,
int  is_capture,
int  unmute 
)

Definition at line 970 of file lx_core.c.

int lx_pipe_allocate ( struct lx6464es chip,
u32  pipe,
int  is_capture,
int  channels 
)

Definition at line 527 of file lx_core.c.

int lx_pipe_pause ( struct lx6464es chip,
u32  pipe,
int  is_capture 
)

Definition at line 673 of file lx_core.c.

int lx_pipe_release ( struct lx6464es chip,
u32  pipe,
int  is_capture 
)

Definition at line 550 of file lx_core.c.

int lx_pipe_sample_count ( struct lx6464es chip,
u32  pipe,
int  is_capture,
u64 rsample_count 
)

Definition at line 687 of file lx_core.c.

int lx_pipe_start ( struct lx6464es chip,
u32  pipe,
int  is_capture 
)

Definition at line 660 of file lx_core.c.

int lx_pipe_state ( struct lx6464es chip,
u32  pipe,
int  is_capture,
u16 rstate 
)

Definition at line 716 of file lx_core.c.

int lx_pipe_stop ( struct lx6464es chip,
u32  pipe,
int  is_capture 
)

Definition at line 623 of file lx_core.c.

int lx_pipe_wait_for_idle ( struct lx6464es chip,
u32  pipe,
int  is_capture 
)

Definition at line 767 of file lx_core.c.

int lx_pipe_wait_for_start ( struct lx6464es chip,
u32  pipe,
int  is_capture 
)

Definition at line 762 of file lx_core.c.

unsigned long lx_plx_reg_read ( struct lx6464es chip,
int  port 
)

Definition at line 132 of file lx_core.c.

void lx_plx_reg_write ( struct lx6464es chip,
int  port,
u32  data 
)

Definition at line 138 of file lx_core.c.

int lx_stream_sample_position ( struct lx6464es chip,
u32  pipe,
int  is_capture,
u64 r_bytepos 
)

Definition at line 849 of file lx_core.c.

int lx_stream_set_format ( struct lx6464es chip,
struct snd_pcm_runtime runtime,
u32  pipe,
int  is_capture 
)

Definition at line 793 of file lx_core.c.

int lx_stream_set_state ( struct lx6464es chip,
u32  pipe,
int  is_capture,
enum stream_state_t  state 
)

Definition at line 773 of file lx_core.c.

int lx_stream_state ( struct lx6464es chip,
u32  pipe,
int  is_capture,
int rstate 
)

Definition at line 828 of file lx_core.c.

void lx_tasklet_capture ( unsigned long  data)

Definition at line 1219 of file lx_core.c.

void lx_tasklet_playback ( unsigned long  data)

Definition at line 1203 of file lx_core.c.