Commit e6890692 authored by Rene Sapiens's avatar Rene Sapiens Committed by Greg Kroah-Hartman

staging: ti dspbridge: Rename words with camel case.

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
hDevContext to dev_ctxt
hDevExtension to dev_extension
hdevObject to device_obj
hDispObject to disp_obj
hDrVObject to driver_obj
hDRVObject to driver_obj
hMGRHandle to mgr_handle
hNldrObject to nldr
hNode1 to node1
hNode2 to node2
hNodeRes to node_resource
hPCtxt to process_ctxt
hProc to proc
hStreamHandle to stream_handle
========================================
Signed-off-by: default avatarRene Sapiens <rene.sapiens@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b301c858
...@@ -147,9 +147,9 @@ static void input_msg(struct io_mgr *pio_mgr, struct msg_mgr *hmsg_mgr); ...@@ -147,9 +147,9 @@ static void input_msg(struct io_mgr *pio_mgr, struct msg_mgr *hmsg_mgr);
static void output_msg(struct io_mgr *pio_mgr, struct msg_mgr *hmsg_mgr); static void output_msg(struct io_mgr *pio_mgr, struct msg_mgr *hmsg_mgr);
static u32 find_ready_output(struct chnl_mgr *chnl_mgr_obj, static u32 find_ready_output(struct chnl_mgr *chnl_mgr_obj,
struct chnl_object *pchnl, u32 mask); struct chnl_object *pchnl, u32 mask);
static u32 read_data(struct bridge_dev_context *hDevContext, void *dest, static u32 read_data(struct bridge_dev_context *dev_ctxt, void *dest,
void *pSrc, u32 usize); void *pSrc, u32 usize);
static u32 write_data(struct bridge_dev_context *hDevContext, void *dest, static u32 write_data(struct bridge_dev_context *dev_ctxt, void *dest,
void *pSrc, u32 usize); void *pSrc, u32 usize);
/* Bus Addr (cached kernel) */ /* Bus Addr (cached kernel) */
...@@ -1701,7 +1701,7 @@ static int register_shm_segs(struct io_mgr *hio_mgr, ...@@ -1701,7 +1701,7 @@ static int register_shm_segs(struct io_mgr *hio_mgr,
* ======== read_data ======== * ======== read_data ========
* Copies buffers from the shared memory to the host buffer. * Copies buffers from the shared memory to the host buffer.
*/ */
static u32 read_data(struct bridge_dev_context *hDevContext, void *dest, static u32 read_data(struct bridge_dev_context *dev_ctxt, void *dest,
void *pSrc, u32 usize) void *pSrc, u32 usize)
{ {
memcpy(dest, pSrc, usize); memcpy(dest, pSrc, usize);
...@@ -1712,7 +1712,7 @@ static u32 read_data(struct bridge_dev_context *hDevContext, void *dest, ...@@ -1712,7 +1712,7 @@ static u32 read_data(struct bridge_dev_context *hDevContext, void *dest,
* ======== write_data ======== * ======== write_data ========
* Copies buffers from the host side buffer to the shared memory. * Copies buffers from the host side buffer to the shared memory.
*/ */
static u32 write_data(struct bridge_dev_context *hDevContext, void *dest, static u32 write_data(struct bridge_dev_context *dev_ctxt, void *dest,
void *pSrc, u32 usize) void *pSrc, u32 usize)
{ {
memcpy(dest, pSrc, usize); memcpy(dest, pSrc, usize);
......
...@@ -50,12 +50,12 @@ bool symbols_reloaded = true; ...@@ -50,12 +50,12 @@ bool symbols_reloaded = true;
* ======== read_ext_dsp_data ======== * ======== read_ext_dsp_data ========
* Copies DSP external memory buffers to the host side buffers. * Copies DSP external memory buffers to the host side buffers.
*/ */
int read_ext_dsp_data(struct bridge_dev_context *hDevContext, int read_ext_dsp_data(struct bridge_dev_context *dev_ctxt,
OUT u8 *pbHostBuf, u32 dsp_addr, OUT u8 *pbHostBuf, u32 dsp_addr,
u32 ul_num_bytes, u32 ulMemType) u32 ul_num_bytes, u32 ulMemType)
{ {
int status = 0; int status = 0;
struct bridge_dev_context *dev_context = hDevContext; struct bridge_dev_context *dev_context = dev_ctxt;
u32 offset; u32 offset;
u32 ul_tlb_base_virt = 0; u32 ul_tlb_base_virt = 0;
u32 ul_shm_offset_virt = 0; u32 ul_shm_offset_virt = 0;
...@@ -178,13 +178,13 @@ int read_ext_dsp_data(struct bridge_dev_context *hDevContext, ...@@ -178,13 +178,13 @@ int read_ext_dsp_data(struct bridge_dev_context *hDevContext,
* purpose: * purpose:
* Copies buffers to the DSP internal/external memory. * Copies buffers to the DSP internal/external memory.
*/ */
int write_dsp_data(struct bridge_dev_context *hDevContext, int write_dsp_data(struct bridge_dev_context *dev_ctxt,
IN u8 *pbHostBuf, u32 dsp_addr, u32 ul_num_bytes, IN u8 *pbHostBuf, u32 dsp_addr, u32 ul_num_bytes,
u32 ulMemType) u32 ulMemType)
{ {
u32 offset; u32 offset;
u32 dw_base_addr = hDevContext->dw_dsp_base_addr; u32 dw_base_addr = dev_ctxt->dw_dsp_base_addr;
struct cfg_hostres *resources = hDevContext->resources; struct cfg_hostres *resources = dev_ctxt->resources;
int status = 0; int status = 0;
u32 base1, base2, base3; u32 base1, base2, base3;
base1 = OMAP_DSP_MEM1_SIZE; base1 = OMAP_DSP_MEM1_SIZE;
...@@ -194,7 +194,7 @@ int write_dsp_data(struct bridge_dev_context *hDevContext, ...@@ -194,7 +194,7 @@ int write_dsp_data(struct bridge_dev_context *hDevContext,
if (!resources) if (!resources)
return -EPERM; return -EPERM;
offset = dsp_addr - hDevContext->dw_dsp_start_add; offset = dsp_addr - dev_ctxt->dw_dsp_start_add;
if (offset < base1) { if (offset < base1) {
dw_base_addr = MEM_LINEAR_ADDRESS(resources->dw_mem_base[2], dw_base_addr = MEM_LINEAR_ADDRESS(resources->dw_mem_base[2],
resources->dw_mem_length[2]); resources->dw_mem_length[2]);
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
* device's bridge_brd_write() function. * device's bridge_brd_write() function.
* Parameters: * Parameters:
* pArb: Handle to a Device Object. * pArb: Handle to a Device Object.
* hDevContext: Handle to Bridge driver defined device info. * dev_ctxt: Handle to Bridge driver defined device info.
* dsp_addr: Address on DSP board (Destination). * dsp_addr: Address on DSP board (Destination).
* pHostBuf: Pointer to host buffer (Source). * pHostBuf: Pointer to host buffer (Source).
* ul_num_bytes: Number of bytes to transfer. * ul_num_bytes: Number of bytes to transfer.
...@@ -336,7 +336,7 @@ extern int dev_get_dev_node(struct dev_object *hdev_obj, ...@@ -336,7 +336,7 @@ extern int dev_get_dev_node(struct dev_object *hdev_obj,
* 0: *phDevNode contains a platform specific device ID; * 0: *phDevNode contains a platform specific device ID;
* else: *phDevNode is NULL. * else: *phDevNode is NULL.
*/ */
extern int dev_get_dev_type(struct dev_object *hdevObject, extern int dev_get_dev_type(struct dev_object *device_obj,
u8 *dev_type); u8 *dev_type);
/* /*
......
...@@ -57,15 +57,15 @@ extern int disp_create(OUT struct disp_object **phDispObject, ...@@ -57,15 +57,15 @@ extern int disp_create(OUT struct disp_object **phDispObject,
* Delete the NODE Dispatcher. * Delete the NODE Dispatcher.
* *
* Parameters: * Parameters:
* hDispObject: Node Dispatcher object. * disp_obj: Node Dispatcher object.
* Returns: * Returns:
* Requires: * Requires:
* disp_init(void) called. * disp_init(void) called.
* Valid hDispObject. * Valid disp_obj.
* Ensures: * Ensures:
* hDispObject is invalid. * disp_obj is invalid.
*/ */
extern void disp_delete(struct disp_object *hDispObject); extern void disp_delete(struct disp_object *disp_obj);
/* /*
* ======== disp_exit ======== * ======== disp_exit ========
...@@ -97,7 +97,7 @@ extern bool disp_init(void); ...@@ -97,7 +97,7 @@ extern bool disp_init(void);
* Change the priority of a node currently running on the target. * Change the priority of a node currently running on the target.
* *
* Parameters: * Parameters:
* hDispObject: Node Dispatcher object. * disp_obj: Node Dispatcher object.
* hnode: Node object representing a node currently * hnode: Node object representing a node currently
* allocated or running on the DSP. * allocated or running on the DSP.
* ulFxnAddress: Address of RMS function for changing priority. * ulFxnAddress: Address of RMS function for changing priority.
...@@ -108,12 +108,12 @@ extern bool disp_init(void); ...@@ -108,12 +108,12 @@ extern bool disp_init(void);
* -ETIME: A timeout occurred before the DSP responded. * -ETIME: A timeout occurred before the DSP responded.
* Requires: * Requires:
* disp_init(void) called. * disp_init(void) called.
* Valid hDispObject. * Valid disp_obj.
* hnode != NULL. * hnode != NULL.
* Ensures: * Ensures:
*/ */
extern int disp_node_change_priority(struct disp_object extern int disp_node_change_priority(struct disp_object
*hDispObject, *disp_obj,
struct node_object *hnode, struct node_object *hnode,
u32 ul_fxn_addr, u32 ul_fxn_addr,
nodeenv node_env, s32 prio); nodeenv node_env, s32 prio);
...@@ -123,7 +123,7 @@ extern int disp_node_change_priority(struct disp_object ...@@ -123,7 +123,7 @@ extern int disp_node_change_priority(struct disp_object
* Create a node on the DSP by remotely calling the node's create function. * Create a node on the DSP by remotely calling the node's create function.
* *
* Parameters: * Parameters:
* hDispObject: Node Dispatcher object. * disp_obj: Node Dispatcher object.
* hnode: Node handle obtained from node_allocate(). * hnode: Node handle obtained from node_allocate().
* ul_fxn_addr: Address or RMS create node function. * ul_fxn_addr: Address or RMS create node function.
* ul_create_fxn: Address of node's create function. * ul_create_fxn: Address of node's create function.
...@@ -136,14 +136,14 @@ extern int disp_node_change_priority(struct disp_object ...@@ -136,14 +136,14 @@ extern int disp_node_change_priority(struct disp_object
* -EPERM: A failure occurred, unable to create node. * -EPERM: A failure occurred, unable to create node.
* Requires: * Requires:
* disp_init(void) called. * disp_init(void) called.
* Valid hDispObject. * Valid disp_obj.
* pargs != NULL. * pargs != NULL.
* hnode != NULL. * hnode != NULL.
* pNodeEnv != NULL. * pNodeEnv != NULL.
* node_get_type(hnode) != NODE_DEVICE. * node_get_type(hnode) != NODE_DEVICE.
* Ensures: * Ensures:
*/ */
extern int disp_node_create(struct disp_object *hDispObject, extern int disp_node_create(struct disp_object *disp_obj,
struct node_object *hnode, struct node_object *hnode,
u32 ul_fxn_addr, u32 ul_fxn_addr,
u32 ul_create_fxn, u32 ul_create_fxn,
...@@ -155,7 +155,7 @@ extern int disp_node_create(struct disp_object *hDispObject, ...@@ -155,7 +155,7 @@ extern int disp_node_create(struct disp_object *hDispObject,
* Delete a node on the DSP by remotely calling the node's delete function. * Delete a node on the DSP by remotely calling the node's delete function.
* *
* Parameters: * Parameters:
* hDispObject: Node Dispatcher object. * disp_obj: Node Dispatcher object.
* hnode: Node object representing a node currently * hnode: Node object representing a node currently
* loaded on the DSP. * loaded on the DSP.
* ul_fxn_addr: Address or RMS delete node function. * ul_fxn_addr: Address or RMS delete node function.
...@@ -166,11 +166,11 @@ extern int disp_node_create(struct disp_object *hDispObject, ...@@ -166,11 +166,11 @@ extern int disp_node_create(struct disp_object *hDispObject,
* -ETIME: A timeout occurred before the DSP responded. * -ETIME: A timeout occurred before the DSP responded.
* Requires: * Requires:
* disp_init(void) called. * disp_init(void) called.
* Valid hDispObject. * Valid disp_obj.
* hnode != NULL. * hnode != NULL.
* Ensures: * Ensures:
*/ */
extern int disp_node_delete(struct disp_object *hDispObject, extern int disp_node_delete(struct disp_object *disp_obj,
struct node_object *hnode, struct node_object *hnode,
u32 ul_fxn_addr, u32 ul_fxn_addr,
u32 ul_delete_fxn, nodeenv node_env); u32 ul_delete_fxn, nodeenv node_env);
...@@ -181,7 +181,7 @@ extern int disp_node_delete(struct disp_object *hDispObject, ...@@ -181,7 +181,7 @@ extern int disp_node_delete(struct disp_object *hDispObject,
* that has been suspended (via DISP_NodePause()) on the DSP. * that has been suspended (via DISP_NodePause()) on the DSP.
* *
* Parameters: * Parameters:
* hDispObject: Node Dispatcher object. * disp_obj: Node Dispatcher object.
* hnode: Node object representing a node to be executed * hnode: Node object representing a node to be executed
* on the DSP. * on the DSP.
* ul_fxn_addr: Address or RMS node execute function. * ul_fxn_addr: Address or RMS node execute function.
...@@ -192,11 +192,11 @@ extern int disp_node_delete(struct disp_object *hDispObject, ...@@ -192,11 +192,11 @@ extern int disp_node_delete(struct disp_object *hDispObject,
* -ETIME: A timeout occurred before the DSP responded. * -ETIME: A timeout occurred before the DSP responded.
* Requires: * Requires:
* disp_init(void) called. * disp_init(void) called.
* Valid hDispObject. * Valid disp_obj.
* hnode != NULL. * hnode != NULL.
* Ensures: * Ensures:
*/ */
extern int disp_node_run(struct disp_object *hDispObject, extern int disp_node_run(struct disp_object *disp_obj,
struct node_object *hnode, struct node_object *hnode,
u32 ul_fxn_addr, u32 ul_fxn_addr,
u32 ul_execute_fxn, nodeenv node_env); u32 ul_execute_fxn, nodeenv node_env);
......
...@@ -313,16 +313,16 @@ extern u32 drv_get_next_dev_object(u32 hdev_obj); ...@@ -313,16 +313,16 @@ extern u32 drv_get_next_dev_object(u32 hdev_obj);
* Purpose: * Purpose:
* Returns the Ptr to the Next Device Extension from the the List * Returns the Ptr to the Next Device Extension from the the List
* Parameters: * Parameters:
* hDevExtension: Handle to the Device Extension * dev_extension: Handle to the Device Extension
* Requires: * Requires:
* DRV Initialized * DRV Initialized
* hDevExtension != 0. * dev_extension != 0.
* Returns: * Returns:
* dw_dev_extension: Ptr to the Next Dev Extension * dw_dev_extension: Ptr to the Next Dev Extension
* 0: If it fail to Get the next Dev Extension * 0: If it fail to Get the next Dev Extension
* Ensures: * Ensures:
*/ */
extern u32 drv_get_next_dev_extension(u32 hDevExtension); extern u32 drv_get_next_dev_extension(u32 dev_extension);
/* /*
* ======== drv_init ======== * ======== drv_init ========
......
...@@ -270,21 +270,21 @@ extern int io_sh_msetting(struct io_mgr *hio_mgr, u8 desc, void *pargs); ...@@ -270,21 +270,21 @@ extern int io_sh_msetting(struct io_mgr *hio_mgr, u8 desc, void *pargs);
/* Maximum channel bufsize that can be used. */ /* Maximum channel bufsize that can be used. */
extern u32 io_buf_size(struct io_mgr *hio_mgr); extern u32 io_buf_size(struct io_mgr *hio_mgr);
extern u32 io_read_value(struct bridge_dev_context *hDevContext, u32 dsp_addr); extern u32 io_read_value(struct bridge_dev_context *dev_ctxt, u32 dsp_addr);
extern void io_write_value(struct bridge_dev_context *hDevContext, extern void io_write_value(struct bridge_dev_context *dev_ctxt,
u32 dsp_addr, u32 value); u32 dsp_addr, u32 value);
extern u32 io_read_value_long(struct bridge_dev_context *hDevContext, extern u32 io_read_value_long(struct bridge_dev_context *dev_ctxt,
u32 dsp_addr); u32 dsp_addr);
extern void io_write_value_long(struct bridge_dev_context *hDevContext, extern void io_write_value_long(struct bridge_dev_context *dev_ctxt,
u32 dsp_addr, u32 value); u32 dsp_addr, u32 value);
extern void io_or_set_value(struct bridge_dev_context *hDevContext, extern void io_or_set_value(struct bridge_dev_context *dev_ctxt,
u32 dsp_addr, u32 value); u32 dsp_addr, u32 value);
extern void io_and_set_value(struct bridge_dev_context *hDevContext, extern void io_and_set_value(struct bridge_dev_context *dev_ctxt,
u32 dsp_addr, u32 value); 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(IN struct io_mgr *pio_mgr, IN u16 mb_val);
......
...@@ -173,7 +173,7 @@ extern void mgr_exit(void); ...@@ -173,7 +173,7 @@ extern void mgr_exit(void);
* Purpose: * Purpose:
* Retrieves the MGR handle. Accessor Function * Retrieves the MGR handle. Accessor Function
* Parameters: * Parameters:
* hMGRHandle: Handle to the Manager Object * mgr_handle: Handle to the Manager Object
* phDCDHandle: Ptr to receive the DCD Handle. * phDCDHandle: Ptr to receive the DCD Handle.
* Returns: * Returns:
* 0: Sucess * 0: Sucess
...@@ -186,7 +186,7 @@ extern void mgr_exit(void); ...@@ -186,7 +186,7 @@ extern void mgr_exit(void);
* -EPERM and *phDCDHandle == NULL * -EPERM and *phDCDHandle == NULL
*/ */
extern int mgr_get_dcd_handle(IN struct mgr_object extern int mgr_get_dcd_handle(IN struct mgr_object
*hMGRHandle, OUT u32 *phDCDHandle); *mgr_handle, OUT u32 *phDCDHandle);
/* /*
* ======== mgr_init ======== * ======== mgr_init ========
......
...@@ -41,7 +41,7 @@ extern void nldr_exit(void); ...@@ -41,7 +41,7 @@ extern void nldr_exit(void);
extern int nldr_get_fxn_addr(struct nldr_nodeobject *nldr_node_obj, extern int nldr_get_fxn_addr(struct nldr_nodeobject *nldr_node_obj,
char *pstrFxn, u32 * pulAddr); char *pstrFxn, u32 * pulAddr);
extern int nldr_get_rmm_manager(struct nldr_object *hNldrObject, extern int nldr_get_rmm_manager(struct nldr_object *nldr,
OUT struct rmm_target_obj **phRmmMgr); OUT struct rmm_target_obj **phRmmMgr);
extern bool nldr_init(void); extern bool nldr_init(void);
......
...@@ -118,32 +118,32 @@ extern int node_change_priority(struct node_object *hnode, s32 prio); ...@@ -118,32 +118,32 @@ extern int node_change_priority(struct node_object *hnode, s32 prio);
* Delete all nodes whose owning processor is being destroyed. * Delete all nodes whose owning processor is being destroyed.
* Parameters: * Parameters:
* hnode_mgr: Node manager object. * hnode_mgr: Node manager object.
* hProc: Handle to processor object being destroyed. * proc: Handle to processor object being destroyed.
* Returns: * Returns:
* 0: Success. * 0: Success.
* -EPERM: Unable to delete all nodes belonging to hProc. * -EPERM: Unable to delete all nodes belonging to proc.
* Requires: * Requires:
* Valid hnode_mgr. * Valid hnode_mgr.
* hProc != NULL. * proc != NULL.
* Ensures: * Ensures:
*/ */
extern int node_close_orphans(struct node_mgr *hnode_mgr, extern int node_close_orphans(struct node_mgr *hnode_mgr,
struct proc_object *hProc); struct proc_object *proc);
/* /*
* ======== node_connect ======== * ======== node_connect ========
* Purpose: * Purpose:
* Connect two nodes on the DSP, or a node on the DSP to the GPP. In the * Connect two nodes on the DSP, or a node on the DSP to the GPP. In the
* case that the connnection is being made between a node on the DSP and * case that the connnection is being made between a node on the DSP and
* the GPP, one of the node handles (either hNode1 or hNode2) must be * the GPP, one of the node handles (either node1 or node2) must be
* the constant NODE_HGPPNODE. * the constant NODE_HGPPNODE.
* Parameters: * Parameters:
* hNode1: Handle of first node to connect to second node. If * node1: Handle of first node to connect to second node. If
* this is a connection from the GPP to hNode2, hNode1 * this is a connection from the GPP to node2, node1
* must be the constant NODE_HGPPNODE. Otherwise, hNode1 * must be the constant NODE_HGPPNODE. Otherwise, node1
* must be a node handle returned from a successful call * must be a node handle returned from a successful call
* to Node_Allocate(). * to Node_Allocate().
* hNode2: Handle of second node. Must be either NODE_HGPPNODE * node2: Handle of second node. Must be either NODE_HGPPNODE
* if this is a connection from DSP node to GPP, or a * if this is a connection from DSP node to GPP, or a
* node handle returned from a successful call to * node handle returned from a successful call to
* node_allocate(). * node_allocate().
...@@ -163,12 +163,12 @@ extern int node_close_orphans(struct node_mgr *hnode_mgr, ...@@ -163,12 +163,12 @@ extern int node_close_orphans(struct node_mgr *hnode_mgr,
* pass binary data. * pass binary data.
* Returns: * Returns:
* 0: Success. * 0: Success.
* -EFAULT: Invalid hNode1 or hNode2. * -EFAULT: Invalid node1 or node2.
* -ENOMEM: Insufficient host memory. * -ENOMEM: Insufficient host memory.
* -EINVAL: A stream index parameter is invalid. * -EINVAL: A stream index parameter is invalid.
* -EISCONN: A connection already exists for one of the * -EISCONN: A connection already exists for one of the
* indices uStream1 or uStream2. * indices uStream1 or uStream2.
* -EBADR: Either hNode1 or hNode2 is not in the * -EBADR: Either node1 or node2 is not in the
* NODE_ALLOCATED state. * NODE_ALLOCATED state.
* -ECONNREFUSED: No more connections available. * -ECONNREFUSED: No more connections available.
* -EPERM: Attempt to make an illegal connection (eg, * -EPERM: Attempt to make an illegal connection (eg,
...@@ -178,9 +178,9 @@ extern int node_close_orphans(struct node_mgr *hnode_mgr, ...@@ -178,9 +178,9 @@ extern int node_close_orphans(struct node_mgr *hnode_mgr,
* node_init(void) called. * node_init(void) called.
* Ensures: * Ensures:
*/ */
extern int node_connect(struct node_object *hNode1, extern int node_connect(struct node_object *node1,
u32 uStream1, u32 uStream1,
struct node_object *hNode2, struct node_object *node2,
u32 uStream2, u32 uStream2,
OPTIONAL IN struct dsp_strmattr *pattrs, OPTIONAL IN struct dsp_strmattr *pattrs,
OPTIONAL IN struct dsp_cbdata OPTIONAL IN struct dsp_cbdata
......
...@@ -364,7 +364,7 @@ extern int proc_register_notify(void *hprocessor, ...@@ -364,7 +364,7 @@ extern int proc_register_notify(void *hprocessor,
* Purpose: * Purpose:
* Notify the Processor Clients * Notify the Processor Clients
* Parameters: * Parameters:
* hProc : The processor handle. * proc : The processor handle.
* uEvents : Event to be notified about. * uEvents : Event to be notified about.
* Returns: * Returns:
* 0 : Success. * 0 : Success.
...@@ -372,18 +372,18 @@ extern int proc_register_notify(void *hprocessor, ...@@ -372,18 +372,18 @@ extern int proc_register_notify(void *hprocessor,
* -EPERM : Failure to Set or Reset the Event * -EPERM : Failure to Set or Reset the Event
* Requires: * Requires:
* uEvents is Supported or Valid type of Event * uEvents is Supported or Valid type of Event
* hProc is a valid handle * proc is a valid handle
* PROC Initialized. * PROC Initialized.
* Ensures: * Ensures:
*/ */
extern int proc_notify_clients(void *hProc, u32 uEvents); extern int proc_notify_clients(void *proc, u32 uEvents);
/* /*
* ======== proc_notify_all_clients ======== * ======== proc_notify_all_clients ========
* Purpose: * Purpose:
* Notify the Processor Clients * Notify the Processor Clients
* Parameters: * Parameters:
* hProc : The processor handle. * proc : The processor handle.
* uEvents : Event to be notified about. * uEvents : Event to be notified about.
* Returns: * Returns:
* 0 : Success. * 0 : Success.
...@@ -391,14 +391,14 @@ extern int proc_notify_clients(void *hProc, u32 uEvents); ...@@ -391,14 +391,14 @@ extern int proc_notify_clients(void *hProc, u32 uEvents);
* -EPERM : Failure to Set or Reset the Event * -EPERM : Failure to Set or Reset the Event
* Requires: * Requires:
* uEvents is Supported or Valid type of Event * uEvents is Supported or Valid type of Event
* hProc is a valid handle * proc is a valid handle
* PROC Initialized. * PROC Initialized.
* Ensures: * Ensures:
* Details: * Details:
* NODE And STRM would use this function to notify their clients * NODE And STRM would use this function to notify their clients
* about the state changes in NODE or STRM. * about the state changes in NODE or STRM.
*/ */
extern int proc_notify_all_clients(void *hProc, u32 uEvents); extern int proc_notify_all_clients(void *proc, u32 uEvents);
/* /*
* ======== proc_start ======== * ======== proc_start ========
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
extern int drv_get_proc_ctxt_list(struct process_context **pPctxt, extern int drv_get_proc_ctxt_list(struct process_context **pPctxt,
struct drv_object *hdrv_obj); struct drv_object *hdrv_obj);
extern int drv_insert_proc_context(struct drv_object *hDrVObject, extern int drv_insert_proc_context(struct drv_object *driver_obj,
void *hPCtxt); void *process_ctxt);
extern int drv_remove_all_dmm_res_elements(void *ctxt); extern int drv_remove_all_dmm_res_elements(void *ctxt);
...@@ -31,7 +31,7 @@ extern int drv_proc_set_pid(void *ctxt, s32 process); ...@@ -31,7 +31,7 @@ extern int drv_proc_set_pid(void *ctxt, s32 process);
extern int drv_remove_all_resources(void *pPctxt); extern int drv_remove_all_resources(void *pPctxt);
extern int drv_remove_proc_context(struct drv_object *hDRVObject, extern int drv_remove_proc_context(struct drv_object *driver_obj,
void *pr_ctxt); void *pr_ctxt);
extern int drv_get_node_res_element(void *hnode, void *node_res, extern int drv_get_node_res_element(void *hnode, void *node_res,
...@@ -40,11 +40,11 @@ extern int drv_get_node_res_element(void *hnode, void *node_res, ...@@ -40,11 +40,11 @@ extern int drv_get_node_res_element(void *hnode, void *node_res,
extern int drv_insert_node_res_element(void *hnode, void *node_res, extern int drv_insert_node_res_element(void *hnode, void *node_res,
void *ctxt); void *ctxt);
extern void drv_proc_node_update_heap_status(void *hNodeRes, s32 status); extern void drv_proc_node_update_heap_status(void *node_resource, s32 status);
extern int drv_remove_node_res_element(void *node_res, void *status); extern int drv_remove_node_res_element(void *node_res, void *status);
extern void drv_proc_node_update_status(void *hNodeRes, s32 status); extern void drv_proc_node_update_status(void *node_resource, s32 status);
extern int drv_proc_update_strm_res(u32 num_bufs, void *strm_res); extern int drv_proc_update_strm_res(u32 num_bufs, void *strm_res);
......
...@@ -1038,10 +1038,10 @@ int dev_remove_proc_object(struct dev_object *hdev_obj, u32 proc_obj) ...@@ -1038,10 +1038,10 @@ int dev_remove_proc_object(struct dev_object *hdev_obj, u32 proc_obj)
return status; return status;
} }
int dev_get_dev_type(struct dev_object *hdevObject, u8 *dev_type) int dev_get_dev_type(struct dev_object *device_obj, u8 *dev_type)
{ {
int status = 0; int status = 0;
struct dev_object *dev_obj = (struct dev_object *)hdevObject; struct dev_object *dev_obj = (struct dev_object *)device_obj;
*dev_type = dev_obj->dev_type; *dev_type = dev_obj->dev_type;
......
...@@ -73,16 +73,16 @@ static int request_bridge_resources(struct cfg_hostres *res); ...@@ -73,16 +73,16 @@ static int request_bridge_resources(struct cfg_hostres *res);
/* GPP PROCESS CLEANUP CODE */ /* GPP PROCESS CLEANUP CODE */
static int drv_proc_free_node_res(void *hPCtxt); static int drv_proc_free_node_res(void *process_ctxt);
/* Allocate and add a node resource element /* Allocate and add a node resource element
* This function is called from .Node_Allocate. */ * This function is called from .Node_Allocate. */
int drv_insert_node_res_element(void *hnode, void *hNodeRes, int drv_insert_node_res_element(void *hnode, void *node_resource,
void *hPCtxt) void *process_ctxt)
{ {
struct node_res_object **node_res_obj = struct node_res_object **node_res_obj =
(struct node_res_object **)hNodeRes; (struct node_res_object **)node_resource;
struct process_context *ctxt = (struct process_context *)hPCtxt; struct process_context *ctxt = (struct process_context *)process_ctxt;
int status = 0; int status = 0;
struct node_res_object *temp_node_res = NULL; struct node_res_object *temp_node_res = NULL;
...@@ -113,11 +113,11 @@ int drv_insert_node_res_element(void *hnode, void *hNodeRes, ...@@ -113,11 +113,11 @@ int drv_insert_node_res_element(void *hnode, void *hNodeRes,
/* Release all Node resources and its context /* Release all Node resources and its context
* This is called from .Node_Delete. */ * This is called from .Node_Delete. */
int drv_remove_node_res_element(void *hNodeRes, void *hPCtxt) int drv_remove_node_res_element(void *node_resource, void *process_ctxt)
{ {
struct node_res_object *node_res_obj = struct node_res_object *node_res_obj =
(struct node_res_object *)hNodeRes; (struct node_res_object *)node_resource;
struct process_context *ctxt = (struct process_context *)hPCtxt; struct process_context *ctxt = (struct process_context *)process_ctxt;
struct node_res_object *temp_node; struct node_res_object *temp_node;
int status = 0; int status = 0;
...@@ -140,9 +140,9 @@ int drv_remove_node_res_element(void *hNodeRes, void *hPCtxt) ...@@ -140,9 +140,9 @@ int drv_remove_node_res_element(void *hNodeRes, void *hPCtxt)
} }
/* Actual Node De-Allocation */ /* Actual Node De-Allocation */
static int drv_proc_free_node_res(void *hPCtxt) static int drv_proc_free_node_res(void *process_ctxt)
{ {
struct process_context *ctxt = (struct process_context *)hPCtxt; struct process_context *ctxt = (struct process_context *)process_ctxt;
int status = 0; int status = 0;
struct node_res_object *node_list = NULL; struct node_res_object *node_list = NULL;
struct node_res_object *node_res_obj = NULL; struct node_res_object *node_res_obj = NULL;
...@@ -169,9 +169,9 @@ static int drv_proc_free_node_res(void *hPCtxt) ...@@ -169,9 +169,9 @@ static int drv_proc_free_node_res(void *hPCtxt)
} }
/* Release all Mapped and Reserved DMM resources */ /* Release all Mapped and Reserved DMM resources */
int drv_remove_all_dmm_res_elements(void *hPCtxt) int drv_remove_all_dmm_res_elements(void *process_ctxt)
{ {
struct process_context *ctxt = (struct process_context *)hPCtxt; struct process_context *ctxt = (struct process_context *)process_ctxt;
int status = 0; int status = 0;
struct dmm_map_object *temp_map, *map_obj; struct dmm_map_object *temp_map, *map_obj;
struct dmm_rsv_object *temp_rsv, *rsv_obj; struct dmm_rsv_object *temp_rsv, *rsv_obj;
...@@ -198,29 +198,29 @@ int drv_remove_all_dmm_res_elements(void *hPCtxt) ...@@ -198,29 +198,29 @@ int drv_remove_all_dmm_res_elements(void *hPCtxt)
} }
/* Update Node allocation status */ /* Update Node allocation status */
void drv_proc_node_update_status(void *hNodeRes, s32 status) void drv_proc_node_update_status(void *node_resource, s32 status)
{ {
struct node_res_object *node_res_obj = struct node_res_object *node_res_obj =
(struct node_res_object *)hNodeRes; (struct node_res_object *)node_resource;
DBC_ASSERT(hNodeRes != NULL); DBC_ASSERT(node_resource != NULL);
node_res_obj->node_allocated = status; node_res_obj->node_allocated = status;
} }
/* Update Node Heap status */ /* Update Node Heap status */
void drv_proc_node_update_heap_status(void *hNodeRes, s32 status) void drv_proc_node_update_heap_status(void *node_resource, s32 status)
{ {
struct node_res_object *node_res_obj = struct node_res_object *node_res_obj =
(struct node_res_object *)hNodeRes; (struct node_res_object *)node_resource;
DBC_ASSERT(hNodeRes != NULL); DBC_ASSERT(node_resource != NULL);
node_res_obj->heap_allocated = status; node_res_obj->heap_allocated = status;
} }
/* Release all Node resources and its context /* Release all Node resources and its context
* This is called from .bridge_release. * This is called from .bridge_release.
*/ */
int drv_remove_all_node_res_elements(void *hPCtxt) int drv_remove_all_node_res_elements(void *process_ctxt)
{ {
struct process_context *ctxt = (struct process_context *)hPCtxt; struct process_context *ctxt = (struct process_context *)process_ctxt;
int status = 0; int status = 0;
struct node_res_object *temp_node2 = NULL; struct node_res_object *temp_node2 = NULL;
struct node_res_object *temp_node = NULL; struct node_res_object *temp_node = NULL;
...@@ -237,11 +237,12 @@ int drv_remove_all_node_res_elements(void *hPCtxt) ...@@ -237,11 +237,12 @@ int drv_remove_all_node_res_elements(void *hPCtxt)
} }
/* Getting the node resource element */ /* Getting the node resource element */
int drv_get_node_res_element(void *hnode, void *hNodeRes, int drv_get_node_res_element(void *hnode, void *node_resource,
void *hPCtxt) void *process_ctxt)
{ {
struct node_res_object **node_res = (struct node_res_object **)hNodeRes; struct node_res_object **node_res =
struct process_context *ctxt = (struct process_context *)hPCtxt; (struct node_res_object **)node_resource;
struct process_context *ctxt = (struct process_context *)process_ctxt;
int status = 0; int status = 0;
struct node_res_object *temp_node2 = NULL; struct node_res_object *temp_node2 = NULL;
struct node_res_object *temp_node = NULL; struct node_res_object *temp_node = NULL;
...@@ -268,12 +269,12 @@ int drv_get_node_res_element(void *hnode, void *hNodeRes, ...@@ -268,12 +269,12 @@ int drv_get_node_res_element(void *hnode, void *hNodeRes,
/* Allocate the STRM resource element /* Allocate the STRM resource element
* This is called after the actual resource is allocated * This is called after the actual resource is allocated
*/ */
int drv_proc_insert_strm_res_element(void *hStreamHandle, int drv_proc_insert_strm_res_element(void *stream_handle,
void *hstrm_res, void *hPCtxt) void *hstrm_res, void *process_ctxt)
{ {
struct strm_res_object **pstrm_res = struct strm_res_object **pstrm_res =
(struct strm_res_object **)hstrm_res; (struct strm_res_object **)hstrm_res;
struct process_context *ctxt = (struct process_context *)hPCtxt; struct process_context *ctxt = (struct process_context *)process_ctxt;
int status = 0; int status = 0;
struct strm_res_object *temp_strm_res = NULL; struct strm_res_object *temp_strm_res = NULL;
...@@ -286,7 +287,7 @@ int drv_proc_insert_strm_res_element(void *hStreamHandle, ...@@ -286,7 +287,7 @@ int drv_proc_insert_strm_res_element(void *hStreamHandle,
kfree(*pstrm_res); kfree(*pstrm_res);
return -EPERM; return -EPERM;
} }
(*pstrm_res)->hstream = hStreamHandle; (*pstrm_res)->hstream = stream_handle;
if (ctxt->pstrm_list != NULL) { if (ctxt->pstrm_list != NULL) {
temp_strm_res = ctxt->pstrm_list; temp_strm_res = ctxt->pstrm_list;
while (temp_strm_res->next != NULL) while (temp_strm_res->next != NULL)
...@@ -304,10 +305,10 @@ int drv_proc_insert_strm_res_element(void *hStreamHandle, ...@@ -304,10 +305,10 @@ int drv_proc_insert_strm_res_element(void *hStreamHandle,
/* Release Stream resource element context /* Release Stream resource element context
* This function called after the actual resource is freed * This function called after the actual resource is freed
*/ */
int drv_proc_remove_strm_res_element(void *hstrm_res, void *hPCtxt) int drv_proc_remove_strm_res_element(void *hstrm_res, void *process_ctxt)
{ {
struct strm_res_object *pstrm_res = (struct strm_res_object *)hstrm_res; struct strm_res_object *pstrm_res = (struct strm_res_object *)hstrm_res;
struct process_context *ctxt = (struct process_context *)hPCtxt; struct process_context *ctxt = (struct process_context *)process_ctxt;
struct strm_res_object *temp_strm_res; struct strm_res_object *temp_strm_res;
int status = 0; int status = 0;
...@@ -333,9 +334,9 @@ int drv_proc_remove_strm_res_element(void *hstrm_res, void *hPCtxt) ...@@ -333,9 +334,9 @@ int drv_proc_remove_strm_res_element(void *hstrm_res, void *hPCtxt)
/* Release all Stream resources and its context /* Release all Stream resources and its context
* This is called from .bridge_release. * This is called from .bridge_release.
*/ */
int drv_remove_all_strm_res_elements(void *hPCtxt) int drv_remove_all_strm_res_elements(void *process_ctxt)
{ {
struct process_context *ctxt = (struct process_context *)hPCtxt; struct process_context *ctxt = (struct process_context *)process_ctxt;
int status = 0; int status = 0;
struct strm_res_object *strm_res = NULL; struct strm_res_object *strm_res = NULL;
struct strm_res_object *strm_tmp = NULL; struct strm_res_object *strm_tmp = NULL;
...@@ -375,11 +376,11 @@ int drv_remove_all_strm_res_elements(void *hPCtxt) ...@@ -375,11 +376,11 @@ int drv_remove_all_strm_res_elements(void *hPCtxt)
/* Getting the stream resource element */ /* Getting the stream resource element */
int drv_get_strm_res_element(void *hStrm, void *hstrm_res, int drv_get_strm_res_element(void *hStrm, void *hstrm_res,
void *hPCtxt) void *process_ctxt)
{ {
struct strm_res_object **strm_res = struct strm_res_object **strm_res =
(struct strm_res_object **)hstrm_res; (struct strm_res_object **)hstrm_res;
struct process_context *ctxt = (struct process_context *)hPCtxt; struct process_context *ctxt = (struct process_context *)process_ctxt;
int status = 0; int status = 0;
struct strm_res_object *temp_strm2 = NULL; struct strm_res_object *temp_strm2 = NULL;
struct strm_res_object *temp_strm; struct strm_res_object *temp_strm;
...@@ -486,10 +487,10 @@ void drv_exit(void) ...@@ -486,10 +487,10 @@ void drv_exit(void)
* purpose: * purpose:
* Invoked during bridge de-initialization * Invoked during bridge de-initialization
*/ */
int drv_destroy(struct drv_object *hDRVObject) int drv_destroy(struct drv_object *driver_obj)
{ {
int status = 0; int status = 0;
struct drv_object *pdrv_object = (struct drv_object *)hDRVObject; struct drv_object *pdrv_object = (struct drv_object *)driver_obj;
DBC_REQUIRE(refs > 0); DBC_REQUIRE(refs > 0);
DBC_REQUIRE(pdrv_object); DBC_REQUIRE(pdrv_object);
...@@ -621,19 +622,19 @@ u32 drv_get_next_dev_object(u32 hdev_obj) ...@@ -621,19 +622,19 @@ u32 drv_get_next_dev_object(u32 hdev_obj)
* called drv_get_first_dev_extension() and zero or more * called drv_get_first_dev_extension() and zero or more
* drv_get_next_dev_extension(). * drv_get_next_dev_extension().
*/ */
u32 drv_get_next_dev_extension(u32 hDevExtension) u32 drv_get_next_dev_extension(u32 dev_extension)
{ {
u32 dw_dev_extension = 0; u32 dw_dev_extension = 0;
struct drv_object *pdrv_obj; struct drv_object *pdrv_obj;
DBC_REQUIRE(hDevExtension != 0); DBC_REQUIRE(dev_extension != 0);
if (DSP_SUCCEEDED(cfg_get_object((u32 *) &pdrv_obj, REG_DRV_OBJECT))) { if (DSP_SUCCEEDED(cfg_get_object((u32 *) &pdrv_obj, REG_DRV_OBJECT))) {
if ((pdrv_obj->dev_node_string != NULL) && if ((pdrv_obj->dev_node_string != NULL) &&
!LST_IS_EMPTY(pdrv_obj->dev_node_string)) { !LST_IS_EMPTY(pdrv_obj->dev_node_string)) {
dw_dev_extension = dw_dev_extension =
(u32) lst_next(pdrv_obj->dev_node_string, (u32) lst_next(pdrv_obj->dev_node_string,
(struct list_head *)hDevExtension); (struct list_head *)dev_extension);
} }
} }
...@@ -664,11 +665,11 @@ int drv_init(void) ...@@ -664,11 +665,11 @@ int drv_init(void)
* Purpose: * Purpose:
* Insert a DevObject into the list of Manager object. * Insert a DevObject into the list of Manager object.
*/ */
int drv_insert_dev_object(struct drv_object *hDRVObject, int drv_insert_dev_object(struct drv_object *driver_obj,
struct dev_object *hdev_obj) struct dev_object *hdev_obj)
{ {
int status = 0; int status = 0;
struct drv_object *pdrv_object = (struct drv_object *)hDRVObject; struct drv_object *pdrv_object = (struct drv_object *)driver_obj;
DBC_REQUIRE(refs > 0); DBC_REQUIRE(refs > 0);
DBC_REQUIRE(hdev_obj != NULL); DBC_REQUIRE(hdev_obj != NULL);
...@@ -689,11 +690,11 @@ int drv_insert_dev_object(struct drv_object *hDRVObject, ...@@ -689,11 +690,11 @@ int drv_insert_dev_object(struct drv_object *hDRVObject,
* Search for and remove a DeviceObject from the given list of DRV * Search for and remove a DeviceObject from the given list of DRV
* objects. * objects.
*/ */
int drv_remove_dev_object(struct drv_object *hDRVObject, int drv_remove_dev_object(struct drv_object *driver_obj,
struct dev_object *hdev_obj) struct dev_object *hdev_obj)
{ {
int status = -EPERM; int status = -EPERM;
struct drv_object *pdrv_object = (struct drv_object *)hDRVObject; struct drv_object *pdrv_object = (struct drv_object *)driver_obj;
struct list_head *cur_elem; struct list_head *cur_elem;
DBC_REQUIRE(refs > 0); DBC_REQUIRE(refs > 0);
......
...@@ -628,10 +628,10 @@ static int bridge_mmap(struct file *filp, struct vm_area_struct *vma) ...@@ -628,10 +628,10 @@ static int bridge_mmap(struct file *filp, struct vm_area_struct *vma)
/* To remove all process resources before removing the process from the /* To remove all process resources before removing the process from the
* process context list */ * process context list */
int drv_remove_all_resources(void *hPCtxt) int drv_remove_all_resources(void *process_ctxt)
{ {
int status = 0; int status = 0;
struct process_context *ctxt = (struct process_context *)hPCtxt; struct process_context *ctxt = (struct process_context *)process_ctxt;
drv_remove_all_strm_res_elements(ctxt); drv_remove_all_strm_res_elements(ctxt);
drv_remove_all_node_res_elements(ctxt); drv_remove_all_node_res_elements(ctxt);
drv_remove_all_dmm_res_elements(ctxt); drv_remove_all_dmm_res_elements(ctxt);
......
...@@ -303,11 +303,11 @@ void mgr_exit(void) ...@@ -303,11 +303,11 @@ void mgr_exit(void)
* ======== mgr_get_dcd_handle ======== * ======== mgr_get_dcd_handle ========
* Retrieves the MGR handle. Accessor Function. * Retrieves the MGR handle. Accessor Function.
*/ */
int mgr_get_dcd_handle(struct mgr_object *hMGRHandle, int mgr_get_dcd_handle(struct mgr_object *mgr_handle,
OUT u32 *phDCDHandle) OUT u32 *phDCDHandle)
{ {
int status = -EPERM; int status = -EPERM;
struct mgr_object *pmgr_obj = (struct mgr_object *)hMGRHandle; struct mgr_object *pmgr_obj = (struct mgr_object *)mgr_handle;
DBC_REQUIRE(refs > 0); DBC_REQUIRE(refs > 0);
DBC_REQUIRE(phDCDHandle != NULL); DBC_REQUIRE(phDCDHandle != NULL);
......
...@@ -774,14 +774,14 @@ int nldr_get_fxn_addr(struct nldr_nodeobject *nldr_node_obj, ...@@ -774,14 +774,14 @@ int nldr_get_fxn_addr(struct nldr_nodeobject *nldr_node_obj,
* ======== nldr_get_rmm_manager ======== * ======== nldr_get_rmm_manager ========
* Given a NLDR object, retrieve RMM Manager Handle * Given a NLDR object, retrieve RMM Manager Handle
*/ */
int nldr_get_rmm_manager(struct nldr_object *hNldrObject, int nldr_get_rmm_manager(struct nldr_object *nldr,
OUT struct rmm_target_obj **phRmmMgr) OUT struct rmm_target_obj **phRmmMgr)
{ {
int status = 0; int status = 0;
struct nldr_object *nldr_obj = hNldrObject; struct nldr_object *nldr_obj = nldr;
DBC_REQUIRE(phRmmMgr != NULL); DBC_REQUIRE(phRmmMgr != NULL);
if (hNldrObject) { if (nldr) {
*phRmmMgr = nldr_obj->rmm; *phRmmMgr = nldr_obj->rmm;
} else { } else {
*phRmmMgr = NULL; *phRmmMgr = NULL;
......
This diff is collapsed.
...@@ -1873,10 +1873,10 @@ static char **prepend_envp(char **new_envp, char **envp, s32 envp_elems, ...@@ -1873,10 +1873,10 @@ static char **prepend_envp(char **new_envp, char **envp, s32 envp_elems,
* Purpose: * Purpose:
* Notify the processor the events. * Notify the processor the events.
*/ */
int proc_notify_clients(void *hProc, u32 uEvents) int proc_notify_clients(void *proc, u32 uEvents)
{ {
int status = 0; int status = 0;
struct proc_object *p_proc_object = (struct proc_object *)hProc; struct proc_object *p_proc_object = (struct proc_object *)proc;
DBC_REQUIRE(p_proc_object); DBC_REQUIRE(p_proc_object);
DBC_REQUIRE(IS_VALID_PROC_EVENT(uEvents)); DBC_REQUIRE(IS_VALID_PROC_EVENT(uEvents));
...@@ -1897,10 +1897,10 @@ int proc_notify_clients(void *hProc, u32 uEvents) ...@@ -1897,10 +1897,10 @@ int proc_notify_clients(void *hProc, u32 uEvents)
* Notify the processor the events. This includes notifying all clients * Notify the processor the events. This includes notifying all clients
* attached to a particulat DSP. * attached to a particulat DSP.
*/ */
int proc_notify_all_clients(void *hProc, u32 uEvents) int proc_notify_all_clients(void *proc, u32 uEvents)
{ {
int status = 0; int status = 0;
struct proc_object *p_proc_object = (struct proc_object *)hProc; struct proc_object *p_proc_object = (struct proc_object *)proc;
DBC_REQUIRE(IS_VALID_PROC_EVENT(uEvents)); DBC_REQUIRE(IS_VALID_PROC_EVENT(uEvents));
DBC_REQUIRE(refs > 0); DBC_REQUIRE(refs > 0);
...@@ -1921,10 +1921,10 @@ int proc_notify_all_clients(void *hProc, u32 uEvents) ...@@ -1921,10 +1921,10 @@ int proc_notify_all_clients(void *hProc, u32 uEvents)
* Purpose: * Purpose:
* Retrieves the processor ID. * Retrieves the processor ID.
*/ */
int proc_get_processor_id(void *hProc, u32 * procID) int proc_get_processor_id(void *proc, u32 * procID)
{ {
int status = 0; int status = 0;
struct proc_object *p_proc_object = (struct proc_object *)hProc; struct proc_object *p_proc_object = (struct proc_object *)proc;
if (p_proc_object) if (p_proc_object)
*procID = p_proc_object->processor_id; *procID = p_proc_object->processor_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment