diff options
18 files changed, 146 insertions, 146 deletions
diff --git a/drivers/staging/tidspbridge/core/_tiomap.h b/drivers/staging/tidspbridge/core/_tiomap.h index 1159a500f49..80bc4755df1 100644 --- a/drivers/staging/tidspbridge/core/_tiomap.h +++ b/drivers/staging/tidspbridge/core/_tiomap.h | |||
@@ -320,22 +320,22 @@ static const struct bpwr_clk_t bpwr_clks[] = { | |||
320 | /* This Bridge driver's device context: */ | 320 | /* This Bridge driver's device context: */ |
321 | struct bridge_dev_context { | 321 | struct bridge_dev_context { |
322 | struct dev_object *hdev_obj; /* Handle to Bridge device object. */ | 322 | struct dev_object *hdev_obj; /* Handle to Bridge device object. */ |
323 | u32 dw_dsp_base_addr; /* Arm's API to DSP virt base addr */ | 323 | u32 dsp_base_addr; /* Arm's API to DSP virt base addr */ |
324 | /* | 324 | /* |
325 | * DSP External memory prog address as seen virtually by the OS on | 325 | * DSP External memory prog address as seen virtually by the OS on |
326 | * the host side. | 326 | * the host side. |
327 | */ | 327 | */ |
328 | u32 dw_dsp_ext_base_addr; /* See the comment above */ | 328 | u32 dsp_ext_base_addr; /* See the comment above */ |
329 | u32 dw_api_reg_base; /* API mem map'd registers */ | 329 | u32 api_reg_base; /* API mem map'd registers */ |
330 | void __iomem *dw_dsp_mmu_base; /* DSP MMU Mapped registers */ | 330 | void __iomem *dw_dsp_mmu_base; /* DSP MMU Mapped registers */ |
331 | u32 dw_api_clk_base; /* CLK Registers */ | 331 | u32 api_clk_base; /* CLK Registers */ |
332 | u32 dw_dsp_clk_m2_base; /* DSP Clock Module m2 */ | 332 | u32 dsp_clk_m2_base; /* DSP Clock Module m2 */ |
333 | u32 dw_public_rhea; /* Pub Rhea */ | 333 | u32 dw_public_rhea; /* Pub Rhea */ |
334 | u32 dw_int_addr; /* MB INTR reg */ | 334 | u32 dw_int_addr; /* MB INTR reg */ |
335 | u32 dw_tc_endianism; /* TC Endianism register */ | 335 | u32 dw_tc_endianism; /* TC Endianism register */ |
336 | u32 dw_test_base; /* DSP MMU Mapped registers */ | 336 | u32 dw_test_base; /* DSP MMU Mapped registers */ |
337 | u32 dw_self_loop; /* Pointer to the selfloop */ | 337 | u32 dw_self_loop; /* Pointer to the selfloop */ |
338 | u32 dw_dsp_start_add; /* API Boot vector */ | 338 | u32 dsp_start_add; /* API Boot vector */ |
339 | u32 dw_internal_size; /* Internal memory size */ | 339 | u32 dw_internal_size; /* Internal memory size */ |
340 | 340 | ||
341 | struct omap_mbox *mbox; /* Mail box handle */ | 341 | struct omap_mbox *mbox; /* Mail box handle */ |
@@ -348,7 +348,7 @@ struct bridge_dev_context { | |||
348 | */ | 348 | */ |
349 | /* DMMU TLB entries */ | 349 | /* DMMU TLB entries */ |
350 | struct bridge_ioctl_extproc atlb_entry[BRDIOCTL_NUMOFMMUTLB]; | 350 | struct bridge_ioctl_extproc atlb_entry[BRDIOCTL_NUMOFMMUTLB]; |
351 | u32 dw_brd_state; /* Last known board state. */ | 351 | u32 brd_state; /* Last known board state. */ |
352 | 352 | ||
353 | /* TC Settings */ | 353 | /* TC Settings */ |
354 | bool tc_word_swap_on; /* Traffic Controller Word Swap */ | 354 | bool tc_word_swap_on; /* Traffic Controller Word Swap */ |
diff --git a/drivers/staging/tidspbridge/core/chnl_sm.c b/drivers/staging/tidspbridge/core/chnl_sm.c index 2d06bb0989a..a5226272875 100644 --- a/drivers/staging/tidspbridge/core/chnl_sm.c +++ b/drivers/staging/tidspbridge/core/chnl_sm.c | |||
@@ -196,7 +196,7 @@ func_cont: | |||
196 | chnl_packet_obj->byte_size = byte_size; | 196 | chnl_packet_obj->byte_size = byte_size; |
197 | chnl_packet_obj->buf_size = buf_size; | 197 | chnl_packet_obj->buf_size = buf_size; |
198 | /* Only valid for output channel */ | 198 | /* Only valid for output channel */ |
199 | chnl_packet_obj->dw_arg = dw_arg; | 199 | chnl_packet_obj->arg = dw_arg; |
200 | chnl_packet_obj->status = (is_eos ? CHNL_IOCSTATEOS : | 200 | chnl_packet_obj->status = (is_eos ? CHNL_IOCSTATEOS : |
201 | CHNL_IOCSTATCOMPLETE); | 201 | CHNL_IOCSTATCOMPLETE); |
202 | list_add_tail(&chnl_packet_obj->link, &pchnl->pio_requests); | 202 | list_add_tail(&chnl_packet_obj->link, &pchnl->pio_requests); |
@@ -607,7 +607,7 @@ int bridge_chnl_get_ioc(struct chnl_object *chnl_obj, u32 timeout, | |||
607 | ioc.pbuf = chnl_packet_obj->host_user_buf; | 607 | ioc.pbuf = chnl_packet_obj->host_user_buf; |
608 | ioc.byte_size = chnl_packet_obj->byte_size; | 608 | ioc.byte_size = chnl_packet_obj->byte_size; |
609 | ioc.buf_size = chnl_packet_obj->buf_size; | 609 | ioc.buf_size = chnl_packet_obj->buf_size; |
610 | ioc.dw_arg = chnl_packet_obj->dw_arg; | 610 | ioc.arg = chnl_packet_obj->arg; |
611 | ioc.status |= chnl_packet_obj->status; | 611 | ioc.status |= chnl_packet_obj->status; |
612 | /* Place the used chirp on the free list: */ | 612 | /* Place the used chirp on the free list: */ |
613 | list_add_tail(&chnl_packet_obj->link, | 613 | list_add_tail(&chnl_packet_obj->link, |
@@ -615,7 +615,7 @@ int bridge_chnl_get_ioc(struct chnl_object *chnl_obj, u32 timeout, | |||
615 | } else { | 615 | } else { |
616 | ioc.pbuf = NULL; | 616 | ioc.pbuf = NULL; |
617 | ioc.byte_size = 0; | 617 | ioc.byte_size = 0; |
618 | ioc.dw_arg = 0; | 618 | ioc.arg = 0; |
619 | ioc.buf_size = 0; | 619 | ioc.buf_size = 0; |
620 | } | 620 | } |
621 | /* Ensure invariant: If any IOC's are queued for this channel... */ | 621 | /* Ensure invariant: If any IOC's are queued for this channel... */ |
diff --git a/drivers/staging/tidspbridge/core/io_sm.c b/drivers/staging/tidspbridge/core/io_sm.c index d4b9e141f3d..913c7681d80 100644 --- a/drivers/staging/tidspbridge/core/io_sm.c +++ b/drivers/staging/tidspbridge/core/io_sm.c | |||
@@ -1113,7 +1113,7 @@ static void input_chnl(struct io_mgr *pio_mgr, struct chnl_object *pchnl, | |||
1113 | pio_mgr->input, bytes); | 1113 | pio_mgr->input, bytes); |
1114 | pchnl->bytes_moved += bytes; | 1114 | pchnl->bytes_moved += bytes; |
1115 | chnl_packet_obj->byte_size = bytes; | 1115 | chnl_packet_obj->byte_size = bytes; |
1116 | chnl_packet_obj->dw_arg = dw_arg; | 1116 | chnl_packet_obj->arg = dw_arg; |
1117 | chnl_packet_obj->status = CHNL_IOCSTATCOMPLETE; | 1117 | chnl_packet_obj->status = CHNL_IOCSTATCOMPLETE; |
1118 | 1118 | ||
1119 | if (bytes == 0) { | 1119 | if (bytes == 0) { |
@@ -1200,14 +1200,14 @@ static void input_msg(struct io_mgr *pio_mgr, struct msg_mgr *hmsg_mgr) | |||
1200 | msg_input = pio_mgr->msg_input; | 1200 | msg_input = pio_mgr->msg_input; |
1201 | for (i = 0; i < num_msgs; i++) { | 1201 | for (i = 0; i < num_msgs; i++) { |
1202 | /* Read the next message */ | 1202 | /* Read the next message */ |
1203 | addr = (u32) &(((struct msg_dspmsg *)msg_input)->msg.dw_cmd); | 1203 | addr = (u32) &(((struct msg_dspmsg *)msg_input)->msg.cmd); |
1204 | msg.msg.dw_cmd = | 1204 | msg.msg.cmd = |
1205 | read_ext32_bit_dsp_data(pio_mgr->hbridge_context, addr); | 1205 | read_ext32_bit_dsp_data(pio_mgr->hbridge_context, addr); |
1206 | addr = (u32) &(((struct msg_dspmsg *)msg_input)->msg.dw_arg1); | 1206 | addr = (u32) &(((struct msg_dspmsg *)msg_input)->msg.arg1); |
1207 | msg.msg.dw_arg1 = | 1207 | msg.msg.arg1 = |
1208 | read_ext32_bit_dsp_data(pio_mgr->hbridge_context, addr); | 1208 | read_ext32_bit_dsp_data(pio_mgr->hbridge_context, addr); |
1209 | addr = (u32) &(((struct msg_dspmsg *)msg_input)->msg.dw_arg2); | 1209 | addr = (u32) &(((struct msg_dspmsg *)msg_input)->msg.arg2); |
1210 | msg.msg.dw_arg2 = | 1210 | msg.msg.arg2 = |
1211 | read_ext32_bit_dsp_data(pio_mgr->hbridge_context, addr); | 1211 | read_ext32_bit_dsp_data(pio_mgr->hbridge_context, addr); |
1212 | addr = (u32) &(((struct msg_dspmsg *)msg_input)->msgq_id); | 1212 | addr = (u32) &(((struct msg_dspmsg *)msg_input)->msgq_id); |
1213 | msg.msgq_id = | 1213 | msg.msgq_id = |
@@ -1215,9 +1215,9 @@ static void input_msg(struct io_mgr *pio_mgr, struct msg_mgr *hmsg_mgr) | |||
1215 | msg_input += sizeof(struct msg_dspmsg); | 1215 | msg_input += sizeof(struct msg_dspmsg); |
1216 | 1216 | ||
1217 | /* Determine which queue to put the message in */ | 1217 | /* Determine which queue to put the message in */ |
1218 | dev_dbg(bridge, "input msg: dw_cmd=0x%x dw_arg1=0x%x " | 1218 | dev_dbg(bridge, "input msg: cmd=0x%x arg1=0x%x " |
1219 | "dw_arg2=0x%x msgq_id=0x%x\n", msg.msg.dw_cmd, | 1219 | "arg2=0x%x msgq_id=0x%x\n", msg.msg.cmd, |
1220 | msg.msg.dw_arg1, msg.msg.dw_arg2, msg.msgq_id); | 1220 | msg.msg.arg1, msg.msg.arg2, msg.msgq_id); |
1221 | /* | 1221 | /* |
1222 | * Interrupt may occur before shared memory and message | 1222 | * Interrupt may occur before shared memory and message |
1223 | * input locations have been set up. If all nodes were | 1223 | * input locations have been set up. If all nodes were |
@@ -1228,14 +1228,14 @@ static void input_msg(struct io_mgr *pio_mgr, struct msg_mgr *hmsg_mgr) | |||
1228 | if (msg.msgq_id != msg_queue_obj->msgq_id) | 1228 | if (msg.msgq_id != msg_queue_obj->msgq_id) |
1229 | continue; | 1229 | continue; |
1230 | /* Found it */ | 1230 | /* Found it */ |
1231 | if (msg.msg.dw_cmd == RMS_EXITACK) { | 1231 | if (msg.msg.cmd == RMS_EXITACK) { |
1232 | /* | 1232 | /* |
1233 | * Call the node exit notification. | 1233 | * Call the node exit notification. |
1234 | * The exit message does not get | 1234 | * The exit message does not get |
1235 | * queued. | 1235 | * queued. |
1236 | */ | 1236 | */ |
1237 | (*hmsg_mgr->on_exit)(msg_queue_obj->arg, | 1237 | (*hmsg_mgr->on_exit)(msg_queue_obj->arg, |
1238 | msg.msg.dw_arg1); | 1238 | msg.msg.arg1); |
1239 | break; | 1239 | break; |
1240 | } | 1240 | } |
1241 | /* | 1241 | /* |
@@ -1367,7 +1367,7 @@ static void output_chnl(struct io_mgr *pio_mgr, struct chnl_object *pchnl, | |||
1367 | chnl_packet_obj->byte_size); | 1367 | chnl_packet_obj->byte_size); |
1368 | pchnl->bytes_moved += chnl_packet_obj->byte_size; | 1368 | pchnl->bytes_moved += chnl_packet_obj->byte_size; |
1369 | /* Write all 32 bits of arg */ | 1369 | /* Write all 32 bits of arg */ |
1370 | sm->arg = chnl_packet_obj->dw_arg; | 1370 | sm->arg = chnl_packet_obj->arg; |
1371 | #if _CHNL_WORDSIZE == 2 | 1371 | #if _CHNL_WORDSIZE == 2 |
1372 | /* Access can be different SM access word size (e.g. 16/32 bit words) */ | 1372 | /* Access can be different SM access word size (e.g. 16/32 bit words) */ |
1373 | sm->output_id = (u16) chnl_id; | 1373 | sm->output_id = (u16) chnl_id; |
@@ -1430,16 +1430,16 @@ static void output_msg(struct io_mgr *pio_mgr, struct msg_mgr *hmsg_mgr) | |||
1430 | addr = (u32) &msg_output->msgq_id; | 1430 | addr = (u32) &msg_output->msgq_id; |
1431 | write_ext32_bit_dsp_data(pio_mgr->hbridge_context, addr, val); | 1431 | write_ext32_bit_dsp_data(pio_mgr->hbridge_context, addr, val); |
1432 | 1432 | ||
1433 | val = (pmsg->msg_data).msg.dw_cmd; | 1433 | val = (pmsg->msg_data).msg.cmd; |
1434 | addr = (u32) &msg_output->msg.dw_cmd; | 1434 | addr = (u32) &msg_output->msg.cmd; |
1435 | write_ext32_bit_dsp_data(pio_mgr->hbridge_context, addr, val); | 1435 | write_ext32_bit_dsp_data(pio_mgr->hbridge_context, addr, val); |
1436 | 1436 | ||
1437 | val = (pmsg->msg_data).msg.dw_arg1; | 1437 | val = (pmsg->msg_data).msg.arg1; |
1438 | addr = (u32) &msg_output->msg.dw_arg1; | 1438 | addr = (u32) &msg_output->msg.arg1; |
1439 | write_ext32_bit_dsp_data(pio_mgr->hbridge_context, addr, val); | 1439 | write_ext32_bit_dsp_data(pio_mgr->hbridge_context, addr, val); |
1440 | 1440 | ||
1441 | val = (pmsg->msg_data).msg.dw_arg2; | 1441 | val = (pmsg->msg_data).msg.arg2; |
1442 | addr = (u32) &msg_output->msg.dw_arg2; | 1442 | addr = (u32) &msg_output->msg.arg2; |
1443 | write_ext32_bit_dsp_data(pio_mgr->hbridge_context, addr, val); | 1443 | write_ext32_bit_dsp_data(pio_mgr->hbridge_context, addr, val); |
1444 | 1444 | ||
1445 | msg_output++; | 1445 | msg_output++; |
diff --git a/drivers/staging/tidspbridge/core/tiomap3430.c b/drivers/staging/tidspbridge/core/tiomap3430.c index ec713ed7441..ce0556d026c 100644 --- a/drivers/staging/tidspbridge/core/tiomap3430.c +++ b/drivers/staging/tidspbridge/core/tiomap3430.c | |||
@@ -229,8 +229,8 @@ static struct notifier_block dsp_mbox_notifier = { | |||
229 | 229 | ||
230 | static inline void flush_all(struct bridge_dev_context *dev_context) | 230 | static inline void flush_all(struct bridge_dev_context *dev_context) |
231 | { | 231 | { |
232 | if (dev_context->dw_brd_state == BRD_DSP_HIBERNATION || | 232 | if (dev_context->brd_state == BRD_DSP_HIBERNATION || |
233 | dev_context->dw_brd_state == BRD_HIBERNATION) | 233 | dev_context->brd_state == BRD_HIBERNATION) |
234 | wake_dsp(dev_context, NULL); | 234 | wake_dsp(dev_context, NULL); |
235 | 235 | ||
236 | hw_mmu_tlb_flush_all(dev_context->dw_dsp_mmu_base); | 236 | hw_mmu_tlb_flush_all(dev_context->dw_dsp_mmu_base); |
@@ -306,7 +306,7 @@ static int bridge_brd_monitor(struct bridge_dev_context *dev_ctxt) | |||
306 | dsp_clk_enable(DSP_CLK_IVA2); | 306 | dsp_clk_enable(DSP_CLK_IVA2); |
307 | 307 | ||
308 | /* set the device state to IDLE */ | 308 | /* set the device state to IDLE */ |
309 | dev_context->dw_brd_state = BRD_IDLE; | 309 | dev_context->brd_state = BRD_IDLE; |
310 | 310 | ||
311 | return 0; | 311 | return 0; |
312 | } | 312 | } |
@@ -323,16 +323,16 @@ static int bridge_brd_read(struct bridge_dev_context *dev_ctxt, | |||
323 | int status = 0; | 323 | int status = 0; |
324 | struct bridge_dev_context *dev_context = dev_ctxt; | 324 | struct bridge_dev_context *dev_context = dev_ctxt; |
325 | u32 offset; | 325 | u32 offset; |
326 | u32 dsp_base_addr = dev_ctxt->dw_dsp_base_addr; | 326 | u32 dsp_base_addr = dev_ctxt->dsp_base_addr; |
327 | 327 | ||
328 | if (dsp_addr < dev_context->dw_dsp_start_add) { | 328 | if (dsp_addr < dev_context->dsp_start_add) { |
329 | status = -EPERM; | 329 | status = -EPERM; |
330 | return status; | 330 | return status; |
331 | } | 331 | } |
332 | /* change here to account for the 3 bands of the DSP internal memory */ | 332 | /* change here to account for the 3 bands of the DSP internal memory */ |
333 | if ((dsp_addr - dev_context->dw_dsp_start_add) < | 333 | if ((dsp_addr - dev_context->dsp_start_add) < |
334 | dev_context->dw_internal_size) { | 334 | dev_context->dw_internal_size) { |
335 | offset = dsp_addr - dev_context->dw_dsp_start_add; | 335 | offset = dsp_addr - dev_context->dsp_start_add; |
336 | } else { | 336 | } else { |
337 | status = read_ext_dsp_data(dev_context, host_buff, dsp_addr, | 337 | status = read_ext_dsp_data(dev_context, host_buff, dsp_addr, |
338 | ul_num_bytes, mem_type); | 338 | ul_num_bytes, mem_type); |
@@ -354,7 +354,7 @@ static int bridge_brd_set_state(struct bridge_dev_context *dev_ctxt, | |||
354 | int status = 0; | 354 | int status = 0; |
355 | struct bridge_dev_context *dev_context = dev_ctxt; | 355 | struct bridge_dev_context *dev_context = dev_ctxt; |
356 | 356 | ||
357 | dev_context->dw_brd_state = brd_state; | 357 | dev_context->brd_state = brd_state; |
358 | return status; | 358 | return status; |
359 | } | 359 | } |
360 | 360 | ||
@@ -616,10 +616,10 @@ static int bridge_brd_start(struct bridge_dev_context *dev_ctxt, | |||
616 | __raw_writel(0XCAFECAFE, dw_sync_addr); | 616 | __raw_writel(0XCAFECAFE, dw_sync_addr); |
617 | 617 | ||
618 | /* update board state */ | 618 | /* update board state */ |
619 | dev_context->dw_brd_state = BRD_RUNNING; | 619 | dev_context->brd_state = BRD_RUNNING; |
620 | /* (void)chnlsm_enable_interrupt(dev_context); */ | 620 | /* (void)chnlsm_enable_interrupt(dev_context); */ |
621 | } else { | 621 | } else { |
622 | dev_context->dw_brd_state = BRD_UNKNOWN; | 622 | dev_context->brd_state = BRD_UNKNOWN; |
623 | } | 623 | } |
624 | } | 624 | } |
625 | return status; | 625 | return status; |
@@ -642,7 +642,7 @@ static int bridge_brd_stop(struct bridge_dev_context *dev_ctxt) | |||
642 | struct omap_dsp_platform_data *pdata = | 642 | struct omap_dsp_platform_data *pdata = |
643 | omap_dspbridge_dev->dev.platform_data; | 643 | omap_dspbridge_dev->dev.platform_data; |
644 | 644 | ||
645 | if (dev_context->dw_brd_state == BRD_STOPPED) | 645 | if (dev_context->brd_state == BRD_STOPPED) |
646 | return status; | 646 | return status; |
647 | 647 | ||
648 | /* as per TRM, it is advised to first drive the IVA2 to 'Standby' mode, | 648 | /* as per TRM, it is advised to first drive the IVA2 to 'Standby' mode, |
@@ -667,10 +667,10 @@ static int bridge_brd_stop(struct bridge_dev_context *dev_ctxt) | |||
667 | udelay(10); | 667 | udelay(10); |
668 | /* Release the Ext Base virtual Address as the next DSP Program | 668 | /* Release the Ext Base virtual Address as the next DSP Program |
669 | * may have a different load address */ | 669 | * may have a different load address */ |
670 | if (dev_context->dw_dsp_ext_base_addr) | 670 | if (dev_context->dsp_ext_base_addr) |
671 | dev_context->dw_dsp_ext_base_addr = 0; | 671 | dev_context->dsp_ext_base_addr = 0; |
672 | 672 | ||
673 | dev_context->dw_brd_state = BRD_STOPPED; /* update board state */ | 673 | dev_context->brd_state = BRD_STOPPED; /* update board state */ |
674 | 674 | ||
675 | dsp_wdt_enable(false); | 675 | dsp_wdt_enable(false); |
676 | 676 | ||
@@ -706,7 +706,7 @@ static int bridge_brd_status(struct bridge_dev_context *dev_ctxt, | |||
706 | int *board_state) | 706 | int *board_state) |
707 | { | 707 | { |
708 | struct bridge_dev_context *dev_context = dev_ctxt; | 708 | struct bridge_dev_context *dev_context = dev_ctxt; |
709 | *board_state = dev_context->dw_brd_state; | 709 | *board_state = dev_context->brd_state; |
710 | return 0; | 710 | return 0; |
711 | } | 711 | } |
712 | 712 | ||
@@ -721,11 +721,11 @@ static int bridge_brd_write(struct bridge_dev_context *dev_ctxt, | |||
721 | int status = 0; | 721 | int status = 0; |
722 | struct bridge_dev_context *dev_context = dev_ctxt; | 722 | struct bridge_dev_context *dev_context = dev_ctxt; |
723 | 723 | ||
724 | if (dsp_addr < dev_context->dw_dsp_start_add) { | 724 | if (dsp_addr < dev_context->dsp_start_add) { |
725 | status = -EPERM; | 725 | status = -EPERM; |
726 | return status; | 726 | return status; |
727 | } | 727 | } |
728 | if ((dsp_addr - dev_context->dw_dsp_start_add) < | 728 | if ((dsp_addr - dev_context->dsp_start_add) < |
729 | dev_context->dw_internal_size) { | 729 | dev_context->dw_internal_size) { |
730 | status = write_dsp_data(dev_ctxt, host_buff, dsp_addr, | 730 | status = write_dsp_data(dev_ctxt, host_buff, dsp_addr, |
731 | ul_num_bytes, mem_type); | 731 | ul_num_bytes, mem_type); |
@@ -764,7 +764,7 @@ static int bridge_dev_create(struct bridge_dev_context | |||
764 | goto func_end; | 764 | goto func_end; |
765 | } | 765 | } |
766 | 766 | ||
767 | dev_context->dw_dsp_start_add = (u32) OMAP_GEM_BASE; | 767 | dev_context->dsp_start_add = (u32) OMAP_GEM_BASE; |
768 | dev_context->dw_self_loop = (u32) NULL; | 768 | dev_context->dw_self_loop = (u32) NULL; |
769 | dev_context->dsp_per_clks = 0; | 769 | dev_context->dsp_per_clks = 0; |
770 | dev_context->dw_internal_size = OMAP_DSP_SIZE; | 770 | dev_context->dw_internal_size = OMAP_DSP_SIZE; |
@@ -774,14 +774,14 @@ static int bridge_dev_create(struct bridge_dev_context | |||
774 | dev_context->atlb_entry[entry_ndx].ul_gpp_pa = | 774 | dev_context->atlb_entry[entry_ndx].ul_gpp_pa = |
775 | dev_context->atlb_entry[entry_ndx].ul_dsp_va = 0; | 775 | dev_context->atlb_entry[entry_ndx].ul_dsp_va = 0; |
776 | } | 776 | } |
777 | dev_context->dw_dsp_base_addr = (u32) MEM_LINEAR_ADDRESS((void *) | 777 | dev_context->dsp_base_addr = (u32) MEM_LINEAR_ADDRESS((void *) |
778 | (config_param-> | 778 | (config_param-> |
779 | dw_mem_base | 779 | dw_mem_base |
780 | [3]), | 780 | [3]), |
781 | config_param-> | 781 | config_param-> |
782 | dw_mem_length | 782 | dw_mem_length |
783 | [3]); | 783 | [3]); |
784 | if (!dev_context->dw_dsp_base_addr) | 784 | if (!dev_context->dsp_base_addr) |
785 | status = -EPERM; | 785 | status = -EPERM; |
786 | 786 | ||
787 | pt_attrs = kzalloc(sizeof(struct pg_table_attrs), GFP_KERNEL); | 787 | pt_attrs = kzalloc(sizeof(struct pg_table_attrs), GFP_KERNEL); |
@@ -874,7 +874,7 @@ static int bridge_dev_create(struct bridge_dev_context | |||
874 | if (!status) { | 874 | if (!status) { |
875 | dev_context->hdev_obj = hdev_obj; | 875 | dev_context->hdev_obj = hdev_obj; |
876 | /* Store current board state. */ | 876 | /* Store current board state. */ |
877 | dev_context->dw_brd_state = BRD_UNKNOWN; | 877 | dev_context->brd_state = BRD_UNKNOWN; |
878 | dev_context->resources = resources; | 878 | dev_context->resources = resources; |
879 | dsp_clk_enable(DSP_CLK_IVA2); | 879 | dsp_clk_enable(DSP_CLK_IVA2); |
880 | bridge_brd_stop(dev_context); | 880 | bridge_brd_stop(dev_context); |
@@ -1032,8 +1032,8 @@ static int bridge_dev_destroy(struct bridge_dev_context *dev_ctxt) | |||
1032 | iounmap(host_res->dw_per_base); | 1032 | iounmap(host_res->dw_per_base); |
1033 | if (host_res->dw_per_pm_base) | 1033 | if (host_res->dw_per_pm_base) |
1034 | iounmap((void *)host_res->dw_per_pm_base); | 1034 | iounmap((void *)host_res->dw_per_pm_base); |
1035 | if (host_res->dw_core_pm_base) | 1035 | if (host_res->core_pm_base) |
1036 | iounmap((void *)host_res->dw_core_pm_base); | 1036 | iounmap((void *)host_res->core_pm_base); |
1037 | 1037 | ||
1038 | host_res->dw_mem_base[0] = (u32) NULL; | 1038 | host_res->dw_mem_base[0] = (u32) NULL; |
1039 | host_res->dw_mem_base[2] = (u32) NULL; | 1039 | host_res->dw_mem_base[2] = (u32) NULL; |
@@ -1070,7 +1070,7 @@ static int bridge_brd_mem_copy(struct bridge_dev_context *dev_ctxt, | |||
1070 | status = read_ext_dsp_data(dev_ctxt, host_buf, src_addr, | 1070 | status = read_ext_dsp_data(dev_ctxt, host_buf, src_addr, |
1071 | copy_bytes, mem_type); | 1071 | copy_bytes, mem_type); |
1072 | if (!status) { | 1072 | if (!status) { |
1073 | if (dest_addr < (dev_context->dw_dsp_start_add + | 1073 | if (dest_addr < (dev_context->dsp_start_add + |
1074 | dev_context->dw_internal_size)) { | 1074 | dev_context->dw_internal_size)) { |
1075 | /* Write to Internal memory */ | 1075 | /* Write to Internal memory */ |
1076 | status = write_dsp_data(dev_ctxt, host_buf, | 1076 | status = write_dsp_data(dev_ctxt, host_buf, |
@@ -1104,7 +1104,7 @@ static int bridge_brd_mem_write(struct bridge_dev_context *dev_ctxt, | |||
1104 | while (ul_remain_bytes > 0 && !status) { | 1104 | while (ul_remain_bytes > 0 && !status) { |
1105 | ul_bytes = | 1105 | ul_bytes = |
1106 | ul_remain_bytes > BUFFERSIZE ? BUFFERSIZE : ul_remain_bytes; | 1106 | ul_remain_bytes > BUFFERSIZE ? BUFFERSIZE : ul_remain_bytes; |
1107 | if (dsp_addr < (dev_context->dw_dsp_start_add + | 1107 | if (dsp_addr < (dev_context->dsp_start_add + |
1108 | dev_context->dw_internal_size)) { | 1108 | dev_context->dw_internal_size)) { |
1109 | status = | 1109 | status = |
1110 | write_dsp_data(dev_ctxt, host_buff, dsp_addr, | 1110 | write_dsp_data(dev_ctxt, host_buff, dsp_addr, |
diff --git a/drivers/staging/tidspbridge/core/tiomap3430_pwr.c b/drivers/staging/tidspbridge/core/tiomap3430_pwr.c index 8e2b50ff3dd..fff27d4392d 100644 --- a/drivers/staging/tidspbridge/core/tiomap3430_pwr.c +++ b/drivers/staging/tidspbridge/core/tiomap3430_pwr.c | |||
@@ -118,7 +118,7 @@ int handle_hibernation_from_dsp(struct bridge_dev_context *dev_context) | |||
118 | 118 | ||
119 | if (!status) { | 119 | if (!status) { |
120 | /* Update the Bridger Driver state */ | 120 | /* Update the Bridger Driver state */ |
121 | dev_context->dw_brd_state = BRD_DSP_HIBERNATION; | 121 | dev_context->brd_state = BRD_DSP_HIBERNATION; |
122 | #ifdef CONFIG_TIDSPBRIDGE_DVFS | 122 | #ifdef CONFIG_TIDSPBRIDGE_DVFS |
123 | status = | 123 | status = |
124 | dev_get_io_mgr(dev_context->hdev_obj, &hio_mgr); | 124 | dev_get_io_mgr(dev_context->hdev_obj, &hio_mgr); |
@@ -163,7 +163,7 @@ int sleep_dsp(struct bridge_dev_context *dev_context, u32 dw_cmd, | |||
163 | if ((dw_cmd != PWR_DEEPSLEEP) && (dw_cmd != PWR_EMERGENCYDEEPSLEEP)) | 163 | if ((dw_cmd != PWR_DEEPSLEEP) && (dw_cmd != PWR_EMERGENCYDEEPSLEEP)) |
164 | return -EINVAL; | 164 | return -EINVAL; |
165 | 165 | ||
166 | switch (dev_context->dw_brd_state) { | 166 | switch (dev_context->brd_state) { |
167 | case BRD_RUNNING: | 167 | case BRD_RUNNING: |
168 | omap_mbox_save_ctx(dev_context->mbox); | 168 | omap_mbox_save_ctx(dev_context->mbox); |
169 | if (dsp_test_sleepstate == PWRDM_POWER_OFF) { | 169 | if (dsp_test_sleepstate == PWRDM_POWER_OFF) { |
@@ -223,9 +223,9 @@ int sleep_dsp(struct bridge_dev_context *dev_context, u32 dw_cmd, | |||
223 | } else { | 223 | } else { |
224 | /* Update the Bridger Driver state */ | 224 | /* Update the Bridger Driver state */ |
225 | if (dsp_test_sleepstate == PWRDM_POWER_OFF) | 225 | if (dsp_test_sleepstate == PWRDM_POWER_OFF) |
226 | dev_context->dw_brd_state = BRD_HIBERNATION; | 226 | dev_context->brd_state = BRD_HIBERNATION; |
227 | else | 227 | else |
228 | dev_context->dw_brd_state = BRD_RETENTION; | 228 | dev_context->brd_state = BRD_RETENTION; |
229 | 229 | ||
230 | /* Disable wdt on hibernation. */ | 230 | /* Disable wdt on hibernation. */ |
231 | dsp_wdt_enable(false); | 231 | dsp_wdt_enable(false); |
@@ -258,8 +258,8 @@ int wake_dsp(struct bridge_dev_context *dev_context, void *pargs) | |||
258 | #ifdef CONFIG_PM | 258 | #ifdef CONFIG_PM |
259 | 259 | ||
260 | /* Check the board state, if it is not 'SLEEP' then return */ | 260 | /* Check the board state, if it is not 'SLEEP' then return */ |
261 | if (dev_context->dw_brd_state == BRD_RUNNING || | 261 | if (dev_context->brd_state == BRD_RUNNING || |
262 | dev_context->dw_brd_state == BRD_STOPPED) { | 262 | dev_context->brd_state == BRD_STOPPED) { |
263 | /* The Device is in 'RET' or 'OFF' state and Bridge state is not | 263 | /* The Device is in 'RET' or 'OFF' state and Bridge state is not |
264 | * 'SLEEP', this means state inconsistency, so return */ | 264 | * 'SLEEP', this means state inconsistency, so return */ |
265 | return 0; | 265 | return 0; |
@@ -269,7 +269,7 @@ int wake_dsp(struct bridge_dev_context *dev_context, void *pargs) | |||
269 | sm_interrupt_dsp(dev_context, MBX_PM_DSPWAKEUP); | 269 | sm_interrupt_dsp(dev_context, MBX_PM_DSPWAKEUP); |
270 | 270 | ||
271 | /* Set the device state to RUNNIG */ | 271 | /* Set the device state to RUNNIG */ |
272 | dev_context->dw_brd_state = BRD_RUNNING; | 272 | dev_context->brd_state = BRD_RUNNING; |
273 | #endif /* CONFIG_PM */ | 273 | #endif /* CONFIG_PM */ |
274 | return status; | 274 | return status; |
275 | } | 275 | } |
@@ -351,12 +351,12 @@ int pre_scale_dsp(struct bridge_dev_context *dev_context, void *pargs) | |||
351 | 351 | ||
352 | dev_dbg(bridge, "OPP: %s voltage_domain = %x, level = 0x%x\n", | 352 | dev_dbg(bridge, "OPP: %s voltage_domain = %x, level = 0x%x\n", |
353 | __func__, voltage_domain, level); | 353 | __func__, voltage_domain, level); |
354 | if ((dev_context->dw_brd_state == BRD_HIBERNATION) || | 354 | if ((dev_context->brd_state == BRD_HIBERNATION) || |
355 | (dev_context->dw_brd_state == BRD_RETENTION) || | 355 | (dev_context->brd_state == BRD_RETENTION) || |
356 | (dev_context->dw_brd_state == BRD_DSP_HIBERNATION)) { | 356 | (dev_context->brd_state == BRD_DSP_HIBERNATION)) { |
357 | dev_dbg(bridge, "OPP: %s IVA in sleep. No message to DSP\n"); | 357 | dev_dbg(bridge, "OPP: %s IVA in sleep. No message to DSP\n"); |
358 | return 0; | 358 | return 0; |
359 | } else if ((dev_context->dw_brd_state == BRD_RUNNING)) { | 359 | } else if ((dev_context->brd_state == BRD_RUNNING)) { |
360 | /* Send a prenotificatio to DSP */ | 360 | /* Send a prenotificatio to DSP */ |
361 | dev_dbg(bridge, "OPP: %s sent notification to DSP\n", __func__); | 361 | dev_dbg(bridge, "OPP: %s sent notification to DSP\n", __func__); |
362 | sm_interrupt_dsp(dev_context, MBX_PM_SETPOINT_PRENOTIFY); | 362 | sm_interrupt_dsp(dev_context, MBX_PM_SETPOINT_PRENOTIFY); |
@@ -390,14 +390,14 @@ int post_scale_dsp(struct bridge_dev_context *dev_context, | |||
390 | level = *((u32 *) pargs + 1); | 390 | level = *((u32 *) pargs + 1); |
391 | dev_dbg(bridge, "OPP: %s voltage_domain = %x, level = 0x%x\n", | 391 | dev_dbg(bridge, "OPP: %s voltage_domain = %x, level = 0x%x\n", |
392 | __func__, voltage_domain, level); | 392 | __func__, voltage_domain, level); |
393 | if ((dev_context->dw_brd_state == BRD_HIBERNATION) || | 393 | if ((dev_context->brd_state == BRD_HIBERNATION) || |
394 | (dev_context->dw_brd_state == BRD_RETENTION) || | 394 | (dev_context->brd_state == BRD_RETENTION) || |
395 | (dev_context->dw_brd_state == BRD_DSP_HIBERNATION)) { | 395 | (dev_context->brd_state == BRD_DSP_HIBERNATION)) { |
396 | /* Update the OPP value in shared memory */ | 396 | /* Update the OPP value in shared memory */ |
397 | io_sh_msetting(hio_mgr, SHM_CURROPP, &level); | 397 | io_sh_msetting(hio_mgr, SHM_CURROPP, &level); |
398 | dev_dbg(bridge, "OPP: %s IVA in sleep. Wrote to shm\n", | 398 | dev_dbg(bridge, "OPP: %s IVA in sleep. Wrote to shm\n", |
399 | __func__); | 399 | __func__); |
400 | } else if ((dev_context->dw_brd_state == BRD_RUNNING)) { | 400 | } else if ((dev_context->brd_state == BRD_RUNNING)) { |
401 | /* Update the OPP value in shared memory */ | 401 | /* Update the OPP value in shared memory */ |
402 | io_sh_msetting(hio_mgr, SHM_CURROPP, &level); | 402 | io_sh_msetting(hio_mgr, SHM_CURROPP, &level); |
403 | /* Send a post notification to DSP */ | 403 | /* Send a post notification to DSP */ |
@@ -486,8 +486,8 @@ void dsp_clk_wakeup_event_ctrl(u32 clock_id, bool enable) | |||
486 | writel(mpu_grpsel, resources->dw_per_pm_base + 0xA4); | 486 | writel(mpu_grpsel, resources->dw_per_pm_base + 0xA4); |
487 | break; | 487 | break; |
488 | case BPWR_MCBSP1: | 488 | case BPWR_MCBSP1: |
489 | iva2_grpsel = readl(resources->dw_core_pm_base + 0xA8); | 489 | iva2_grpsel = readl(resources->core_pm_base + 0xA8); |
490 | mpu_grpsel = readl(resources->dw_core_pm_base + 0xA4); | 490 | mpu_grpsel = readl(resources->core_pm_base + 0xA4); |
491 | if (enable) { | 491 | if (enable) { |
492 | iva2_grpsel |= OMAP3430_GRPSEL_MCBSP1_MASK; | 492 | iva2_grpsel |= OMAP3430_GRPSEL_MCBSP1_MASK; |
493 | mpu_grpsel &= ~OMAP3430_GRPSEL_MCBSP1_MASK; | 493 | mpu_grpsel &= ~OMAP3430_GRPSEL_MCBSP1_MASK; |
@@ -495,8 +495,8 @@ void dsp_clk_wakeup_event_ctrl(u32 clock_id, bool enable) | |||
495 | mpu_grpsel |= OMAP3430_GRPSEL_MCBSP1_MASK; | 495 | mpu_grpsel |= OMAP3430_GRPSEL_MCBSP1_MASK; |
496 | iva2_grpsel &= ~OMAP3430_GRPSEL_MCBSP1_MASK; | 496 | iva2_grpsel &= ~OMAP3430_GRPSEL_MCBSP1_MASK; |
497 | } | 497 | } |
498 | writel(iva2_grpsel, resources->dw_core_pm_base + 0xA8); | 498 | writel(iva2_grpsel, resources->core_pm_base + 0xA8); |
499 | writel(mpu_grpsel, resources->dw_core_pm_base + 0xA4); | 499 | writel(mpu_grpsel, resources->core_pm_base + 0xA4); |
500 | break; | 500 | break; |
501 | case BPWR_MCBSP2: | 501 | case BPWR_MCBSP2: |
502 | iva2_grpsel = readl(resources->dw_per_pm_base + 0xA8); | 502 | iva2_grpsel = readl(resources->dw_per_pm_base + 0xA8); |
diff --git a/drivers/staging/tidspbridge/core/tiomap_io.c b/drivers/staging/tidspbridge/core/tiomap_io.c index ba2961049da..09c9e873ce7 100644 --- a/drivers/staging/tidspbridge/core/tiomap_io.c +++ b/drivers/staging/tidspbridge/core/tiomap_io.c | |||
@@ -61,7 +61,7 @@ int read_ext_dsp_data(struct bridge_dev_context *dev_ctxt, | |||
61 | u32 ul_tlb_base_virt = 0; | 61 | u32 ul_tlb_base_virt = 0; |
62 | u32 ul_shm_offset_virt = 0; | 62 | u32 ul_shm_offset_virt = 0; |
63 | u32 dw_ext_prog_virt_mem; | 63 | u32 dw_ext_prog_virt_mem; |
64 | u32 dw_base_addr = dev_context->dw_dsp_ext_base_addr; | 64 | u32 dw_base_addr = dev_context->dsp_ext_base_addr; |
65 | bool trace_read = false; | 65 | bool trace_read = false; |
66 | 66 | ||
67 | if (!ul_shm_base_virt) { | 67 | if (!ul_shm_base_virt) { |
@@ -92,7 +92,7 @@ int read_ext_dsp_data(struct bridge_dev_context *dev_ctxt, | |||
92 | /* If reading from TRACE, force remap/unmap */ | 92 | /* If reading from TRACE, force remap/unmap */ |
93 | if (trace_read && dw_base_addr) { | 93 | if (trace_read && dw_base_addr) { |
94 | dw_base_addr = 0; | 94 | dw_base_addr = 0; |
95 | dev_context->dw_dsp_ext_base_addr = 0; | 95 | dev_context->dsp_ext_base_addr = 0; |
96 | } | 96 | } |
97 | 97 | ||
98 | if (!dw_base_addr) { | 98 | if (!dw_base_addr) { |
@@ -148,14 +148,14 @@ int read_ext_dsp_data(struct bridge_dev_context *dev_ctxt, | |||
148 | dw_ext_prog_virt_mem -= ul_shm_offset_virt; | 148 | dw_ext_prog_virt_mem -= ul_shm_offset_virt; |
149 | dw_ext_prog_virt_mem += | 149 | dw_ext_prog_virt_mem += |
150 | (ul_ext_base - ul_dyn_ext_base); | 150 | (ul_ext_base - ul_dyn_ext_base); |
151 | dev_context->dw_dsp_ext_base_addr = | 151 | dev_context->dsp_ext_base_addr = |
152 | dw_ext_prog_virt_mem; | 152 | dw_ext_prog_virt_mem; |
153 | 153 | ||
154 | /* | 154 | /* |
155 | * This dw_dsp_ext_base_addr will get cleared | 155 | * This dsp_ext_base_addr will get cleared |
156 | * only when the board is stopped. | 156 | * only when the board is stopped. |
157 | */ | 157 | */ |
158 | if (!dev_context->dw_dsp_ext_base_addr) | 158 | if (!dev_context->dsp_ext_base_addr) |
159 | status = -EPERM; | 159 | status = -EPERM; |
160 | } | 160 | } |
161 | 161 | ||
@@ -184,7 +184,7 @@ int write_dsp_data(struct bridge_dev_context *dev_context, | |||
184 | u32 mem_type) | 184 | u32 mem_type) |
185 | { | 185 | { |
186 | u32 offset; | 186 | u32 offset; |
187 | u32 dw_base_addr = dev_context->dw_dsp_base_addr; | 187 | u32 dw_base_addr = dev_context->dsp_base_addr; |
188 | struct cfg_hostres *resources = dev_context->resources; | 188 | struct cfg_hostres *resources = dev_context->resources; |
189 | int status = 0; | 189 | int status = 0; |
190 | u32 base1, base2, base3; | 190 | u32 base1, base2, base3; |
@@ -195,7 +195,7 @@ int write_dsp_data(struct bridge_dev_context *dev_context, | |||
195 | if (!resources) | 195 | if (!resources) |
196 | return -EPERM; | 196 | return -EPERM; |
197 | 197 | ||
198 | offset = dsp_addr - dev_context->dw_dsp_start_add; | 198 | offset = dsp_addr - dev_context->dsp_start_add; |
199 | if (offset < base1) { | 199 | if (offset < base1) { |
200 | dw_base_addr = MEM_LINEAR_ADDRESS(resources->dw_mem_base[2], | 200 | dw_base_addr = MEM_LINEAR_ADDRESS(resources->dw_mem_base[2], |
201 | resources->dw_mem_length[2]); | 201 | resources->dw_mem_length[2]); |
@@ -230,7 +230,7 @@ int write_ext_dsp_data(struct bridge_dev_context *dev_context, | |||
230 | u32 ul_num_bytes, u32 mem_type, | 230 | u32 ul_num_bytes, u32 mem_type, |
231 | bool dynamic_load) | 231 | bool dynamic_load) |
232 | { | 232 | { |
233 | u32 dw_base_addr = dev_context->dw_dsp_ext_base_addr; | 233 | u32 dw_base_addr = dev_context->dsp_ext_base_addr; |
234 | u32 dw_offset = 0; | 234 | u32 dw_offset = 0; |
235 | u8 temp_byte1, temp_byte2; | 235 | u8 temp_byte1, temp_byte2; |
236 | u8 remain_byte[4]; | 236 | u8 remain_byte[4]; |
@@ -263,8 +263,8 @@ int write_ext_dsp_data(struct bridge_dev_context *dev_context, | |||
263 | if ((dynamic_load || trace_load) && dw_base_addr) { | 263 | if ((dynamic_load || trace_load) && dw_base_addr) { |
264 | dw_base_addr = 0; | 264 | dw_base_addr = 0; |
265 | MEM_UNMAP_LINEAR_ADDRESS((void *) | 265 | MEM_UNMAP_LINEAR_ADDRESS((void *) |
266 | dev_context->dw_dsp_ext_base_addr); | 266 | dev_context->dsp_ext_base_addr); |
267 | dev_context->dw_dsp_ext_base_addr = 0x0; | 267 | dev_context->dsp_ext_base_addr = 0x0; |
268 | } | 268 | } |
269 | if (!dw_base_addr) { | 269 | if (!dw_base_addr) { |
270 | if (symbols_reloaded) | 270 | if (symbols_reloaded) |
@@ -344,14 +344,14 @@ int write_ext_dsp_data(struct bridge_dev_context *dev_context, | |||
344 | (ul_ext_base - ul_dyn_ext_base); | 344 | (ul_ext_base - ul_dyn_ext_base); |
345 | } | 345 | } |
346 | 346 | ||
347 | dev_context->dw_dsp_ext_base_addr = | 347 | dev_context->dsp_ext_base_addr = |
348 | (u32) MEM_LINEAR_ADDRESS((void *) | 348 | (u32) MEM_LINEAR_ADDRESS((void *) |
349 | dw_ext_prog_virt_mem, | 349 | dw_ext_prog_virt_mem, |
350 | ul_ext_end - ul_ext_base); | 350 | ul_ext_end - ul_ext_base); |
351 | dw_base_addr += dev_context->dw_dsp_ext_base_addr; | 351 | dw_base_addr += dev_context->dsp_ext_base_addr; |
352 | /* This dw_dsp_ext_base_addr will get cleared only when | 352 | /* This dsp_ext_base_addr will get cleared only when |
353 | * the board is stopped. */ | 353 | * the board is stopped. */ |
354 | if (!dev_context->dw_dsp_ext_base_addr) | 354 | if (!dev_context->dsp_ext_base_addr) |
355 | ret = -EPERM; | 355 | ret = -EPERM; |
356 | } | 356 | } |
357 | } | 357 | } |
@@ -375,10 +375,10 @@ int write_ext_dsp_data(struct bridge_dev_context *dev_context, | |||
375 | *((u32 *) host_buff) = dw_base_addr + dw_offset; | 375 | *((u32 *) host_buff) = dw_base_addr + dw_offset; |
376 | } | 376 | } |
377 | /* Unmap here to force remap for other Ext loads */ | 377 | /* Unmap here to force remap for other Ext loads */ |
378 | if ((dynamic_load || trace_load) && dev_context->dw_dsp_ext_base_addr) { | 378 | if ((dynamic_load || trace_load) && dev_context->dsp_ext_base_addr) { |
379 | MEM_UNMAP_LINEAR_ADDRESS((void *) | 379 | MEM_UNMAP_LINEAR_ADDRESS((void *) |
380 | dev_context->dw_dsp_ext_base_addr); | 380 | dev_context->dsp_ext_base_addr); |
381 | dev_context->dw_dsp_ext_base_addr = 0x0; | 381 | dev_context->dsp_ext_base_addr = 0x0; |
382 | } | 382 | } |
383 | symbols_reloaded = false; | 383 | symbols_reloaded = false; |
384 | return ret; | 384 | return ret; |
@@ -401,8 +401,8 @@ int sm_interrupt_dsp(struct bridge_dev_context *dev_context, u16 mb_val) | |||
401 | if (!resources) | 401 | if (!resources) |
402 | return -EPERM; | 402 | return -EPERM; |
403 | 403 | ||
404 | if (dev_context->dw_brd_state == BRD_DSP_HIBERNATION || | 404 | if (dev_context->brd_state == BRD_DSP_HIBERNATION || |
405 | dev_context->dw_brd_state == BRD_HIBERNATION) { | 405 | dev_context->brd_state == BRD_HIBERNATION) { |
406 | #ifdef CONFIG_TIDSPBRIDGE_DVFS | 406 | #ifdef CONFIG_TIDSPBRIDGE_DVFS |
407 | if (pdata->dsp_get_opp) | 407 | if (pdata->dsp_get_opp) |
408 | opplevel = (*pdata->dsp_get_opp) (); | 408 | opplevel = (*pdata->dsp_get_opp) (); |
@@ -439,8 +439,8 @@ int sm_interrupt_dsp(struct bridge_dev_context *dev_context, u16 mb_val) | |||
439 | /* Access MMU SYS CONFIG register to generate a short wakeup */ | 439 | /* Access MMU SYS CONFIG register to generate a short wakeup */ |
440 | temp = readl(resources->dw_dmmu_base + 0x10); | 440 | temp = readl(resources->dw_dmmu_base + 0x10); |
441 | 441 | ||
442 | dev_context->dw_brd_state = BRD_RUNNING; | 442 | dev_context->brd_state = BRD_RUNNING; |
443 | } else if (dev_context->dw_brd_state == BRD_RETENTION) { | 443 | } else if (dev_context->brd_state == BRD_RETENTION) { |
444 | /* Restart the peripheral clocks */ | 444 | /* Restart the peripheral clocks */ |
445 | dsp_clock_enable_all(dev_context->dsp_per_clks); | 445 | dsp_clock_enable_all(dev_context->dsp_per_clks); |
446 | } | 446 | } |
diff --git a/drivers/staging/tidspbridge/core/ue_deh.c b/drivers/staging/tidspbridge/core/ue_deh.c index 3430418190d..875a65c7f6d 100644 --- a/drivers/staging/tidspbridge/core/ue_deh.c +++ b/drivers/staging/tidspbridge/core/ue_deh.c | |||
@@ -254,7 +254,7 @@ void bridge_deh_notify(struct deh_mgr *deh, int event, int info) | |||
254 | } | 254 | } |
255 | 255 | ||
256 | /* Filter subsequent notifications when an error occurs */ | 256 | /* Filter subsequent notifications when an error occurs */ |
257 | if (dev_context->dw_brd_state != BRD_ERROR) { | 257 | if (dev_context->brd_state != BRD_ERROR) { |
258 | ntfy_notify(deh->ntfy_obj, event); | 258 | ntfy_notify(deh->ntfy_obj, event); |
259 | #ifdef CONFIG_TIDSPBRIDGE_RECOVERY | 259 | #ifdef CONFIG_TIDSPBRIDGE_RECOVERY |
260 | bridge_recover_schedule(); | 260 | bridge_recover_schedule(); |
@@ -262,7 +262,7 @@ void bridge_deh_notify(struct deh_mgr *deh, int event, int info) | |||
262 | } | 262 | } |
263 | 263 | ||
264 | /* Set the Board state as ERROR */ | 264 | /* Set the Board state as ERROR */ |
265 | dev_context->dw_brd_state = BRD_ERROR; | 265 | dev_context->brd_state = BRD_ERROR; |
266 | /* Disable all the clocks that were enabled by DSP */ | 266 | /* Disable all the clocks that were enabled by DSP */ |
267 | dsp_clock_disable_all(dev_context->dsp_per_clks); | 267 | dsp_clock_disable_all(dev_context->dsp_per_clks); |
268 | /* | 268 | /* |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/_chnl_sm.h b/drivers/staging/tidspbridge/include/dspbridge/_chnl_sm.h index 8a22317e5b5..14b0567e531 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/_chnl_sm.h +++ b/drivers/staging/tidspbridge/include/dspbridge/_chnl_sm.h | |||
@@ -171,7 +171,7 @@ struct chnl_irp { | |||
171 | u8 *host_user_buf; | 171 | u8 *host_user_buf; |
172 | /* Buffer to be filled/emptied. (System) */ | 172 | /* Buffer to be filled/emptied. (System) */ |
173 | u8 *host_sys_buf; | 173 | u8 *host_sys_buf; |
174 | u32 dw_arg; /* Issue/Reclaim argument. */ | 174 | u32 arg; /* Issue/Reclaim argument. */ |
175 | u32 dsp_tx_addr; /* Transfer address on DSP side. */ | 175 | u32 dsp_tx_addr; /* Transfer address on DSP side. */ |
176 | u32 byte_size; /* Bytes transferred. */ | 176 | u32 byte_size; /* Bytes transferred. */ |
177 | u32 buf_size; /* Actual buffer size when allocated. */ | 177 | u32 buf_size; /* Actual buffer size when allocated. */ |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/cfgdefs.h b/drivers/staging/tidspbridge/include/dspbridge/cfgdefs.h index 0589a0a80f5..f7c105af3da 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/cfgdefs.h +++ b/drivers/staging/tidspbridge/include/dspbridge/cfgdefs.h | |||
@@ -43,18 +43,18 @@ struct cfg_hostres { | |||
43 | * dw_mem_base + this offset */ | 43 | * dw_mem_base + this offset */ |
44 | /* | 44 | /* |
45 | * Info needed by NODE for allocating channels to communicate with RMS: | 45 | * Info needed by NODE for allocating channels to communicate with RMS: |
46 | * dw_chnl_offset: Offset of RMS channels. Lower channels are | 46 | * chnl_offset: Offset of RMS channels. Lower channels are |
47 | * reserved. | 47 | * reserved. |
48 | * dw_chnl_buf_size: Size of channel buffer to send to RMS | 48 | * chnl_buf_size: Size of channel buffer to send to RMS |
49 | * dw_num_chnls: Total number of channels | 49 | * dw_num_chnls: Total number of channels |
50 | * (including reserved). | 50 | * (including reserved). |
51 | */ | 51 | */ |
52 | u32 dw_chnl_offset; | 52 | u32 chnl_offset; |
53 | u32 dw_chnl_buf_size; | 53 | u32 chnl_buf_size; |
54 | u32 dw_num_chnls; | 54 | u32 dw_num_chnls; |
55 | void __iomem *dw_per_base; | 55 | void __iomem *dw_per_base; |
56 | u32 dw_per_pm_base; | 56 | u32 dw_per_pm_base; |
57 | u32 dw_core_pm_base; | 57 | u32 core_pm_base; |
58 | void __iomem *dw_dmmu_base; | 58 | void __iomem *dw_dmmu_base; |
59 | }; | 59 | }; |
60 | 60 | ||
diff --git a/drivers/staging/tidspbridge/include/dspbridge/chnldefs.h b/drivers/staging/tidspbridge/include/dspbridge/chnldefs.h index 8f8f9ece8d4..2cc27b5bcd0 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/chnldefs.h +++ b/drivers/staging/tidspbridge/include/dspbridge/chnldefs.h | |||
@@ -57,7 +57,7 @@ struct chnl_ioc { | |||
57 | u32 byte_size; /* Bytes transferred. */ | 57 | u32 byte_size; /* Bytes transferred. */ |
58 | u32 buf_size; /* Actual buffer size in bytes */ | 58 | u32 buf_size; /* Actual buffer size in bytes */ |
59 | u32 status; /* Status of IO completion. */ | 59 | u32 status; /* Status of IO completion. */ |
60 | u32 dw_arg; /* User argument associated with pbuf. */ | 60 | u32 arg; /* User argument associated with pbuf. */ |
61 | }; | 61 | }; |
62 | 62 | ||
63 | #endif /* CHNLDEFS_ */ | 63 | #endif /* CHNLDEFS_ */ |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/cmmdefs.h b/drivers/staging/tidspbridge/include/dspbridge/cmmdefs.h index e748ba8d6ca..943d91f809e 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/cmmdefs.h +++ b/drivers/staging/tidspbridge/include/dspbridge/cmmdefs.h | |||
@@ -54,9 +54,9 @@ struct cmm_seginfo { | |||
54 | u32 dw_seg_base_pa; /* Start Phys address of SM segment */ | 54 | u32 dw_seg_base_pa; /* Start Phys address of SM segment */ |
55 | /* Total size in bytes of segment: DSP+GPP */ | 55 | /* Total size in bytes of segment: DSP+GPP */ |
56 | u32 ul_total_seg_size; | 56 | u32 ul_total_seg_size; |
57 | u32 dw_gpp_base_pa; /* Start Phys addr of Gpp SM seg */ | 57 | u32 gpp_base_pa; /* Start Phys addr of Gpp SM seg */ |
58 | u32 ul_gpp_size; /* Size of Gpp SM seg in bytes */ | 58 | u32 ul_gpp_size; /* Size of Gpp SM seg in bytes */ |
59 | u32 dw_dsp_base_va; /* DSP virt base byte address */ | 59 | u32 dsp_base_va; /* DSP virt base byte address */ |
60 | u32 ul_dsp_size; /* DSP seg size in bytes */ | 60 | u32 ul_dsp_size; /* DSP seg size in bytes */ |
61 | /* # of current GPP allocations from this segment */ | 61 | /* # of current GPP allocations from this segment */ |
62 | u32 ul_in_use_cnt; | 62 | u32 ul_in_use_cnt; |
@@ -79,8 +79,8 @@ struct cmm_info { | |||
79 | /* XlatorCreate attributes */ | 79 | /* XlatorCreate attributes */ |
80 | struct cmm_xlatorattrs { | 80 | struct cmm_xlatorattrs { |
81 | u32 ul_seg_id; /* segment Id used for SM allocations */ | 81 | u32 ul_seg_id; /* segment Id used for SM allocations */ |
82 | u32 dw_dsp_bufs; /* # of DSP-side bufs */ | 82 | u32 dsp_bufs; /* # of DSP-side bufs */ |
83 | u32 dw_dsp_buf_size; /* size of DSP-side bufs in GPP bytes */ | 83 | u32 dsp_buf_size; /* size of DSP-side bufs in GPP bytes */ |
84 | /* Vm base address alloc'd in client process context */ | 84 | /* Vm base address alloc'd in client process context */ |
85 | void *vm_base; | 85 | void *vm_base; |
86 | /* dw_vm_size must be >= (dwMaxNumBufs * dwMaxSize) */ | 86 | /* dw_vm_size must be >= (dwMaxNumBufs * dwMaxSize) */ |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dbdefs.h b/drivers/staging/tidspbridge/include/dspbridge/dbdefs.h index 38fffebd0c0..6ba66c500e7 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dbdefs.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dbdefs.h | |||
@@ -244,9 +244,9 @@ struct dsp_cbdata { | |||
244 | 244 | ||
245 | /* The dsp_msg structure */ | 245 | /* The dsp_msg structure */ |
246 | struct dsp_msg { | 246 | struct dsp_msg { |
247 | u32 dw_cmd; | 247 | u32 cmd; |
248 | u32 dw_arg1; | 248 | u32 arg1; |
249 | u32 dw_arg2; | 249 | u32 arg2; |
250 | }; | 250 | }; |
251 | 251 | ||
252 | /* The dsp_resourcereqmts structure for node's resource requirements */ | 252 | /* The dsp_resourcereqmts structure for node's resource requirements */ |
@@ -368,7 +368,7 @@ struct dsp_processorinfo { | |||
368 | 368 | ||
369 | /* Error information of last DSP exception signalled to the GPP */ | 369 | /* Error information of last DSP exception signalled to the GPP */ |
370 | struct dsp_errorinfo { | 370 | struct dsp_errorinfo { |
371 | u32 dw_err_mask; | 371 | u32 err_mask; |
372 | u32 dw_val1; | 372 | u32 dw_val1; |
373 | u32 dw_val2; | 373 | u32 dw_val2; |
374 | u32 dw_val3; | 374 | u32 dw_val3; |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dspapi-ioctl.h b/drivers/staging/tidspbridge/include/dspbridge/dspapi-ioctl.h index 8ad9ace1a82..bd3f885dbe6 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dspapi-ioctl.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dspapi-ioctl.h | |||
@@ -68,7 +68,7 @@ union trapped_args { | |||
68 | 68 | ||
69 | struct { | 69 | struct { |
70 | void *hprocessor; | 70 | void *hprocessor; |
71 | u32 dw_cmd; | 71 | u32 cmd; |
72 | struct dsp_cbdata __user *pargs; | 72 | struct dsp_cbdata __user *pargs; |
73 | } args_proc_ctrl; | 73 | } args_proc_ctrl; |
74 | 74 | ||
@@ -293,7 +293,7 @@ union trapped_args { | |||
293 | u8 *pbuffer; | 293 | u8 *pbuffer; |
294 | u32 dw_bytes; | 294 | u32 dw_bytes; |
295 | u32 dw_buf_size; | 295 | u32 dw_buf_size; |
296 | u32 dw_arg; | 296 | u32 arg; |
297 | } args_strm_issue; | 297 | } args_strm_issue; |
298 | 298 | ||
299 | struct { | 299 | struct { |
diff --git a/drivers/staging/tidspbridge/pmgr/cmm.c b/drivers/staging/tidspbridge/pmgr/cmm.c index babe66f759c..f7542a5b10d 100644 --- a/drivers/staging/tidspbridge/pmgr/cmm.c +++ b/drivers/staging/tidspbridge/pmgr/cmm.c | |||
@@ -66,10 +66,10 @@ struct cmm_allocator { /* sma */ | |||
66 | u32 ul_sm_size; /* Size of SM block in bytes */ | 66 | u32 ul_sm_size; /* Size of SM block in bytes */ |
67 | unsigned int dw_vm_base; /* Start of VM block. (Dev driver | 67 | unsigned int dw_vm_base; /* Start of VM block. (Dev driver |
68 | * context for 'sma') */ | 68 | * context for 'sma') */ |
69 | u32 dw_dsp_phys_addr_offset; /* DSP PA to GPP PA offset for this | 69 | u32 dsp_phys_addr_offset; /* DSP PA to GPP PA offset for this |
70 | * SM space */ | 70 | * SM space */ |
71 | s8 c_factor; /* DSPPa to GPPPa Conversion Factor */ | 71 | s8 c_factor; /* DSPPa to GPPPa Conversion Factor */ |
72 | unsigned int dw_dsp_base; /* DSP virt base byte address */ | 72 | unsigned int dsp_base; /* DSP virt base byte address */ |
73 | u32 ul_dsp_size; /* DSP seg size in bytes */ | 73 | u32 ul_dsp_size; /* DSP seg size in bytes */ |
74 | struct cmm_object *hcmm_mgr; /* back ref to parent mgr */ | 74 | struct cmm_object *hcmm_mgr; /* back ref to parent mgr */ |
75 | /* node list of available memory */ | 75 | /* node list of available memory */ |
@@ -119,8 +119,8 @@ static struct cmm_attrs cmm_dfltalctattrs = { | |||
119 | static struct cmm_xlatorattrs cmm_dfltxlatorattrs = { | 119 | static struct cmm_xlatorattrs cmm_dfltxlatorattrs = { |
120 | /* ul_seg_id, does not have to match cmm_dfltalctattrs ul_seg_id */ | 120 | /* ul_seg_id, does not have to match cmm_dfltalctattrs ul_seg_id */ |
121 | 1, | 121 | 1, |
122 | 0, /* dw_dsp_bufs */ | 122 | 0, /* dsp_bufs */ |
123 | 0, /* dw_dsp_buf_size */ | 123 | 0, /* dsp_buf_size */ |
124 | NULL, /* vm_base */ | 124 | NULL, /* vm_base */ |
125 | 0, /* dw_vm_size */ | 125 | 0, /* dw_vm_size */ |
126 | }; | 126 | }; |
@@ -442,12 +442,12 @@ int cmm_get_info(struct cmm_object *hcmm_mgr, | |||
442 | altr->shm_base - altr->ul_dsp_size; | 442 | altr->shm_base - altr->ul_dsp_size; |
443 | cmm_info_obj->seg_info[ul_seg - 1].ul_total_seg_size = | 443 | cmm_info_obj->seg_info[ul_seg - 1].ul_total_seg_size = |
444 | altr->ul_dsp_size + altr->ul_sm_size; | 444 | altr->ul_dsp_size + altr->ul_sm_size; |
445 | cmm_info_obj->seg_info[ul_seg - 1].dw_gpp_base_pa = | 445 | cmm_info_obj->seg_info[ul_seg - 1].gpp_base_pa = |
446 | altr->shm_base; | 446 | altr->shm_base; |
447 | cmm_info_obj->seg_info[ul_seg - 1].ul_gpp_size = | 447 | cmm_info_obj->seg_info[ul_seg - 1].ul_gpp_size = |
448 | altr->ul_sm_size; | 448 | altr->ul_sm_size; |
449 | cmm_info_obj->seg_info[ul_seg - 1].dw_dsp_base_va = | 449 | cmm_info_obj->seg_info[ul_seg - 1].dsp_base_va = |
450 | altr->dw_dsp_base; | 450 | altr->dsp_base; |
451 | cmm_info_obj->seg_info[ul_seg - 1].ul_dsp_size = | 451 | cmm_info_obj->seg_info[ul_seg - 1].ul_dsp_size = |
452 | altr->ul_dsp_size; | 452 | altr->ul_dsp_size; |
453 | cmm_info_obj->seg_info[ul_seg - 1].dw_seg_base_va = | 453 | cmm_info_obj->seg_info[ul_seg - 1].dw_seg_base_va = |
@@ -540,9 +540,9 @@ int cmm_register_gppsm_seg(struct cmm_object *hcmm_mgr, | |||
540 | psma->shm_base = dw_gpp_base_pa; /* SM Base phys */ | 540 | psma->shm_base = dw_gpp_base_pa; /* SM Base phys */ |
541 | psma->ul_sm_size = ul_size; /* SM segment size in bytes */ | 541 | psma->ul_sm_size = ul_size; /* SM segment size in bytes */ |
542 | psma->dw_vm_base = gpp_base_va; | 542 | psma->dw_vm_base = gpp_base_va; |
543 | psma->dw_dsp_phys_addr_offset = dsp_addr_offset; | 543 | psma->dsp_phys_addr_offset = dsp_addr_offset; |
544 | psma->c_factor = c_factor; | 544 | psma->c_factor = c_factor; |
545 | psma->dw_dsp_base = dw_dsp_base; | 545 | psma->dsp_base = dw_dsp_base; |
546 | psma->ul_dsp_size = ul_dsp_size; | 546 | psma->ul_dsp_size = ul_dsp_size; |
547 | if (psma->dw_vm_base == 0) { | 547 | if (psma->dw_vm_base == 0) { |
548 | status = -EPERM; | 548 | status = -EPERM; |
@@ -994,14 +994,14 @@ void *cmm_xlator_translate(struct cmm_xlatorobject *xlator, void *paddr, | |||
994 | dw_addr_xlate = | 994 | dw_addr_xlate = |
995 | GPPPA2DSPPA((allocator->shm_base - allocator->ul_dsp_size), | 995 | GPPPA2DSPPA((allocator->shm_base - allocator->ul_dsp_size), |
996 | dw_addr_xlate, | 996 | dw_addr_xlate, |
997 | allocator->dw_dsp_phys_addr_offset * | 997 | allocator->dsp_phys_addr_offset * |
998 | allocator->c_factor); | 998 | allocator->c_factor); |
999 | } else if (xtype == CMM_DSPPA2PA) { | 999 | } else if (xtype == CMM_DSPPA2PA) { |
1000 | /* Got DSP Pa, convert to GPP Pa */ | 1000 | /* Got DSP Pa, convert to GPP Pa */ |
1001 | dw_addr_xlate = | 1001 | dw_addr_xlate = |
1002 | DSPPA2GPPPA(allocator->shm_base - allocator->ul_dsp_size, | 1002 | DSPPA2GPPPA(allocator->shm_base - allocator->ul_dsp_size, |
1003 | dw_addr_xlate, | 1003 | dw_addr_xlate, |
1004 | allocator->dw_dsp_phys_addr_offset * | 1004 | allocator->dsp_phys_addr_offset * |
1005 | allocator->c_factor); | 1005 | allocator->c_factor); |
1006 | } | 1006 | } |
1007 | loop_cont: | 1007 | loop_cont: |
diff --git a/drivers/staging/tidspbridge/pmgr/dspapi.c b/drivers/staging/tidspbridge/pmgr/dspapi.c index 86ca785f191..3efe1d50a4c 100644 --- a/drivers/staging/tidspbridge/pmgr/dspapi.c +++ b/drivers/staging/tidspbridge/pmgr/dspapi.c | |||
@@ -639,7 +639,7 @@ u32 procwrap_ctrl(union trapped_args *args, void *pr_ctxt) | |||
639 | } | 639 | } |
640 | if (!status) { | 640 | if (!status) { |
641 | status = proc_ctrl(hprocessor, | 641 | status = proc_ctrl(hprocessor, |
642 | args->args_proc_ctrl.dw_cmd, | 642 | args->args_proc_ctrl.cmd, |
643 | (struct dsp_cbdata *)pargs); | 643 | (struct dsp_cbdata *)pargs); |
644 | } | 644 | } |
645 | 645 | ||
@@ -1717,7 +1717,7 @@ u32 strmwrap_issue(union trapped_args *args, void *pr_ctxt) | |||
1717 | args->args_strm_issue.pbuffer, | 1717 | args->args_strm_issue.pbuffer, |
1718 | args->args_strm_issue.dw_bytes, | 1718 | args->args_strm_issue.dw_bytes, |
1719 | args->args_strm_issue.dw_buf_size, | 1719 | args->args_strm_issue.dw_buf_size, |
1720 | args->args_strm_issue.dw_arg); | 1720 | args->args_strm_issue.arg); |
1721 | 1721 | ||
1722 | return status; | 1722 | return status; |
1723 | } | 1723 | } |
diff --git a/drivers/staging/tidspbridge/rmgr/drv.c b/drivers/staging/tidspbridge/rmgr/drv.c index e0fc8956a96..2e7330272b1 100644 --- a/drivers/staging/tidspbridge/rmgr/drv.c +++ b/drivers/staging/tidspbridge/rmgr/drv.c | |||
@@ -699,10 +699,10 @@ static int request_bridge_resources(struct cfg_hostres *res) | |||
699 | host_res->birq_registers = 0; | 699 | host_res->birq_registers = 0; |
700 | host_res->birq_attrib = 0; | 700 | host_res->birq_attrib = 0; |
701 | host_res->dw_offset_for_monitor = 0; | 701 | host_res->dw_offset_for_monitor = 0; |
702 | host_res->dw_chnl_offset = 0; | 702 | host_res->chnl_offset = 0; |
703 | /* CHNL_MAXCHANNELS */ | 703 | /* CHNL_MAXCHANNELS */ |
704 | host_res->dw_num_chnls = CHNL_MAXCHANNELS; | 704 | host_res->dw_num_chnls = CHNL_MAXCHANNELS; |
705 | host_res->dw_chnl_buf_size = 0x400; | 705 | host_res->chnl_buf_size = 0x400; |
706 | 706 | ||
707 | return 0; | 707 | return 0; |
708 | } | 708 | } |
@@ -741,7 +741,7 @@ int drv_request_bridge_res_dsp(void **phost_resources) | |||
741 | OMAP_PER_CM_SIZE); | 741 | OMAP_PER_CM_SIZE); |
742 | host_res->dw_per_pm_base = (u32) ioremap(OMAP_PER_PRM_BASE, | 742 | host_res->dw_per_pm_base = (u32) ioremap(OMAP_PER_PRM_BASE, |
743 | OMAP_PER_PRM_SIZE); | 743 | OMAP_PER_PRM_SIZE); |
744 | host_res->dw_core_pm_base = (u32) ioremap(OMAP_CORE_PRM_BASE, | 744 | host_res->core_pm_base = (u32) ioremap(OMAP_CORE_PRM_BASE, |
745 | OMAP_CORE_PRM_SIZE); | 745 | OMAP_CORE_PRM_SIZE); |
746 | host_res->dw_dmmu_base = ioremap(OMAP_DMMU_BASE, | 746 | host_res->dw_dmmu_base = ioremap(OMAP_DMMU_BASE, |
747 | OMAP_DMMU_SIZE); | 747 | OMAP_DMMU_SIZE); |
@@ -783,10 +783,10 @@ int drv_request_bridge_res_dsp(void **phost_resources) | |||
783 | host_res->birq_registers = 0; | 783 | host_res->birq_registers = 0; |
784 | host_res->birq_attrib = 0; | 784 | host_res->birq_attrib = 0; |
785 | host_res->dw_offset_for_monitor = 0; | 785 | host_res->dw_offset_for_monitor = 0; |
786 | host_res->dw_chnl_offset = 0; | 786 | host_res->chnl_offset = 0; |
787 | /* CHNL_MAXCHANNELS */ | 787 | /* CHNL_MAXCHANNELS */ |
788 | host_res->dw_num_chnls = CHNL_MAXCHANNELS; | 788 | host_res->dw_num_chnls = CHNL_MAXCHANNELS; |
789 | host_res->dw_chnl_buf_size = 0x400; | 789 | host_res->chnl_buf_size = 0x400; |
790 | dw_buff_size = sizeof(struct cfg_hostres); | 790 | dw_buff_size = sizeof(struct cfg_hostres); |
791 | } | 791 | } |
792 | *phost_resources = host_res; | 792 | *phost_resources = host_res; |
diff --git a/drivers/staging/tidspbridge/rmgr/node.c b/drivers/staging/tidspbridge/rmgr/node.c index 27af99d512d..5a045c75c56 100644 --- a/drivers/staging/tidspbridge/rmgr/node.c +++ b/drivers/staging/tidspbridge/rmgr/node.c | |||
@@ -1795,12 +1795,12 @@ int node_get_message(struct node_object *hnode, | |||
1795 | status = | 1795 | status = |
1796 | (*intf_fxns->pfn_msg_get) (hnode->msg_queue_obj, message, utimeout); | 1796 | (*intf_fxns->pfn_msg_get) (hnode->msg_queue_obj, message, utimeout); |
1797 | /* Check if message contains SM descriptor */ | 1797 | /* Check if message contains SM descriptor */ |
1798 | if (status || !(message->dw_cmd & DSP_RMSBUFDESC)) | 1798 | if (status || !(message->cmd & DSP_RMSBUFDESC)) |
1799 | goto func_end; | 1799 | goto func_end; |
1800 | 1800 | ||
1801 | /* Translate DSP byte addr to GPP Va. */ | 1801 | /* Translate DSP byte addr to GPP Va. */ |
1802 | tmp_buf = cmm_xlator_translate(hnode->xlator, | 1802 | tmp_buf = cmm_xlator_translate(hnode->xlator, |
1803 | (void *)(message->dw_arg1 * | 1803 | (void *)(message->arg1 * |
1804 | hnode->hnode_mgr-> | 1804 | hnode->hnode_mgr-> |
1805 | udsp_word_size), CMM_DSPPA2PA); | 1805 | udsp_word_size), CMM_DSPPA2PA); |
1806 | if (tmp_buf != NULL) { | 1806 | if (tmp_buf != NULL) { |
@@ -1809,8 +1809,8 @@ int node_get_message(struct node_object *hnode, | |||
1809 | CMM_PA2VA); | 1809 | CMM_PA2VA); |
1810 | if (tmp_buf != NULL) { | 1810 | if (tmp_buf != NULL) { |
1811 | /* Adjust SM size in msg */ | 1811 | /* Adjust SM size in msg */ |
1812 | message->dw_arg1 = (u32) tmp_buf; | 1812 | message->arg1 = (u32) tmp_buf; |
1813 | message->dw_arg2 *= hnode->hnode_mgr->udsp_word_size; | 1813 | message->arg2 *= hnode->hnode_mgr->udsp_word_size; |
1814 | } else { | 1814 | } else { |
1815 | status = -ESRCH; | 1815 | status = -ESRCH; |
1816 | } | 1816 | } |
@@ -2100,19 +2100,19 @@ int node_put_message(struct node_object *hnode, | |||
2100 | /* assign pmsg values to new msg */ | 2100 | /* assign pmsg values to new msg */ |
2101 | new_msg = *pmsg; | 2101 | new_msg = *pmsg; |
2102 | /* Now, check if message contains a SM buffer descriptor */ | 2102 | /* Now, check if message contains a SM buffer descriptor */ |
2103 | if (pmsg->dw_cmd & DSP_RMSBUFDESC) { | 2103 | if (pmsg->cmd & DSP_RMSBUFDESC) { |
2104 | /* Translate GPP Va to DSP physical buf Ptr. */ | 2104 | /* Translate GPP Va to DSP physical buf Ptr. */ |
2105 | tmp_buf = cmm_xlator_translate(hnode->xlator, | 2105 | tmp_buf = cmm_xlator_translate(hnode->xlator, |
2106 | (void *)new_msg.dw_arg1, | 2106 | (void *)new_msg.arg1, |
2107 | CMM_VA2DSPPA); | 2107 | CMM_VA2DSPPA); |
2108 | if (tmp_buf != NULL) { | 2108 | if (tmp_buf != NULL) { |
2109 | /* got translation, convert to MAUs in msg */ | 2109 | /* got translation, convert to MAUs in msg */ |
2110 | if (hnode->hnode_mgr->udsp_word_size != 0) { | 2110 | if (hnode->hnode_mgr->udsp_word_size != 0) { |
2111 | new_msg.dw_arg1 = | 2111 | new_msg.arg1 = |
2112 | (u32) tmp_buf / | 2112 | (u32) tmp_buf / |
2113 | hnode->hnode_mgr->udsp_word_size; | 2113 | hnode->hnode_mgr->udsp_word_size; |
2114 | /* MAUs */ | 2114 | /* MAUs */ |
2115 | new_msg.dw_arg2 /= hnode->hnode_mgr-> | 2115 | new_msg.arg2 /= hnode->hnode_mgr-> |
2116 | udsp_word_size; | 2116 | udsp_word_size; |
2117 | } else { | 2117 | } else { |
2118 | pr_err("%s: udsp_word_size is zero!\n", | 2118 | pr_err("%s: udsp_word_size is zero!\n", |
@@ -2378,10 +2378,10 @@ int node_terminate(struct node_object *hnode, int *pstatus) | |||
2378 | goto func_cont; | 2378 | goto func_cont; |
2379 | } | 2379 | } |
2380 | 2380 | ||
2381 | msg.dw_cmd = RMS_EXIT; | 2381 | msg.cmd = RMS_EXIT; |
2382 | msg.dw_arg1 = hnode->node_env; | 2382 | msg.arg1 = hnode->node_env; |
2383 | killmsg.dw_cmd = RMS_KILLTASK; | 2383 | killmsg.cmd = RMS_KILLTASK; |
2384 | killmsg.dw_arg1 = hnode->node_env; | 2384 | killmsg.arg1 = hnode->node_env; |
2385 | intf_fxns = hnode_mgr->intf_fxns; | 2385 | intf_fxns = hnode_mgr->intf_fxns; |
2386 | 2386 | ||
2387 | if (hnode->utimeout > MAXTIMEOUT) | 2387 | if (hnode->utimeout > MAXTIMEOUT) |
@@ -2902,8 +2902,8 @@ static int get_proc_props(struct node_mgr *hnode_mgr, | |||
2902 | host_res = pbridge_context->resources; | 2902 | host_res = pbridge_context->resources; |
2903 | if (!host_res) | 2903 | if (!host_res) |
2904 | return -EPERM; | 2904 | return -EPERM; |
2905 | hnode_mgr->ul_chnl_offset = host_res->dw_chnl_offset; | 2905 | hnode_mgr->ul_chnl_offset = host_res->chnl_offset; |
2906 | hnode_mgr->ul_chnl_buf_size = host_res->dw_chnl_buf_size; | 2906 | hnode_mgr->ul_chnl_buf_size = host_res->chnl_buf_size; |
2907 | hnode_mgr->ul_num_chnls = host_res->dw_num_chnls; | 2907 | hnode_mgr->ul_num_chnls = host_res->dw_num_chnls; |
2908 | 2908 | ||
2909 | /* | 2909 | /* |
diff --git a/drivers/staging/tidspbridge/rmgr/strm.c b/drivers/staging/tidspbridge/rmgr/strm.c index 2e427149fb6..d36b3165989 100644 --- a/drivers/staging/tidspbridge/rmgr/strm.c +++ b/drivers/staging/tidspbridge/rmgr/strm.c | |||
@@ -639,7 +639,7 @@ int strm_reclaim(struct strm_object *stream_obj, u8 ** buf_ptr, | |||
639 | if (buff_size) | 639 | if (buff_size) |
640 | *buff_size = chnl_ioc_obj.buf_size; | 640 | *buff_size = chnl_ioc_obj.buf_size; |
641 | 641 | ||
642 | *pdw_arg = chnl_ioc_obj.dw_arg; | 642 | *pdw_arg = chnl_ioc_obj.arg; |
643 | if (!CHNL_IS_IO_COMPLETE(chnl_ioc_obj)) { | 643 | if (!CHNL_IS_IO_COMPLETE(chnl_ioc_obj)) { |
644 | if (CHNL_IS_TIMED_OUT(chnl_ioc_obj)) { | 644 | if (CHNL_IS_TIMED_OUT(chnl_ioc_obj)) { |
645 | status = -ETIME; | 645 | status = -ETIME; |