Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
i2sbus.h File Reference
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <linux/mutex.h>
#include <linux/completion.h>
#include <sound/pcm.h>
#include <asm/prom.h>
#include <asm/pmac_feature.h>
#include <asm/dbdma.h>
#include "interface.h"
#include "../soundbus.h"

Go to the source code of this file.

Data Structures

struct  i2sbus_control
 
struct  dbdma_command_mem
 
struct  pcm_info
 
struct  i2sbus_dev
 

Macros

#define MAX_DBDMA_COMMANDS   32
 
#define soundbus_dev_to_i2sbus_dev(sdev)   container_of(sdev, struct i2sbus_dev, sound)
 

Enumerations

enum  { aoa_resource_i2smmio = 0, aoa_resource_txdbdma, aoa_resource_rxdbdma }
 

Functions

int i2sbus_attach_codec (struct soundbus_dev *dev, struct snd_card *card, struct codec_info *ci, void *data)
 
void i2sbus_detach_codec (struct soundbus_dev *dev, void *data)
 
irqreturn_t i2sbus_tx_intr (int irq, void *devid)
 
irqreturn_t i2sbus_rx_intr (int irq, void *devid)
 
void i2sbus_wait_for_stop_both (struct i2sbus_dev *i2sdev)
 
void i2sbus_pcm_prepare_both (struct i2sbus_dev *i2sdev)
 
int i2sbus_control_init (struct macio_dev *dev, struct i2sbus_control **c)
 
void i2sbus_control_destroy (struct i2sbus_control *c)
 
int i2sbus_control_add_dev (struct i2sbus_control *c, struct i2sbus_dev *i2sdev)
 
void i2sbus_control_remove_dev (struct i2sbus_control *c, struct i2sbus_dev *i2sdev)
 
int i2sbus_control_enable (struct i2sbus_control *c, struct i2sbus_dev *i2sdev)
 
int i2sbus_control_cell (struct i2sbus_control *c, struct i2sbus_dev *i2sdev, int enable)
 
int i2sbus_control_clock (struct i2sbus_control *c, struct i2sbus_dev *i2sdev, int enable)
 

Macro Definition Documentation

#define MAX_DBDMA_COMMANDS   32

Definition at line 29 of file i2sbus.h.

#define soundbus_dev_to_i2sbus_dev (   sdev)    container_of(sdev, struct i2sbus_dev, sound)

Definition at line 93 of file i2sbus.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
aoa_resource_i2smmio 
aoa_resource_txdbdma 
aoa_resource_rxdbdma 

Definition at line 53 of file i2sbus.h.

Function Documentation

int i2sbus_attach_codec ( struct soundbus_dev dev,
struct snd_card card,
struct codec_info ci,
void data 
)

Definition at line 881 of file pcm.c.

int i2sbus_control_add_dev ( struct i2sbus_control c,
struct i2sbus_dev i2sdev 
)

Definition at line 40 of file control.c.

int i2sbus_control_cell ( struct i2sbus_control c,
struct i2sbus_dev i2sdev,
int  enable 
)

Definition at line 110 of file control.c.

int i2sbus_control_clock ( struct i2sbus_control c,
struct i2sbus_dev i2sdev,
int  enable 
)

Definition at line 153 of file control.c.

void i2sbus_control_destroy ( struct i2sbus_control c)

Definition at line 34 of file control.c.

int i2sbus_control_enable ( struct i2sbus_control c,
struct i2sbus_dev i2sdev 
)

Definition at line 83 of file control.c.

int i2sbus_control_init ( struct macio_dev *  dev,
struct i2sbus_control **  c 
)

Definition at line 22 of file control.c.

void i2sbus_control_remove_dev ( struct i2sbus_control c,
struct i2sbus_dev i2sdev 
)

Definition at line 74 of file control.c.

void i2sbus_detach_codec ( struct soundbus_dev dev,
void data 
)

Definition at line 1044 of file pcm.c.

void i2sbus_pcm_prepare_both ( struct i2sbus_dev i2sdev)
irqreturn_t i2sbus_rx_intr ( int  irq,
void devid 
)

Definition at line 716 of file pcm.c.

irqreturn_t i2sbus_tx_intr ( int  irq,
void devid 
)

Definition at line 710 of file pcm.c.

void i2sbus_wait_for_stop_both ( struct i2sbus_dev i2sdev)