* Wakes up the DSP from DeepSleep
*/
extern int wake_dsp(struct bridge_dev_context *dev_context,
- IN void *pargs);
+ void *pargs);
/*
* ======== sleep_dsp =========
* Places the DSP in DeepSleep.
*/
extern int sleep_dsp(struct bridge_dev_context *dev_context,
- IN u32 dw_cmd, IN void *pargs);
+ u32 dw_cmd, void *pargs);
/*
* ========interrupt_dsp========
* Sends an interrupt to DSP unconditionally.
*/
extern void interrupt_dsp(struct bridge_dev_context *dev_context,
- IN u16 mb_val);
+ u16 mb_val);
/*
* ======== wake_dsp =========
* Wakes up the DSP from DeepSleep
*/
extern int dsp_peripheral_clk_ctrl(struct bridge_dev_context
- *dev_context, IN void *pargs);
+ *dev_context, void *pargs);
/*
* ======== handle_hibernation_from_dsp ========
* Handle Hibernation requested from DSP
* Handle Post Scale notification to DSP
*/
int post_scale_dsp(struct bridge_dev_context *dev_context,
- IN void *pargs);
+ void *pargs);
/*
* ======== pre_scale_dsp ========
* Handle Pre Scale notification to DSP
*/
int pre_scale_dsp(struct bridge_dev_context *dev_context,
- IN void *pargs);
+ void *pargs);
/*
* ======== handle_constraints_set ========
* Handle constraints request from DSP
*/
int handle_constraints_set(struct bridge_dev_context *dev_context,
- IN void *pargs);
+ void *pargs);
/*
* ======== dsp_clk_wakeup_event_ctrl ========
*/
int bridge_chnl_create(OUT struct chnl_mgr **channel_mgr,
struct dev_object *hdev_obj,
- IN const struct chnl_mgrattrs *mgr_attrts)
+ 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 struct chnl_attr *pattrs)
{
int status = 0;
struct chnl_mgr *chnl_mgr_obj = hchnl_mgr;
* Enable Clock .
*
*/
-int dsp_clk_enable(IN enum dsp_clk_id clk_id)
+int dsp_clk_enable(enum dsp_clk_id clk_id)
{
int status = 0;
* Disable the clock.
*
*/
-int dsp_clk_disable(IN enum dsp_clk_id clk_id)
+int dsp_clk_disable(enum dsp_clk_id clk_id)
{
int status = 0;
};
/* Function Prototypes */
-static void io_dispatch_chnl(IN struct io_mgr *pio_mgr,
- IN OUT struct chnl_object *pchnl, u8 io_mode);
-static void io_dispatch_msg(IN struct io_mgr *pio_mgr,
+static void io_dispatch_chnl(struct io_mgr *pio_mgr,
+ OUT struct chnl_object *pchnl, u8 io_mode);
+static void io_dispatch_msg(struct io_mgr *pio_mgr,
struct msg_mgr *hmsg_mgr);
static void io_dispatch_pm(struct io_mgr *pio_mgr);
static void notify_chnl_complete(struct chnl_object *pchnl,
*/
int bridge_io_create(OUT struct io_mgr **io_man,
struct dev_object *hdev_obj,
- IN const struct io_attrs *mgr_attrts)
+ const struct io_attrs *mgr_attrts)
{
int status = 0;
struct io_mgr *pio_mgr = NULL;
* ======== io_dispatch_chnl ========
* Proc-copy chanl dispatch.
*/
-static void io_dispatch_chnl(IN struct io_mgr *pio_mgr,
- IN OUT struct chnl_object *pchnl, u8 io_mode)
+static void io_dispatch_chnl(struct io_mgr *pio_mgr,
+ OUT struct chnl_object *pchnl, u8 io_mode)
{
if (!pio_mgr)
goto func_end;
* ======== io_dispatch_msg ========
* Performs I/O dispatch on message queues.
*/
-static void io_dispatch_msg(IN struct io_mgr *pio_mgr, struct msg_mgr *hmsg_mgr)
+static void io_dispatch_msg(struct io_mgr *pio_mgr, struct msg_mgr *hmsg_mgr)
{
if (!pio_mgr)
goto func_end;
* out the dispatch of I/O as a non-preemptible event.It can only be
* pre-empted by an ISR.
*/
-void io_dpc(IN OUT unsigned long ref_data)
+void io_dpc(OUT unsigned long ref_data)
{
struct io_mgr *pio_mgr = (struct io_mgr *)ref_data;
struct chnl_mgr *chnl_mgr_obj;
}
/* ZCPY IO routines. */
-void io_intr_dsp2(IN struct io_mgr *pio_mgr, IN u16 mb_val)
+void io_intr_dsp2(struct io_mgr *pio_mgr, u16 mb_val)
{
sm_interrupt_dsp(pio_mgr->hbridge_context, mb_val);
}
* ======== bridge_io_get_proc_load ========
* Gets the Processor's Load information
*/
-int bridge_io_get_proc_load(IN struct io_mgr *hio_mgr,
+int bridge_io_get_proc_load(struct io_mgr *hio_mgr,
OUT struct dsp_procloadstat *proc_lstat)
{
proc_lstat->curr_load =
* 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)
+ const struct dsp_msg *pmsg, u32 utimeout)
{
struct msg_frame *msg_frame_obj;
struct msg_mgr *hmsg_mgr;
int *board_state);
static int bridge_brd_stop(struct bridge_dev_context *dev_ctxt);
static int bridge_brd_write(struct bridge_dev_context *dev_ctxt,
- IN u8 *host_buff,
+ u8 *host_buff,
u32 dsp_addr, u32 ul_num_bytes,
u32 mem_type);
static int bridge_brd_set_state(struct bridge_dev_context *dev_ctxt,
u32 dsp_dest_addr, u32 dsp_src_addr,
u32 ul_num_bytes, u32 mem_type);
static int bridge_brd_mem_write(struct bridge_dev_context *dev_ctxt,
- IN u8 *host_buff, u32 dsp_addr,
+ u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 mem_type);
static int bridge_brd_mem_map(struct bridge_dev_context *dev_ctxt,
u32 ul_mpu_addr, u32 virt_addr,
static int bridge_dev_create(OUT struct bridge_dev_context
**dev_cntxt,
struct dev_object *hdev_obj,
- IN struct cfg_hostres *config_param);
+ struct cfg_hostres *config_param);
static int bridge_dev_ctrl(struct bridge_dev_context *dev_context,
- u32 dw_cmd, IN OUT void *pargs);
+ u32 dw_cmd, OUT void *pargs);
static int bridge_dev_destroy(struct bridge_dev_context *dev_ctxt);
static u32 user_va2_pa(struct mm_struct *mm, u32 address);
static int pte_update(struct bridge_dev_context *dev_ctxt, u32 pa,
* Bridge Driver entry point.
*/
void bridge_drv_entry(OUT struct bridge_drv_interface **drv_intf,
- IN const char *driver_file_name)
+ const char *driver_file_name)
{
DBC_REQUIRE(driver_file_name != NULL);
* Copies the buffers to DSP internal or external memory.
*/
static int bridge_brd_write(struct bridge_dev_context *dev_ctxt,
- IN u8 *host_buff, u32 dsp_addr,
+ u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 mem_type)
{
int status = 0;
static int bridge_dev_create(OUT struct bridge_dev_context
**dev_cntxt,
struct dev_object *hdev_obj,
- IN struct cfg_hostres *config_param)
+ struct cfg_hostres *config_param)
{
int status = 0;
struct bridge_dev_context *dev_context = NULL;
* Receives device specific commands.
*/
static int bridge_dev_ctrl(struct bridge_dev_context *dev_context,
- u32 dw_cmd, IN OUT void *pargs)
+ u32 dw_cmd, OUT void *pargs)
{
int status = 0;
struct bridge_ioctl_extproc *pa_ext_proc =
/* Mem Write does not halt the DSP to write unlike bridge_brd_write */
static int bridge_brd_mem_write(struct bridge_dev_context *dev_ctxt,
- IN u8 *host_buff, u32 dsp_addr,
+ u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 mem_type)
{
int status = 0;
* Sets new DSP constraint
*/
int handle_constraints_set(struct bridge_dev_context *dev_context,
- IN void *pargs)
+ void *pargs)
{
#ifdef CONFIG_TIDSPBRIDGE_DVFS
u32 *constraint_val;
* ======== sleep_dsp ========
* Put DSP in low power consuming state.
*/
-int sleep_dsp(struct bridge_dev_context *dev_context, IN u32 dw_cmd,
- IN void *pargs)
+int sleep_dsp(struct bridge_dev_context *dev_context, u32 dw_cmd,
+ void *pargs)
{
int status = 0;
#ifdef CONFIG_PM
* ======== wake_dsp ========
* Wake up DSP from sleep.
*/
-int wake_dsp(struct bridge_dev_context *dev_context, IN void *pargs)
+int wake_dsp(struct bridge_dev_context *dev_context, void *pargs)
{
int status = 0;
#ifdef CONFIG_PM
* Enable/Disable the DSP peripheral clocks as needed..
*/
int dsp_peripheral_clk_ctrl(struct bridge_dev_context *dev_context,
- IN void *pargs)
+ void *pargs)
{
u32 ext_clk = 0;
u32 ext_clk_id = 0;
* Sends prescale notification to DSP
*
*/
-int pre_scale_dsp(struct bridge_dev_context *dev_context, IN void *pargs)
+int pre_scale_dsp(struct bridge_dev_context *dev_context, void *pargs)
{
#ifdef CONFIG_TIDSPBRIDGE_DVFS
u32 level;
*
*/
int post_scale_dsp(struct bridge_dev_context *dev_context,
- IN void *pargs)
+ void *pargs)
{
int status = 0;
#ifdef CONFIG_TIDSPBRIDGE_DVFS
* Copies buffers to the DSP internal/external memory.
*/
int write_dsp_data(struct bridge_dev_context *dev_context,
- IN u8 *host_buff, u32 dsp_addr, u32 ul_num_bytes,
+ u8 *host_buff, u32 dsp_addr, u32 ul_num_bytes,
u32 mem_type)
{
u32 offset;
*
*/
int write_ext_dsp_data(struct bridge_dev_context *dev_context,
- IN u8 *host_buff, u32 dsp_addr,
+ u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 mem_type,
bool dynamic_load)
{
* shm Memory manager in the CDB
*/
extern int write_ext_dsp_data(struct bridge_dev_context *dev_context,
- IN u8 *host_buff, u32 dsp_addr,
+ u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 mem_type,
bool dynamic_load);
* ======== write_ext32_bit_dsp_data ========
* Writes 32 bit data to the external memory
*/
-extern inline void write_ext32_bit_dsp_data(IN const
+extern inline void write_ext32_bit_dsp_data(const
struct bridge_dev_context *dev_context,
- IN u32 dsp_addr, IN u32 val)
+ u32 dsp_addr, u32 val)
{
*(u32 *) dsp_addr = ((dev_context->tc_word_swap_on) ? (((val << 16) &
0xFFFF0000) |
* ======== read_ext32_bit_dsp_data ========
* Reads 32 bit data from the external memory
*/
-extern inline u32 read_ext32_bit_dsp_data(IN const struct bridge_dev_context
- *dev_context, IN u32 dsp_addr)
+extern inline u32 read_ext32_bit_dsp_data(const struct bridge_dev_context
+ *dev_context, u32 dsp_addr)
{
u32 ret;
ret = *(u32 *) dsp_addr;
ldr_addr atmp;
struct ldr_section_info cinit_info;
- /* PROCESS ALL THE INITIALIZATION RECORDS IN THE BUFFER. */
+ /* PROCESS ALL THE INITIALIZATION RECORDS THE BUFFER. */
while (true) {
left = pktend - pktp;
switch (dlthis->cinit_state) {
#define C6X_TRAMP_WORD_COUNT 8
#define C6X_TRAMP_MAX_RELOS 8
-/* THIS HASH FUNCTION MUST MATCH THE ONE IN reloc_table_c6000.c */
+/* THIS HASH FUNCTION MUST MATCH THE ONE reloc_table_c6000.c */
#define HASH_FUNC(zz) (((((zz) + 1) * UINT32_C(1845)) >> 11) & 63)
/* THIS MUST MATCH reloc_record_t FOR A SYMBOL BASED RELO */
* Note: snprintf format specifier is:
* %[flags] [width] [.precision] [{h | l | I64 | L}]type
*/
-void uuid_uuid_to_string(IN struct dsp_uuid *uuid_obj, OUT char *sz_uuid,
- IN s32 size)
+void uuid_uuid_to_string(struct dsp_uuid *uuid_obj, OUT char *sz_uuid,
+ s32 size)
{
s32 i; /* return result from snprintf. */
* Purpose:
* Converts a string to a struct dsp_uuid.
*/
-void uuid_uuid_from_string(IN char *sz_uuid, OUT struct dsp_uuid *uuid_obj)
+void uuid_uuid_from_string(char *sz_uuid, OUT struct dsp_uuid *uuid_obj)
{
s32 j;
* Ensures:
* 0: *auto_start contains autostart mask for this devnode.
*/
-extern int cfg_get_auto_start(IN struct cfg_devnode *dev_node_obj,
+extern int cfg_get_auto_start(struct cfg_devnode *dev_node_obj,
OUT u32 *auto_start);
/*
* 0: *value is set to the retrieved u32.
* else: *value is set to 0L.
*/
-extern int cfg_get_dev_object(IN struct cfg_devnode *dev_node_obj,
+extern int cfg_get_dev_object(struct cfg_devnode *dev_node_obj,
OUT u32 *value);
/*
* and *str_exec_file contains default executable for this
* devnode.
*/
-extern int cfg_get_exec_file(IN struct cfg_devnode *dev_node_obj,
- IN u32 buf_size, OUT char *str_exec_file);
+extern int cfg_get_exec_file(struct cfg_devnode *dev_node_obj,
+ u32 buf_size, OUT char *str_exec_file);
/*
* ======== cfg_get_object ========
* str_zl_file_name, and *str_zl_file_name contains ZLFileName
* for this devnode.
*/
-extern int cfg_get_zl_file(IN struct cfg_devnode *dev_node_obj,
- IN u32 buf_size, OUT char *str_zl_file_name);
+extern int cfg_get_zl_file(struct cfg_devnode *dev_node_obj,
+ u32 buf_size, OUT char *str_zl_file_name);
/*
* ======== cfg_init ========
* Ensures:
* 0: The Private u32 was successfully set.
*/
-extern int cfg_set_dev_object(IN struct cfg_devnode *dev_node_obj,
- IN u32 value);
+extern int cfg_set_dev_object(struct cfg_devnode *dev_node_obj,
+ u32 value);
/*
* ======== CFG_SetDrvObject ========
* Ensures:
* 0: The Private u32 was successfully set.
*/
-extern int cfg_set_object(IN u32 value, u8 dw_type);
+extern int cfg_set_object(u32 value, u8 dw_type);
#endif /* CFG_ */
*/
extern int chnl_create(OUT struct chnl_mgr **channel_mgr,
struct dev_object *hdev_obj,
- IN const struct chnl_mgrattrs *mgr_attrts);
+ const struct chnl_mgrattrs *mgr_attrts);
/*
* ======== chnl_destroy ========
* Requires:
* Ensures:
*/
-extern int dsp_clk_enable(IN enum dsp_clk_id clk_id);
+extern int dsp_clk_enable(enum dsp_clk_id clk_id);
u32 dsp_clock_enable_all(u32 dsp_per_clocks);
* Requires:
* Ensures:
*/
-extern int dsp_clk_disable(IN enum dsp_clk_id clk_id);
+extern int dsp_clk_disable(enum dsp_clk_id clk_id);
extern u32 dsp_clk_get_iva2_rate(void);
*/
extern int cmm_create(OUT struct cmm_object **ph_cmm_mgr,
struct dev_object *hdev_obj,
- IN const struct cmm_mgrattrs *mgr_attrts);
+ const struct cmm_mgrattrs *mgr_attrts);
/*
* ======== cmm_destroy ========
*
*/
extern int cmm_xlator_info(struct cmm_xlatorobject *xlator,
- IN OUT u8 **paddr,
+ OUT u8 **paddr,
u32 ul_size, u32 segm_id, bool set_info);
/*
*/
extern int cod_create(OUT struct cod_manager **mgr,
char *str_zl_file,
- IN OPTIONAL const struct cod_attrs *attrs);
+ OPTIONAL const struct cod_attrs *attrs);
/*
* ======== cod_delete ========
*
*/
extern int cod_get_section(struct cod_libraryobj *lib,
- IN char *str_sect,
+ char *str_sect,
OUT u32 *addr, OUT u32 *len);
/*
* Ensures:
*/
extern int cod_get_sym_value(struct cod_manager *cod_mgr_obj,
- IN char *str_sym, OUT u32 * pul_value);
+ char *str_sym, OUT u32 * pul_value);
/*
* ======== cod_init ========
* Ensures:
*/
extern int cod_open(struct cod_manager *hmgr,
- IN char *sz_coff_path,
+ char *sz_coff_path,
u32 flags, OUT struct cod_libraryobj **lib_obj);
/*
* sz_coff_path != NULL.
* Ensures:
*/
-extern int cod_open_base(struct cod_manager *hmgr, IN char *sz_coff_path,
+extern int cod_open_base(struct cod_manager *hmgr, char *sz_coff_path,
dbll_flags flags);
/*
* 0: *str_content stores the content of the named section.
*/
extern int cod_read_section(struct cod_libraryobj *lib,
- IN char *str_sect,
- OUT char *str_content, IN u32 content_size);
+ char *str_sect,
+ OUT char *str_content, u32 content_size);
#endif /* COD_ */
* COFF file to contain the right COFF sections, especially
* ".dcd_register", which is used for auto registration.
*/
-extern int dcd_auto_register(IN struct dcd_manager *hdcd_mgr,
- IN char *sz_coff_path);
+extern int dcd_auto_register(struct dcd_manager *hdcd_mgr,
+ char *sz_coff_path);
/*
* ======== dcd_auto_unregister ========
* COFF file to contain the right COFF sections, especially
* ".dcd_register", which is used for auto unregistration.
*/
-extern int dcd_auto_unregister(IN struct dcd_manager *hdcd_mgr,
- IN char *sz_coff_path);
+extern int dcd_auto_unregister(struct dcd_manager *hdcd_mgr,
+ char *sz_coff_path);
/*
* ======== dcd_create_manager ========
* Ensures:
* A DCD manager handle is created.
*/
-extern int dcd_create_manager(IN char *sz_zl_dll_name,
+extern int dcd_create_manager(char *sz_zl_dll_name,
OUT struct dcd_manager **dcd_mgr);
/*
* DCD initialized.
* Ensures:
*/
-extern int dcd_destroy_manager(IN struct dcd_manager *hdcd_mgr);
+extern int dcd_destroy_manager(struct dcd_manager *hdcd_mgr);
/*
* ======== dcd_enumerate_object ========
* This function can be used in conjunction with dcd_get_object_def to
* retrieve object properties.
*/
-extern int dcd_enumerate_object(IN s32 index,
- IN enum dsp_dcdobjtype obj_type,
+extern int dcd_enumerate_object(s32 index,
+ enum dsp_dcdobjtype obj_type,
OUT struct dsp_uuid *uuid_obj);
/*
* dep_lib_uuids != NULL.
* Ensures:
*/
-extern int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr,
- IN struct dsp_uuid *uuid_obj,
+extern int dcd_get_dep_libs(struct dcd_manager *hdcd_mgr,
+ struct dsp_uuid *uuid_obj,
u16 num_libs,
OUT struct dsp_uuid *dep_lib_uuids,
OUT bool *prstnt_dep_libs,
- IN enum nldr_phase phase);
+ enum nldr_phase phase);
/*
* ======== dcd_get_num_dep_libs ========
* num_libs != NULL.
* Ensures:
*/
-extern int dcd_get_num_dep_libs(IN struct dcd_manager *hdcd_mgr,
- IN struct dsp_uuid *uuid_obj,
+extern int dcd_get_num_dep_libs(struct dcd_manager *hdcd_mgr,
+ struct dsp_uuid *uuid_obj,
OUT u16 *num_libs,
OUT u16 *num_pers_libs,
- IN enum nldr_phase phase);
+ enum nldr_phase phase);
/*
* ======== dcd_get_library_name ========
* buff_size != NULL.
* Ensures:
*/
-extern int dcd_get_library_name(IN struct dcd_manager *hdcd_mgr,
- IN struct dsp_uuid *uuid_obj,
- IN OUT char *str_lib_name,
- IN OUT u32 *buff_size,
- IN enum nldr_phase phase,
+extern int dcd_get_library_name(struct dcd_manager *hdcd_mgr,
+ struct dsp_uuid *uuid_obj,
+ OUT char *str_lib_name,
+ OUT u32 *buff_size,
+ enum nldr_phase phase,
OUT bool *phase_split);
/*
* obj_def is non-NULL.
* Ensures:
*/
-extern int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr,
- IN struct dsp_uuid *obj_uuid,
- IN enum dsp_dcdobjtype obj_type,
+extern int dcd_get_object_def(struct dcd_manager *hdcd_mgr,
+ struct dsp_uuid *obj_uuid,
+ enum dsp_dcdobjtype obj_type,
OUT struct dcd_genericobj *obj_def);
/*
* COFF file to contain the right COFF sections, especially
* ".dcd_register", which is used for auto registration.
*/
-extern int dcd_get_objects(IN struct dcd_manager *hdcd_mgr,
- IN char *sz_coff_path,
+extern int dcd_get_objects(struct dcd_manager *hdcd_mgr,
+ char *sz_coff_path,
dcd_registerfxn register_fxn, void *handle);
/*
* obj_type is a valid type value.
* Ensures:
*/
-extern int dcd_register_object(IN struct dsp_uuid *uuid_obj,
- IN enum dsp_dcdobjtype obj_type,
- IN char *psz_path_name);
+extern int dcd_register_object(struct dsp_uuid *uuid_obj,
+ enum dsp_dcdobjtype obj_type,
+ char *psz_path_name);
/*
* ======== dcd_unregister_object ========
* obj_type is a valid type value.
* Ensures:
*/
-extern int dcd_unregister_object(IN struct dsp_uuid *uuid_obj,
- IN enum dsp_dcdobjtype obj_type);
+extern int dcd_unregister_object(struct dsp_uuid *uuid_obj,
+ enum dsp_dcdobjtype obj_type);
#endif /* _DBDCD_H */
};
/* DCD Internal Callback Type */
-typedef int(*dcd_registerfxn) (IN struct dsp_uuid *uuid_obj,
- IN enum dsp_dcdobjtype obj_type,
- IN void *handle);
+typedef int(*dcd_registerfxn) (struct dsp_uuid *uuid_obj,
+ enum dsp_dcdobjtype obj_type,
+ void *handle);
#endif /* DBDCDDEF_ */
*/
extern int dev_create_device(OUT struct dev_object
**device_obj,
- IN const char *driver_file_name,
+ 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
+ const char *driver_file_name,
+ const struct cfg_hostres
*host_config,
struct cfg_devnode *dev_node_obj);
* 0 and hdev_obj->hnode_mgr != NULL
* else hdev_obj->hnode_mgr == NULL
*/
-extern int dev_create2(IN struct dev_object *hdev_obj);
+extern int dev_create2(struct dev_object *hdev_obj);
/*
* ======== dev_destroy2 ========
* 0 and hdev_obj->hnode_mgr == NULL
* else -EPERM.
*/
-extern int dev_destroy2(IN struct dev_object *hdev_obj);
+extern int dev_destroy2(struct dev_object *hdev_obj);
/*
* ======== dev_destroy_device ========
* 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);
+ const char *str_sym, OUT u32 * pul_value);
/*
* ======== dev_get_bridge_context ========
* DEV Initialized.
* Ensures:
*/
-extern int dev_is_locked(IN struct dev_object *hdev_obj);
+extern int dev_is_locked(struct dev_object *hdev_obj);
/*
* ======== dev_insert_proc_object ========
* this is the first Processor attaching.
* If it is False, there are already processors attached.
*/
-extern int dev_insert_proc_object(IN struct dev_object
+extern int dev_insert_proc_object(struct dev_object
*hdev_obj,
- IN u32 proc_obj,
+ u32 proc_obj,
OUT bool *already_attached);
/*
*/
extern int disp_create(OUT struct disp_object **dispatch_obj,
struct dev_object *hdev_obj,
- IN const struct disp_attr *disp_attrs);
+ const struct disp_attr *disp_attrs);
/*
* ======== disp_delete ========
struct node_object *hnode,
u32 rms_fxn,
u32 ul_create_fxn,
- IN const struct node_createargs
+ 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);
+ const struct dmm_mgrattrs *mgr_attrts);
extern bool dmm_init(void);
* Resource structure is stored in the registry which will be
* later used by the CFG module.
*/
-extern int drv_request_resources(IN u32 dw_context,
+extern int drv_request_resources(u32 dw_context,
OUT u32 *dev_node_strg);
/*
* The Resources are released based on Bus type.
* Resource structure is deleted from the registry
*/
-extern int drv_release_resources(IN u32 dw_context,
+extern int drv_release_resources(u32 dw_context,
struct drv_object *hdrv_obj);
/**
* - MEM initialized.
* - valid physical address for the base and size > 0
*/
-extern void mem_ext_phys_pool_init(IN u32 pool_phys_base, IN u32 pool_size);
+extern void mem_ext_phys_pool_init(u32 pool_phys_base, u32 pool_size);
/*
* ======== mem_ext_phys_pool_release ========
* the size requested. Returned physical address refers to physical
* location of memory.
*/
-extern void *mem_alloc_phys_mem(IN u32 byte_size,
- IN u32 align_mask, OUT u32 *physical_address);
+extern void *mem_alloc_phys_mem(u32 byte_size,
+ u32 align_mask, OUT u32 *physical_address);
/*
* ======== mem_free_phys_mem ========
extern int bridge_chnl_create(OUT struct chnl_mgr **channel_mgr,
struct dev_object *hdev_obj,
- IN const struct chnl_mgrattrs
+ 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 OPTIONAL struct chnl_attr
*pattrs);
extern int bridge_chnl_close(struct chnl_object *chnl_obj);
*/
typedef int(*fxn_brd_memwrite) (struct bridge_dev_context
* dev_ctxt,
- IN u8 *host_buf,
+ u8 *host_buf,
u32 dsp_addr, u32 ul_num_bytes,
u32 mem_type);
* Ensures:
*/
typedef int(*fxn_brd_write) (struct bridge_dev_context *dev_ctxt,
- IN u8 *host_buf,
+ u8 *host_buf,
u32 dsp_addr,
u32 ul_num_bytes, u32 mem_type);
**channel_mgr,
struct dev_object
* hdev_obj,
- IN const struct
+ const struct
chnl_mgrattrs * mgr_attrts);
/*
struct chnl_mgr *hchnl_mgr,
s8 chnl_mode,
u32 ch_id,
- const IN OPTIONAL struct
+ const OPTIONAL struct
chnl_attr * pattrs);
/*
* DSP configuration information, create a board context, a handle to
* which is passed into other Bridge BRD and CHNL functions. The
* board context contains state information for the device. Since the
- * addresses of all IN pointer parameters may be invalid when this
+ * addresses of all pointer parameters may be invalid when this
* function returns, they must not be stored into the device context
* structure.
*/
**device_ctx,
struct dev_object
* hdev_obj,
- IN struct cfg_hostres
+ struct cfg_hostres
* config_param);
/*
* Ensures:
*/
typedef int(*fxn_dev_ctrl) (struct bridge_dev_context *dev_ctxt,
- u32 dw_cmd, IN OUT void *pargs);
+ u32 dw_cmd, OUT void *pargs);
/*
* ======== bridge_dev_destroy ========
*/
typedef int(*fxn_io_create) (OUT struct io_mgr **io_man,
struct dev_object *hdev_obj,
- IN const struct io_attrs *mgr_attrts);
+ 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);
+ 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);
+ 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);
+ const struct io_attrs *mgr_attrts);
extern int bridge_io_destroy(struct io_mgr *hio_mgr);
extern int bridge_io_on_loaded(struct io_mgr *hio_mgr);
extern int iva_io_on_loaded(struct io_mgr *hio_mgr);
-extern int bridge_io_get_proc_load(IN struct io_mgr *hio_mgr,
+extern int bridge_io_get_proc_load(struct io_mgr *hio_mgr,
OUT struct dsp_procloadstat *proc_lstat);
#endif /* DSPIO_ */
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);
+ 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);
+ const struct io_attrs *mgr_attrts);
/*
* ======== io_destroy ========
* Ensures:
* Non-preemptible (but interruptible).
*/
-extern void io_dpc(IN OUT unsigned long ref_data);
+extern void io_dpc(OUT unsigned long ref_data);
/*
* ======== io_mbox_msg ========
extern void io_and_set_value(struct bridge_dev_context *dev_ctxt,
u32 dsp_addr, u32 value);
-extern void io_intr_dsp2(IN struct io_mgr *pio_mgr, IN u16 mb_val);
+extern void io_intr_dsp2(struct io_mgr *pio_mgr, u16 mb_val);
extern void io_sm_init(void);
* 0 and *dcd_handle != NULL ||
* -EPERM and *dcd_handle == NULL
*/
-extern int mgr_get_dcd_handle(IN struct mgr_object
+extern int mgr_get_dcd_handle(struct mgr_object
*mgr_handle, OUT u32 *dcd_handle);
/*
#define NLDR_
extern int nldr_allocate(struct nldr_object *nldr_obj,
- void *priv_ref, IN const struct dcd_nodeprops
+ void *priv_ref, const struct dcd_nodeprops
*node_props,
OUT struct nldr_nodeobject **nldr_nodeobj,
- IN bool *pf_phase_split);
+ bool *pf_phase_split);
extern int nldr_create(OUT struct nldr_object **nldr,
struct dev_object *hdev_obj,
- IN const struct nldr_attrs *pattrs);
+ 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
+ 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);
+ 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
+ const struct dsp_uuid *node_uuid,
+ OPTIONAL const struct dsp_cbdata
+ *pargs, OPTIONAL const struct dsp_nodeattrin
*attr_in,
OUT struct node_object **ph_node,
struct process_context *pr_ctxt);
u32 stream1,
struct node_object *node2,
u32 stream2,
- OPTIONAL IN struct dsp_strmattr *pattrs,
- OPTIONAL IN struct dsp_cbdata
+ OPTIONAL struct dsp_strmattr *pattrs,
+ OPTIONAL struct dsp_cbdata
*conn_param);
/*
* Ensures:
*/
extern int node_free_msg_buf(struct node_object *hnode,
- IN u8 *pbuffer,
+ u8 *pbuffer,
OPTIONAL struct dsp_bufferattr
*pattr);
* Ensures:
*/
extern int node_put_message(struct node_object *hnode,
- IN const struct dsp_msg *pmsg, u32 utimeout);
+ 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,
+ const struct dsp_uuid *node_uuid,
OUT struct dsp_ndbprops
*node_props);
* This function Calls bridge_dev_ctrl.
*/
extern int proc_ctrl(void *hprocessor,
- u32 dw_cmd, IN struct dsp_cbdata *arg);
+ u32 dw_cmd, struct dsp_cbdata *arg);
/*
* ======== proc_detach ========
*/
extern int proc_enum_nodes(void *hprocessor,
void **node_tab,
- IN u32 node_tab_size,
+ u32 node_tab_size,
OUT u32 *pu_num_nodes,
OUT u32 *pu_allocated);
* 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);
+ const s32 argc_index, const char **user_args,
+ 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(const u32 sleep_code, 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(const u32 timeout);
/*
* ======== pwr_pm_pre_scale ========
* -EPERM: General failure, unable to send wake command to
* the DSP.
*/
-extern int pwr_pm_pre_scale(IN u16 voltage_domain, u32 level);
+extern int pwr_pm_pre_scale(u16 voltage_domain, u32 level);
/*
* ======== pwr_pm_post_scale ========
* -EPERM: General failure, unable to send wake command to
* the DSP.
*/
-extern int pwr_pm_post_scale(IN u16 voltage_domain, u32 level);
+extern int pwr_pm_post_scale(u16 voltage_domain, u32 level);
#endif /* PWR_ */
* pbuf != NULL.
* Ensures:
*/
-extern int strm_issue(struct strm_object *stream_obj, IN u8 * pbuf,
- u32 ul_bytes, u32 ul_buf_size, IN u32 dw_arg);
+extern int strm_issue(struct strm_object *stream_obj, u8 * pbuf,
+ u32 ul_bytes, u32 ul_buf_size, u32 dw_arg);
/*
* ======== strm_open ========
* error: *strm_objct == NULL.
*/
extern int strm_open(struct node_object *hnode, u32 dir,
- u32 index, IN struct strm_attr *pattr,
+ u32 index, struct strm_attr *pattr,
OUT struct strm_object **strm_objct,
struct process_context *pr_ctxt);
* 0: *pmask != 0 || utimeout == 0.
* Error: *pmask == 0.
*/
-extern int strm_select(IN struct strm_object **strm_tab,
+extern int strm_select(struct strm_object **strm_tab,
u32 strms, OUT u32 *pmask, u32 utimeout);
/*
* Details:
* UUID string limit currently set at MAXUUIDLEN.
*/
-void uuid_uuid_to_string(IN struct dsp_uuid *uuid_obj, OUT char *sz_uuid,
+void uuid_uuid_to_string(struct dsp_uuid *uuid_obj, OUT char *sz_uuid,
s32 size);
/*
* We assume the string representation of a UUID has the following format:
* "12345678_1234_1234_1234_123456789abc".
*/
-extern void uuid_uuid_from_string(IN char *sz_uuid,
+extern void uuid_uuid_from_string(char *sz_uuid,
OUT struct dsp_uuid *uuid_obj);
#endif /* UUIDUTIL_ */
*/
int chnl_create(OUT struct chnl_mgr **channel_mgr,
struct dev_object *hdev_obj,
- IN const struct chnl_mgrattrs *mgr_attrts)
+ 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)
+ const struct cmm_mgrattrs *mgr_attrts)
{
struct cmm_object *cmm_obj = NULL;
int status = 0;
* Purpose:
* Set/Get translator info.
*/
-int cmm_xlator_info(struct cmm_xlatorobject *xlator, IN OUT u8 ** paddr,
+int cmm_xlator_info(struct cmm_xlatorobject *xlator, OUT u8 ** paddr,
u32 ul_size, u32 segm_id, bool set_info)
{
struct cmm_xlator *xlator_obj = (struct cmm_xlator *)xlator;
*
*/
int cod_create(OUT struct cod_manager **mgr, char *str_zl_file,
- IN OPTIONAL const struct cod_attrs *attrs)
+ OPTIONAL const struct cod_attrs *attrs)
{
struct cod_manager *mgr_new;
struct dbll_attrs zl_attrs;
* Retrieve the starting address and length of a section in the COFF file
* given the section name.
*/
-int cod_get_section(struct cod_libraryobj *lib, IN char *str_sect,
+int cod_get_section(struct cod_libraryobj *lib, char *str_sect,
OUT u32 *addr, OUT u32 *len)
{
struct cod_manager *cod_mgr_obj;
* ======== cod_open ========
* Open library for reading sections.
*/
-int cod_open(struct cod_manager *hmgr, IN char *sz_coff_path,
+int cod_open(struct cod_manager *hmgr, char *sz_coff_path,
u32 flags, struct cod_libraryobj **lib_obj)
{
int status = 0;
* Purpose:
* Open base image for reading sections.
*/
-int cod_open_base(struct cod_manager *hmgr, IN char *sz_coff_path,
+int cod_open_base(struct cod_manager *hmgr, char *sz_coff_path,
dbll_flags flags)
{
int status = 0;
* Purpose:
* Retrieve the content of a code section given the section name.
*/
-int cod_read_section(struct cod_libraryobj *lib, IN char *str_sect,
- OUT char *str_content, IN u32 content_size)
+int cod_read_section(struct cod_libraryobj *lib, char *str_sect,
+ OUT char *str_content, u32 content_size)
{
int status = 0;
* PM board (device).
*/
int dev_create_device(OUT struct dev_object **device_obj,
- IN const char *driver_file_name,
+ 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)
+ 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)
+ const struct dmm_mgrattrs *mgr_attrts)
{
struct dmm_object *dmm_obj = NULL;
int status = 0;
pattr = &attr;
}
- /* IN OUT argument */
+ /* OUT argument */
CP_FM_USR(&pbuffer, args->args_node_allocmsgbuf.pbuffer, status, 1);
if (DSP_SUCCEEDED(status)) {
status = node_alloc_msg_buf(args->args_node_allocmsgbuf.hnode,
* 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)
+ const struct io_attrs *mgr_attrts)
{
struct bridge_drv_interface *intf_fxns;
struct io_mgr *hio_mgr = NULL;
struct dcd_genericobj *gen_obj);
static void compress_buf(char *psz_buf, u32 ul_buf_size, s32 char_size);
static char dsp_char2_gpp_char(char *word, s32 dsp_char_size);
-static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr,
- IN struct dsp_uuid *uuid_obj,
- IN OUT u16 *num_libs,
+static int get_dep_lib_info(struct dcd_manager *hdcd_mgr,
+ struct dsp_uuid *uuid_obj,
+ OUT u16 *num_libs,
OPTIONAL OUT u16 *num_pers_libs,
OPTIONAL OUT struct dsp_uuid *dep_lib_uuids,
OPTIONAL OUT bool *prstnt_dep_libs,
- IN enum nldr_phase phase);
+ enum nldr_phase phase);
/*
* ======== dcd_auto_register ========
* Purpose:
* Parses the supplied image and resigsters with DCD.
*/
-int dcd_auto_register(IN struct dcd_manager *hdcd_mgr,
- IN char *sz_coff_path)
+int dcd_auto_register(struct dcd_manager *hdcd_mgr,
+ char *sz_coff_path)
{
int status = 0;
* Purpose:
* Parses the supplied DSP image and unresiters from DCD.
*/
-int dcd_auto_unregister(IN struct dcd_manager *hdcd_mgr,
- IN char *sz_coff_path)
+int dcd_auto_unregister(struct dcd_manager *hdcd_mgr,
+ char *sz_coff_path)
{
int status = 0;
* Purpose:
* Creates DCD manager.
*/
-int dcd_create_manager(IN char *sz_zl_dll_name,
+int dcd_create_manager(char *sz_zl_dll_name,
OUT struct dcd_manager **dcd_mgr)
{
struct cod_manager *cod_mgr; /* COD manager handle */
* Purpose:
* Frees DCD Manager object.
*/
-int dcd_destroy_manager(IN struct dcd_manager *hdcd_mgr)
+int dcd_destroy_manager(struct dcd_manager *hdcd_mgr)
{
struct dcd_manager *dcd_mgr_obj = hdcd_mgr;
int status = -EFAULT;
* Purpose:
* Enumerates objects in the DCD.
*/
-int dcd_enumerate_object(IN s32 index, IN enum dsp_dcdobjtype obj_type,
+int dcd_enumerate_object(s32 index, enum dsp_dcdobjtype obj_type,
OUT struct dsp_uuid *uuid_obj)
{
int status = 0;
/*
* ======== dcd_get_dep_libs ========
*/
-int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr,
- IN struct dsp_uuid *uuid_obj,
+int dcd_get_dep_libs(struct dcd_manager *hdcd_mgr,
+ struct dsp_uuid *uuid_obj,
u16 num_libs, OUT struct dsp_uuid *dep_lib_uuids,
OUT bool *prstnt_dep_libs,
- IN enum nldr_phase phase)
+ enum nldr_phase phase)
{
int status = 0;
/*
* ======== dcd_get_num_dep_libs ========
*/
-int dcd_get_num_dep_libs(IN struct dcd_manager *hdcd_mgr,
- IN struct dsp_uuid *uuid_obj,
+int dcd_get_num_dep_libs(struct dcd_manager *hdcd_mgr,
+ struct dsp_uuid *uuid_obj,
OUT u16 *num_libs, OUT u16 *num_pers_libs,
- IN enum nldr_phase phase)
+ enum nldr_phase phase)
{
int status = 0;
* Retrieves the properties of a node or processor based on the UUID and
* object type.
*/
-int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr,
- IN struct dsp_uuid *obj_uuid,
- IN enum dsp_dcdobjtype obj_type,
+int dcd_get_object_def(struct dcd_manager *hdcd_mgr,
+ struct dsp_uuid *obj_uuid,
+ enum dsp_dcdobjtype obj_type,
OUT struct dcd_genericobj *obj_def)
{
struct dcd_manager *dcd_mgr_obj = hdcd_mgr; /* ptr to DCD mgr */
/*
* ======== dcd_get_objects ========
*/
-int dcd_get_objects(IN struct dcd_manager *hdcd_mgr,
- IN char *sz_coff_path, dcd_registerfxn register_fxn,
+int dcd_get_objects(struct dcd_manager *hdcd_mgr,
+ char *sz_coff_path, dcd_registerfxn register_fxn,
void *handle)
{
struct dcd_manager *dcd_mgr_obj = hdcd_mgr;
* Retrieves the library name for the given UUID.
*
*/
-int dcd_get_library_name(IN struct dcd_manager *hdcd_mgr,
- IN struct dsp_uuid *uuid_obj,
- IN OUT char *str_lib_name,
- IN OUT u32 *buff_size,
+int dcd_get_library_name(struct dcd_manager *hdcd_mgr,
+ struct dsp_uuid *uuid_obj,
+ OUT char *str_lib_name,
+ OUT u32 *buff_size,
enum nldr_phase phase, OUT bool *phase_split)
{
char sz_reg_key[DCD_MAXPATHLENGTH];
* Registers a node or a processor with the DCD.
* If psz_path_name == NULL, unregister the specified DCD object.
*/
-int dcd_register_object(IN struct dsp_uuid *uuid_obj,
- IN enum dsp_dcdobjtype obj_type,
- IN char *psz_path_name)
+int dcd_register_object(struct dsp_uuid *uuid_obj,
+ enum dsp_dcdobjtype obj_type,
+ char *psz_path_name)
{
int status = 0;
char sz_reg_key[DCD_MAXPATHLENGTH];
* Call DCD_Register object with psz_path_name set to NULL to
* perform actual object de-registration.
*/
-int dcd_unregister_object(IN struct dsp_uuid *uuid_obj,
- IN enum dsp_dcdobjtype obj_type)
+int dcd_unregister_object(struct dsp_uuid *uuid_obj,
+ enum dsp_dcdobjtype obj_type)
{
int status = 0;
/*
* ======== get_dep_lib_info ========
*/
-static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr,
- IN struct dsp_uuid *uuid_obj,
- IN OUT u16 *num_libs,
+static int get_dep_lib_info(struct dcd_manager *hdcd_mgr,
+ struct dsp_uuid *uuid_obj,
+ OUT u16 *num_libs,
OPTIONAL OUT u16 *num_pers_libs,
OPTIONAL OUT struct dsp_uuid *dep_lib_uuids,
OPTIONAL OUT bool *prstnt_dep_libs,
*/
int disp_create(OUT struct disp_object **dispatch_obj,
struct dev_object *hdev_obj,
- IN const struct disp_attr *disp_attrs)
+ 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,
+ const struct node_createargs *pargs,
OUT nodeenv *node_env)
{
struct node_msgargs node_msg_args;
static int add_ovly_info(void *handle, struct dbll_sect_info *sect_info,
u32 addr, u32 bytes);
static int add_ovly_node(struct dsp_uuid *uuid_obj,
- enum dsp_dcdobjtype obj_type, IN void *handle);
+ enum dsp_dcdobjtype obj_type, void *handle);
static int add_ovly_sect(struct nldr_object *nldr_obj,
struct ovly_sect **lst,
struct dbll_sect_info *sect_inf,
* ======== nldr_allocate ========
*/
int nldr_allocate(struct nldr_object *nldr_obj, void *priv_ref,
- IN const struct dcd_nodeprops *node_props,
+ const struct dcd_nodeprops *node_props,
OUT struct nldr_nodeobject **nldr_nodeobj,
- IN bool *pf_phase_split)
+ bool *pf_phase_split)
{
struct nldr_nodeobject *nldr_node_obj = NULL;
int status = 0;
*/
int nldr_create(OUT struct nldr_object **nldr,
struct dev_object *hdev_obj,
- IN const struct nldr_attrs *pattrs)
+ const struct nldr_attrs *pattrs)
{
struct cod_manager *cod_mgr; /* COD manager */
char *psz_coff_buf = NULL;
* Callback function passed to dcd_get_objects.
*/
static int add_ovly_node(struct dsp_uuid *uuid_obj,
- enum dsp_dcdobjtype obj_type, IN void *handle)
+ enum dsp_dcdobjtype obj_type, void *handle)
{
struct nldr_object *nldr_obj = (struct nldr_object *)handle;
char *node_name = NULL;
* 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,
+ const struct dsp_uuid *node_uuid,
+ OPTIONAL const struct dsp_cbdata *pargs,
+ OPTIONAL const struct dsp_nodeattrin *attr_in,
OUT struct node_object **ph_node,
struct process_context *pr_ctxt)
{
* Allocates buffer for zero copy messaging.
*/
DBAPI node_alloc_msg_buf(struct node_object *hnode, u32 usize,
- OPTIONAL IN OUT struct dsp_bufferattr *pattr,
+ OPTIONAL OUT struct dsp_bufferattr *pattr,
OUT u8 **pbuffer)
{
struct node_object *pnode = (struct node_object *)hnode;
*/
int node_connect(struct node_object *node1, u32 stream1,
struct node_object *node2,
- u32 stream2, OPTIONAL IN struct dsp_strmattr *pattrs,
- OPTIONAL IN struct dsp_cbdata *conn_param)
+ u32 stream2, OPTIONAL struct dsp_strmattr *pattrs,
+ OPTIONAL struct dsp_cbdata *conn_param)
{
struct node_mgr *hnode_mgr;
char *pstr_dev_name = NULL;
* Purpose:
* Frees the message buffer.
*/
-int node_free_msg_buf(struct node_object *hnode, IN u8 * pbuffer,
+int node_free_msg_buf(struct node_object *hnode, u8 * pbuffer,
OPTIONAL struct dsp_bufferattr *pattr)
{
struct node_object *pnode = (struct node_object *)hnode;
* message, or a timeout occurs.
*/
int node_put_message(struct node_object *hnode,
- IN const struct dsp_msg *pmsg, u32 utimeout)
+ const struct dsp_msg *pmsg, u32 utimeout)
{
struct node_mgr *hnode_mgr = NULL;
enum node_type node_type;
* Fetch Node UUID properties from DCD/DOF file.
*/
int node_get_uuid_props(void *hprocessor,
- IN const struct dsp_uuid *node_uuid,
+ const struct dsp_uuid *node_uuid,
OUT struct dsp_ndbprops *node_props)
{
struct node_mgr *hnode_mgr = NULL;
* Call the bridge_dev_ctrl fxn with the Argument. This is a Synchronous
* Operation. arg can be null.
*/
-int proc_ctrl(void *hprocessor, u32 dw_cmd, IN struct dsp_cbdata * arg)
+int proc_ctrl(void *hprocessor, u32 dw_cmd, struct dsp_cbdata * arg)
{
int status = 0;
struct proc_object *p_proc_object = hprocessor;
* on a DSP processor.
*/
int proc_enum_nodes(void *hprocessor, void **node_tab,
- IN u32 node_tab_size, OUT u32 *pu_num_nodes,
+ u32 node_tab_size, OUT u32 *pu_num_nodes,
OUT u32 *pu_allocated)
{
int status = -EPERM;
* 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, const s32 argc_index,
+ const char **user_args, 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(const u32 sleep_code, 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(const u32 timeout)
{
struct bridge_drv_interface *intf_fxns;
struct bridge_dev_context *dw_context;
* ======== pwr_pm_pre_scale========
* Sends pre-notification message to DSP.
*/
-int pwr_pm_pre_scale(IN u16 voltage_domain, u32 level)
+int pwr_pm_pre_scale(u16 voltage_domain, u32 level)
{
struct bridge_drv_interface *intf_fxns;
struct bridge_dev_context *dw_context;
* ======== pwr_pm_post_scale========
* Sends post-notification message to DSP.
*/
-int pwr_pm_post_scale(IN u16 voltage_domain, u32 level)
+int pwr_pm_post_scale(u16 voltage_domain, u32 level)
{
struct bridge_drv_interface *intf_fxns;
struct bridge_dev_context *dw_context;
* Purpose:
* Issues a buffer on a stream
*/
-int strm_issue(struct strm_object *stream_obj, IN u8 *pbuf, u32 ul_bytes,
+int strm_issue(struct strm_object *stream_obj, u8 *pbuf, u32 ul_bytes,
u32 ul_buf_size, u32 dw_arg)
{
struct bridge_drv_interface *intf_fxns;
* XDAIS socket node on the DSP.
*/
int strm_open(struct node_object *hnode, u32 dir, u32 index,
- IN struct strm_attr *pattr,
+ struct strm_attr *pattr,
OUT struct strm_object **strm_objct,
struct process_context *pr_ctxt)
{
* Purpose:
* Selects a ready stream.
*/
-int strm_select(IN struct strm_object **strm_tab, u32 strms,
+int strm_select(struct strm_object **strm_tab, u32 strms,
OUT u32 *pmask, u32 utimeout)
{
u32 index;