Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | mcp |
struct | mcp_ops |
struct | mcp_driver |
Macros | |
#define | mcp_get_sclk_rate(mcp) ((mcp)->sclk_rate) |
#define | mcp_get_drvdata(mcp) dev_get_drvdata(&(mcp)->attached_device) |
#define | mcp_set_drvdata(mcp, d) dev_set_drvdata(&(mcp)->attached_device, d) |
Functions | |
void | mcp_set_telecom_divisor (struct mcp *, unsigned int) |
void | mcp_set_audio_divisor (struct mcp *, unsigned int) |
void | mcp_reg_write (struct mcp *, unsigned int, unsigned int) |
unsigned int | mcp_reg_read (struct mcp *, unsigned int) |
void | mcp_enable (struct mcp *) |
void | mcp_disable (struct mcp *) |
struct mcp * | mcp_host_alloc (struct device *, size_t) |
int | mcp_host_add (struct mcp *, void *) |
void | mcp_host_del (struct mcp *) |
void | mcp_host_free (struct mcp *) |
int | mcp_driver_register (struct mcp_driver *) |
void | mcp_driver_unregister (struct mcp_driver *) |
#define mcp_get_drvdata | ( | mcp | ) | dev_get_drvdata(&(mcp)->attached_device) |
#define mcp_set_drvdata | ( | mcp, | |
d | |||
) | dev_set_drvdata(&(mcp)->attached_device, d) |
int mcp_driver_register | ( | struct mcp_driver * | ) |
Definition at line 210 of file mcp-core.c.
void mcp_driver_unregister | ( | struct mcp_driver * | ) |
Definition at line 217 of file mcp-core.c.
mcp_enable - enable the MCP interface : MCP interface to enable
Enable the MCP interface. Each call to mcp_enable will need a corresponding call to mcp_disable to disable the interface.
Definition at line 137 of file mcp-core.c.
Definition at line 173 of file mcp-core.c.
Definition at line 198 of file mcp-core.c.
Definition at line 204 of file mcp-core.c.
mcp_reg_read - read a device register : MCP interface structure : 4-bit register index
Read a device register and return its value. The MCP interface must be enabled to prevent this function hanging.
Definition at line 117 of file mcp-core.c.
mcp_reg_write - write a device register : MCP interface structure : 4-bit register index : 16-bit data value
Write a device register. The MCP interface must be enabled to prevent this function hanging.
Definition at line 99 of file mcp-core.c.
mcp_set_audio_divisor - set the audio divisor : MCP interface structure : SIB clock divisor
Set the audio divisor on the MCP interface.
Definition at line 80 of file mcp-core.c.