*/
int bridge_chnl_create(OUT struct chnl_mgr **channel_mgr,
struct dev_object *hdev_obj,
- IN CONST struct chnl_mgrattrs *mgr_attrts)
+ IN const struct chnl_mgrattrs *mgr_attrts)
{
int status = 0;
struct chnl_mgr *chnl_mgr_obj = NULL;
*/
int bridge_chnl_open(OUT struct chnl_object **chnl,
struct chnl_mgr *hchnl_mgr, s8 chnl_mode,
- u32 ch_id, CONST IN struct chnl_attr *pattrs)
+ u32 ch_id, const IN struct chnl_attr *pattrs)
{
int status = 0;
struct chnl_mgr *chnl_mgr_obj = hchnl_mgr;
*/
int bridge_io_create(OUT struct io_mgr **io_man,
struct dev_object *hdev_obj,
- IN CONST struct io_attrs *mgr_attrts)
+ IN const struct io_attrs *mgr_attrts)
{
int status = 0;
struct io_mgr *pio_mgr = NULL;
* Put a message onto a msg_ctrl queue.
*/
int bridge_msg_put(struct msg_queue *msg_queue_obj,
- IN CONST struct dsp_msg *pmsg, u32 utimeout)
+ IN const struct dsp_msg *pmsg, u32 utimeout)
{
struct msg_frame *msg_frame_obj;
struct msg_mgr *hmsg_mgr;
* Bridge Driver entry point.
*/
void bridge_drv_entry(OUT struct bridge_drv_interface **drv_intf,
- IN CONST char *driver_file_name)
+ IN const char *driver_file_name)
{
DBC_REQUIRE(driver_file_name != NULL);
*/
extern int chnl_create(OUT struct chnl_mgr **channel_mgr,
struct dev_object *hdev_obj,
- IN CONST struct chnl_mgrattrs *mgr_attrts);
+ IN const struct chnl_mgrattrs *mgr_attrts);
/*
* ======== chnl_destroy ========
*/
extern int cmm_create(OUT struct cmm_object **ph_cmm_mgr,
struct dev_object *hdev_obj,
- IN CONST struct cmm_mgrattrs *mgr_attrts);
+ IN const struct cmm_mgrattrs *mgr_attrts);
/*
* ======== cmm_destroy ========
*/
extern int cod_create(OUT struct cod_manager **mgr,
char *str_zl_file,
- IN OPTIONAL CONST struct cod_attrs *attrs);
+ IN OPTIONAL const struct cod_attrs *attrs);
/*
* ======== cod_delete ========
*/
extern int dev_create_device(OUT struct dev_object
**device_obj,
- IN CONST char *driver_file_name,
+ IN const char *driver_file_name,
struct cfg_devnode *dev_node_obj);
/*
*/
extern int dev_create_iva_device(OUT struct dev_object
**device_obj,
- IN CONST char *driver_file_name,
- IN CONST struct cfg_hostres
+ IN const char *driver_file_name,
+ IN const struct cfg_hostres
*host_config,
struct cfg_devnode *dev_node_obj);
* 0: *pul_value contains the symbol value;
*/
extern int dev_get_symbol(struct dev_object *hdev_obj,
- IN CONST char *str_sym, OUT u32 * pul_value);
+ IN const char *str_sym, OUT u32 * pul_value);
/*
* ======== dev_get_bridge_context ========
*/
extern int disp_create(OUT struct disp_object **dispatch_obj,
struct dev_object *hdev_obj,
- IN CONST struct disp_attr *disp_attrs);
+ IN const struct disp_attr *disp_attrs);
/*
* ======== disp_delete ========
struct node_object *hnode,
u32 rms_fxn,
u32 ul_create_fxn,
- IN CONST struct node_createargs
+ IN const struct node_createargs
*pargs, OUT nodeenv *node_env);
/*
extern int dmm_create(OUT struct dmm_object **dmm_manager,
struct dev_object *hdev_obj,
- IN CONST struct dmm_mgrattrs *mgr_attrts);
+ IN const struct dmm_mgrattrs *mgr_attrts);
extern bool dmm_init(void);
extern int bridge_chnl_create(OUT struct chnl_mgr **channel_mgr,
struct dev_object *hdev_obj,
- IN CONST struct chnl_mgrattrs
+ IN const struct chnl_mgrattrs
*mgr_attrts);
extern int bridge_chnl_destroy(struct chnl_mgr *hchnl_mgr);
struct chnl_mgr *hchnl_mgr,
s8 chnl_mode,
u32 ch_id,
- CONST IN OPTIONAL struct chnl_attr
+ const IN OPTIONAL struct chnl_attr
*pattrs);
extern int bridge_chnl_close(struct chnl_object *chnl_obj);
**channel_mgr,
struct dev_object
* hdev_obj,
- IN CONST struct
+ IN const struct
chnl_mgrattrs * mgr_attrts);
/*
struct chnl_mgr *hchnl_mgr,
s8 chnl_mode,
u32 ch_id,
- CONST IN OPTIONAL struct
+ const IN OPTIONAL struct
chnl_attr * pattrs);
/*
*/
typedef int(*fxn_io_create) (OUT struct io_mgr **io_man,
struct dev_object *hdev_obj,
- IN CONST struct io_attrs *mgr_attrts);
+ IN const struct io_attrs *mgr_attrts);
/*
* ======== bridge_io_destroy ========
* Ensures:
*/
typedef int(*fxn_msg_put) (struct msg_queue *msg_queue_obj,
- IN CONST struct dsp_msg *pmsg, u32 utimeout);
+ IN const struct dsp_msg *pmsg, u32 utimeout);
/*
* ======== bridge_msg_register_notify ========
* Called during the Device_Init phase.
*/
void bridge_drv_entry(OUT struct bridge_drv_interface **drv_intf,
- IN CONST char *driver_file_name);
+ IN const char *driver_file_name);
#endif /* DSPDEFS_ */
extern int bridge_io_create(OUT struct io_mgr **io_man,
struct dev_object *hdev_obj,
- IN CONST struct io_attrs *mgr_attrts);
+ IN const struct io_attrs *mgr_attrts);
extern int bridge_io_destroy(struct io_mgr *hio_mgr);
struct dsp_msg *pmsg, u32 utimeout);
extern int bridge_msg_put(struct msg_queue *msg_queue_obj,
- IN CONST struct dsp_msg *pmsg, u32 utimeout);
+ IN const struct dsp_msg *pmsg, u32 utimeout);
extern int bridge_msg_register_notify(struct msg_queue *msg_queue_obj,
u32 event_mask,
*/
extern int io_create(OUT struct io_mgr **io_man,
struct dev_object *hdev_obj,
- IN CONST struct io_attrs *mgr_attrts);
+ IN const struct io_attrs *mgr_attrts);
/*
* ======== io_destroy ========
#define NLDR_
extern int nldr_allocate(struct nldr_object *nldr_obj,
- void *priv_ref, IN CONST struct dcd_nodeprops
+ void *priv_ref, IN const struct dcd_nodeprops
*node_props,
OUT struct nldr_nodeobject **nldr_nodeobj,
IN bool *pf_phase_split);
extern int nldr_create(OUT struct nldr_object **nldr,
struct dev_object *hdev_obj,
- IN CONST struct nldr_attrs *pattrs);
+ IN const struct nldr_attrs *pattrs);
extern void nldr_delete(struct nldr_object *nldr_obj);
extern void nldr_exit(void);
*/
typedef int(*nldr_allocatefxn) (struct nldr_object *nldr_obj,
void *priv_ref,
- IN CONST struct dcd_nodeprops
+ IN const struct dcd_nodeprops
* node_props,
OUT struct nldr_nodeobject
**nldr_nodeobj,
*/
typedef int(*nldr_createfxn) (OUT struct nldr_object **nldr,
struct dev_object *hdev_obj,
- IN CONST struct nldr_attrs *pattrs);
+ IN const struct nldr_attrs *pattrs);
/*
* ======== nldr_delete ========
* error: *ph_node == NULL.
*/
extern int node_allocate(struct proc_object *hprocessor,
- IN CONST struct dsp_uuid *node_uuid,
- OPTIONAL IN CONST struct dsp_cbdata
- *pargs, OPTIONAL IN CONST struct dsp_nodeattrin
+ IN const struct dsp_uuid *node_uuid,
+ OPTIONAL IN const struct dsp_cbdata
+ *pargs, OPTIONAL IN const struct dsp_nodeattrin
*attr_in,
OUT struct node_object **ph_node,
struct process_context *pr_ctxt);
* Ensures:
*/
extern int node_put_message(struct node_object *hnode,
- IN CONST struct dsp_msg *pmsg, u32 utimeout);
+ IN const struct dsp_msg *pmsg, u32 utimeout);
/*
* ======== node_register_notify ========
*
*/
extern int node_get_uuid_props(void *hprocessor,
- IN CONST struct dsp_uuid *node_uuid,
+ IN const struct dsp_uuid *node_uuid,
OUT struct dsp_ndbprops
*node_props);
* When attr_in is NULL, the default timeout value is 10 seconds.
*/
extern int proc_attach(u32 processor_id,
- OPTIONAL CONST struct dsp_processorattrin
+ OPTIONAL const struct dsp_processorattrin
*attr_in, void **ph_processor,
struct process_context *pr_ctxt);
* can load the processor.
*/
extern int proc_load(void *hprocessor,
- IN CONST s32 argc_index, IN CONST char **user_args,
- IN CONST char **user_envp);
+ IN const s32 argc_index, IN const char **user_args,
+ IN const char **user_envp);
/*
* ======== proc_register_notify ========
* -EPERM: General failure, unable to send sleep command to
* the DSP.
*/
-extern int pwr_sleep_dsp(IN CONST u32 sleep_code, IN CONST u32 timeout);
+extern int pwr_sleep_dsp(IN const u32 sleep_code, IN const u32 timeout);
/*
* ======== pwr_wake_dsp ========
* -EPERM: General failure, unable to send wake command to
* the DSP.
*/
-extern int pwr_wake_dsp(IN CONST u32 timeout);
+extern int pwr_wake_dsp(IN const u32 timeout);
/*
* ======== pwr_pm_pre_scale ========
*/
int chnl_create(OUT struct chnl_mgr **channel_mgr,
struct dev_object *hdev_obj,
- IN CONST struct chnl_mgrattrs *mgr_attrts)
+ IN const struct chnl_mgrattrs *mgr_attrts)
{
int status;
struct chnl_mgr *hchnl_mgr;
*/
int cmm_create(OUT struct cmm_object **ph_cmm_mgr,
struct dev_object *hdev_obj,
- IN CONST struct cmm_mgrattrs *mgr_attrts)
+ IN const struct cmm_mgrattrs *mgr_attrts)
{
struct cmm_object *cmm_obj = NULL;
int status = 0;
return 0;
}
-static struct file *cod_f_open(CONST char *psz_file_name, CONST char *sz_mode)
+static struct file *cod_f_open(const char *psz_file_name, const char *sz_mode)
{
mm_segment_t fs;
struct file *filp;
*
*/
int cod_create(OUT struct cod_manager **mgr, char *str_zl_file,
- IN OPTIONAL CONST struct cod_attrs *attrs)
+ IN OPTIONAL const struct cod_attrs *attrs)
{
struct cod_manager *mgr_new;
struct dbll_attrs zl_attrs;
* PM board (device).
*/
int dev_create_device(OUT struct dev_object **device_obj,
- IN CONST char *driver_file_name,
+ IN const char *driver_file_name,
struct cfg_devnode *dev_node_obj)
{
struct cfg_hostres *host_res;
* ======== dev_get_symbol ========
*/
int dev_get_symbol(struct dev_object *hdev_obj,
- IN CONST char *str_sym, OUT u32 * pul_value)
+ IN const char *str_sym, OUT u32 * pul_value)
{
int status = 0;
struct cod_manager *cod_mgr;
*/
int dmm_create(OUT struct dmm_object **dmm_manager,
struct dev_object *hdev_obj,
- IN CONST struct dmm_mgrattrs *mgr_attrts)
+ IN const struct dmm_mgrattrs *mgr_attrts)
{
struct dmm_object *dmm_obj = NULL;
int status = 0;
if (DSP_SUCCEEDED(status)) {
status = proc_load(args->args_proc_load.hprocessor,
args->args_proc_load.argc_index,
- (CONST char **)argv, (CONST char **)envp);
+ (const char **)argv, (const char **)envp);
}
func_cont:
if (envp) {
* CHNL and msg_ctrl
*/
int io_create(OUT struct io_mgr **io_man, struct dev_object *hdev_obj,
- IN CONST struct io_attrs *mgr_attrts)
+ IN const struct io_attrs *mgr_attrts)
{
struct bridge_drv_interface *intf_fxns;
struct io_mgr *hio_mgr = NULL;
*/
int disp_create(OUT struct disp_object **dispatch_obj,
struct dev_object *hdev_obj,
- IN CONST struct disp_attr *disp_attrs)
+ IN const struct disp_attr *disp_attrs)
{
struct disp_object *disp_obj;
struct bridge_drv_interface *intf_fxns;
int disp_node_create(struct disp_object *disp_obj,
struct node_object *hnode, u32 rms_fxn,
u32 ul_create_fxn,
- IN CONST struct node_createargs *pargs,
+ IN const struct node_createargs *pargs,
OUT nodeenv *node_env)
{
struct node_msgargs node_msg_args;
* ======== nldr_allocate ========
*/
int nldr_allocate(struct nldr_object *nldr_obj, void *priv_ref,
- IN CONST struct dcd_nodeprops *node_props,
+ IN const struct dcd_nodeprops *node_props,
OUT struct nldr_nodeobject **nldr_nodeobj,
IN bool *pf_phase_split)
{
*/
int nldr_create(OUT struct nldr_object **nldr,
struct dev_object *hdev_obj,
- IN CONST struct nldr_attrs *pattrs)
+ IN const struct nldr_attrs *pattrs)
{
struct cod_manager *cod_mgr; /* COD manager */
char *psz_coff_buf = NULL;
u32 phase);
static int get_node_props(struct dcd_manager *hdcd_mgr,
struct node_object *hnode,
- CONST struct dsp_uuid *node_uuid,
+ const struct dsp_uuid *node_uuid,
struct dcd_genericobj *dcd_prop);
static int get_proc_props(struct node_mgr *hnode_mgr,
struct dev_object *hdev_obj);
* Allocate GPP resources to manage a node on the DSP.
*/
int node_allocate(struct proc_object *hprocessor,
- IN CONST struct dsp_uuid *node_uuid,
- OPTIONAL IN CONST struct dsp_cbdata *pargs,
- OPTIONAL IN CONST struct dsp_nodeattrin *attr_in,
+ IN const struct dsp_uuid *node_uuid,
+ OPTIONAL IN const struct dsp_cbdata *pargs,
+ OPTIONAL IN const struct dsp_nodeattrin *attr_in,
OUT struct node_object **ph_node,
struct process_context *pr_ctxt)
{
* message, or a timeout occurs.
*/
int node_put_message(struct node_object *hnode,
- IN CONST struct dsp_msg *pmsg, u32 utimeout)
+ IN const struct dsp_msg *pmsg, u32 utimeout)
{
struct node_mgr *hnode_mgr = NULL;
enum node_type node_type;
*/
static int get_node_props(struct dcd_manager *hdcd_mgr,
struct node_object *hnode,
- CONST struct dsp_uuid *node_uuid,
+ const struct dsp_uuid *node_uuid,
struct dcd_genericobj *dcd_prop)
{
u32 len;
* Fetch Node UUID properties from DCD/DOF file.
*/
int node_get_uuid_props(void *hprocessor,
- IN CONST struct dsp_uuid *node_uuid,
+ IN const struct dsp_uuid *node_uuid,
OUT struct dsp_ndbprops *node_props)
{
struct node_mgr *hnode_mgr = NULL;
*/
int
proc_attach(u32 processor_id,
- OPTIONAL CONST struct dsp_processorattrin *attr_in,
+ OPTIONAL const struct dsp_processorattrin *attr_in,
void **ph_processor, struct process_context *pr_ctxt)
{
int status = 0;
argv[0] = sz_exec_file;
argv[1] = NULL;
/* ...and try to load it: */
- status = proc_load(p_proc_object, 1, (CONST char **)argv, NULL);
+ status = proc_load(p_proc_object, 1, (const char **)argv, NULL);
if (DSP_SUCCEEDED(status))
status = proc_start(p_proc_object);
}
* This will be an OEM-only function, and not part of the DSP/BIOS Bridge
* application developer's API.
*/
-int proc_load(void *hprocessor, IN CONST s32 argc_index,
- IN CONST char **user_args, IN CONST char **user_envp)
+int proc_load(void *hprocessor, IN const s32 argc_index,
+ IN const char **user_args, IN const char **user_envp)
{
int status = 0;
struct proc_object *p_proc_object = (struct proc_object *)hprocessor;
* ======== pwr_sleep_dsp ========
* Send command to DSP to enter sleep state.
*/
-int pwr_sleep_dsp(IN CONST u32 sleep_code, IN CONST u32 timeout)
+int pwr_sleep_dsp(IN const u32 sleep_code, IN const u32 timeout)
{
struct bridge_drv_interface *intf_fxns;
struct bridge_dev_context *dw_context;
* ======== pwr_wake_dsp ========
* Send command to DSP to wake it from sleep.
*/
-int pwr_wake_dsp(IN CONST u32 timeout)
+int pwr_wake_dsp(IN const u32 timeout)
{
struct bridge_drv_interface *intf_fxns;
struct bridge_dev_context *dw_context;