#include <linux/init.h>
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <asm/prom.h>
#include <asm/pmac_pfunc.h>
Go to the source code of this file.
|
int | pmf_register_driver (struct device_node *np, struct pmf_handlers *handlers, void *driverdata) |
|
| EXPORT_SYMBOL_GPL (pmf_register_driver) |
|
struct pmf_function * | pmf_get_function (struct pmf_function *func) |
|
| EXPORT_SYMBOL_GPL (pmf_get_function) |
|
void | pmf_put_function (struct pmf_function *func) |
|
| EXPORT_SYMBOL_GPL (pmf_put_function) |
|
void | pmf_unregister_driver (struct device_node *np) |
|
| EXPORT_SYMBOL_GPL (pmf_unregister_driver) |
|
struct pmf_function * | __pmf_find_function (struct device_node *target, const char *name, u32 flags) |
|
int | pmf_register_irq_client (struct device_node *target, const char *name, struct pmf_irq_client *client) |
|
| EXPORT_SYMBOL_GPL (pmf_register_irq_client) |
|
void | pmf_unregister_irq_client (struct pmf_irq_client *client) |
|
| EXPORT_SYMBOL_GPL (pmf_unregister_irq_client) |
|
void | pmf_do_irq (struct pmf_function *func) |
|
| EXPORT_SYMBOL_GPL (pmf_do_irq) |
|
int | pmf_call_one (struct pmf_function *func, struct pmf_args *args) |
|
| EXPORT_SYMBOL_GPL (pmf_call_one) |
|
int | pmf_do_functions (struct device_node *np, const char *name, u32 phandle, u32 fflags, struct pmf_args *args) |
|
| EXPORT_SYMBOL_GPL (pmf_do_functions) |
|
struct pmf_function * | pmf_find_function (struct device_node *target, const char *name) |
|
| EXPORT_SYMBOL_GPL (pmf_find_function) |
|
int | pmf_call_function (struct device_node *target, const char *name, struct pmf_args *args) |
|
| EXPORT_SYMBOL_GPL (pmf_call_function) |
|
#define LOG_BLOB |
( |
|
t, |
|
|
|
b, |
|
|
|
c |
|
) |
| |
#define LOG_PARSE |
( |
|
fmt... | ) |
|
#define PMF_CMD_GEN_I2C 16 |
#define PMF_CMD_MASK_AND_COMPARE 32 |
#define PMF_CMD_READ_CFG 19 |
#define PMF_CMD_READ_GPIO 2 |
#define PMF_CMD_READ_I2C 13 |
#define PMF_CMD_READ_I2C_SUBADDR 22 |
#define PMF_CMD_READ_REG16 6 |
#define PMF_CMD_READ_REG16_MASK_SHR_XOR 27 |
#define PMF_CMD_READ_REG32 4 |
#define PMF_CMD_READ_REG32_MASK_SHR_XOR 26 |
#define PMF_CMD_READ_REG8 8 |
#define PMF_CMD_READ_REG8_MASK_SHR_XOR 28 |
#define PMF_CMD_RMW_CFG 21 |
#define PMF_CMD_RMW_I2C 15 |
#define PMF_CMD_RMW_I2C_SUBADDR 25 |
#define PMF_CMD_SET_I2C_MODE 24 |
#define PMF_CMD_SHIFT_BYTES_LEFT 18 |
#define PMF_CMD_SHIFT_BYTES_RIGHT 17 |
#define PMF_CMD_WAIT_REG16 11 |
#define PMF_CMD_WAIT_REG32 10 |
#define PMF_CMD_WAIT_REG8 12 |
#define PMF_CMD_WRITE_CFG 20 |
#define PMF_CMD_WRITE_GPIO 1 |
#define PMF_CMD_WRITE_I2C 14 |
#define PMF_CMD_WRITE_I2C_SUBADDR 23 |
#define PMF_CMD_WRITE_REG16 5 |
#define PMF_CMD_WRITE_REG16_SHL_MASK 30 |
#define PMF_CMD_WRITE_REG32 3 |
#define PMF_CMD_WRITE_REG32_SHL_MASK 29 |
#define PMF_CMD_WRITE_REG8 7 |
#define PMF_CMD_WRITE_REG8_SHL_MASK 31 |
#define PMF_PARSE_CALL |
( |
|
name, |
|
|
|
cmd, |
|
|
|
handlers, |
|
|
|
p... |
|
) |
| |
Value:do { \
return 0; \
if (handlers->name) \
return handlers->name(
cmd->func,
cmd->instdata, \
return -1; \
} while(0) \
Definition at line 124 of file pfunc_core.c.
#define PP_PREFIX "platform-do-" |