coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
tas5825m.c File Reference
#include <console/console.h>
#include <device/smbus.h>
#include <device/pci.h>
#include "chip.h"
#include "tas5825m.h"
Include dependency graph for tas5825m.c:

Go to the source code of this file.

Functions

int tas5825m_write_at (struct device *dev, uint8_t addr, uint8_t value)
 
int tas5825m_write_block_at (struct device *dev, uint8_t addr, const uint8_t *values, uint8_t length)
 
int tas5825m_set_page (struct device *dev, uint8_t page)
 
int tas5825m_set_book (struct device *dev, uint8_t book)
 
__weak int tas5825m_setup (struct device *dev, int id)
 
static void tas5825m_init (struct device *dev)
 
static void tas5825m_enable_dev (struct device *dev)
 

Variables

static struct device_operations tas5825m_operations
 
struct chip_operations drivers_i2c_tas5825m_ops
 

Function Documentation

◆ tas5825m_enable_dev()

static void tas5825m_enable_dev ( struct device dev)
static

Definition at line 72 of file tas5825m.c.

◆ tas5825m_init()

static void tas5825m_init ( struct device dev)
static

◆ tas5825m_set_book()

int tas5825m_set_book ( struct device dev,
uint8_t  book 
)

Definition at line 32 of file tas5825m.c.

References tas5825m_set_page(), and tas5825m_write_at().

Referenced by program_biquad_filters(), program_dsp_ram(), and tas5825m_setup().

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

◆ tas5825m_set_page()

int tas5825m_set_page ( struct device dev,
uint8_t  page 
)

Definition at line 27 of file tas5825m.c.

References tas5825m_write_at().

Referenced by program_biquad_filters(), program_dsp_ram(), tas5825m_set_book(), and tas5825m_setup().

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

◆ tas5825m_setup()

__weak int tas5825m_setup ( struct device dev,
int  id 
)

Definition at line 40 of file tas5825m.c.

References BIOS_ERR, and printk.

Referenced by tas5825m_init().

Here is the caller graph for this function:

◆ tas5825m_write_at()

int tas5825m_write_at ( struct device dev,
uint8_t  addr,
uint8_t  value 
)

Definition at line 9 of file tas5825m.c.

References addr, smbus_write_byte(), and value.

Referenced by tas5825m_set_book(), tas5825m_set_page(), and tas5825m_setup().

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

◆ tas5825m_write_block_at()

int tas5825m_write_block_at ( struct device dev,
uint8_t  addr,
const uint8_t values,
uint8_t  length 
)

Definition at line 15 of file tas5825m.c.

References addr, length, and smbus_write_byte().

Referenced by program_biquad_filters(), program_dsp_ram(), and tas5825m_setup().

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

Variable Documentation

◆ drivers_i2c_tas5825m_ops

struct chip_operations drivers_i2c_tas5825m_ops
Initial value:
= {
.enable_dev = tas5825m_enable_dev,
}
static void tas5825m_enable_dev(struct device *dev)
Definition: tas5825m.c:72

Definition at line 72 of file tas5825m.c.

◆ tas5825m_operations

struct device_operations tas5825m_operations
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.init = tas5825m_init,
}
static void tas5825m_init(struct device *dev)
Definition: tas5825m.c:46
static void noop_read_resources(struct device *dev)
Standard device operations function pointers shims.
Definition: device.h:73
static void noop_set_resources(struct device *dev)
Definition: device.h:74

Definition at line 46 of file tas5825m.c.