4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
6 * PM Configuration module.
8 * Copyright (C) 2005-2006 Texas Instruments, Inc.
10 * This package is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
14 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21 #include <dspbridge/host_os.h>
22 #include <dspbridge/cfgdefs.h>
25 * ======== cfg_get_cd_version ========
27 * Retrieves the version of the PM Class Driver.
29 * version: Ptr to u32 to contain version number upon return.
31 * 0: Success. version contains Class Driver version in
32 * the form: 0xAABBCCDD where AABB is Major version and
39 * else: *version is NULL.
41 extern int cfg_get_cd_version(u32
*version
);
44 * ======== cfg_get_perf_value ========
46 * Retrieve a flag indicating whether PERF should log statistics for the
49 * enable_perf: Location to store flag. 0 indicates the key was
50 * not found, or had a zero value. A nonzero value
51 * means the key was found and had a nonzero value.
54 * enable_perf != NULL;
57 extern void cfg_get_perf_value(bool *enable_perf
);
60 * ======== cfg_get_zl_file ========
62 * Retreive the ZLFile, if any, for this board.
64 * dev_node_obj: Handle to the dev_node who's driver we are querying.
65 * buf_size: Size of buffer.
66 * str_zl_file_name: Ptr to character buf to hold ZLFileName.
69 * -EFAULT: str_zl_file_name is invalid or dev_node_obj is invalid.
70 * -ENODATA: couldn't find the ZLFileName.
74 * 0: Not more than buf_size bytes were copied into
75 * str_zl_file_name, and *str_zl_file_name contains ZLFileName
78 extern int cfg_get_zl_file(struct cfg_devnode
*dev_node_obj
,
79 u32 buf_size
, char *str_zl_file_name
);
82 * ======== CFG_SetDrvObject ========
84 * Store the Driver Object handle.
86 * value: Arbitrary value to store.
87 * dw_type Type of Object to Store
90 * -EPERM: Internal Error.
94 * 0: The Private u32 was successfully set.
96 extern int cfg_set_object(u32 value
, u8 dw_type
);