staging: tidspbridge: set11 remove hungarian from structs

hungarian notation will be removed from the elements inside
structures, the next varibles will be renamed:

Original:               Replacement:
hio_mgr                 io_mgr
dw_api_reg_base         api_reg_base
dw_api_clk_base         api_clk_base
ap_channel              channels
pio_requests            io_requests
pio_completions         io_completions
pndb_props              ndb_props
pndb_props_size         ndb_props_size
pu_num_nodes            num_nodes
pu_num_procs            num_procs
psz_path_name           sz_path_name
pu_index                index
pargs                   args
pu_allocated            allocated
psize                   size
hnotification           notification
pp_rsv_addr             rsv_addr
prsv_addr               rsv_addr
pmpu_addr               mpu_addr
pp_map_addr             map_addr
ul_map_attr             map_attr
undb_props_size         ndb_props_size

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Armando Uribe <x0095078@ti.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
This commit is contained in:
Rene Sapiens 2011-01-18 03:19:13 +00:00 committed by Omar Ramirez Luna
parent ee4317f78c
commit 121e8f9b9f
9 changed files with 109 additions and 109 deletions

View File

@ -85,7 +85,7 @@ struct msg_mgr {
/* Function interface to Bridge driver */ /* Function interface to Bridge driver */
struct bridge_drv_interface *intf_fxns; struct bridge_drv_interface *intf_fxns;
struct io_mgr *hio_mgr; /* IO manager */ struct io_mgr *iomgr; /* IO manager */
struct list_head queue_list; /* List of MSG_QUEUEs */ struct list_head queue_list; /* List of MSG_QUEUEs */
spinlock_t msg_mgr_lock; /* For critical sections */ spinlock_t msg_mgr_lock; /* For critical sections */
/* Signalled when MsgFrame is available */ /* Signalled when MsgFrame is available */

View File

@ -37,9 +37,9 @@
* which may cause timeouts and/or failure offunction sync_wait_on_event. * which may cause timeouts and/or failure offunction sync_wait_on_event.
* This invariant condition is: * This invariant condition is:
* *
* list_empty(&pchnl->pio_completions) ==> pchnl->sync_event is reset * list_empty(&pchnl->io_completions) ==> pchnl->sync_event is reset
* and * and
* !list_empty(&pchnl->pio_completions) ==> pchnl->sync_event is set. * !list_empty(&pchnl->io_completions) ==> pchnl->sync_event is set.
*/ */
#include <linux/types.h> #include <linux/types.h>
@ -164,7 +164,7 @@ func_cont:
if (CHNL_IS_OUTPUT(pchnl->chnl_mode)) { if (CHNL_IS_OUTPUT(pchnl->chnl_mode)) {
/* Check buffer size on output channels for fit. */ /* Check buffer size on output channels for fit. */
if (byte_size > io_buf_size( if (byte_size > io_buf_size(
pchnl->chnl_mgr_obj->hio_mgr)) { pchnl->chnl_mgr_obj->iomgr)) {
status = -EINVAL; status = -EINVAL;
goto out; goto out;
} }
@ -199,7 +199,7 @@ func_cont:
chnl_packet_obj->arg = dw_arg; chnl_packet_obj->arg = dw_arg;
chnl_packet_obj->status = (is_eos ? CHNL_IOCSTATEOS : chnl_packet_obj->status = (is_eos ? CHNL_IOCSTATEOS :
CHNL_IOCSTATCOMPLETE); CHNL_IOCSTATCOMPLETE);
list_add_tail(&chnl_packet_obj->link, &pchnl->pio_requests); list_add_tail(&chnl_packet_obj->link, &pchnl->io_requests);
pchnl->cio_reqs++; pchnl->cio_reqs++;
DBC_ASSERT(pchnl->cio_reqs <= pchnl->chnl_packets); DBC_ASSERT(pchnl->cio_reqs <= pchnl->chnl_packets);
/* /*
@ -212,7 +212,7 @@ func_cont:
/* Legacy DSM Processor-Copy */ /* Legacy DSM Processor-Copy */
DBC_ASSERT(pchnl->chnl_type == CHNL_PCPY); DBC_ASSERT(pchnl->chnl_type == CHNL_PCPY);
/* Request IO from the DSP */ /* Request IO from the DSP */
io_request_chnl(chnl_mgr_obj->hio_mgr, pchnl, io_request_chnl(chnl_mgr_obj->iomgr, pchnl,
(CHNL_IS_INPUT(pchnl->chnl_mode) ? IO_INPUT : (CHNL_IS_INPUT(pchnl->chnl_mode) ? IO_INPUT :
IO_OUTPUT), &mb_val); IO_OUTPUT), &mb_val);
sched_dpc = true; sched_dpc = true;
@ -224,7 +224,7 @@ out:
/* Schedule a DPC, to do the actual data transfer */ /* Schedule a DPC, to do the actual data transfer */
if (sched_dpc) if (sched_dpc)
iosm_schedule(chnl_mgr_obj->hio_mgr); iosm_schedule(chnl_mgr_obj->iomgr);
return status; return status;
} }
@ -260,7 +260,7 @@ int bridge_chnl_cancel_io(struct chnl_object *chnl_obj)
pchnl->state |= CHNL_STATECANCEL; pchnl->state |= CHNL_STATECANCEL;
if (list_empty(&pchnl->pio_requests)) { if (list_empty(&pchnl->io_requests)) {
spin_unlock_bh(&chnl_mgr_obj->chnl_mgr_lock); spin_unlock_bh(&chnl_mgr_obj->chnl_mgr_lock);
return 0; return 0;
} }
@ -268,7 +268,7 @@ int bridge_chnl_cancel_io(struct chnl_object *chnl_obj)
if (pchnl->chnl_type == CHNL_PCPY) { if (pchnl->chnl_type == CHNL_PCPY) {
/* Indicate we have no more buffers available for transfer: */ /* Indicate we have no more buffers available for transfer: */
if (CHNL_IS_INPUT(pchnl->chnl_mode)) { if (CHNL_IS_INPUT(pchnl->chnl_mode)) {
io_cancel_chnl(chnl_mgr_obj->hio_mgr, chnl_id); io_cancel_chnl(chnl_mgr_obj->iomgr, chnl_id);
} else { } else {
/* Record that we no longer have output buffers /* Record that we no longer have output buffers
* available: */ * available: */
@ -276,11 +276,11 @@ int bridge_chnl_cancel_io(struct chnl_object *chnl_obj)
} }
} }
/* Move all IOR's to IOC queue: */ /* Move all IOR's to IOC queue: */
list_for_each_entry_safe(chirp, tmp, &pchnl->pio_requests, link) { list_for_each_entry_safe(chirp, tmp, &pchnl->io_requests, link) {
list_del(&chirp->link); list_del(&chirp->link);
chirp->byte_size = 0; chirp->byte_size = 0;
chirp->status |= CHNL_IOCSTATCANCEL; chirp->status |= CHNL_IOCSTATCANCEL;
list_add_tail(&chirp->link, &pchnl->pio_completions); list_add_tail(&chirp->link, &pchnl->io_completions);
pchnl->cio_cs++; pchnl->cio_cs++;
pchnl->cio_reqs--; pchnl->cio_reqs--;
DBC_ASSERT(pchnl->cio_reqs >= 0); DBC_ASSERT(pchnl->cio_reqs >= 0);
@ -315,7 +315,7 @@ int bridge_chnl_close(struct chnl_object *chnl_obj)
DBC_ASSERT((pchnl->state & CHNL_STATECANCEL)); DBC_ASSERT((pchnl->state & CHNL_STATECANCEL));
/* Invalidate channel object: Protects from CHNL_GetIOCompletion() */ /* Invalidate channel object: Protects from CHNL_GetIOCompletion() */
/* Free the slot in the channel manager: */ /* Free the slot in the channel manager: */
pchnl->chnl_mgr_obj->ap_channel[pchnl->chnl_id] = NULL; pchnl->chnl_mgr_obj->channels[pchnl->chnl_id] = NULL;
spin_lock_bh(&pchnl->chnl_mgr_obj->chnl_mgr_lock); spin_lock_bh(&pchnl->chnl_mgr_obj->chnl_mgr_lock);
pchnl->chnl_mgr_obj->open_channels -= 1; pchnl->chnl_mgr_obj->open_channels -= 1;
spin_unlock_bh(&pchnl->chnl_mgr_obj->chnl_mgr_lock); spin_unlock_bh(&pchnl->chnl_mgr_obj->chnl_mgr_lock);
@ -331,10 +331,10 @@ int bridge_chnl_close(struct chnl_object *chnl_obj)
pchnl->sync_event = NULL; pchnl->sync_event = NULL;
} }
/* Free I/O request and I/O completion queues: */ /* Free I/O request and I/O completion queues: */
free_chirp_list(&pchnl->pio_completions); free_chirp_list(&pchnl->io_completions);
pchnl->cio_cs = 0; pchnl->cio_cs = 0;
free_chirp_list(&pchnl->pio_requests); free_chirp_list(&pchnl->io_requests);
pchnl->cio_reqs = 0; pchnl->cio_reqs = 0;
free_chirp_list(&pchnl->free_packets_list); free_chirp_list(&pchnl->free_packets_list);
@ -377,9 +377,9 @@ int bridge_chnl_create(struct chnl_mgr **channel_mgr,
DBC_ASSERT(mgr_attrts->max_channels == CHNL_MAXCHANNELS); DBC_ASSERT(mgr_attrts->max_channels == CHNL_MAXCHANNELS);
max_channels = CHNL_MAXCHANNELS + CHNL_MAXCHANNELS * CHNL_PCPY; max_channels = CHNL_MAXCHANNELS + CHNL_MAXCHANNELS * CHNL_PCPY;
/* Create array of channels */ /* Create array of channels */
chnl_mgr_obj->ap_channel = kzalloc(sizeof(struct chnl_object *) chnl_mgr_obj->channels = kzalloc(sizeof(struct chnl_object *)
* max_channels, GFP_KERNEL); * max_channels, GFP_KERNEL);
if (chnl_mgr_obj->ap_channel) { if (chnl_mgr_obj->channels) {
/* Initialize chnl_mgr object */ /* Initialize chnl_mgr object */
chnl_mgr_obj->type = CHNL_TYPESM; chnl_mgr_obj->type = CHNL_TYPESM;
chnl_mgr_obj->word_size = mgr_attrts->word_size; chnl_mgr_obj->word_size = mgr_attrts->word_size;
@ -423,7 +423,7 @@ int bridge_chnl_destroy(struct chnl_mgr *hchnl_mgr)
for (chnl_id = 0; chnl_id < chnl_mgr_obj->max_channels; for (chnl_id = 0; chnl_id < chnl_mgr_obj->max_channels;
chnl_id++) { chnl_id++) {
status = status =
bridge_chnl_close(chnl_mgr_obj->ap_channel bridge_chnl_close(chnl_mgr_obj->channels
[chnl_id]); [chnl_id]);
if (status) if (status)
dev_dbg(bridge, "%s: Error status 0x%x\n", dev_dbg(bridge, "%s: Error status 0x%x\n",
@ -431,7 +431,7 @@ int bridge_chnl_destroy(struct chnl_mgr *hchnl_mgr)
} }
/* Free channel manager object: */ /* Free channel manager object: */
kfree(chnl_mgr_obj->ap_channel); kfree(chnl_mgr_obj->channels);
/* Set hchnl_mgr to NULL in device object. */ /* Set hchnl_mgr to NULL in device object. */
dev_set_chnl_mgr(chnl_mgr_obj->dev_obj, NULL); dev_set_chnl_mgr(chnl_mgr_obj->dev_obj, NULL);
@ -475,7 +475,7 @@ int bridge_chnl_flush_io(struct chnl_object *chnl_obj, u32 timeout)
&& (pchnl->chnl_type == CHNL_PCPY)) { && (pchnl->chnl_type == CHNL_PCPY)) {
/* Wait for IO completions, up to the specified /* Wait for IO completions, up to the specified
* timeout: */ * timeout: */
while (!list_empty(&pchnl->pio_requests) && !status) { while (!list_empty(&pchnl->io_requests) && !status) {
status = bridge_chnl_get_ioc(chnl_obj, status = bridge_chnl_get_ioc(chnl_obj,
timeout, &chnl_ioc_obj); timeout, &chnl_ioc_obj);
if (status) if (status)
@ -491,7 +491,7 @@ int bridge_chnl_flush_io(struct chnl_object *chnl_obj, u32 timeout)
pchnl->state &= ~CHNL_STATECANCEL; pchnl->state &= ~CHNL_STATECANCEL;
} }
} }
DBC_ENSURE(status || list_empty(&pchnl->pio_requests)); DBC_ENSURE(status || list_empty(&pchnl->io_requests));
return status; return status;
} }
@ -551,7 +551,7 @@ int bridge_chnl_get_ioc(struct chnl_object *chnl_obj, u32 timeout,
if (!chan_ioc || !pchnl) { if (!chan_ioc || !pchnl) {
status = -EFAULT; status = -EFAULT;
} else if (timeout == CHNL_IOCNOWAIT) { } else if (timeout == CHNL_IOCNOWAIT) {
if (list_empty(&pchnl->pio_completions)) if (list_empty(&pchnl->io_completions))
status = -EREMOTEIO; status = -EREMOTEIO;
} }
@ -566,7 +566,7 @@ int bridge_chnl_get_ioc(struct chnl_object *chnl_obj, u32 timeout,
ioc.status = CHNL_IOCSTATCOMPLETE; ioc.status = CHNL_IOCSTATCOMPLETE;
if (timeout != if (timeout !=
CHNL_IOCNOWAIT && list_empty(&pchnl->pio_completions)) { CHNL_IOCNOWAIT && list_empty(&pchnl->io_completions)) {
if (timeout == CHNL_IOCINFINITE) if (timeout == CHNL_IOCINFINITE)
timeout = SYNC_INFINITE; timeout = SYNC_INFINITE;
@ -581,7 +581,7 @@ int bridge_chnl_get_ioc(struct chnl_object *chnl_obj, u32 timeout,
* fails due to unkown causes. */ * fails due to unkown causes. */
/* Even though Wait failed, there may be something in /* Even though Wait failed, there may be something in
* the Q: */ * the Q: */
if (list_empty(&pchnl->pio_completions)) { if (list_empty(&pchnl->io_completions)) {
ioc.status |= CHNL_IOCSTATCANCEL; ioc.status |= CHNL_IOCSTATCANCEL;
dequeue_ioc = false; dequeue_ioc = false;
} }
@ -592,8 +592,8 @@ int bridge_chnl_get_ioc(struct chnl_object *chnl_obj, u32 timeout,
omap_mbox_disable_irq(dev_ctxt->mbox, IRQ_RX); omap_mbox_disable_irq(dev_ctxt->mbox, IRQ_RX);
if (dequeue_ioc) { if (dequeue_ioc) {
/* Dequeue IOC and set chan_ioc; */ /* Dequeue IOC and set chan_ioc; */
DBC_ASSERT(!list_empty(&pchnl->pio_completions)); DBC_ASSERT(!list_empty(&pchnl->io_completions));
chnl_packet_obj = list_first_entry(&pchnl->pio_completions, chnl_packet_obj = list_first_entry(&pchnl->io_completions,
struct chnl_irp, link); struct chnl_irp, link);
list_del(&chnl_packet_obj->link); list_del(&chnl_packet_obj->link);
/* Update chan_ioc from channel state and chirp: */ /* Update chan_ioc from channel state and chirp: */
@ -619,7 +619,7 @@ int bridge_chnl_get_ioc(struct chnl_object *chnl_obj, u32 timeout,
ioc.buf_size = 0; ioc.buf_size = 0;
} }
/* Ensure invariant: If any IOC's are queued for this channel... */ /* Ensure invariant: If any IOC's are queued for this channel... */
if (!list_empty(&pchnl->pio_completions)) { if (!list_empty(&pchnl->io_completions)) {
/* Since DSPStream_Reclaim() does not take a timeout /* Since DSPStream_Reclaim() does not take a timeout
* parameter, we pass the stream's timeout value to * parameter, we pass the stream's timeout value to
* bridge_chnl_get_ioc. We cannot determine whether or not * bridge_chnl_get_ioc. We cannot determine whether or not
@ -685,7 +685,7 @@ int bridge_chnl_get_mgr_info(struct chnl_mgr *hchnl_mgr, u32 ch_id,
return -ECHRNG; return -ECHRNG;
/* Return the requested information: */ /* Return the requested information: */
mgr_info->chnl_obj = chnl_mgr_obj->ap_channel[ch_id]; mgr_info->chnl_obj = chnl_mgr_obj->channels[ch_id];
mgr_info->open_channels = chnl_mgr_obj->open_channels; mgr_info->open_channels = chnl_mgr_obj->open_channels;
mgr_info->type = chnl_mgr_obj->type; mgr_info->type = chnl_mgr_obj->type;
/* total # of chnls */ /* total # of chnls */
@ -752,7 +752,7 @@ int bridge_chnl_open(struct chnl_object **chnl,
if (ch_id != CHNL_PICKFREE) { if (ch_id != CHNL_PICKFREE) {
if (ch_id >= chnl_mgr_obj->max_channels) if (ch_id >= chnl_mgr_obj->max_channels)
return -ECHRNG; return -ECHRNG;
if (chnl_mgr_obj->ap_channel[ch_id] != NULL) if (chnl_mgr_obj->channels[ch_id] != NULL)
return -EALREADY; return -EALREADY;
} else { } else {
/* Check for free channel */ /* Check for free channel */
@ -777,8 +777,8 @@ int bridge_chnl_open(struct chnl_object **chnl,
if (status) if (status)
goto out_err; goto out_err;
INIT_LIST_HEAD(&pchnl->pio_requests); INIT_LIST_HEAD(&pchnl->io_requests);
INIT_LIST_HEAD(&pchnl->pio_completions); INIT_LIST_HEAD(&pchnl->io_completions);
pchnl->chnl_packets = pattrs->uio_reqs; pchnl->chnl_packets = pattrs->uio_reqs;
pchnl->cio_cs = 0; pchnl->cio_cs = 0;
@ -812,7 +812,7 @@ int bridge_chnl_open(struct chnl_object **chnl,
pchnl->chnl_type = CHNL_PCPY; pchnl->chnl_type = CHNL_PCPY;
/* Insert channel object in channel manager: */ /* Insert channel object in channel manager: */
chnl_mgr_obj->ap_channel[pchnl->chnl_id] = pchnl; chnl_mgr_obj->channels[pchnl->chnl_id] = pchnl;
spin_lock_bh(&chnl_mgr_obj->chnl_mgr_lock); spin_lock_bh(&chnl_mgr_obj->chnl_mgr_lock);
chnl_mgr_obj->open_channels++; chnl_mgr_obj->open_channels++;
spin_unlock_bh(&chnl_mgr_obj->chnl_mgr_lock); spin_unlock_bh(&chnl_mgr_obj->chnl_mgr_lock);
@ -824,8 +824,8 @@ int bridge_chnl_open(struct chnl_object **chnl,
out_err: out_err:
/* Free memory */ /* Free memory */
free_chirp_list(&pchnl->pio_completions); free_chirp_list(&pchnl->io_completions);
free_chirp_list(&pchnl->pio_requests); free_chirp_list(&pchnl->io_requests);
free_chirp_list(&pchnl->free_packets_list); free_chirp_list(&pchnl->free_packets_list);
if (sync_event) if (sync_event)
@ -928,7 +928,7 @@ static int search_free_channel(struct chnl_mgr *chnl_mgr_obj,
DBC_REQUIRE(chnl_mgr_obj); DBC_REQUIRE(chnl_mgr_obj);
for (i = 0; i < chnl_mgr_obj->max_channels; i++) { for (i = 0; i < chnl_mgr_obj->max_channels; i++) {
if (chnl_mgr_obj->ap_channel[i] == NULL) { if (chnl_mgr_obj->channels[i] == NULL) {
status = 0; status = 0;
*chnl = i; *chnl = i;
break; break;

View File

@ -181,7 +181,7 @@ int bridge_io_create(struct io_mgr **io_man,
*io_man = NULL; *io_man = NULL;
dev_get_chnl_mgr(hdev_obj, &hchnl_mgr); dev_get_chnl_mgr(hdev_obj, &hchnl_mgr);
if (!hchnl_mgr || hchnl_mgr->hio_mgr) if (!hchnl_mgr || hchnl_mgr->iomgr)
return -EFAULT; return -EFAULT;
/* /*
@ -228,7 +228,7 @@ int bridge_io_create(struct io_mgr **io_man,
} }
/* Return IO manager object to caller... */ /* Return IO manager object to caller... */
hchnl_mgr->hio_mgr = pio_mgr; hchnl_mgr->iomgr = pio_mgr;
*io_man = pio_mgr; *io_man = pio_mgr;
return 0; return 0;
@ -1090,16 +1090,16 @@ static void input_chnl(struct io_mgr *pio_mgr, struct chnl_object *pchnl,
DBC_ASSERT(chnl_id); DBC_ASSERT(chnl_id);
goto func_end; goto func_end;
} }
pchnl = chnl_mgr_obj->ap_channel[chnl_id]; pchnl = chnl_mgr_obj->channels[chnl_id];
if ((pchnl != NULL) && CHNL_IS_INPUT(pchnl->chnl_mode)) { if ((pchnl != NULL) && CHNL_IS_INPUT(pchnl->chnl_mode)) {
if ((pchnl->state & ~CHNL_STATEEOS) == CHNL_STATEREADY) { if ((pchnl->state & ~CHNL_STATEEOS) == CHNL_STATEREADY) {
/* Get the I/O request, and attempt a transfer */ /* Get the I/O request, and attempt a transfer */
if (!list_empty(&pchnl->pio_requests)) { if (!list_empty(&pchnl->io_requests)) {
if (!pchnl->cio_reqs) if (!pchnl->cio_reqs)
goto func_end; goto func_end;
chnl_packet_obj = list_first_entry( chnl_packet_obj = list_first_entry(
&pchnl->pio_requests, &pchnl->io_requests,
struct chnl_irp, link); struct chnl_irp, link);
list_del(&chnl_packet_obj->link); list_del(&chnl_packet_obj->link);
pchnl->cio_reqs--; pchnl->cio_reqs--;
@ -1140,7 +1140,7 @@ static void input_chnl(struct io_mgr *pio_mgr, struct chnl_object *pchnl,
DSP_STREAMDONE); DSP_STREAMDONE);
} }
/* Tell DSP if no more I/O buffers available */ /* Tell DSP if no more I/O buffers available */
if (list_empty(&pchnl->pio_requests)) if (list_empty(&pchnl->io_requests))
set_chnl_free(sm, pchnl->chnl_id); set_chnl_free(sm, pchnl->chnl_id);
clear_chnl = true; clear_chnl = true;
notify_client = true; notify_client = true;
@ -1292,9 +1292,9 @@ static void notify_chnl_complete(struct chnl_object *pchnl,
* signalled by the only IO completion list consumer: * signalled by the only IO completion list consumer:
* bridge_chnl_get_ioc(). * bridge_chnl_get_ioc().
*/ */
signal_event = list_empty(&pchnl->pio_completions); signal_event = list_empty(&pchnl->io_completions);
/* Enqueue the IO completion info for the client */ /* Enqueue the IO completion info for the client */
list_add_tail(&chnl_packet_obj->link, &pchnl->pio_completions); list_add_tail(&chnl_packet_obj->link, &pchnl->io_completions);
pchnl->cio_cs++; pchnl->cio_cs++;
if (pchnl->cio_cs > pchnl->chnl_packets) if (pchnl->cio_cs > pchnl->chnl_packets)
@ -1340,8 +1340,8 @@ static void output_chnl(struct io_mgr *pio_mgr, struct chnl_object *pchnl,
if (chnl_id == OUTPUTNOTREADY) if (chnl_id == OUTPUTNOTREADY)
goto func_end; goto func_end;
pchnl = chnl_mgr_obj->ap_channel[chnl_id]; pchnl = chnl_mgr_obj->channels[chnl_id];
if (!pchnl || list_empty(&pchnl->pio_requests)) { if (!pchnl || list_empty(&pchnl->io_requests)) {
/* Shouldn't get here */ /* Shouldn't get here */
goto func_end; goto func_end;
} }
@ -1350,14 +1350,14 @@ static void output_chnl(struct io_mgr *pio_mgr, struct chnl_object *pchnl,
goto func_end; goto func_end;
/* Get the I/O request, and attempt a transfer */ /* Get the I/O request, and attempt a transfer */
chnl_packet_obj = list_first_entry(&pchnl->pio_requests, chnl_packet_obj = list_first_entry(&pchnl->io_requests,
struct chnl_irp, link); struct chnl_irp, link);
list_del(&chnl_packet_obj->link); list_del(&chnl_packet_obj->link);
pchnl->cio_reqs--; pchnl->cio_reqs--;
/* Record fact that no more I/O buffers available */ /* Record fact that no more I/O buffers available */
if (list_empty(&pchnl->pio_requests)) if (list_empty(&pchnl->io_requests))
chnl_mgr_obj->output_mask &= ~(1 << chnl_id); chnl_mgr_obj->output_mask &= ~(1 << chnl_id);
/* Transfer buffer to DSP side */ /* Transfer buffer to DSP side */

View File

@ -69,7 +69,7 @@ int bridge_msg_create(struct msg_mgr **msg_man,
return -ENOMEM; return -ENOMEM;
msg_mgr_obj->on_exit = msg_callback; msg_mgr_obj->on_exit = msg_callback;
msg_mgr_obj->hio_mgr = hio_mgr; msg_mgr_obj->iomgr = hio_mgr;
/* List of MSG_QUEUEs */ /* List of MSG_QUEUEs */
INIT_LIST_HEAD(&msg_mgr_obj->queue_list); INIT_LIST_HEAD(&msg_mgr_obj->queue_list);
/* /*
@ -356,7 +356,7 @@ int bridge_msg_put(struct msg_queue *msg_queue_obj,
/* Release critical section before scheduling DPC */ /* Release critical section before scheduling DPC */
spin_unlock_bh(&hmsg_mgr->msg_mgr_lock); spin_unlock_bh(&hmsg_mgr->msg_mgr_lock);
/* Schedule a DPC, to do the actual data transfer: */ /* Schedule a DPC, to do the actual data transfer: */
iosm_schedule(hmsg_mgr->hio_mgr); iosm_schedule(hmsg_mgr->iomgr);
return 0; return 0;
} }
@ -410,7 +410,7 @@ int bridge_msg_put(struct msg_queue *msg_queue_obj,
* Schedule a DPC, to do the actual * Schedule a DPC, to do the actual
* data transfer. * data transfer.
*/ */
iosm_schedule(hmsg_mgr->hio_mgr); iosm_schedule(hmsg_mgr->iomgr);
msg_queue_obj->io_msg_pend--; msg_queue_obj->io_msg_pend--;
/* Reset event if there are still frames available */ /* Reset event if there are still frames available */

View File

@ -114,7 +114,7 @@ struct shm {
struct chnl_mgr { struct chnl_mgr {
/* Function interface to Bridge driver */ /* Function interface to Bridge driver */
struct bridge_drv_interface *intf_fxns; struct bridge_drv_interface *intf_fxns;
struct io_mgr *hio_mgr; /* IO manager */ struct io_mgr *iomgr; /* IO manager */
/* Device this board represents */ /* Device this board represents */
struct dev_object *dev_obj; struct dev_object *dev_obj;
@ -126,7 +126,7 @@ struct chnl_mgr {
u32 word_size; /* Size in bytes of DSP word */ u32 word_size; /* Size in bytes of DSP word */
u8 max_channels; /* Total number of channels */ u8 max_channels; /* Total number of channels */
u8 open_channels; /* Total number of open channels */ u8 open_channels; /* Total number of open channels */
struct chnl_object **ap_channel; /* Array of channels */ struct chnl_object **channels; /* Array of channels */
u8 type; /* Type of channel class library */ u8 type; /* Type of channel class library */
/* If no shm syms, return for CHNL_Open */ /* If no shm syms, return for CHNL_Open */
int chnl_open_status; int chnl_open_status;
@ -148,12 +148,12 @@ struct chnl_object {
struct sync_object *sync_event; struct sync_object *sync_event;
u32 process; /* Process which created this channel */ u32 process; /* Process which created this channel */
u32 cb_arg; /* Argument to use with callback */ u32 cb_arg; /* Argument to use with callback */
struct list_head pio_requests; /* List of IOR's to driver */ struct list_head io_requests; /* List of IOR's to driver */
s32 cio_cs; /* Number of IOC's in queue */ s32 cio_cs; /* Number of IOC's in queue */
s32 cio_reqs; /* Number of IORequests in queue */ s32 cio_reqs; /* Number of IORequests in queue */
s32 chnl_packets; /* Initial number of free Irps */ s32 chnl_packets; /* Initial number of free Irps */
/* List of IOC's from driver */ /* List of IOC's from driver */
struct list_head pio_completions; struct list_head io_completions;
struct list_head free_packets_list; /* List of free Irps */ struct list_head free_packets_list; /* List of free Irps */
struct ntfy_object *ntfy_obj; struct ntfy_object *ntfy_obj;
u32 bytes_moved; /* Total number of bytes transfered */ u32 bytes_moved; /* Total number of bytes transfered */

View File

@ -29,22 +29,22 @@ union trapped_args {
/* MGR Module */ /* MGR Module */
struct { struct {
u32 node_id; u32 node_id;
struct dsp_ndbprops __user *pndb_props; struct dsp_ndbprops __user *ndb_props;
u32 undb_props_size; u32 ndb_props_size;
u32 __user *pu_num_nodes; u32 __user *num_nodes;
} args_mgr_enumnode_info; } args_mgr_enumnode_info;
struct { struct {
u32 processor_id; u32 processor_id;
struct dsp_processorinfo __user *processor_info; struct dsp_processorinfo __user *processor_info;
u32 processor_info_size; u32 processor_info_size;
u32 __user *pu_num_procs; u32 __user *num_procs;
} args_mgr_enumproc_info; } args_mgr_enumproc_info;
struct { struct {
struct dsp_uuid *uuid_obj; struct dsp_uuid *uuid_obj;
enum dsp_dcdobjtype obj_type; enum dsp_dcdobjtype obj_type;
char *psz_path_name; char *sz_path_name;
} args_mgr_registerobject; } args_mgr_registerobject;
struct { struct {
@ -55,7 +55,7 @@ union trapped_args {
struct { struct {
struct dsp_notification __user *__user *anotifications; struct dsp_notification __user *__user *anotifications;
u32 count; u32 count;
u32 __user *pu_index; u32 __user *index;
u32 timeout; u32 timeout;
} args_mgr_wait; } args_mgr_wait;
@ -69,7 +69,7 @@ union trapped_args {
struct { struct {
void *processor; void *processor;
u32 cmd; u32 cmd;
struct dsp_cbdata __user *pargs; struct dsp_cbdata __user *args;
} args_proc_ctrl; } args_proc_ctrl;
struct { struct {
@ -80,8 +80,8 @@ union trapped_args {
void *processor; void *processor;
void *__user *node_tab; void *__user *node_tab;
u32 node_tab_size; u32 node_tab_size;
u32 __user *pu_num_nodes; u32 __user *num_nodes;
u32 __user *pu_allocated; u32 __user *allocated;
} args_proc_enumnode_info; } args_proc_enumnode_info;
struct { struct {
@ -100,7 +100,7 @@ union trapped_args {
struct { struct {
void *processor; void *processor;
u8 __user *buf; u8 __user *buf;
u8 __user *psize; u8 __user *size;
u32 max_size; u32 max_size;
} args_proc_gettrace; } args_proc_gettrace;
@ -115,28 +115,28 @@ union trapped_args {
void *processor; void *processor;
u32 event_mask; u32 event_mask;
u32 notify_type; u32 notify_type;
struct dsp_notification __user *hnotification; struct dsp_notification __user *notification;
} args_proc_register_notify; } args_proc_register_notify;
struct { struct {
void *processor; void *processor;
u32 size; u32 size;
void *__user *pp_rsv_addr; void *__user *rsv_addr;
} args_proc_rsvmem; } args_proc_rsvmem;
struct { struct {
void *processor; void *processor;
u32 size; u32 size;
void *prsv_addr; void *rsv_addr;
} args_proc_unrsvmem; } args_proc_unrsvmem;
struct { struct {
void *processor; void *processor;
void *pmpu_addr; void *mpu_addr;
u32 size; u32 size;
void *req_addr; void *req_addr;
void *__user *pp_map_addr; void *__user *map_addr;
u32 ul_map_attr; u32 map_attr;
} args_proc_mapmem; } args_proc_mapmem;
struct { struct {
@ -147,21 +147,21 @@ union trapped_args {
struct { struct {
void *processor; void *processor;
void *pmpu_addr; void *mpu_addr;
u32 size; u32 size;
u32 dir; u32 dir;
} args_proc_dma; } args_proc_dma;
struct { struct {
void *processor; void *processor;
void *pmpu_addr; void *mpu_addr;
u32 size; u32 size;
u32 ul_flags; u32 ul_flags;
} args_proc_flushmemory; } args_proc_flushmemory;
struct { struct {
void *processor; void *processor;
void *pmpu_addr; void *mpu_addr;
u32 size; u32 size;
} args_proc_invalidatememory; } args_proc_invalidatememory;
@ -169,7 +169,7 @@ union trapped_args {
struct { struct {
void *processor; void *processor;
struct dsp_uuid __user *node_id_ptr; struct dsp_uuid __user *node_id_ptr;
struct dsp_cbdata __user *pargs; struct dsp_cbdata __user *args;
struct dsp_nodeattrin __user *attr_in; struct dsp_nodeattrin __user *attr_in;
void *__user *ph_node; void *__user *ph_node;
} args_node_allocate; } args_node_allocate;
@ -235,7 +235,7 @@ union trapped_args {
void *node; void *node;
u32 event_mask; u32 event_mask;
u32 notify_type; u32 notify_type;
struct dsp_notification __user *hnotification; struct dsp_notification __user *notification;
} args_node_registernotify; } args_node_registernotify;
struct { struct {
@ -316,7 +316,7 @@ union trapped_args {
void *stream; void *stream;
u32 event_mask; u32 event_mask;
u32 notify_type; u32 notify_type;
struct dsp_notification __user *hnotification; struct dsp_notification __user *notification;
} args_strm_registernotify; } args_strm_registernotify;
struct { struct {

View File

@ -69,7 +69,7 @@ struct dev_object {
struct chnl_mgr *chnl_mgr; /* Channel manager. */ struct chnl_mgr *chnl_mgr; /* Channel manager. */
struct deh_mgr *deh_mgr; /* DEH manager. */ struct deh_mgr *deh_mgr; /* DEH manager. */
struct msg_mgr *msg_mgr; /* Message manager. */ struct msg_mgr *msg_mgr; /* Message manager. */
struct io_mgr *hio_mgr; /* IO manager (CHNL, msg_ctrl) */ struct io_mgr *iomgr; /* IO manager (CHNL, msg_ctrl) */
struct cmm_object *cmm_mgr; /* SM memory manager. */ struct cmm_object *cmm_mgr; /* SM memory manager. */
struct dmm_object *dmm_mgr; /* Dynamic memory manager. */ struct dmm_object *dmm_mgr; /* Dynamic memory manager. */
u32 word_size; /* DSP word size: quick access. */ u32 word_size; /* DSP word size: quick access. */
@ -235,7 +235,7 @@ int dev_create_device(struct dev_object **device_obj,
(struct dev_object *)dev_obj, NULL); (struct dev_object *)dev_obj, NULL);
/* Only create IO manager if we have a channel manager */ /* Only create IO manager if we have a channel manager */
if (!status && dev_obj->chnl_mgr) { if (!status && dev_obj->chnl_mgr) {
status = io_create(&dev_obj->hio_mgr, dev_obj, status = io_create(&dev_obj->iomgr, dev_obj,
&io_mgr_attrs); &io_mgr_attrs);
} }
/* Only create DEH manager if we have an IO manager */ /* Only create DEH manager if we have an IO manager */
@ -351,9 +351,9 @@ int dev_destroy_device(struct dev_object *hdev_obj)
} }
/* Free the io, channel, and message managers for this board: */ /* Free the io, channel, and message managers for this board: */
if (dev_obj->hio_mgr) { if (dev_obj->iomgr) {
io_destroy(dev_obj->hio_mgr); io_destroy(dev_obj->iomgr);
dev_obj->hio_mgr = NULL; dev_obj->iomgr = NULL;
} }
if (dev_obj->chnl_mgr) { if (dev_obj->chnl_mgr) {
chnl_destroy(dev_obj->chnl_mgr); chnl_destroy(dev_obj->chnl_mgr);
@ -605,7 +605,7 @@ int dev_get_io_mgr(struct dev_object *hdev_obj,
DBC_REQUIRE(hdev_obj); DBC_REQUIRE(hdev_obj);
if (hdev_obj) { if (hdev_obj) {
*io_man = hdev_obj->hio_mgr; *io_man = hdev_obj->iomgr;
} else { } else {
*io_man = NULL; *io_man = NULL;
status = -EFAULT; status = -EFAULT;

View File

@ -416,7 +416,7 @@ u32 mgrwrap_enum_node_info(union trapped_args *args, void *pr_ctxt)
u8 *pndb_props; u8 *pndb_props;
u32 num_nodes; u32 num_nodes;
int status = 0; int status = 0;
u32 size = args->args_mgr_enumnode_info.undb_props_size; u32 size = args->args_mgr_enumnode_info.ndb_props_size;
if (size < sizeof(struct dsp_ndbprops)) if (size < sizeof(struct dsp_ndbprops))
return -EINVAL; return -EINVAL;
@ -431,9 +431,9 @@ u32 mgrwrap_enum_node_info(union trapped_args *args, void *pr_ctxt)
(struct dsp_ndbprops *)pndb_props, size, (struct dsp_ndbprops *)pndb_props, size,
&num_nodes); &num_nodes);
} }
CP_TO_USR(args->args_mgr_enumnode_info.pndb_props, pndb_props, status, CP_TO_USR(args->args_mgr_enumnode_info.ndb_props, pndb_props, status,
size); size);
CP_TO_USR(args->args_mgr_enumnode_info.pu_num_nodes, &num_nodes, status, CP_TO_USR(args->args_mgr_enumnode_info.num_nodes, &num_nodes, status,
1); 1);
kfree(pndb_props); kfree(pndb_props);
@ -466,7 +466,7 @@ u32 mgrwrap_enum_proc_info(union trapped_args *args, void *pr_ctxt)
} }
CP_TO_USR(args->args_mgr_enumproc_info.processor_info, processor_info, CP_TO_USR(args->args_mgr_enumproc_info.processor_info, processor_info,
status, size); status, size);
CP_TO_USR(args->args_mgr_enumproc_info.pu_num_procs, &num_procs, CP_TO_USR(args->args_mgr_enumproc_info.num_procs, &num_procs,
status, 1); status, 1);
kfree(processor_info); kfree(processor_info);
@ -490,7 +490,7 @@ u32 mgrwrap_register_object(union trapped_args *args, void *pr_ctxt)
goto func_end; goto func_end;
/* path_size is increased by 1 to accommodate NULL */ /* path_size is increased by 1 to accommodate NULL */
path_size = strlen_user((char *) path_size = strlen_user((char *)
args->args_mgr_registerobject.psz_path_name) + args->args_mgr_registerobject.sz_path_name) +
1; 1;
psz_path_name = kmalloc(path_size, GFP_KERNEL); psz_path_name = kmalloc(path_size, GFP_KERNEL);
if (!psz_path_name) { if (!psz_path_name) {
@ -499,7 +499,7 @@ u32 mgrwrap_register_object(union trapped_args *args, void *pr_ctxt)
} }
ret = strncpy_from_user(psz_path_name, ret = strncpy_from_user(psz_path_name,
(char *)args->args_mgr_registerobject. (char *)args->args_mgr_registerobject.
psz_path_name, path_size); sz_path_name, path_size);
if (!ret) { if (!ret) {
status = -EFAULT; status = -EFAULT;
goto func_end; goto func_end;
@ -571,7 +571,7 @@ u32 mgrwrap_wait_for_bridge_events(union trapped_args *args, void *pr_ctxt)
args->args_mgr_wait. args->args_mgr_wait.
timeout); timeout);
} }
CP_TO_USR(args->args_mgr_wait.pu_index, &index, status, 1); CP_TO_USR(args->args_mgr_wait.index, &index, status, 1);
return status; return status;
} }
@ -617,7 +617,7 @@ func_end:
u32 procwrap_ctrl(union trapped_args *args, void *pr_ctxt) u32 procwrap_ctrl(union trapped_args *args, void *pr_ctxt)
{ {
u32 cb_data_size, __user * psize = (u32 __user *) u32 cb_data_size, __user * psize = (u32 __user *)
args->args_proc_ctrl.pargs; args->args_proc_ctrl.args;
u8 *pargs = NULL; u8 *pargs = NULL;
int status = 0; int status = 0;
void *hprocessor = ((struct process_context *)pr_ctxt)->processor; void *hprocessor = ((struct process_context *)pr_ctxt)->processor;
@ -634,7 +634,7 @@ u32 procwrap_ctrl(union trapped_args *args, void *pr_ctxt)
goto func_end; goto func_end;
} }
CP_FM_USR(pargs, args->args_proc_ctrl.pargs, status, CP_FM_USR(pargs, args->args_proc_ctrl.args, status,
cb_data_size); cb_data_size);
} }
if (!status) { if (!status) {
@ -643,7 +643,7 @@ u32 procwrap_ctrl(union trapped_args *args, void *pr_ctxt)
(struct dsp_cbdata *)pargs); (struct dsp_cbdata *)pargs);
} }
/* CP_TO_USR(args->args_proc_ctrl.pargs, pargs, status, 1); */ /* CP_TO_USR(args->args_proc_ctrl.args, pargs, status, 1); */
kfree(pargs); kfree(pargs);
func_end: func_end:
return status; return status;
@ -679,9 +679,9 @@ u32 procwrap_enum_node_info(union trapped_args *args, void *pr_ctxt)
&num_nodes, &alloc_cnt); &num_nodes, &alloc_cnt);
CP_TO_USR(args->args_proc_enumnode_info.node_tab, node_tab, status, CP_TO_USR(args->args_proc_enumnode_info.node_tab, node_tab, status,
num_nodes); num_nodes);
CP_TO_USR(args->args_proc_enumnode_info.pu_num_nodes, &num_nodes, CP_TO_USR(args->args_proc_enumnode_info.num_nodes, &num_nodes,
status, 1); status, 1);
CP_TO_USR(args->args_proc_enumnode_info.pu_allocated, &alloc_cnt, CP_TO_USR(args->args_proc_enumnode_info.allocated, &alloc_cnt,
status, 1); status, 1);
return status; return status;
} }
@ -694,7 +694,7 @@ u32 procwrap_end_dma(union trapped_args *args, void *pr_ctxt)
return -EINVAL; return -EINVAL;
status = proc_end_dma(pr_ctxt, status = proc_end_dma(pr_ctxt,
args->args_proc_dma.pmpu_addr, args->args_proc_dma.mpu_addr,
args->args_proc_dma.size, args->args_proc_dma.size,
args->args_proc_dma.dir); args->args_proc_dma.dir);
return status; return status;
@ -708,7 +708,7 @@ u32 procwrap_begin_dma(union trapped_args *args, void *pr_ctxt)
return -EINVAL; return -EINVAL;
status = proc_begin_dma(pr_ctxt, status = proc_begin_dma(pr_ctxt,
args->args_proc_dma.pmpu_addr, args->args_proc_dma.mpu_addr,
args->args_proc_dma.size, args->args_proc_dma.size,
args->args_proc_dma.dir); args->args_proc_dma.dir);
return status; return status;
@ -726,7 +726,7 @@ u32 procwrap_flush_memory(union trapped_args *args, void *pr_ctxt)
return -EINVAL; return -EINVAL;
status = proc_flush_memory(pr_ctxt, status = proc_flush_memory(pr_ctxt,
args->args_proc_flushmemory.pmpu_addr, args->args_proc_flushmemory.mpu_addr,
args->args_proc_flushmemory.size, args->args_proc_flushmemory.size,
args->args_proc_flushmemory.ul_flags); args->args_proc_flushmemory.ul_flags);
return status; return status;
@ -741,7 +741,7 @@ u32 procwrap_invalidate_memory(union trapped_args *args, void *pr_ctxt)
status = status =
proc_invalidate_memory(pr_ctxt, proc_invalidate_memory(pr_ctxt,
args->args_proc_invalidatememory.pmpu_addr, args->args_proc_invalidatememory.mpu_addr,
args->args_proc_invalidatememory.size); args->args_proc_invalidatememory.size);
return status; return status;
} }
@ -954,12 +954,12 @@ u32 procwrap_map(union trapped_args *args, void *pr_ctxt)
return -EINVAL; return -EINVAL;
status = proc_map(args->args_proc_mapmem.processor, status = proc_map(args->args_proc_mapmem.processor,
args->args_proc_mapmem.pmpu_addr, args->args_proc_mapmem.mpu_addr,
args->args_proc_mapmem.size, args->args_proc_mapmem.size,
args->args_proc_mapmem.req_addr, &map_addr, args->args_proc_mapmem.req_addr, &map_addr,
args->args_proc_mapmem.ul_map_attr, pr_ctxt); args->args_proc_mapmem.map_attr, pr_ctxt);
if (!status) { if (!status) {
if (put_user(map_addr, args->args_proc_mapmem.pp_map_addr)) { if (put_user(map_addr, args->args_proc_mapmem.map_addr)) {
status = -EINVAL; status = -EINVAL;
proc_un_map(hprocessor, map_addr, pr_ctxt); proc_un_map(hprocessor, map_addr, pr_ctxt);
} }
@ -985,7 +985,7 @@ u32 procwrap_register_notify(union trapped_args *args, void *pr_ctxt)
args->args_proc_register_notify.event_mask, args->args_proc_register_notify.event_mask,
args->args_proc_register_notify.notify_type, args->args_proc_register_notify.notify_type,
&notification); &notification);
CP_TO_USR(args->args_proc_register_notify.hnotification, &notification, CP_TO_USR(args->args_proc_register_notify.notification, &notification,
status, 1); status, 1);
return status; return status;
} }
@ -1007,7 +1007,7 @@ u32 procwrap_reserve_memory(union trapped_args *args, void *pr_ctxt)
args->args_proc_rsvmem.size, &prsv_addr, args->args_proc_rsvmem.size, &prsv_addr,
pr_ctxt); pr_ctxt);
if (!status) { if (!status) {
if (put_user(prsv_addr, args->args_proc_rsvmem.pp_rsv_addr)) { if (put_user(prsv_addr, args->args_proc_rsvmem.rsv_addr)) {
status = -EINVAL; status = -EINVAL;
proc_un_reserve_memory(args->args_proc_rsvmem. proc_un_reserve_memory(args->args_proc_rsvmem.
processor, prsv_addr, pr_ctxt); processor, prsv_addr, pr_ctxt);
@ -1048,7 +1048,7 @@ u32 procwrap_un_reserve_memory(union trapped_args *args, void *pr_ctxt)
void *hprocessor = ((struct process_context *)pr_ctxt)->processor; void *hprocessor = ((struct process_context *)pr_ctxt)->processor;
status = proc_un_reserve_memory(hprocessor, status = proc_un_reserve_memory(hprocessor,
args->args_proc_unrsvmem.prsv_addr, args->args_proc_unrsvmem.rsv_addr,
pr_ctxt); pr_ctxt);
return status; return status;
} }
@ -1087,7 +1087,7 @@ u32 nodewrap_allocate(union trapped_args *args, void *pr_ctxt)
int status = 0; int status = 0;
struct dsp_uuid node_uuid; struct dsp_uuid node_uuid;
u32 cb_data_size = 0; u32 cb_data_size = 0;
u32 __user *psize = (u32 __user *) args->args_node_allocate.pargs; u32 __user *psize = (u32 __user *) args->args_node_allocate.args;
u8 *pargs = NULL; u8 *pargs = NULL;
struct dsp_nodeattrin proc_attr_in, *attr_in = NULL; struct dsp_nodeattrin proc_attr_in, *attr_in = NULL;
struct node_res_object *node_res; struct node_res_object *node_res;
@ -1106,7 +1106,7 @@ u32 nodewrap_allocate(union trapped_args *args, void *pr_ctxt)
status = -ENOMEM; status = -ENOMEM;
} }
CP_FM_USR(pargs, args->args_node_allocate.pargs, status, CP_FM_USR(pargs, args->args_node_allocate.args, status,
cb_data_size); cb_data_size);
} }
CP_FM_USR(&node_uuid, args->args_node_allocate.node_id_ptr, status, 1); CP_FM_USR(&node_uuid, args->args_node_allocate.node_id_ptr, status, 1);
@ -1449,14 +1449,14 @@ u32 nodewrap_register_notify(union trapped_args *args, void *pr_ctxt)
if (!args->args_proc_register_notify.event_mask) if (!args->args_proc_register_notify.event_mask)
CP_FM_USR(&notification, CP_FM_USR(&notification,
args->args_proc_register_notify.hnotification, args->args_proc_register_notify.notification,
status, 1); status, 1);
status = node_register_notify(node_res->node, status = node_register_notify(node_res->node,
args->args_node_registernotify.event_mask, args->args_node_registernotify.event_mask,
args->args_node_registernotify. args->args_node_registernotify.
notify_type, &notification); notify_type, &notification);
CP_TO_USR(args->args_node_registernotify.hnotification, &notification, CP_TO_USR(args->args_node_registernotify.notification, &notification,
status, 1); status, 1);
return status; return status;
} }
@ -1815,7 +1815,7 @@ u32 strmwrap_register_notify(union trapped_args *args, void *pr_ctxt)
args->args_strm_registernotify.event_mask, args->args_strm_registernotify.event_mask,
args->args_strm_registernotify. args->args_strm_registernotify.
notify_type, &notification); notify_type, &notification);
CP_TO_USR(args->args_strm_registernotify.hnotification, &notification, CP_TO_USR(args->args_strm_registernotify.notification, &notification,
status, 1); status, 1);
return status; return status;

View File

@ -207,7 +207,7 @@ struct node_object {
struct node_createargs create_args; /* Args for node create func */ struct node_createargs create_args; /* Args for node create func */
nodeenv node_env; /* Environment returned by RMS */ nodeenv node_env; /* Environment returned by RMS */
struct dcd_genericobj dcd_props; /* Node properties from DCD */ struct dcd_genericobj dcd_props; /* Node properties from DCD */
struct dsp_cbdata *pargs; /* Optional args to pass to node */ struct dsp_cbdata *args; /* Optional args to pass to node */
struct ntfy_object *ntfy_obj; /* Manages registered notifications */ struct ntfy_object *ntfy_obj; /* Manages registered notifications */
char *str_dev_name; /* device name, if device node */ char *str_dev_name; /* device name, if device node */
struct sync_object *sync_done; /* Synchronize node_terminate */ struct sync_object *sync_done; /* Synchronize node_terminate */