FreeBSD kernel sound device code
csavar.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  csa_card
 
struct  csa_res
 
struct  csa_bridgeinfo
 

Typedefs

typedef struct csa_res csa_res
 

Functions

void csa_clearserialfifos (csa_res *resp)
 
struct csa_cardcsa_findsubcard (device_t dev)
 
int csa_readcodec (csa_res *resp, u_long offset, u_int32_t *data)
 
int csa_writecodec (csa_res *resp, u_long offset, u_int32_t data)
 
u_int32_t csa_readio (csa_res *resp, u_long offset)
 
void csa_writeio (csa_res *resp, u_long offset, u_int32_t data)
 
u_int32_t csa_readmem (csa_res *resp, u_long offset)
 
void csa_writemem (csa_res *resp, u_long offset, u_int32_t data)
 
void csa_resetdsp (csa_res *resp)
 

Typedef Documentation

◆ csa_res

typedef struct csa_res csa_res

Definition at line 51 of file csavar.h.

Function Documentation

◆ csa_clearserialfifos()

void csa_clearserialfifos ( csa_res resp)

Definition at line 773 of file csa.c.

References BA0_CLKCR1, BA0_SERBAD, BA0_SERBCM, BA0_SERBST, BA0_SERBWP, CLKCR1_SWCE, csa_readio(), csa_writeio(), resp, SERBCM_WRC, and SERBST_WBSY.

Referenced by csa_initialize(), csa_stopcapturedma(), and csa_stopplaydma().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ csa_findsubcard()

struct csa_card * csa_findsubcard ( device_t  dev)

Definition at line 210 of file csa.c.

References card_type::cards, csa_findcard(), dev, nocard, csa_card::subdevice, and csa_card::subvendor.

Referenced by csa_attach().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ csa_readcodec()

int csa_readcodec ( csa_res resp,
u_long  offset,
u_int32_t *  data 
)

Definition at line 900 of file csa.c.

References ACCTL_CRW, ACCTL_DCV, ACCTL_ESYN, ACCTL_RSTN, ACCTL_VFRM, ACSTS_VSTS, BA0_AC97_RESET, BA0_ACCAD, BA0_ACCDA, BA0_ACCTL, BA0_ACSDA, BA0_ACSTS, csa_readio(), csa_writeio(), data, offset, and resp.

Referenced by csa_ac97_suspend(), csa_rdcd(), and csa_readio().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ csa_readio()

u_int32_t csa_readio ( csa_res resp,
u_long  offset 
)

Definition at line 1047 of file csa.c.

References BA0_AC97_RESET, csa_readcodec(), offset, and resp.

Referenced by csa_attach(), csa_clearserialfifos(), csa_init(), csa_initialize(), csa_intr(), csa_readcodec(), csa_setup_intr(), csa_writecodec(), and pcmcsa_resume().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ csa_readmem()

u_int32_t csa_readmem ( csa_res resp,
u_long  offset 
)

Definition at line 1070 of file csa.c.

References offset, and resp.

Referenced by csa_setupchan(), csa_startcapturedma(), csa_startdsp(), csa_startplaydma(), csa_stopcapturedma(), csa_stopplaydma(), csachan_getptr(), pcmcsa_attach(), pcmcsa_resume(), and pcmcsa_suspend().

Here is the caller graph for this function:

◆ csa_resetdsp()

void csa_resetdsp ( csa_res resp)

Definition at line 824 of file csa.c.

References BA1_DREG, BA1_FRMT, BA1_SPCR, BA1_TWPR, csa_writemem(), DREG_REGID_TRAP_SELECT, resp, SPCR_DRQEN, and SPCR_RSTSP.

Referenced by csa_attach(), csa_resume(), and pcmcsa_suspend().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ csa_writecodec()

int csa_writecodec ( csa_res resp,
u_long  offset,
u_int32_t  data 
)

Definition at line 994 of file csa.c.

References ACCTL_DCV, ACCTL_ESYN, ACCTL_RSTN, ACCTL_VFRM, BA0_AC97_RESET, BA0_ACCAD, BA0_ACCDA, BA0_ACCTL, csa_readio(), csa_writeio(), data, offset, and resp.

Referenced by csa_ac97_resume(), csa_ac97_suspend(), csa_wrcd(), csa_writeio(), and pcmcsa_suspend().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ csa_writeio()

void csa_writeio ( csa_res resp,
u_long  offset,
u_int32_t  data 
)

Definition at line 1061 of file csa.c.

References BA0_AC97_RESET, csa_writecodec(), data, offset, and resp.

Referenced by csa_attach(), csa_clearserialfifos(), csa_init(), csa_initialize(), csa_intr(), csa_readcodec(), csa_setup_intr(), csa_stopcapturedma(), csa_stopplaydma(), csa_writecodec(), and pcmcsa_resume().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ csa_writemem()

void csa_writemem ( csa_res resp,
u_long  offset,
u_int32_t  data 
)