diff options
author | Menon, Nishanth <nm@ti.com> | 2010-07-22 17:03:47 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-22 17:41:04 -0400 |
commit | 9d7d0a526193359b5289d933768e7465d9bbd91e (patch) | |
tree | b9c88803601f23ef68bc75f3e5c2f793b6780b5e | |
parent | cd4f13c02a5d72e1fc367c51cc0fd955f65538e0 (diff) |
staging: tidspbridge: remove IN modifier
IN modifier does not exist. remove it
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
51 files changed, 241 insertions, 241 deletions
diff --git a/drivers/staging/tidspbridge/core/_tiomap_pwr.h b/drivers/staging/tidspbridge/core/_tiomap_pwr.h index 47c4dd2c2b5..bd0354d9ad0 100644 --- a/drivers/staging/tidspbridge/core/_tiomap_pwr.h +++ b/drivers/staging/tidspbridge/core/_tiomap_pwr.h | |||
@@ -30,27 +30,27 @@ extern struct mailbox_context mboxsetting; | |||
30 | * Wakes up the DSP from DeepSleep | 30 | * Wakes up the DSP from DeepSleep |
31 | */ | 31 | */ |
32 | extern int wake_dsp(struct bridge_dev_context *dev_context, | 32 | extern int wake_dsp(struct bridge_dev_context *dev_context, |
33 | IN void *pargs); | 33 | void *pargs); |
34 | 34 | ||
35 | /* | 35 | /* |
36 | * ======== sleep_dsp ========= | 36 | * ======== sleep_dsp ========= |
37 | * Places the DSP in DeepSleep. | 37 | * Places the DSP in DeepSleep. |
38 | */ | 38 | */ |
39 | extern int sleep_dsp(struct bridge_dev_context *dev_context, | 39 | extern int sleep_dsp(struct bridge_dev_context *dev_context, |
40 | IN u32 dw_cmd, IN void *pargs); | 40 | u32 dw_cmd, void *pargs); |
41 | /* | 41 | /* |
42 | * ========interrupt_dsp======== | 42 | * ========interrupt_dsp======== |
43 | * Sends an interrupt to DSP unconditionally. | 43 | * Sends an interrupt to DSP unconditionally. |
44 | */ | 44 | */ |
45 | extern void interrupt_dsp(struct bridge_dev_context *dev_context, | 45 | extern void interrupt_dsp(struct bridge_dev_context *dev_context, |
46 | IN u16 mb_val); | 46 | u16 mb_val); |
47 | 47 | ||
48 | /* | 48 | /* |
49 | * ======== wake_dsp ========= | 49 | * ======== wake_dsp ========= |
50 | * Wakes up the DSP from DeepSleep | 50 | * Wakes up the DSP from DeepSleep |
51 | */ | 51 | */ |
52 | extern int dsp_peripheral_clk_ctrl(struct bridge_dev_context | 52 | extern int dsp_peripheral_clk_ctrl(struct bridge_dev_context |
53 | *dev_context, IN void *pargs); | 53 | *dev_context, void *pargs); |
54 | /* | 54 | /* |
55 | * ======== handle_hibernation_from_dsp ======== | 55 | * ======== handle_hibernation_from_dsp ======== |
56 | * Handle Hibernation requested from DSP | 56 | * Handle Hibernation requested from DSP |
@@ -61,19 +61,19 @@ int handle_hibernation_from_dsp(struct bridge_dev_context *dev_context); | |||
61 | * Handle Post Scale notification to DSP | 61 | * Handle Post Scale notification to DSP |
62 | */ | 62 | */ |
63 | int post_scale_dsp(struct bridge_dev_context *dev_context, | 63 | int post_scale_dsp(struct bridge_dev_context *dev_context, |
64 | IN void *pargs); | 64 | void *pargs); |
65 | /* | 65 | /* |
66 | * ======== pre_scale_dsp ======== | 66 | * ======== pre_scale_dsp ======== |
67 | * Handle Pre Scale notification to DSP | 67 | * Handle Pre Scale notification to DSP |
68 | */ | 68 | */ |
69 | int pre_scale_dsp(struct bridge_dev_context *dev_context, | 69 | int pre_scale_dsp(struct bridge_dev_context *dev_context, |
70 | IN void *pargs); | 70 | void *pargs); |
71 | /* | 71 | /* |
72 | * ======== handle_constraints_set ======== | 72 | * ======== handle_constraints_set ======== |
73 | * Handle constraints request from DSP | 73 | * Handle constraints request from DSP |
74 | */ | 74 | */ |
75 | int handle_constraints_set(struct bridge_dev_context *dev_context, | 75 | int handle_constraints_set(struct bridge_dev_context *dev_context, |
76 | IN void *pargs); | 76 | void *pargs); |
77 | 77 | ||
78 | /* | 78 | /* |
79 | * ======== dsp_clk_wakeup_event_ctrl ======== | 79 | * ======== dsp_clk_wakeup_event_ctrl ======== |
diff --git a/drivers/staging/tidspbridge/core/chnl_sm.c b/drivers/staging/tidspbridge/core/chnl_sm.c index 39e96918485..01d4a221dad 100644 --- a/drivers/staging/tidspbridge/core/chnl_sm.c +++ b/drivers/staging/tidspbridge/core/chnl_sm.c | |||
@@ -383,7 +383,7 @@ func_cont: | |||
383 | */ | 383 | */ |
384 | int bridge_chnl_create(OUT struct chnl_mgr **channel_mgr, | 384 | int bridge_chnl_create(OUT struct chnl_mgr **channel_mgr, |
385 | struct dev_object *hdev_obj, | 385 | struct dev_object *hdev_obj, |
386 | IN const struct chnl_mgrattrs *mgr_attrts) | 386 | const struct chnl_mgrattrs *mgr_attrts) |
387 | { | 387 | { |
388 | int status = 0; | 388 | int status = 0; |
389 | struct chnl_mgr *chnl_mgr_obj = NULL; | 389 | struct chnl_mgr *chnl_mgr_obj = NULL; |
@@ -777,7 +777,7 @@ int bridge_chnl_idle(struct chnl_object *chnl_obj, u32 timeout, | |||
777 | */ | 777 | */ |
778 | int bridge_chnl_open(OUT struct chnl_object **chnl, | 778 | int bridge_chnl_open(OUT struct chnl_object **chnl, |
779 | struct chnl_mgr *hchnl_mgr, s8 chnl_mode, | 779 | struct chnl_mgr *hchnl_mgr, s8 chnl_mode, |
780 | u32 ch_id, const IN struct chnl_attr *pattrs) | 780 | u32 ch_id, const struct chnl_attr *pattrs) |
781 | { | 781 | { |
782 | int status = 0; | 782 | int status = 0; |
783 | struct chnl_mgr *chnl_mgr_obj = hchnl_mgr; | 783 | struct chnl_mgr *chnl_mgr_obj = hchnl_mgr; |
diff --git a/drivers/staging/tidspbridge/core/dsp-clock.c b/drivers/staging/tidspbridge/core/dsp-clock.c index 6f9ea059974..b474e833d1a 100644 --- a/drivers/staging/tidspbridge/core/dsp-clock.c +++ b/drivers/staging/tidspbridge/core/dsp-clock.c | |||
@@ -239,7 +239,7 @@ void dsp_gpt_wait_overflow(short int clk_id, unsigned int load) | |||
239 | * Enable Clock . | 239 | * Enable Clock . |
240 | * | 240 | * |
241 | */ | 241 | */ |
242 | int dsp_clk_enable(IN enum dsp_clk_id clk_id) | 242 | int dsp_clk_enable(enum dsp_clk_id clk_id) |
243 | { | 243 | { |
244 | int status = 0; | 244 | int status = 0; |
245 | 245 | ||
@@ -317,7 +317,7 @@ u32 dsp_clock_enable_all(u32 dsp_per_clocks) | |||
317 | * Disable the clock. | 317 | * Disable the clock. |
318 | * | 318 | * |
319 | */ | 319 | */ |
320 | int dsp_clk_disable(IN enum dsp_clk_id clk_id) | 320 | int dsp_clk_disable(enum dsp_clk_id clk_id) |
321 | { | 321 | { |
322 | int status = 0; | 322 | int status = 0; |
323 | 323 | ||
diff --git a/drivers/staging/tidspbridge/core/io_sm.c b/drivers/staging/tidspbridge/core/io_sm.c index 27f4481d7fe..06b47ca6e09 100644 --- a/drivers/staging/tidspbridge/core/io_sm.c +++ b/drivers/staging/tidspbridge/core/io_sm.c | |||
@@ -132,9 +132,9 @@ struct io_mgr { | |||
132 | }; | 132 | }; |
133 | 133 | ||
134 | /* Function Prototypes */ | 134 | /* Function Prototypes */ |
135 | static void io_dispatch_chnl(IN struct io_mgr *pio_mgr, | 135 | static void io_dispatch_chnl(struct io_mgr *pio_mgr, |
136 | IN OUT struct chnl_object *pchnl, u8 io_mode); | 136 | OUT struct chnl_object *pchnl, u8 io_mode); |
137 | static void io_dispatch_msg(IN struct io_mgr *pio_mgr, | 137 | static void io_dispatch_msg(struct io_mgr *pio_mgr, |
138 | struct msg_mgr *hmsg_mgr); | 138 | struct msg_mgr *hmsg_mgr); |
139 | static void io_dispatch_pm(struct io_mgr *pio_mgr); | 139 | static void io_dispatch_pm(struct io_mgr *pio_mgr); |
140 | static void notify_chnl_complete(struct chnl_object *pchnl, | 140 | static void notify_chnl_complete(struct chnl_object *pchnl, |
@@ -163,7 +163,7 @@ static int register_shm_segs(struct io_mgr *hio_mgr, | |||
163 | */ | 163 | */ |
164 | int bridge_io_create(OUT struct io_mgr **io_man, | 164 | int bridge_io_create(OUT struct io_mgr **io_man, |
165 | struct dev_object *hdev_obj, | 165 | struct dev_object *hdev_obj, |
166 | IN const struct io_attrs *mgr_attrts) | 166 | const struct io_attrs *mgr_attrts) |
167 | { | 167 | { |
168 | int status = 0; | 168 | int status = 0; |
169 | struct io_mgr *pio_mgr = NULL; | 169 | struct io_mgr *pio_mgr = NULL; |
@@ -838,8 +838,8 @@ func_end: | |||
838 | * ======== io_dispatch_chnl ======== | 838 | * ======== io_dispatch_chnl ======== |
839 | * Proc-copy chanl dispatch. | 839 | * Proc-copy chanl dispatch. |
840 | */ | 840 | */ |
841 | static void io_dispatch_chnl(IN struct io_mgr *pio_mgr, | 841 | static void io_dispatch_chnl(struct io_mgr *pio_mgr, |
842 | IN OUT struct chnl_object *pchnl, u8 io_mode) | 842 | OUT struct chnl_object *pchnl, u8 io_mode) |
843 | { | 843 | { |
844 | if (!pio_mgr) | 844 | if (!pio_mgr) |
845 | goto func_end; | 845 | goto func_end; |
@@ -859,7 +859,7 @@ func_end: | |||
859 | * ======== io_dispatch_msg ======== | 859 | * ======== io_dispatch_msg ======== |
860 | * Performs I/O dispatch on message queues. | 860 | * Performs I/O dispatch on message queues. |
861 | */ | 861 | */ |
862 | static void io_dispatch_msg(IN struct io_mgr *pio_mgr, struct msg_mgr *hmsg_mgr) | 862 | static void io_dispatch_msg(struct io_mgr *pio_mgr, struct msg_mgr *hmsg_mgr) |
863 | { | 863 | { |
864 | if (!pio_mgr) | 864 | if (!pio_mgr) |
865 | goto func_end; | 865 | goto func_end; |
@@ -919,7 +919,7 @@ static void io_dispatch_pm(struct io_mgr *pio_mgr) | |||
919 | * out the dispatch of I/O as a non-preemptible event.It can only be | 919 | * out the dispatch of I/O as a non-preemptible event.It can only be |
920 | * pre-empted by an ISR. | 920 | * pre-empted by an ISR. |
921 | */ | 921 | */ |
922 | void io_dpc(IN OUT unsigned long ref_data) | 922 | void io_dpc(OUT unsigned long ref_data) |
923 | { | 923 | { |
924 | struct io_mgr *pio_mgr = (struct io_mgr *)ref_data; | 924 | struct io_mgr *pio_mgr = (struct io_mgr *)ref_data; |
925 | struct chnl_mgr *chnl_mgr_obj; | 925 | struct chnl_mgr *chnl_mgr_obj; |
@@ -1720,7 +1720,7 @@ static u32 write_data(struct bridge_dev_context *dev_ctxt, void *dest, | |||
1720 | } | 1720 | } |
1721 | 1721 | ||
1722 | /* ZCPY IO routines. */ | 1722 | /* ZCPY IO routines. */ |
1723 | void io_intr_dsp2(IN struct io_mgr *pio_mgr, IN u16 mb_val) | 1723 | void io_intr_dsp2(struct io_mgr *pio_mgr, u16 mb_val) |
1724 | { | 1724 | { |
1725 | sm_interrupt_dsp(pio_mgr->hbridge_context, mb_val); | 1725 | sm_interrupt_dsp(pio_mgr->hbridge_context, mb_val); |
1726 | } | 1726 | } |
@@ -1792,7 +1792,7 @@ int io_sh_msetting(struct io_mgr *hio_mgr, u8 desc, void *pargs) | |||
1792 | * ======== bridge_io_get_proc_load ======== | 1792 | * ======== bridge_io_get_proc_load ======== |
1793 | * Gets the Processor's Load information | 1793 | * Gets the Processor's Load information |
1794 | */ | 1794 | */ |
1795 | int bridge_io_get_proc_load(IN struct io_mgr *hio_mgr, | 1795 | int bridge_io_get_proc_load(struct io_mgr *hio_mgr, |
1796 | OUT struct dsp_procloadstat *proc_lstat) | 1796 | OUT struct dsp_procloadstat *proc_lstat) |
1797 | { | 1797 | { |
1798 | proc_lstat->curr_load = | 1798 | proc_lstat->curr_load = |
diff --git a/drivers/staging/tidspbridge/core/msg_sm.c b/drivers/staging/tidspbridge/core/msg_sm.c index 6434854e94a..26808fc1bb3 100644 --- a/drivers/staging/tidspbridge/core/msg_sm.c +++ b/drivers/staging/tidspbridge/core/msg_sm.c | |||
@@ -383,7 +383,7 @@ func_end: | |||
383 | * Put a message onto a msg_ctrl queue. | 383 | * Put a message onto a msg_ctrl queue. |
384 | */ | 384 | */ |
385 | int bridge_msg_put(struct msg_queue *msg_queue_obj, | 385 | int bridge_msg_put(struct msg_queue *msg_queue_obj, |
386 | IN const struct dsp_msg *pmsg, u32 utimeout) | 386 | const struct dsp_msg *pmsg, u32 utimeout) |
387 | { | 387 | { |
388 | struct msg_frame *msg_frame_obj; | 388 | struct msg_frame *msg_frame_obj; |
389 | struct msg_mgr *hmsg_mgr; | 389 | struct msg_mgr *hmsg_mgr; |
diff --git a/drivers/staging/tidspbridge/core/tiomap3430.c b/drivers/staging/tidspbridge/core/tiomap3430.c index 428389b0e19..4e1eee00ba3 100644 --- a/drivers/staging/tidspbridge/core/tiomap3430.c +++ b/drivers/staging/tidspbridge/core/tiomap3430.c | |||
@@ -85,7 +85,7 @@ static int bridge_brd_status(struct bridge_dev_context *dev_ctxt, | |||
85 | int *board_state); | 85 | int *board_state); |
86 | static int bridge_brd_stop(struct bridge_dev_context *dev_ctxt); | 86 | static int bridge_brd_stop(struct bridge_dev_context *dev_ctxt); |
87 | static int bridge_brd_write(struct bridge_dev_context *dev_ctxt, | 87 | static int bridge_brd_write(struct bridge_dev_context *dev_ctxt, |
88 | IN u8 *host_buff, | 88 | u8 *host_buff, |
89 | u32 dsp_addr, u32 ul_num_bytes, | 89 | u32 dsp_addr, u32 ul_num_bytes, |
90 | u32 mem_type); | 90 | u32 mem_type); |
91 | static int bridge_brd_set_state(struct bridge_dev_context *dev_ctxt, | 91 | static int bridge_brd_set_state(struct bridge_dev_context *dev_ctxt, |
@@ -94,7 +94,7 @@ static int bridge_brd_mem_copy(struct bridge_dev_context *dev_ctxt, | |||
94 | u32 dsp_dest_addr, u32 dsp_src_addr, | 94 | u32 dsp_dest_addr, u32 dsp_src_addr, |
95 | u32 ul_num_bytes, u32 mem_type); | 95 | u32 ul_num_bytes, u32 mem_type); |
96 | static int bridge_brd_mem_write(struct bridge_dev_context *dev_ctxt, | 96 | static int bridge_brd_mem_write(struct bridge_dev_context *dev_ctxt, |
97 | IN u8 *host_buff, u32 dsp_addr, | 97 | u8 *host_buff, u32 dsp_addr, |
98 | u32 ul_num_bytes, u32 mem_type); | 98 | u32 ul_num_bytes, u32 mem_type); |
99 | static int bridge_brd_mem_map(struct bridge_dev_context *dev_ctxt, | 99 | static int bridge_brd_mem_map(struct bridge_dev_context *dev_ctxt, |
100 | u32 ul_mpu_addr, u32 virt_addr, | 100 | u32 ul_mpu_addr, u32 virt_addr, |
@@ -105,9 +105,9 @@ static int bridge_brd_mem_un_map(struct bridge_dev_context *dev_ctxt, | |||
105 | static int bridge_dev_create(OUT struct bridge_dev_context | 105 | static int bridge_dev_create(OUT struct bridge_dev_context |
106 | **dev_cntxt, | 106 | **dev_cntxt, |
107 | struct dev_object *hdev_obj, | 107 | struct dev_object *hdev_obj, |
108 | IN struct cfg_hostres *config_param); | 108 | struct cfg_hostres *config_param); |
109 | static int bridge_dev_ctrl(struct bridge_dev_context *dev_context, | 109 | static int bridge_dev_ctrl(struct bridge_dev_context *dev_context, |
110 | u32 dw_cmd, IN OUT void *pargs); | 110 | u32 dw_cmd, OUT void *pargs); |
111 | static int bridge_dev_destroy(struct bridge_dev_context *dev_ctxt); | 111 | static int bridge_dev_destroy(struct bridge_dev_context *dev_ctxt); |
112 | static u32 user_va2_pa(struct mm_struct *mm, u32 address); | 112 | static u32 user_va2_pa(struct mm_struct *mm, u32 address); |
113 | static int pte_update(struct bridge_dev_context *dev_ctxt, u32 pa, | 113 | static int pte_update(struct bridge_dev_context *dev_ctxt, u32 pa, |
@@ -237,7 +237,7 @@ static void bad_page_dump(u32 pa, struct page *pg) | |||
237 | * Bridge Driver entry point. | 237 | * Bridge Driver entry point. |
238 | */ | 238 | */ |
239 | void bridge_drv_entry(OUT struct bridge_drv_interface **drv_intf, | 239 | void bridge_drv_entry(OUT struct bridge_drv_interface **drv_intf, |
240 | IN const char *driver_file_name) | 240 | const char *driver_file_name) |
241 | { | 241 | { |
242 | 242 | ||
243 | DBC_REQUIRE(driver_file_name != NULL); | 243 | DBC_REQUIRE(driver_file_name != NULL); |
@@ -759,7 +759,7 @@ static int bridge_brd_status(struct bridge_dev_context *dev_ctxt, | |||
759 | * Copies the buffers to DSP internal or external memory. | 759 | * Copies the buffers to DSP internal or external memory. |
760 | */ | 760 | */ |
761 | static int bridge_brd_write(struct bridge_dev_context *dev_ctxt, | 761 | static int bridge_brd_write(struct bridge_dev_context *dev_ctxt, |
762 | IN u8 *host_buff, u32 dsp_addr, | 762 | u8 *host_buff, u32 dsp_addr, |
763 | u32 ul_num_bytes, u32 mem_type) | 763 | u32 ul_num_bytes, u32 mem_type) |
764 | { | 764 | { |
765 | int status = 0; | 765 | int status = 0; |
@@ -788,7 +788,7 @@ static int bridge_brd_write(struct bridge_dev_context *dev_ctxt, | |||
788 | static int bridge_dev_create(OUT struct bridge_dev_context | 788 | static int bridge_dev_create(OUT struct bridge_dev_context |
789 | **dev_cntxt, | 789 | **dev_cntxt, |
790 | struct dev_object *hdev_obj, | 790 | struct dev_object *hdev_obj, |
791 | IN struct cfg_hostres *config_param) | 791 | struct cfg_hostres *config_param) |
792 | { | 792 | { |
793 | int status = 0; | 793 | int status = 0; |
794 | struct bridge_dev_context *dev_context = NULL; | 794 | struct bridge_dev_context *dev_context = NULL; |
@@ -954,7 +954,7 @@ func_end: | |||
954 | * Receives device specific commands. | 954 | * Receives device specific commands. |
955 | */ | 955 | */ |
956 | static int bridge_dev_ctrl(struct bridge_dev_context *dev_context, | 956 | static int bridge_dev_ctrl(struct bridge_dev_context *dev_context, |
957 | u32 dw_cmd, IN OUT void *pargs) | 957 | u32 dw_cmd, OUT void *pargs) |
958 | { | 958 | { |
959 | int status = 0; | 959 | int status = 0; |
960 | struct bridge_ioctl_extproc *pa_ext_proc = | 960 | struct bridge_ioctl_extproc *pa_ext_proc = |
@@ -1141,7 +1141,7 @@ static int bridge_brd_mem_copy(struct bridge_dev_context *dev_ctxt, | |||
1141 | 1141 | ||
1142 | /* Mem Write does not halt the DSP to write unlike bridge_brd_write */ | 1142 | /* Mem Write does not halt the DSP to write unlike bridge_brd_write */ |
1143 | static int bridge_brd_mem_write(struct bridge_dev_context *dev_ctxt, | 1143 | static int bridge_brd_mem_write(struct bridge_dev_context *dev_ctxt, |
1144 | IN u8 *host_buff, u32 dsp_addr, | 1144 | u8 *host_buff, u32 dsp_addr, |
1145 | u32 ul_num_bytes, u32 mem_type) | 1145 | u32 ul_num_bytes, u32 mem_type) |
1146 | { | 1146 | { |
1147 | int status = 0; | 1147 | int status = 0; |
diff --git a/drivers/staging/tidspbridge/core/tiomap3430_pwr.c b/drivers/staging/tidspbridge/core/tiomap3430_pwr.c index 384b833dc3e..dc63b3ae837 100644 --- a/drivers/staging/tidspbridge/core/tiomap3430_pwr.c +++ b/drivers/staging/tidspbridge/core/tiomap3430_pwr.c | |||
@@ -50,7 +50,7 @@ | |||
50 | * Sets new DSP constraint | 50 | * Sets new DSP constraint |
51 | */ | 51 | */ |
52 | int handle_constraints_set(struct bridge_dev_context *dev_context, | 52 | int handle_constraints_set(struct bridge_dev_context *dev_context, |
53 | IN void *pargs) | 53 | void *pargs) |
54 | { | 54 | { |
55 | #ifdef CONFIG_TIDSPBRIDGE_DVFS | 55 | #ifdef CONFIG_TIDSPBRIDGE_DVFS |
56 | u32 *constraint_val; | 56 | u32 *constraint_val; |
@@ -142,8 +142,8 @@ int handle_hibernation_from_dsp(struct bridge_dev_context *dev_context) | |||
142 | * ======== sleep_dsp ======== | 142 | * ======== sleep_dsp ======== |
143 | * Put DSP in low power consuming state. | 143 | * Put DSP in low power consuming state. |
144 | */ | 144 | */ |
145 | int sleep_dsp(struct bridge_dev_context *dev_context, IN u32 dw_cmd, | 145 | int sleep_dsp(struct bridge_dev_context *dev_context, u32 dw_cmd, |
146 | IN void *pargs) | 146 | void *pargs) |
147 | { | 147 | { |
148 | int status = 0; | 148 | int status = 0; |
149 | #ifdef CONFIG_PM | 149 | #ifdef CONFIG_PM |
@@ -248,7 +248,7 @@ int sleep_dsp(struct bridge_dev_context *dev_context, IN u32 dw_cmd, | |||
248 | * ======== wake_dsp ======== | 248 | * ======== wake_dsp ======== |
249 | * Wake up DSP from sleep. | 249 | * Wake up DSP from sleep. |
250 | */ | 250 | */ |
251 | int wake_dsp(struct bridge_dev_context *dev_context, IN void *pargs) | 251 | int wake_dsp(struct bridge_dev_context *dev_context, void *pargs) |
252 | { | 252 | { |
253 | int status = 0; | 253 | int status = 0; |
254 | #ifdef CONFIG_PM | 254 | #ifdef CONFIG_PM |
@@ -275,7 +275,7 @@ int wake_dsp(struct bridge_dev_context *dev_context, IN void *pargs) | |||
275 | * Enable/Disable the DSP peripheral clocks as needed.. | 275 | * Enable/Disable the DSP peripheral clocks as needed.. |
276 | */ | 276 | */ |
277 | int dsp_peripheral_clk_ctrl(struct bridge_dev_context *dev_context, | 277 | int dsp_peripheral_clk_ctrl(struct bridge_dev_context *dev_context, |
278 | IN void *pargs) | 278 | void *pargs) |
279 | { | 279 | { |
280 | u32 ext_clk = 0; | 280 | u32 ext_clk = 0; |
281 | u32 ext_clk_id = 0; | 281 | u32 ext_clk_id = 0; |
@@ -336,7 +336,7 @@ int dsp_peripheral_clk_ctrl(struct bridge_dev_context *dev_context, | |||
336 | * Sends prescale notification to DSP | 336 | * Sends prescale notification to DSP |
337 | * | 337 | * |
338 | */ | 338 | */ |
339 | int pre_scale_dsp(struct bridge_dev_context *dev_context, IN void *pargs) | 339 | int pre_scale_dsp(struct bridge_dev_context *dev_context, void *pargs) |
340 | { | 340 | { |
341 | #ifdef CONFIG_TIDSPBRIDGE_DVFS | 341 | #ifdef CONFIG_TIDSPBRIDGE_DVFS |
342 | u32 level; | 342 | u32 level; |
@@ -370,7 +370,7 @@ int pre_scale_dsp(struct bridge_dev_context *dev_context, IN void *pargs) | |||
370 | * | 370 | * |
371 | */ | 371 | */ |
372 | int post_scale_dsp(struct bridge_dev_context *dev_context, | 372 | int post_scale_dsp(struct bridge_dev_context *dev_context, |
373 | IN void *pargs) | 373 | void *pargs) |
374 | { | 374 | { |
375 | int status = 0; | 375 | int status = 0; |
376 | #ifdef CONFIG_TIDSPBRIDGE_DVFS | 376 | #ifdef CONFIG_TIDSPBRIDGE_DVFS |
diff --git a/drivers/staging/tidspbridge/core/tiomap_io.c b/drivers/staging/tidspbridge/core/tiomap_io.c index 4153eefce3f..bfe47c52ffe 100644 --- a/drivers/staging/tidspbridge/core/tiomap_io.c +++ b/drivers/staging/tidspbridge/core/tiomap_io.c | |||
@@ -179,7 +179,7 @@ int read_ext_dsp_data(struct bridge_dev_context *dev_ctxt, | |||
179 | * Copies buffers to the DSP internal/external memory. | 179 | * Copies buffers to the DSP internal/external memory. |
180 | */ | 180 | */ |
181 | int write_dsp_data(struct bridge_dev_context *dev_context, | 181 | int write_dsp_data(struct bridge_dev_context *dev_context, |
182 | IN u8 *host_buff, u32 dsp_addr, u32 ul_num_bytes, | 182 | u8 *host_buff, u32 dsp_addr, u32 ul_num_bytes, |
183 | u32 mem_type) | 183 | u32 mem_type) |
184 | { | 184 | { |
185 | u32 offset; | 185 | u32 offset; |
@@ -225,7 +225,7 @@ int write_dsp_data(struct bridge_dev_context *dev_context, | |||
225 | * | 225 | * |
226 | */ | 226 | */ |
227 | int write_ext_dsp_data(struct bridge_dev_context *dev_context, | 227 | int write_ext_dsp_data(struct bridge_dev_context *dev_context, |
228 | IN u8 *host_buff, u32 dsp_addr, | 228 | u8 *host_buff, u32 dsp_addr, |
229 | u32 ul_num_bytes, u32 mem_type, | 229 | u32 ul_num_bytes, u32 mem_type, |
230 | bool dynamic_load) | 230 | bool dynamic_load) |
231 | { | 231 | { |
diff --git a/drivers/staging/tidspbridge/core/tiomap_io.h b/drivers/staging/tidspbridge/core/tiomap_io.h index 5a26ea04e8c..5358752616d 100644 --- a/drivers/staging/tidspbridge/core/tiomap_io.h +++ b/drivers/staging/tidspbridge/core/tiomap_io.h | |||
@@ -65,7 +65,7 @@ extern int write_dsp_data(struct bridge_dev_context *dev_context, | |||
65 | * shm Memory manager in the CDB | 65 | * shm Memory manager in the CDB |
66 | */ | 66 | */ |
67 | extern int write_ext_dsp_data(struct bridge_dev_context *dev_context, | 67 | extern int write_ext_dsp_data(struct bridge_dev_context *dev_context, |
68 | IN u8 *host_buff, u32 dsp_addr, | 68 | u8 *host_buff, u32 dsp_addr, |
69 | u32 ul_num_bytes, u32 mem_type, | 69 | u32 ul_num_bytes, u32 mem_type, |
70 | bool dynamic_load); | 70 | bool dynamic_load); |
71 | 71 | ||
@@ -73,9 +73,9 @@ extern int write_ext_dsp_data(struct bridge_dev_context *dev_context, | |||
73 | * ======== write_ext32_bit_dsp_data ======== | 73 | * ======== write_ext32_bit_dsp_data ======== |
74 | * Writes 32 bit data to the external memory | 74 | * Writes 32 bit data to the external memory |
75 | */ | 75 | */ |
76 | extern inline void write_ext32_bit_dsp_data(IN const | 76 | extern inline void write_ext32_bit_dsp_data(const |
77 | struct bridge_dev_context *dev_context, | 77 | struct bridge_dev_context *dev_context, |
78 | IN u32 dsp_addr, IN u32 val) | 78 | u32 dsp_addr, u32 val) |
79 | { | 79 | { |
80 | *(u32 *) dsp_addr = ((dev_context->tc_word_swap_on) ? (((val << 16) & | 80 | *(u32 *) dsp_addr = ((dev_context->tc_word_swap_on) ? (((val << 16) & |
81 | 0xFFFF0000) | | 81 | 0xFFFF0000) | |
@@ -88,8 +88,8 @@ extern inline void write_ext32_bit_dsp_data(IN const | |||
88 | * ======== read_ext32_bit_dsp_data ======== | 88 | * ======== read_ext32_bit_dsp_data ======== |
89 | * Reads 32 bit data from the external memory | 89 | * Reads 32 bit data from the external memory |
90 | */ | 90 | */ |
91 | extern inline u32 read_ext32_bit_dsp_data(IN const struct bridge_dev_context | 91 | extern inline u32 read_ext32_bit_dsp_data(const struct bridge_dev_context |
92 | *dev_context, IN u32 dsp_addr) | 92 | *dev_context, u32 dsp_addr) |
93 | { | 93 | { |
94 | u32 ret; | 94 | u32 ret; |
95 | ret = *(u32 *) dsp_addr; | 95 | ret = *(u32 *) dsp_addr; |
diff --git a/drivers/staging/tidspbridge/dynload/cload.c b/drivers/staging/tidspbridge/dynload/cload.c index d4f71b585a5..e48e91b9315 100644 --- a/drivers/staging/tidspbridge/dynload/cload.c +++ b/drivers/staging/tidspbridge/dynload/cload.c | |||
@@ -961,7 +961,7 @@ static void cload_cinit(struct dload_state *dlthis, | |||
961 | ldr_addr atmp; | 961 | ldr_addr atmp; |
962 | struct ldr_section_info cinit_info; | 962 | struct ldr_section_info cinit_info; |
963 | 963 | ||
964 | /* PROCESS ALL THE INITIALIZATION RECORDS IN THE BUFFER. */ | 964 | /* PROCESS ALL THE INITIALIZATION RECORDS THE BUFFER. */ |
965 | while (true) { | 965 | while (true) { |
966 | left = pktend - pktp; | 966 | left = pktend - pktp; |
967 | switch (dlthis->cinit_state) { | 967 | switch (dlthis->cinit_state) { |
diff --git a/drivers/staging/tidspbridge/dynload/tramp_table_c6000.c b/drivers/staging/tidspbridge/dynload/tramp_table_c6000.c index e38d631b321..47b7492717d 100644 --- a/drivers/staging/tidspbridge/dynload/tramp_table_c6000.c +++ b/drivers/staging/tidspbridge/dynload/tramp_table_c6000.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #define C6X_TRAMP_WORD_COUNT 8 | 26 | #define C6X_TRAMP_WORD_COUNT 8 |
27 | #define C6X_TRAMP_MAX_RELOS 8 | 27 | #define C6X_TRAMP_MAX_RELOS 8 |
28 | 28 | ||
29 | /* THIS HASH FUNCTION MUST MATCH THE ONE IN reloc_table_c6000.c */ | 29 | /* THIS HASH FUNCTION MUST MATCH THE ONE reloc_table_c6000.c */ |
30 | #define HASH_FUNC(zz) (((((zz) + 1) * UINT32_C(1845)) >> 11) & 63) | 30 | #define HASH_FUNC(zz) (((((zz) + 1) * UINT32_C(1845)) >> 11) & 63) |
31 | 31 | ||
32 | /* THIS MUST MATCH reloc_record_t FOR A SYMBOL BASED RELO */ | 32 | /* THIS MUST MATCH reloc_record_t FOR A SYMBOL BASED RELO */ |
diff --git a/drivers/staging/tidspbridge/gen/uuidutil.c b/drivers/staging/tidspbridge/gen/uuidutil.c index 9a112b3ca8e..af0b44ec562 100644 --- a/drivers/staging/tidspbridge/gen/uuidutil.c +++ b/drivers/staging/tidspbridge/gen/uuidutil.c | |||
@@ -36,8 +36,8 @@ | |||
36 | * Note: snprintf format specifier is: | 36 | * Note: snprintf format specifier is: |
37 | * %[flags] [width] [.precision] [{h | l | I64 | L}]type | 37 | * %[flags] [width] [.precision] [{h | l | I64 | L}]type |
38 | */ | 38 | */ |
39 | void uuid_uuid_to_string(IN struct dsp_uuid *uuid_obj, OUT char *sz_uuid, | 39 | void uuid_uuid_to_string(struct dsp_uuid *uuid_obj, OUT char *sz_uuid, |
40 | IN s32 size) | 40 | s32 size) |
41 | { | 41 | { |
42 | s32 i; /* return result from snprintf. */ | 42 | s32 i; /* return result from snprintf. */ |
43 | 43 | ||
@@ -75,7 +75,7 @@ static s32 uuid_hex_to_bin(char *buf, s32 len) | |||
75 | * Purpose: | 75 | * Purpose: |
76 | * Converts a string to a struct dsp_uuid. | 76 | * Converts a string to a struct dsp_uuid. |
77 | */ | 77 | */ |
78 | void uuid_uuid_from_string(IN char *sz_uuid, OUT struct dsp_uuid *uuid_obj) | 78 | void uuid_uuid_from_string(char *sz_uuid, OUT struct dsp_uuid *uuid_obj) |
79 | { | 79 | { |
80 | s32 j; | 80 | s32 j; |
81 | 81 | ||
diff --git a/drivers/staging/tidspbridge/include/dspbridge/cfg.h b/drivers/staging/tidspbridge/include/dspbridge/cfg.h index 1422ed053e6..df1ae63a882 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/cfg.h +++ b/drivers/staging/tidspbridge/include/dspbridge/cfg.h | |||
@@ -50,7 +50,7 @@ extern void cfg_exit(void); | |||
50 | * Ensures: | 50 | * Ensures: |
51 | * 0: *auto_start contains autostart mask for this devnode. | 51 | * 0: *auto_start contains autostart mask for this devnode. |
52 | */ | 52 | */ |
53 | extern int cfg_get_auto_start(IN struct cfg_devnode *dev_node_obj, | 53 | extern int cfg_get_auto_start(struct cfg_devnode *dev_node_obj, |
54 | OUT u32 *auto_start); | 54 | OUT u32 *auto_start); |
55 | 55 | ||
56 | /* | 56 | /* |
@@ -90,7 +90,7 @@ extern int cfg_get_cd_version(OUT u32 *version); | |||
90 | * 0: *value is set to the retrieved u32. | 90 | * 0: *value is set to the retrieved u32. |
91 | * else: *value is set to 0L. | 91 | * else: *value is set to 0L. |
92 | */ | 92 | */ |
93 | extern int cfg_get_dev_object(IN struct cfg_devnode *dev_node_obj, | 93 | extern int cfg_get_dev_object(struct cfg_devnode *dev_node_obj, |
94 | OUT u32 *value); | 94 | OUT u32 *value); |
95 | 95 | ||
96 | /* | 96 | /* |
@@ -112,8 +112,8 @@ extern int cfg_get_dev_object(IN struct cfg_devnode *dev_node_obj, | |||
112 | * and *str_exec_file contains default executable for this | 112 | * and *str_exec_file contains default executable for this |
113 | * devnode. | 113 | * devnode. |
114 | */ | 114 | */ |
115 | extern int cfg_get_exec_file(IN struct cfg_devnode *dev_node_obj, | 115 | extern int cfg_get_exec_file(struct cfg_devnode *dev_node_obj, |
116 | IN u32 buf_size, OUT char *str_exec_file); | 116 | u32 buf_size, OUT char *str_exec_file); |
117 | 117 | ||
118 | /* | 118 | /* |
119 | * ======== cfg_get_object ======== | 119 | * ======== cfg_get_object ======== |
@@ -167,8 +167,8 @@ extern void cfg_get_perf_value(OUT bool *enable_perf); | |||
167 | * str_zl_file_name, and *str_zl_file_name contains ZLFileName | 167 | * str_zl_file_name, and *str_zl_file_name contains ZLFileName |
168 | * for this devnode. | 168 | * for this devnode. |
169 | */ | 169 | */ |
170 | extern int cfg_get_zl_file(IN struct cfg_devnode *dev_node_obj, | 170 | extern int cfg_get_zl_file(struct cfg_devnode *dev_node_obj, |
171 | IN u32 buf_size, OUT char *str_zl_file_name); | 171 | u32 buf_size, OUT char *str_zl_file_name); |
172 | 172 | ||
173 | /* | 173 | /* |
174 | * ======== cfg_init ======== | 174 | * ======== cfg_init ======== |
@@ -199,8 +199,8 @@ extern bool cfg_init(void); | |||
199 | * Ensures: | 199 | * Ensures: |
200 | * 0: The Private u32 was successfully set. | 200 | * 0: The Private u32 was successfully set. |
201 | */ | 201 | */ |
202 | extern int cfg_set_dev_object(IN struct cfg_devnode *dev_node_obj, | 202 | extern int cfg_set_dev_object(struct cfg_devnode *dev_node_obj, |
203 | IN u32 value); | 203 | u32 value); |
204 | 204 | ||
205 | /* | 205 | /* |
206 | * ======== CFG_SetDrvObject ======== | 206 | * ======== CFG_SetDrvObject ======== |
@@ -217,6 +217,6 @@ extern int cfg_set_dev_object(IN struct cfg_devnode *dev_node_obj, | |||
217 | * Ensures: | 217 | * Ensures: |
218 | * 0: The Private u32 was successfully set. | 218 | * 0: The Private u32 was successfully set. |
219 | */ | 219 | */ |
220 | extern int cfg_set_object(IN u32 value, u8 dw_type); | 220 | extern int cfg_set_object(u32 value, u8 dw_type); |
221 | 221 | ||
222 | #endif /* CFG_ */ | 222 | #endif /* CFG_ */ |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/chnl.h b/drivers/staging/tidspbridge/include/dspbridge/chnl.h index 96262a31c98..ae460a5db35 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/chnl.h +++ b/drivers/staging/tidspbridge/include/dspbridge/chnl.h | |||
@@ -79,7 +79,7 @@ extern int chnl_close(struct chnl_object *chnl_obj); | |||
79 | */ | 79 | */ |
80 | extern int chnl_create(OUT struct chnl_mgr **channel_mgr, | 80 | extern int chnl_create(OUT struct chnl_mgr **channel_mgr, |
81 | struct dev_object *hdev_obj, | 81 | struct dev_object *hdev_obj, |
82 | IN const struct chnl_mgrattrs *mgr_attrts); | 82 | const struct chnl_mgrattrs *mgr_attrts); |
83 | 83 | ||
84 | /* | 84 | /* |
85 | * ======== chnl_destroy ======== | 85 | * ======== chnl_destroy ======== |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/clk.h b/drivers/staging/tidspbridge/include/dspbridge/clk.h index 61474bc8b80..b2395032342 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/clk.h +++ b/drivers/staging/tidspbridge/include/dspbridge/clk.h | |||
@@ -75,7 +75,7 @@ void dsp_gpt_wait_overflow(short int clk_id, unsigned int load); | |||
75 | * Requires: | 75 | * Requires: |
76 | * Ensures: | 76 | * Ensures: |
77 | */ | 77 | */ |
78 | extern int dsp_clk_enable(IN enum dsp_clk_id clk_id); | 78 | extern int dsp_clk_enable(enum dsp_clk_id clk_id); |
79 | 79 | ||
80 | u32 dsp_clock_enable_all(u32 dsp_per_clocks); | 80 | u32 dsp_clock_enable_all(u32 dsp_per_clocks); |
81 | 81 | ||
@@ -90,7 +90,7 @@ u32 dsp_clock_enable_all(u32 dsp_per_clocks); | |||
90 | * Requires: | 90 | * Requires: |
91 | * Ensures: | 91 | * Ensures: |
92 | */ | 92 | */ |
93 | extern int dsp_clk_disable(IN enum dsp_clk_id clk_id); | 93 | extern int dsp_clk_disable(enum dsp_clk_id clk_id); |
94 | 94 | ||
95 | extern u32 dsp_clk_get_iva2_rate(void); | 95 | extern u32 dsp_clk_get_iva2_rate(void); |
96 | 96 | ||
diff --git a/drivers/staging/tidspbridge/include/dspbridge/cmm.h b/drivers/staging/tidspbridge/include/dspbridge/cmm.h index a30078d8332..aa573fd83da 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/cmm.h +++ b/drivers/staging/tidspbridge/include/dspbridge/cmm.h | |||
@@ -87,7 +87,7 @@ extern void *cmm_calloc_buf(struct cmm_object *hcmm_mgr, | |||
87 | */ | 87 | */ |
88 | extern int cmm_create(OUT struct cmm_object **ph_cmm_mgr, | 88 | extern int cmm_create(OUT struct cmm_object **ph_cmm_mgr, |
89 | struct dev_object *hdev_obj, | 89 | struct dev_object *hdev_obj, |
90 | IN const struct cmm_mgrattrs *mgr_attrts); | 90 | const struct cmm_mgrattrs *mgr_attrts); |
91 | 91 | ||
92 | /* | 92 | /* |
93 | * ======== cmm_destroy ======== | 93 | * ======== cmm_destroy ======== |
@@ -359,7 +359,7 @@ extern int cmm_xlator_free_buf(struct cmm_xlatorobject *xlator, | |||
359 | * | 359 | * |
360 | */ | 360 | */ |
361 | extern int cmm_xlator_info(struct cmm_xlatorobject *xlator, | 361 | extern int cmm_xlator_info(struct cmm_xlatorobject *xlator, |
362 | IN OUT u8 **paddr, | 362 | OUT u8 **paddr, |
363 | u32 ul_size, u32 segm_id, bool set_info); | 363 | u32 ul_size, u32 segm_id, bool set_info); |
364 | 364 | ||
365 | /* | 365 | /* |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/cod.h b/drivers/staging/tidspbridge/include/dspbridge/cod.h index 3c883046031..6f01c62c7e6 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/cod.h +++ b/drivers/staging/tidspbridge/include/dspbridge/cod.h | |||
@@ -93,7 +93,7 @@ extern void cod_close(struct cod_libraryobj *lib); | |||
93 | */ | 93 | */ |
94 | extern int cod_create(OUT struct cod_manager **mgr, | 94 | extern int cod_create(OUT struct cod_manager **mgr, |
95 | char *str_zl_file, | 95 | char *str_zl_file, |
96 | IN OPTIONAL const struct cod_attrs *attrs); | 96 | OPTIONAL const struct cod_attrs *attrs); |
97 | 97 | ||
98 | /* | 98 | /* |
99 | * ======== cod_delete ======== | 99 | * ======== cod_delete ======== |
@@ -226,7 +226,7 @@ extern int cod_get_loader(struct cod_manager *cod_mgr_obj, | |||
226 | * | 226 | * |
227 | */ | 227 | */ |
228 | extern int cod_get_section(struct cod_libraryobj *lib, | 228 | extern int cod_get_section(struct cod_libraryobj *lib, |
229 | IN char *str_sect, | 229 | char *str_sect, |
230 | OUT u32 *addr, OUT u32 *len); | 230 | OUT u32 *addr, OUT u32 *len); |
231 | 231 | ||
232 | /* | 232 | /* |
@@ -251,7 +251,7 @@ extern int cod_get_section(struct cod_libraryobj *lib, | |||
251 | * Ensures: | 251 | * Ensures: |
252 | */ | 252 | */ |
253 | extern int cod_get_sym_value(struct cod_manager *cod_mgr_obj, | 253 | extern int cod_get_sym_value(struct cod_manager *cod_mgr_obj, |
254 | IN char *str_sym, OUT u32 * pul_value); | 254 | char *str_sym, OUT u32 * pul_value); |
255 | 255 | ||
256 | /* | 256 | /* |
257 | * ======== cod_init ======== | 257 | * ======== cod_init ======== |
@@ -320,7 +320,7 @@ extern int cod_load_base(struct cod_manager *cod_mgr_obj, | |||
320 | * Ensures: | 320 | * Ensures: |
321 | */ | 321 | */ |
322 | extern int cod_open(struct cod_manager *hmgr, | 322 | extern int cod_open(struct cod_manager *hmgr, |
323 | IN char *sz_coff_path, | 323 | char *sz_coff_path, |
324 | u32 flags, OUT struct cod_libraryobj **lib_obj); | 324 | u32 flags, OUT struct cod_libraryobj **lib_obj); |
325 | 325 | ||
326 | /* | 326 | /* |
@@ -340,7 +340,7 @@ extern int cod_open(struct cod_manager *hmgr, | |||
340 | * sz_coff_path != NULL. | 340 | * sz_coff_path != NULL. |
341 | * Ensures: | 341 | * Ensures: |
342 | */ | 342 | */ |
343 | extern int cod_open_base(struct cod_manager *hmgr, IN char *sz_coff_path, | 343 | extern int cod_open_base(struct cod_manager *hmgr, char *sz_coff_path, |
344 | dbll_flags flags); | 344 | dbll_flags flags); |
345 | 345 | ||
346 | /* | 346 | /* |
@@ -363,7 +363,7 @@ extern int cod_open_base(struct cod_manager *hmgr, IN char *sz_coff_path, | |||
363 | * 0: *str_content stores the content of the named section. | 363 | * 0: *str_content stores the content of the named section. |
364 | */ | 364 | */ |
365 | extern int cod_read_section(struct cod_libraryobj *lib, | 365 | extern int cod_read_section(struct cod_libraryobj *lib, |
366 | IN char *str_sect, | 366 | char *str_sect, |
367 | OUT char *str_content, IN u32 content_size); | 367 | OUT char *str_content, u32 content_size); |
368 | 368 | ||
369 | #endif /* COD_ */ | 369 | #endif /* COD_ */ |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dbdcd.h b/drivers/staging/tidspbridge/include/dspbridge/dbdcd.h index 5e3b7f785fe..dc9512cf4c6 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dbdcd.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dbdcd.h | |||
@@ -44,8 +44,8 @@ | |||
44 | * COFF file to contain the right COFF sections, especially | 44 | * COFF file to contain the right COFF sections, especially |
45 | * ".dcd_register", which is used for auto registration. | 45 | * ".dcd_register", which is used for auto registration. |
46 | */ | 46 | */ |
47 | extern int dcd_auto_register(IN struct dcd_manager *hdcd_mgr, | 47 | extern int dcd_auto_register(struct dcd_manager *hdcd_mgr, |
48 | IN char *sz_coff_path); | 48 | char *sz_coff_path); |
49 | 49 | ||
50 | /* | 50 | /* |
51 | * ======== dcd_auto_unregister ======== | 51 | * ======== dcd_auto_unregister ======== |
@@ -68,8 +68,8 @@ extern int dcd_auto_register(IN struct dcd_manager *hdcd_mgr, | |||
68 | * COFF file to contain the right COFF sections, especially | 68 | * COFF file to contain the right COFF sections, especially |
69 | * ".dcd_register", which is used for auto unregistration. | 69 | * ".dcd_register", which is used for auto unregistration. |
70 | */ | 70 | */ |
71 | extern int dcd_auto_unregister(IN struct dcd_manager *hdcd_mgr, | 71 | extern int dcd_auto_unregister(struct dcd_manager *hdcd_mgr, |
72 | IN char *sz_coff_path); | 72 | char *sz_coff_path); |
73 | 73 | ||
74 | /* | 74 | /* |
75 | * ======== dcd_create_manager ======== | 75 | * ======== dcd_create_manager ======== |
@@ -89,7 +89,7 @@ extern int dcd_auto_unregister(IN struct dcd_manager *hdcd_mgr, | |||
89 | * Ensures: | 89 | * Ensures: |
90 | * A DCD manager handle is created. | 90 | * A DCD manager handle is created. |
91 | */ | 91 | */ |
92 | extern int dcd_create_manager(IN char *sz_zl_dll_name, | 92 | extern int dcd_create_manager(char *sz_zl_dll_name, |
93 | OUT struct dcd_manager **dcd_mgr); | 93 | OUT struct dcd_manager **dcd_mgr); |
94 | 94 | ||
95 | /* | 95 | /* |
@@ -105,7 +105,7 @@ extern int dcd_create_manager(IN char *sz_zl_dll_name, | |||
105 | * DCD initialized. | 105 | * DCD initialized. |
106 | * Ensures: | 106 | * Ensures: |
107 | */ | 107 | */ |
108 | extern int dcd_destroy_manager(IN struct dcd_manager *hdcd_mgr); | 108 | extern int dcd_destroy_manager(struct dcd_manager *hdcd_mgr); |
109 | 109 | ||
110 | /* | 110 | /* |
111 | * ======== dcd_enumerate_object ======== | 111 | * ======== dcd_enumerate_object ======== |
@@ -128,8 +128,8 @@ extern int dcd_destroy_manager(IN struct dcd_manager *hdcd_mgr); | |||
128 | * This function can be used in conjunction with dcd_get_object_def to | 128 | * This function can be used in conjunction with dcd_get_object_def to |
129 | * retrieve object properties. | 129 | * retrieve object properties. |
130 | */ | 130 | */ |
131 | extern int dcd_enumerate_object(IN s32 index, | 131 | extern int dcd_enumerate_object(s32 index, |
132 | IN enum dsp_dcdobjtype obj_type, | 132 | enum dsp_dcdobjtype obj_type, |
133 | OUT struct dsp_uuid *uuid_obj); | 133 | OUT struct dsp_uuid *uuid_obj); |
134 | 134 | ||
135 | /* | 135 | /* |
@@ -169,12 +169,12 @@ extern void dcd_exit(void); | |||
169 | * dep_lib_uuids != NULL. | 169 | * dep_lib_uuids != NULL. |
170 | * Ensures: | 170 | * Ensures: |
171 | */ | 171 | */ |
172 | extern int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr, | 172 | extern int dcd_get_dep_libs(struct dcd_manager *hdcd_mgr, |
173 | IN struct dsp_uuid *uuid_obj, | 173 | struct dsp_uuid *uuid_obj, |
174 | u16 num_libs, | 174 | u16 num_libs, |
175 | OUT struct dsp_uuid *dep_lib_uuids, | 175 | OUT struct dsp_uuid *dep_lib_uuids, |
176 | OUT bool *prstnt_dep_libs, | 176 | OUT bool *prstnt_dep_libs, |
177 | IN enum nldr_phase phase); | 177 | enum nldr_phase phase); |
178 | 178 | ||
179 | /* | 179 | /* |
180 | * ======== dcd_get_num_dep_libs ======== | 180 | * ======== dcd_get_num_dep_libs ======== |
@@ -199,11 +199,11 @@ extern int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr, | |||
199 | * num_libs != NULL. | 199 | * num_libs != NULL. |
200 | * Ensures: | 200 | * Ensures: |
201 | */ | 201 | */ |
202 | extern int dcd_get_num_dep_libs(IN struct dcd_manager *hdcd_mgr, | 202 | extern int dcd_get_num_dep_libs(struct dcd_manager *hdcd_mgr, |
203 | IN struct dsp_uuid *uuid_obj, | 203 | struct dsp_uuid *uuid_obj, |
204 | OUT u16 *num_libs, | 204 | OUT u16 *num_libs, |
205 | OUT u16 *num_pers_libs, | 205 | OUT u16 *num_pers_libs, |
206 | IN enum nldr_phase phase); | 206 | enum nldr_phase phase); |
207 | 207 | ||
208 | /* | 208 | /* |
209 | * ======== dcd_get_library_name ======== | 209 | * ======== dcd_get_library_name ======== |
@@ -229,11 +229,11 @@ extern int dcd_get_num_dep_libs(IN struct dcd_manager *hdcd_mgr, | |||
229 | * buff_size != NULL. | 229 | * buff_size != NULL. |
230 | * Ensures: | 230 | * Ensures: |
231 | */ | 231 | */ |
232 | extern int dcd_get_library_name(IN struct dcd_manager *hdcd_mgr, | 232 | extern int dcd_get_library_name(struct dcd_manager *hdcd_mgr, |
233 | IN struct dsp_uuid *uuid_obj, | 233 | struct dsp_uuid *uuid_obj, |
234 | IN OUT char *str_lib_name, | 234 | OUT char *str_lib_name, |
235 | IN OUT u32 *buff_size, | 235 | OUT u32 *buff_size, |
236 | IN enum nldr_phase phase, | 236 | enum nldr_phase phase, |
237 | OUT bool *phase_split); | 237 | OUT bool *phase_split); |
238 | 238 | ||
239 | /* | 239 | /* |
@@ -261,9 +261,9 @@ extern int dcd_get_library_name(IN struct dcd_manager *hdcd_mgr, | |||
261 | * obj_def is non-NULL. | 261 | * obj_def is non-NULL. |
262 | * Ensures: | 262 | * Ensures: |
263 | */ | 263 | */ |
264 | extern int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr, | 264 | extern int dcd_get_object_def(struct dcd_manager *hdcd_mgr, |
265 | IN struct dsp_uuid *obj_uuid, | 265 | struct dsp_uuid *obj_uuid, |
266 | IN enum dsp_dcdobjtype obj_type, | 266 | enum dsp_dcdobjtype obj_type, |
267 | OUT struct dcd_genericobj *obj_def); | 267 | OUT struct dcd_genericobj *obj_def); |
268 | 268 | ||
269 | /* | 269 | /* |
@@ -294,8 +294,8 @@ extern int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr, | |||
294 | * COFF file to contain the right COFF sections, especially | 294 | * COFF file to contain the right COFF sections, especially |
295 | * ".dcd_register", which is used for auto registration. | 295 | * ".dcd_register", which is used for auto registration. |
296 | */ | 296 | */ |
297 | extern int dcd_get_objects(IN struct dcd_manager *hdcd_mgr, | 297 | extern int dcd_get_objects(struct dcd_manager *hdcd_mgr, |
298 | IN char *sz_coff_path, | 298 | char *sz_coff_path, |
299 | dcd_registerfxn register_fxn, void *handle); | 299 | dcd_registerfxn register_fxn, void *handle); |
300 | 300 | ||
301 | /* | 301 | /* |
@@ -330,9 +330,9 @@ extern bool dcd_init(void); | |||
330 | * obj_type is a valid type value. | 330 | * obj_type is a valid type value. |
331 | * Ensures: | 331 | * Ensures: |
332 | */ | 332 | */ |
333 | extern int dcd_register_object(IN struct dsp_uuid *uuid_obj, | 333 | extern int dcd_register_object(struct dsp_uuid *uuid_obj, |
334 | IN enum dsp_dcdobjtype obj_type, | 334 | enum dsp_dcdobjtype obj_type, |
335 | IN char *psz_path_name); | 335 | char *psz_path_name); |
336 | 336 | ||
337 | /* | 337 | /* |
338 | * ======== dcd_unregister_object ======== | 338 | * ======== dcd_unregister_object ======== |
@@ -352,7 +352,7 @@ extern int dcd_register_object(IN struct dsp_uuid *uuid_obj, | |||
352 | * obj_type is a valid type value. | 352 | * obj_type is a valid type value. |
353 | * Ensures: | 353 | * Ensures: |
354 | */ | 354 | */ |
355 | extern int dcd_unregister_object(IN struct dsp_uuid *uuid_obj, | 355 | extern int dcd_unregister_object(struct dsp_uuid *uuid_obj, |
356 | IN enum dsp_dcdobjtype obj_type); | 356 | enum dsp_dcdobjtype obj_type); |
357 | 357 | ||
358 | #endif /* _DBDCD_H */ | 358 | #endif /* _DBDCD_H */ |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dbdcddef.h b/drivers/staging/tidspbridge/include/dspbridge/dbdcddef.h index d24bec0b55f..1daa4b57b73 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dbdcddef.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dbdcddef.h | |||
@@ -71,8 +71,8 @@ struct dcd_genericobj { | |||
71 | }; | 71 | }; |
72 | 72 | ||
73 | /* DCD Internal Callback Type */ | 73 | /* DCD Internal Callback Type */ |
74 | typedef int(*dcd_registerfxn) (IN struct dsp_uuid *uuid_obj, | 74 | typedef int(*dcd_registerfxn) (struct dsp_uuid *uuid_obj, |
75 | IN enum dsp_dcdobjtype obj_type, | 75 | enum dsp_dcdobjtype obj_type, |
76 | IN void *handle); | 76 | void *handle); |
77 | 77 | ||
78 | #endif /* DBDCDDEF_ */ | 78 | #endif /* DBDCDDEF_ */ |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dev.h b/drivers/staging/tidspbridge/include/dspbridge/dev.h index 94ea4468354..5aa1c42780c 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dev.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dev.h | |||
@@ -91,7 +91,7 @@ extern u32 dev_brd_write_fxn(void *arb, | |||
91 | */ | 91 | */ |
92 | extern int dev_create_device(OUT struct dev_object | 92 | extern int dev_create_device(OUT struct dev_object |
93 | **device_obj, | 93 | **device_obj, |
94 | IN const char *driver_file_name, | 94 | const char *driver_file_name, |
95 | struct cfg_devnode *dev_node_obj); | 95 | struct cfg_devnode *dev_node_obj); |
96 | 96 | ||
97 | /* | 97 | /* |
@@ -126,8 +126,8 @@ extern int dev_create_device(OUT struct dev_object | |||
126 | */ | 126 | */ |
127 | extern int dev_create_iva_device(OUT struct dev_object | 127 | extern int dev_create_iva_device(OUT struct dev_object |
128 | **device_obj, | 128 | **device_obj, |
129 | IN const char *driver_file_name, | 129 | const char *driver_file_name, |
130 | IN const struct cfg_hostres | 130 | const struct cfg_hostres |
131 | *host_config, | 131 | *host_config, |
132 | struct cfg_devnode *dev_node_obj); | 132 | struct cfg_devnode *dev_node_obj); |
133 | 133 | ||
@@ -149,7 +149,7 @@ extern int dev_create_iva_device(OUT struct dev_object | |||
149 | * 0 and hdev_obj->hnode_mgr != NULL | 149 | * 0 and hdev_obj->hnode_mgr != NULL |
150 | * else hdev_obj->hnode_mgr == NULL | 150 | * else hdev_obj->hnode_mgr == NULL |
151 | */ | 151 | */ |
152 | extern int dev_create2(IN struct dev_object *hdev_obj); | 152 | extern int dev_create2(struct dev_object *hdev_obj); |
153 | 153 | ||
154 | /* | 154 | /* |
155 | * ======== dev_destroy2 ======== | 155 | * ======== dev_destroy2 ======== |
@@ -167,7 +167,7 @@ extern int dev_create2(IN struct dev_object *hdev_obj); | |||
167 | * 0 and hdev_obj->hnode_mgr == NULL | 167 | * 0 and hdev_obj->hnode_mgr == NULL |
168 | * else -EPERM. | 168 | * else -EPERM. |
169 | */ | 169 | */ |
170 | extern int dev_destroy2(IN struct dev_object *hdev_obj); | 170 | extern int dev_destroy2(struct dev_object *hdev_obj); |
171 | 171 | ||
172 | /* | 172 | /* |
173 | * ======== dev_destroy_device ======== | 173 | * ======== dev_destroy_device ======== |
@@ -490,7 +490,7 @@ extern int dev_get_node_manager(struct dev_object | |||
490 | * 0: *pul_value contains the symbol value; | 490 | * 0: *pul_value contains the symbol value; |
491 | */ | 491 | */ |
492 | extern int dev_get_symbol(struct dev_object *hdev_obj, | 492 | extern int dev_get_symbol(struct dev_object *hdev_obj, |
493 | IN const char *str_sym, OUT u32 * pul_value); | 493 | const char *str_sym, OUT u32 * pul_value); |
494 | 494 | ||
495 | /* | 495 | /* |
496 | * ======== dev_get_bridge_context ======== | 496 | * ======== dev_get_bridge_context ======== |
@@ -557,7 +557,7 @@ extern bool dev_init(void); | |||
557 | * DEV Initialized. | 557 | * DEV Initialized. |
558 | * Ensures: | 558 | * Ensures: |
559 | */ | 559 | */ |
560 | extern int dev_is_locked(IN struct dev_object *hdev_obj); | 560 | extern int dev_is_locked(struct dev_object *hdev_obj); |
561 | 561 | ||
562 | /* | 562 | /* |
563 | * ======== dev_insert_proc_object ======== | 563 | * ======== dev_insert_proc_object ======== |
@@ -582,9 +582,9 @@ extern int dev_is_locked(IN struct dev_object *hdev_obj); | |||
582 | * this is the first Processor attaching. | 582 | * this is the first Processor attaching. |
583 | * If it is False, there are already processors attached. | 583 | * If it is False, there are already processors attached. |
584 | */ | 584 | */ |
585 | extern int dev_insert_proc_object(IN struct dev_object | 585 | extern int dev_insert_proc_object(struct dev_object |
586 | *hdev_obj, | 586 | *hdev_obj, |
587 | IN u32 proc_obj, | 587 | u32 proc_obj, |
588 | OUT bool *already_attached); | 588 | OUT bool *already_attached); |
589 | 589 | ||
590 | /* | 590 | /* |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/disp.h b/drivers/staging/tidspbridge/include/dspbridge/disp.h index f89b6249849..c7dae698b6e 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/disp.h +++ b/drivers/staging/tidspbridge/include/dspbridge/disp.h | |||
@@ -50,7 +50,7 @@ | |||
50 | */ | 50 | */ |
51 | extern int disp_create(OUT struct disp_object **dispatch_obj, | 51 | extern int disp_create(OUT struct disp_object **dispatch_obj, |
52 | struct dev_object *hdev_obj, | 52 | struct dev_object *hdev_obj, |
53 | IN const struct disp_attr *disp_attrs); | 53 | const struct disp_attr *disp_attrs); |
54 | 54 | ||
55 | /* | 55 | /* |
56 | * ======== disp_delete ======== | 56 | * ======== disp_delete ======== |
@@ -147,7 +147,7 @@ extern int disp_node_create(struct disp_object *disp_obj, | |||
147 | struct node_object *hnode, | 147 | struct node_object *hnode, |
148 | u32 rms_fxn, | 148 | u32 rms_fxn, |
149 | u32 ul_create_fxn, | 149 | u32 ul_create_fxn, |
150 | IN const struct node_createargs | 150 | const struct node_createargs |
151 | *pargs, OUT nodeenv *node_env); | 151 | *pargs, OUT nodeenv *node_env); |
152 | 152 | ||
153 | /* | 153 | /* |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dmm.h b/drivers/staging/tidspbridge/include/dspbridge/dmm.h index 6f5b18a6cbb..b52be19aa4b 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dmm.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dmm.h | |||
@@ -59,7 +59,7 @@ extern int dmm_delete_tables(struct dmm_object *dmm_mgr); | |||
59 | 59 | ||
60 | extern int dmm_create(OUT struct dmm_object **dmm_manager, | 60 | extern int dmm_create(OUT struct dmm_object **dmm_manager, |
61 | struct dev_object *hdev_obj, | 61 | struct dev_object *hdev_obj, |
62 | IN const struct dmm_mgrattrs *mgr_attrts); | 62 | const struct dmm_mgrattrs *mgr_attrts); |
63 | 63 | ||
64 | extern bool dmm_init(void); | 64 | extern bool dmm_init(void); |
65 | 65 | ||
diff --git a/drivers/staging/tidspbridge/include/dspbridge/drv.h b/drivers/staging/tidspbridge/include/dspbridge/drv.h index 5827ea17e78..e15a9ac9bed 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/drv.h +++ b/drivers/staging/tidspbridge/include/dspbridge/drv.h | |||
@@ -393,7 +393,7 @@ extern int drv_remove_dev_object(struct drv_object *driver_obj, | |||
393 | * Resource structure is stored in the registry which will be | 393 | * Resource structure is stored in the registry which will be |
394 | * later used by the CFG module. | 394 | * later used by the CFG module. |
395 | */ | 395 | */ |
396 | extern int drv_request_resources(IN u32 dw_context, | 396 | extern int drv_request_resources(u32 dw_context, |
397 | OUT u32 *dev_node_strg); | 397 | OUT u32 *dev_node_strg); |
398 | 398 | ||
399 | /* | 399 | /* |
@@ -410,7 +410,7 @@ extern int drv_request_resources(IN u32 dw_context, | |||
410 | * The Resources are released based on Bus type. | 410 | * The Resources are released based on Bus type. |
411 | * Resource structure is deleted from the registry | 411 | * Resource structure is deleted from the registry |
412 | */ | 412 | */ |
413 | extern int drv_release_resources(IN u32 dw_context, | 413 | extern int drv_release_resources(u32 dw_context, |
414 | struct drv_object *hdrv_obj); | 414 | struct drv_object *hdrv_obj); |
415 | 415 | ||
416 | /** | 416 | /** |
@@ -438,7 +438,7 @@ void bridge_recover_schedule(void); | |||
438 | * - MEM initialized. | 438 | * - MEM initialized. |
439 | * - valid physical address for the base and size > 0 | 439 | * - valid physical address for the base and size > 0 |
440 | */ | 440 | */ |
441 | extern void mem_ext_phys_pool_init(IN u32 pool_phys_base, IN u32 pool_size); | 441 | extern void mem_ext_phys_pool_init(u32 pool_phys_base, u32 pool_size); |
442 | 442 | ||
443 | /* | 443 | /* |
444 | * ======== mem_ext_phys_pool_release ======== | 444 | * ======== mem_ext_phys_pool_release ======== |
@@ -462,8 +462,8 @@ extern void mem_ext_phys_pool_release(void); | |||
462 | * the size requested. Returned physical address refers to physical | 462 | * the size requested. Returned physical address refers to physical |
463 | * location of memory. | 463 | * location of memory. |
464 | */ | 464 | */ |
465 | extern void *mem_alloc_phys_mem(IN u32 byte_size, | 465 | extern void *mem_alloc_phys_mem(u32 byte_size, |
466 | IN u32 align_mask, OUT u32 *physical_address); | 466 | u32 align_mask, OUT u32 *physical_address); |
467 | 467 | ||
468 | /* | 468 | /* |
469 | * ======== mem_free_phys_mem ======== | 469 | * ======== mem_free_phys_mem ======== |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dspchnl.h b/drivers/staging/tidspbridge/include/dspbridge/dspchnl.h index d8eaf450a9c..9f489a587f0 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dspchnl.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dspchnl.h | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | extern int bridge_chnl_create(OUT struct chnl_mgr **channel_mgr, | 27 | extern int bridge_chnl_create(OUT struct chnl_mgr **channel_mgr, |
28 | struct dev_object *hdev_obj, | 28 | struct dev_object *hdev_obj, |
29 | IN const struct chnl_mgrattrs | 29 | const struct chnl_mgrattrs |
30 | *mgr_attrts); | 30 | *mgr_attrts); |
31 | 31 | ||
32 | extern int bridge_chnl_destroy(struct chnl_mgr *hchnl_mgr); | 32 | extern int bridge_chnl_destroy(struct chnl_mgr *hchnl_mgr); |
@@ -35,7 +35,7 @@ extern int bridge_chnl_open(OUT struct chnl_object **chnl, | |||
35 | struct chnl_mgr *hchnl_mgr, | 35 | struct chnl_mgr *hchnl_mgr, |
36 | s8 chnl_mode, | 36 | s8 chnl_mode, |
37 | u32 ch_id, | 37 | u32 ch_id, |
38 | const IN OPTIONAL struct chnl_attr | 38 | const OPTIONAL struct chnl_attr |
39 | *pattrs); | 39 | *pattrs); |
40 | 40 | ||
41 | extern int bridge_chnl_close(struct chnl_object *chnl_obj); | 41 | extern int bridge_chnl_close(struct chnl_object *chnl_obj); |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dspdefs.h b/drivers/staging/tidspbridge/include/dspbridge/dspdefs.h index 358c523c2f4..ea0ed0ae56e 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dspdefs.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dspdefs.h | |||
@@ -157,7 +157,7 @@ typedef int(*fxn_brd_memcopy) (struct bridge_dev_context | |||
157 | */ | 157 | */ |
158 | typedef int(*fxn_brd_memwrite) (struct bridge_dev_context | 158 | typedef int(*fxn_brd_memwrite) (struct bridge_dev_context |
159 | * dev_ctxt, | 159 | * dev_ctxt, |
160 | IN u8 *host_buf, | 160 | u8 *host_buf, |
161 | u32 dsp_addr, u32 ul_num_bytes, | 161 | u32 dsp_addr, u32 ul_num_bytes, |
162 | u32 mem_type); | 162 | u32 mem_type); |
163 | 163 | ||
@@ -288,7 +288,7 @@ typedef int(*fxn_brd_read) (struct bridge_dev_context *dev_ctxt, | |||
288 | * Ensures: | 288 | * Ensures: |
289 | */ | 289 | */ |
290 | typedef int(*fxn_brd_write) (struct bridge_dev_context *dev_ctxt, | 290 | typedef int(*fxn_brd_write) (struct bridge_dev_context *dev_ctxt, |
291 | IN u8 *host_buf, | 291 | u8 *host_buf, |
292 | u32 dsp_addr, | 292 | u32 dsp_addr, |
293 | u32 ul_num_bytes, u32 mem_type); | 293 | u32 ul_num_bytes, u32 mem_type); |
294 | 294 | ||
@@ -327,7 +327,7 @@ typedef int(*fxn_chnl_create) (OUT struct chnl_mgr | |||
327 | **channel_mgr, | 327 | **channel_mgr, |
328 | struct dev_object | 328 | struct dev_object |
329 | * hdev_obj, | 329 | * hdev_obj, |
330 | IN const struct | 330 | const struct |
331 | chnl_mgrattrs * mgr_attrts); | 331 | chnl_mgrattrs * mgr_attrts); |
332 | 332 | ||
333 | /* | 333 | /* |
@@ -412,7 +412,7 @@ typedef int(*fxn_chnl_open) (OUT struct chnl_object | |||
412 | struct chnl_mgr *hchnl_mgr, | 412 | struct chnl_mgr *hchnl_mgr, |
413 | s8 chnl_mode, | 413 | s8 chnl_mode, |
414 | u32 ch_id, | 414 | u32 ch_id, |
415 | const IN OPTIONAL struct | 415 | const OPTIONAL struct |
416 | chnl_attr * pattrs); | 416 | chnl_attr * pattrs); |
417 | 417 | ||
418 | /* | 418 | /* |
@@ -675,7 +675,7 @@ typedef int(*fxn_chnl_registernotify) | |||
675 | * DSP configuration information, create a board context, a handle to | 675 | * DSP configuration information, create a board context, a handle to |
676 | * which is passed into other Bridge BRD and CHNL functions. The | 676 | * which is passed into other Bridge BRD and CHNL functions. The |
677 | * board context contains state information for the device. Since the | 677 | * board context contains state information for the device. Since the |
678 | * addresses of all IN pointer parameters may be invalid when this | 678 | * addresses of all pointer parameters may be invalid when this |
679 | * function returns, they must not be stored into the device context | 679 | * function returns, they must not be stored into the device context |
680 | * structure. | 680 | * structure. |
681 | */ | 681 | */ |
@@ -683,7 +683,7 @@ typedef int(*fxn_dev_create) (OUT struct bridge_dev_context | |||
683 | **device_ctx, | 683 | **device_ctx, |
684 | struct dev_object | 684 | struct dev_object |
685 | * hdev_obj, | 685 | * hdev_obj, |
686 | IN struct cfg_hostres | 686 | struct cfg_hostres |
687 | * config_param); | 687 | * config_param); |
688 | 688 | ||
689 | /* | 689 | /* |
@@ -703,7 +703,7 @@ typedef int(*fxn_dev_create) (OUT struct bridge_dev_context | |||
703 | * Ensures: | 703 | * Ensures: |
704 | */ | 704 | */ |
705 | typedef int(*fxn_dev_ctrl) (struct bridge_dev_context *dev_ctxt, | 705 | typedef int(*fxn_dev_ctrl) (struct bridge_dev_context *dev_ctxt, |
706 | u32 dw_cmd, IN OUT void *pargs); | 706 | u32 dw_cmd, OUT void *pargs); |
707 | 707 | ||
708 | /* | 708 | /* |
709 | * ======== bridge_dev_destroy ======== | 709 | * ======== bridge_dev_destroy ======== |
@@ -746,7 +746,7 @@ typedef int(*fxn_dev_destroy) (struct bridge_dev_context *dev_ctxt); | |||
746 | */ | 746 | */ |
747 | typedef int(*fxn_io_create) (OUT struct io_mgr **io_man, | 747 | typedef int(*fxn_io_create) (OUT struct io_mgr **io_man, |
748 | struct dev_object *hdev_obj, | 748 | struct dev_object *hdev_obj, |
749 | IN const struct io_attrs *mgr_attrts); | 749 | const struct io_attrs *mgr_attrts); |
750 | 750 | ||
751 | /* | 751 | /* |
752 | * ======== bridge_io_destroy ======== | 752 | * ======== bridge_io_destroy ======== |
@@ -916,7 +916,7 @@ typedef int(*fxn_msg_get) (struct msg_queue *msg_queue_obj, | |||
916 | * Ensures: | 916 | * Ensures: |
917 | */ | 917 | */ |
918 | typedef int(*fxn_msg_put) (struct msg_queue *msg_queue_obj, | 918 | typedef int(*fxn_msg_put) (struct msg_queue *msg_queue_obj, |
919 | IN const struct dsp_msg *pmsg, u32 utimeout); | 919 | const struct dsp_msg *pmsg, u32 utimeout); |
920 | 920 | ||
921 | /* | 921 | /* |
922 | * ======== bridge_msg_register_notify ======== | 922 | * ======== bridge_msg_register_notify ======== |
@@ -1049,6 +1049,6 @@ struct bridge_drv_interface { | |||
1049 | * Called during the Device_Init phase. | 1049 | * Called during the Device_Init phase. |
1050 | */ | 1050 | */ |
1051 | void bridge_drv_entry(OUT struct bridge_drv_interface **drv_intf, | 1051 | void bridge_drv_entry(OUT struct bridge_drv_interface **drv_intf, |
1052 | IN const char *driver_file_name); | 1052 | const char *driver_file_name); |
1053 | 1053 | ||
1054 | #endif /* DSPDEFS_ */ | 1054 | #endif /* DSPDEFS_ */ |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dspio.h b/drivers/staging/tidspbridge/include/dspbridge/dspio.h index 304adab7be8..3087c2a4cdb 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dspio.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dspio.h | |||
@@ -28,14 +28,14 @@ | |||
28 | 28 | ||
29 | extern int bridge_io_create(OUT struct io_mgr **io_man, | 29 | extern int bridge_io_create(OUT struct io_mgr **io_man, |
30 | struct dev_object *hdev_obj, | 30 | struct dev_object *hdev_obj, |
31 | IN const struct io_attrs *mgr_attrts); | 31 | const struct io_attrs *mgr_attrts); |
32 | 32 | ||
33 | extern int bridge_io_destroy(struct io_mgr *hio_mgr); | 33 | extern int bridge_io_destroy(struct io_mgr *hio_mgr); |
34 | 34 | ||
35 | extern int bridge_io_on_loaded(struct io_mgr *hio_mgr); | 35 | extern int bridge_io_on_loaded(struct io_mgr *hio_mgr); |
36 | 36 | ||
37 | extern int iva_io_on_loaded(struct io_mgr *hio_mgr); | 37 | extern int iva_io_on_loaded(struct io_mgr *hio_mgr); |
38 | extern int bridge_io_get_proc_load(IN struct io_mgr *hio_mgr, | 38 | extern int bridge_io_get_proc_load(struct io_mgr *hio_mgr, |
39 | OUT struct dsp_procloadstat *proc_lstat); | 39 | OUT struct dsp_procloadstat *proc_lstat); |
40 | 40 | ||
41 | #endif /* DSPIO_ */ | 41 | #endif /* DSPIO_ */ |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dspmsg.h b/drivers/staging/tidspbridge/include/dspbridge/dspmsg.h index 74cd9805f76..1749470de16 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dspmsg.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dspmsg.h | |||
@@ -42,7 +42,7 @@ extern int bridge_msg_get(struct msg_queue *msg_queue_obj, | |||
42 | struct dsp_msg *pmsg, u32 utimeout); | 42 | struct dsp_msg *pmsg, u32 utimeout); |
43 | 43 | ||
44 | extern int bridge_msg_put(struct msg_queue *msg_queue_obj, | 44 | extern int bridge_msg_put(struct msg_queue *msg_queue_obj, |
45 | IN const struct dsp_msg *pmsg, u32 utimeout); | 45 | const struct dsp_msg *pmsg, u32 utimeout); |
46 | 46 | ||
47 | extern int bridge_msg_register_notify(struct msg_queue *msg_queue_obj, | 47 | extern int bridge_msg_register_notify(struct msg_queue *msg_queue_obj, |
48 | u32 event_mask, | 48 | u32 event_mask, |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/io.h b/drivers/staging/tidspbridge/include/dspbridge/io.h index 927e5849e8e..5846a6a777f 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/io.h +++ b/drivers/staging/tidspbridge/include/dspbridge/io.h | |||
@@ -51,7 +51,7 @@ | |||
51 | */ | 51 | */ |
52 | extern int io_create(OUT struct io_mgr **io_man, | 52 | extern int io_create(OUT struct io_mgr **io_man, |
53 | struct dev_object *hdev_obj, | 53 | struct dev_object *hdev_obj, |
54 | IN const struct io_attrs *mgr_attrts); | 54 | const struct io_attrs *mgr_attrts); |
55 | 55 | ||
56 | /* | 56 | /* |
57 | * ======== io_destroy ======== | 57 | * ======== io_destroy ======== |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/io_sm.h b/drivers/staging/tidspbridge/include/dspbridge/io_sm.h index a79fc6e243e..64e6f4c8e09 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/io_sm.h +++ b/drivers/staging/tidspbridge/include/dspbridge/io_sm.h | |||
@@ -78,7 +78,7 @@ extern void io_cancel_chnl(struct io_mgr *hio_mgr, u32 chnl); | |||
78 | * Ensures: | 78 | * Ensures: |
79 | * Non-preemptible (but interruptible). | 79 | * Non-preemptible (but interruptible). |
80 | */ | 80 | */ |
81 | extern void io_dpc(IN OUT unsigned long ref_data); | 81 | extern void io_dpc(OUT unsigned long ref_data); |
82 | 82 | ||
83 | /* | 83 | /* |
84 | * ======== io_mbox_msg ======== | 84 | * ======== io_mbox_msg ======== |
@@ -287,7 +287,7 @@ extern void io_or_set_value(struct bridge_dev_context *dev_ctxt, | |||
287 | extern void io_and_set_value(struct bridge_dev_context *dev_ctxt, | 287 | extern void io_and_set_value(struct bridge_dev_context *dev_ctxt, |
288 | u32 dsp_addr, u32 value); | 288 | u32 dsp_addr, u32 value); |
289 | 289 | ||
290 | extern void io_intr_dsp2(IN struct io_mgr *pio_mgr, IN u16 mb_val); | 290 | extern void io_intr_dsp2(struct io_mgr *pio_mgr, u16 mb_val); |
291 | 291 | ||
292 | extern void io_sm_init(void); | 292 | extern void io_sm_init(void); |
293 | 293 | ||
diff --git a/drivers/staging/tidspbridge/include/dspbridge/mgr.h b/drivers/staging/tidspbridge/include/dspbridge/mgr.h index 11913306483..40cc8a51f8a 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/mgr.h +++ b/drivers/staging/tidspbridge/include/dspbridge/mgr.h | |||
@@ -185,7 +185,7 @@ extern void mgr_exit(void); | |||
185 | * 0 and *dcd_handle != NULL || | 185 | * 0 and *dcd_handle != NULL || |
186 | * -EPERM and *dcd_handle == NULL | 186 | * -EPERM and *dcd_handle == NULL |
187 | */ | 187 | */ |
188 | extern int mgr_get_dcd_handle(IN struct mgr_object | 188 | extern int mgr_get_dcd_handle(struct mgr_object |
189 | *mgr_handle, OUT u32 *dcd_handle); | 189 | *mgr_handle, OUT u32 *dcd_handle); |
190 | 190 | ||
191 | /* | 191 | /* |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/nldr.h b/drivers/staging/tidspbridge/include/dspbridge/nldr.h index 4b10f13734a..b3dbd064507 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/nldr.h +++ b/drivers/staging/tidspbridge/include/dspbridge/nldr.h | |||
@@ -26,14 +26,14 @@ | |||
26 | #define NLDR_ | 26 | #define NLDR_ |
27 | 27 | ||
28 | extern int nldr_allocate(struct nldr_object *nldr_obj, | 28 | extern int nldr_allocate(struct nldr_object *nldr_obj, |
29 | void *priv_ref, IN const struct dcd_nodeprops | 29 | void *priv_ref, const struct dcd_nodeprops |
30 | *node_props, | 30 | *node_props, |
31 | OUT struct nldr_nodeobject **nldr_nodeobj, | 31 | OUT struct nldr_nodeobject **nldr_nodeobj, |
32 | IN bool *pf_phase_split); | 32 | bool *pf_phase_split); |
33 | 33 | ||
34 | extern int nldr_create(OUT struct nldr_object **nldr, | 34 | extern int nldr_create(OUT struct nldr_object **nldr, |
35 | struct dev_object *hdev_obj, | 35 | struct dev_object *hdev_obj, |
36 | IN const struct nldr_attrs *pattrs); | 36 | const struct nldr_attrs *pattrs); |
37 | 37 | ||
38 | extern void nldr_delete(struct nldr_object *nldr_obj); | 38 | extern void nldr_delete(struct nldr_object *nldr_obj); |
39 | extern void nldr_exit(void); | 39 | extern void nldr_exit(void); |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/nldrdefs.h b/drivers/staging/tidspbridge/include/dspbridge/nldrdefs.h index 403a4f3d59a..a69b2377f41 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/nldrdefs.h +++ b/drivers/staging/tidspbridge/include/dspbridge/nldrdefs.h | |||
@@ -129,7 +129,7 @@ enum nldr_phase { | |||
129 | */ | 129 | */ |
130 | typedef int(*nldr_allocatefxn) (struct nldr_object *nldr_obj, | 130 | typedef int(*nldr_allocatefxn) (struct nldr_object *nldr_obj, |
131 | void *priv_ref, | 131 | void *priv_ref, |
132 | IN const struct dcd_nodeprops | 132 | const struct dcd_nodeprops |
133 | * node_props, | 133 | * node_props, |
134 | OUT struct nldr_nodeobject | 134 | OUT struct nldr_nodeobject |
135 | **nldr_nodeobj, | 135 | **nldr_nodeobj, |
@@ -158,7 +158,7 @@ typedef int(*nldr_allocatefxn) (struct nldr_object *nldr_obj, | |||
158 | */ | 158 | */ |
159 | typedef int(*nldr_createfxn) (OUT struct nldr_object **nldr, | 159 | typedef int(*nldr_createfxn) (OUT struct nldr_object **nldr, |
160 | struct dev_object *hdev_obj, | 160 | struct dev_object *hdev_obj, |
161 | IN const struct nldr_attrs *pattrs); | 161 | const struct nldr_attrs *pattrs); |
162 | 162 | ||
163 | /* | 163 | /* |
164 | * ======== nldr_delete ======== | 164 | * ======== nldr_delete ======== |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/node.h b/drivers/staging/tidspbridge/include/dspbridge/node.h index 1ee268c7112..44c0da2bf99 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/node.h +++ b/drivers/staging/tidspbridge/include/dspbridge/node.h | |||
@@ -56,9 +56,9 @@ | |||
56 | * error: *ph_node == NULL. | 56 | * error: *ph_node == NULL. |
57 | */ | 57 | */ |
58 | extern int node_allocate(struct proc_object *hprocessor, | 58 | extern int node_allocate(struct proc_object *hprocessor, |
59 | IN const struct dsp_uuid *node_uuid, | 59 | const struct dsp_uuid *node_uuid, |
60 | OPTIONAL IN const struct dsp_cbdata | 60 | OPTIONAL const struct dsp_cbdata |
61 | *pargs, OPTIONAL IN const struct dsp_nodeattrin | 61 | *pargs, OPTIONAL const struct dsp_nodeattrin |
62 | *attr_in, | 62 | *attr_in, |
63 | OUT struct node_object **ph_node, | 63 | OUT struct node_object **ph_node, |
64 | struct process_context *pr_ctxt); | 64 | struct process_context *pr_ctxt); |
@@ -182,8 +182,8 @@ extern int node_connect(struct node_object *node1, | |||
182 | u32 stream1, | 182 | u32 stream1, |
183 | struct node_object *node2, | 183 | struct node_object *node2, |
184 | u32 stream2, | 184 | u32 stream2, |
185 | OPTIONAL IN struct dsp_strmattr *pattrs, | 185 | OPTIONAL struct dsp_strmattr *pattrs, |
186 | OPTIONAL IN struct dsp_cbdata | 186 | OPTIONAL struct dsp_cbdata |
187 | *conn_param); | 187 | *conn_param); |
188 | 188 | ||
189 | /* | 189 | /* |
@@ -334,7 +334,7 @@ extern void node_exit(void); | |||
334 | * Ensures: | 334 | * Ensures: |
335 | */ | 335 | */ |
336 | extern int node_free_msg_buf(struct node_object *hnode, | 336 | extern int node_free_msg_buf(struct node_object *hnode, |
337 | IN u8 *pbuffer, | 337 | u8 *pbuffer, |
338 | OPTIONAL struct dsp_bufferattr | 338 | OPTIONAL struct dsp_bufferattr |
339 | *pattr); | 339 | *pattr); |
340 | 340 | ||
@@ -470,7 +470,7 @@ extern int node_pause(struct node_object *hnode); | |||
470 | * Ensures: | 470 | * Ensures: |
471 | */ | 471 | */ |
472 | extern int node_put_message(struct node_object *hnode, | 472 | extern int node_put_message(struct node_object *hnode, |
473 | IN const struct dsp_msg *pmsg, u32 utimeout); | 473 | const struct dsp_msg *pmsg, u32 utimeout); |
474 | 474 | ||
475 | /* | 475 | /* |
476 | * ======== node_register_notify ======== | 476 | * ======== node_register_notify ======== |
@@ -554,7 +554,7 @@ extern int node_terminate(struct node_object *hnode, | |||
554 | * | 554 | * |
555 | */ | 555 | */ |
556 | extern int node_get_uuid_props(void *hprocessor, | 556 | extern int node_get_uuid_props(void *hprocessor, |
557 | IN const struct dsp_uuid *node_uuid, | 557 | const struct dsp_uuid *node_uuid, |
558 | OUT struct dsp_ndbprops | 558 | OUT struct dsp_ndbprops |
559 | *node_props); | 559 | *node_props); |
560 | 560 | ||
diff --git a/drivers/staging/tidspbridge/include/dspbridge/proc.h b/drivers/staging/tidspbridge/include/dspbridge/proc.h index 6668f25cda4..01e597a07ec 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/proc.h +++ b/drivers/staging/tidspbridge/include/dspbridge/proc.h | |||
@@ -99,7 +99,7 @@ extern int proc_auto_start(struct cfg_devnode *dev_node_obj, | |||
99 | * This function Calls bridge_dev_ctrl. | 99 | * This function Calls bridge_dev_ctrl. |
100 | */ | 100 | */ |
101 | extern int proc_ctrl(void *hprocessor, | 101 | extern int proc_ctrl(void *hprocessor, |
102 | u32 dw_cmd, IN struct dsp_cbdata *arg); | 102 | u32 dw_cmd, struct dsp_cbdata *arg); |
103 | 103 | ||
104 | /* | 104 | /* |
105 | * ======== proc_detach ======== | 105 | * ======== proc_detach ======== |
@@ -152,7 +152,7 @@ extern int proc_detach(struct process_context *pr_ctxt); | |||
152 | */ | 152 | */ |
153 | extern int proc_enum_nodes(void *hprocessor, | 153 | extern int proc_enum_nodes(void *hprocessor, |
154 | void **node_tab, | 154 | void **node_tab, |
155 | IN u32 node_tab_size, | 155 | u32 node_tab_size, |
156 | OUT u32 *pu_num_nodes, | 156 | OUT u32 *pu_num_nodes, |
157 | OUT u32 *pu_allocated); | 157 | OUT u32 *pu_allocated); |
158 | 158 | ||
@@ -329,8 +329,8 @@ extern int proc_get_trace(void *hprocessor, u8 * pbuf, u32 max_size); | |||
329 | * can load the processor. | 329 | * can load the processor. |
330 | */ | 330 | */ |
331 | extern int proc_load(void *hprocessor, | 331 | extern int proc_load(void *hprocessor, |
332 | IN const s32 argc_index, IN const char **user_args, | 332 | const s32 argc_index, const char **user_args, |
333 | IN const char **user_envp); | 333 | const char **user_envp); |
334 | 334 | ||
335 | /* | 335 | /* |
336 | * ======== proc_register_notify ======== | 336 | * ======== proc_register_notify ======== |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/pwr.h b/drivers/staging/tidspbridge/include/dspbridge/pwr.h index b42579246a0..a6dc783904e 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/pwr.h +++ b/drivers/staging/tidspbridge/include/dspbridge/pwr.h | |||
@@ -45,7 +45,7 @@ | |||
45 | * -EPERM: General failure, unable to send sleep command to | 45 | * -EPERM: General failure, unable to send sleep command to |
46 | * the DSP. | 46 | * the DSP. |
47 | */ | 47 | */ |
48 | extern int pwr_sleep_dsp(IN const u32 sleep_code, IN const u32 timeout); | 48 | extern int pwr_sleep_dsp(const u32 sleep_code, const u32 timeout); |
49 | 49 | ||
50 | /* | 50 | /* |
51 | * ======== pwr_wake_dsp ======== | 51 | * ======== pwr_wake_dsp ======== |
@@ -66,7 +66,7 @@ extern int pwr_sleep_dsp(IN const u32 sleep_code, IN const u32 timeout); | |||
66 | * -EPERM: General failure, unable to send wake command to | 66 | * -EPERM: General failure, unable to send wake command to |
67 | * the DSP. | 67 | * the DSP. |
68 | */ | 68 | */ |
69 | extern int pwr_wake_dsp(IN const u32 timeout); | 69 | extern int pwr_wake_dsp(const u32 timeout); |
70 | 70 | ||
71 | /* | 71 | /* |
72 | * ======== pwr_pm_pre_scale ======== | 72 | * ======== pwr_pm_pre_scale ======== |
@@ -84,7 +84,7 @@ extern int pwr_wake_dsp(IN const u32 timeout); | |||
84 | * -EPERM: General failure, unable to send wake command to | 84 | * -EPERM: General failure, unable to send wake command to |
85 | * the DSP. | 85 | * the DSP. |
86 | */ | 86 | */ |
87 | extern int pwr_pm_pre_scale(IN u16 voltage_domain, u32 level); | 87 | extern int pwr_pm_pre_scale(u16 voltage_domain, u32 level); |
88 | 88 | ||
89 | /* | 89 | /* |
90 | * ======== pwr_pm_post_scale ======== | 90 | * ======== pwr_pm_post_scale ======== |
@@ -102,6 +102,6 @@ extern int pwr_pm_pre_scale(IN u16 voltage_domain, u32 level); | |||
102 | * -EPERM: General failure, unable to send wake command to | 102 | * -EPERM: General failure, unable to send wake command to |
103 | * the DSP. | 103 | * the DSP. |
104 | */ | 104 | */ |
105 | extern int pwr_pm_post_scale(IN u16 voltage_domain, u32 level); | 105 | extern int pwr_pm_post_scale(u16 voltage_domain, u32 level); |
106 | 106 | ||
107 | #endif /* PWR_ */ | 107 | #endif /* PWR_ */ |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/strm.h b/drivers/staging/tidspbridge/include/dspbridge/strm.h index e0285187867..138760b332d 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/strm.h +++ b/drivers/staging/tidspbridge/include/dspbridge/strm.h | |||
@@ -240,8 +240,8 @@ extern bool strm_init(void); | |||
240 | * pbuf != NULL. | 240 | * pbuf != NULL. |
241 | * Ensures: | 241 | * Ensures: |
242 | */ | 242 | */ |
243 | extern int strm_issue(struct strm_object *stream_obj, IN u8 * pbuf, | 243 | extern int strm_issue(struct strm_object *stream_obj, u8 * pbuf, |
244 | u32 ul_bytes, u32 ul_buf_size, IN u32 dw_arg); | 244 | u32 ul_bytes, u32 ul_buf_size, u32 dw_arg); |
245 | 245 | ||
246 | /* | 246 | /* |
247 | * ======== strm_open ======== | 247 | * ======== strm_open ======== |
@@ -271,7 +271,7 @@ extern int strm_issue(struct strm_object *stream_obj, IN u8 * pbuf, | |||
271 | * error: *strm_objct == NULL. | 271 | * error: *strm_objct == NULL. |
272 | */ | 272 | */ |
273 | extern int strm_open(struct node_object *hnode, u32 dir, | 273 | extern int strm_open(struct node_object *hnode, u32 dir, |
274 | u32 index, IN struct strm_attr *pattr, | 274 | u32 index, struct strm_attr *pattr, |
275 | OUT struct strm_object **strm_objct, | 275 | OUT struct strm_object **strm_objct, |
276 | struct process_context *pr_ctxt); | 276 | struct process_context *pr_ctxt); |
277 | 277 | ||
@@ -376,7 +376,7 @@ extern int strm_register_notify(struct strm_object *stream_obj, | |||
376 | * 0: *pmask != 0 || utimeout == 0. | 376 | * 0: *pmask != 0 || utimeout == 0. |
377 | * Error: *pmask == 0. | 377 | * Error: *pmask == 0. |
378 | */ | 378 | */ |
379 | extern int strm_select(IN struct strm_object **strm_tab, | 379 | extern int strm_select(struct strm_object **strm_tab, |
380 | u32 strms, OUT u32 *pmask, u32 utimeout); | 380 | u32 strms, OUT u32 *pmask, u32 utimeout); |
381 | 381 | ||
382 | /* | 382 | /* |
diff --git a/drivers/staging/tidspbridge/include/dspbridge/uuidutil.h b/drivers/staging/tidspbridge/include/dspbridge/uuidutil.h index dde76c913b6..9554813b368 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/uuidutil.h +++ b/drivers/staging/tidspbridge/include/dspbridge/uuidutil.h | |||
@@ -38,7 +38,7 @@ | |||
38 | * Details: | 38 | * Details: |
39 | * UUID string limit currently set at MAXUUIDLEN. | 39 | * UUID string limit currently set at MAXUUIDLEN. |
40 | */ | 40 | */ |
41 | void uuid_uuid_to_string(IN struct dsp_uuid *uuid_obj, OUT char *sz_uuid, | 41 | void uuid_uuid_to_string(struct dsp_uuid *uuid_obj, OUT char *sz_uuid, |
42 | s32 size); | 42 | s32 size); |
43 | 43 | ||
44 | /* | 44 | /* |
@@ -56,7 +56,7 @@ void uuid_uuid_to_string(IN struct dsp_uuid *uuid_obj, OUT char *sz_uuid, | |||
56 | * We assume the string representation of a UUID has the following format: | 56 | * We assume the string representation of a UUID has the following format: |
57 | * "12345678_1234_1234_1234_123456789abc". | 57 | * "12345678_1234_1234_1234_123456789abc". |
58 | */ | 58 | */ |
59 | extern void uuid_uuid_from_string(IN char *sz_uuid, | 59 | extern void uuid_uuid_from_string(char *sz_uuid, |
60 | OUT struct dsp_uuid *uuid_obj); | 60 | OUT struct dsp_uuid *uuid_obj); |
61 | 61 | ||
62 | #endif /* UUIDUTIL_ */ | 62 | #endif /* UUIDUTIL_ */ |
diff --git a/drivers/staging/tidspbridge/pmgr/chnl.c b/drivers/staging/tidspbridge/pmgr/chnl.c index fc99927f3ee..bd192445bd1 100644 --- a/drivers/staging/tidspbridge/pmgr/chnl.c +++ b/drivers/staging/tidspbridge/pmgr/chnl.c | |||
@@ -53,7 +53,7 @@ static u32 refs; | |||
53 | */ | 53 | */ |
54 | int chnl_create(OUT struct chnl_mgr **channel_mgr, | 54 | int chnl_create(OUT struct chnl_mgr **channel_mgr, |
55 | struct dev_object *hdev_obj, | 55 | struct dev_object *hdev_obj, |
56 | IN const struct chnl_mgrattrs *mgr_attrts) | 56 | const struct chnl_mgrattrs *mgr_attrts) |
57 | { | 57 | { |
58 | int status; | 58 | int status; |
59 | struct chnl_mgr *hchnl_mgr; | 59 | struct chnl_mgr *hchnl_mgr; |
diff --git a/drivers/staging/tidspbridge/pmgr/cmm.c b/drivers/staging/tidspbridge/pmgr/cmm.c index 36ba9cb8f8b..a9e133e1285 100644 --- a/drivers/staging/tidspbridge/pmgr/cmm.c +++ b/drivers/staging/tidspbridge/pmgr/cmm.c | |||
@@ -242,7 +242,7 @@ void *cmm_calloc_buf(struct cmm_object *hcmm_mgr, u32 usize, | |||
242 | */ | 242 | */ |
243 | int cmm_create(OUT struct cmm_object **ph_cmm_mgr, | 243 | int cmm_create(OUT struct cmm_object **ph_cmm_mgr, |
244 | struct dev_object *hdev_obj, | 244 | struct dev_object *hdev_obj, |
245 | IN const struct cmm_mgrattrs *mgr_attrts) | 245 | const struct cmm_mgrattrs *mgr_attrts) |
246 | { | 246 | { |
247 | struct cmm_object *cmm_obj = NULL; | 247 | struct cmm_object *cmm_obj = NULL; |
248 | int status = 0; | 248 | int status = 0; |
@@ -1075,7 +1075,7 @@ int cmm_xlator_free_buf(struct cmm_xlatorobject *xlator, void *buf_va) | |||
1075 | * Purpose: | 1075 | * Purpose: |
1076 | * Set/Get translator info. | 1076 | * Set/Get translator info. |
1077 | */ | 1077 | */ |
1078 | int cmm_xlator_info(struct cmm_xlatorobject *xlator, IN OUT u8 ** paddr, | 1078 | int cmm_xlator_info(struct cmm_xlatorobject *xlator, OUT u8 ** paddr, |
1079 | u32 ul_size, u32 segm_id, bool set_info) | 1079 | u32 ul_size, u32 segm_id, bool set_info) |
1080 | { | 1080 | { |
1081 | struct cmm_xlator *xlator_obj = (struct cmm_xlator *)xlator; | 1081 | struct cmm_xlator *xlator_obj = (struct cmm_xlator *)xlator; |
diff --git a/drivers/staging/tidspbridge/pmgr/cod.c b/drivers/staging/tidspbridge/pmgr/cod.c index bf8c909089f..a5c5a3ab362 100644 --- a/drivers/staging/tidspbridge/pmgr/cod.c +++ b/drivers/staging/tidspbridge/pmgr/cod.c | |||
@@ -217,7 +217,7 @@ void cod_close(struct cod_libraryobj *lib) | |||
217 | * | 217 | * |
218 | */ | 218 | */ |
219 | int cod_create(OUT struct cod_manager **mgr, char *str_zl_file, | 219 | int cod_create(OUT struct cod_manager **mgr, char *str_zl_file, |
220 | IN OPTIONAL const struct cod_attrs *attrs) | 220 | OPTIONAL const struct cod_attrs *attrs) |
221 | { | 221 | { |
222 | struct cod_manager *mgr_new; | 222 | struct cod_manager *mgr_new; |
223 | struct dbll_attrs zl_attrs; | 223 | struct dbll_attrs zl_attrs; |
@@ -398,7 +398,7 @@ int cod_get_loader(struct cod_manager *cod_mgr_obj, | |||
398 | * Retrieve the starting address and length of a section in the COFF file | 398 | * Retrieve the starting address and length of a section in the COFF file |
399 | * given the section name. | 399 | * given the section name. |
400 | */ | 400 | */ |
401 | int cod_get_section(struct cod_libraryobj *lib, IN char *str_sect, | 401 | int cod_get_section(struct cod_libraryobj *lib, char *str_sect, |
402 | OUT u32 *addr, OUT u32 *len) | 402 | OUT u32 *addr, OUT u32 *len) |
403 | { | 403 | { |
404 | struct cod_manager *cod_mgr_obj; | 404 | struct cod_manager *cod_mgr_obj; |
@@ -554,7 +554,7 @@ int cod_load_base(struct cod_manager *cod_mgr_obj, u32 num_argc, char *args[], | |||
554 | * ======== cod_open ======== | 554 | * ======== cod_open ======== |
555 | * Open library for reading sections. | 555 | * Open library for reading sections. |
556 | */ | 556 | */ |
557 | int cod_open(struct cod_manager *hmgr, IN char *sz_coff_path, | 557 | int cod_open(struct cod_manager *hmgr, char *sz_coff_path, |
558 | u32 flags, struct cod_libraryobj **lib_obj) | 558 | u32 flags, struct cod_libraryobj **lib_obj) |
559 | { | 559 | { |
560 | int status = 0; | 560 | int status = 0; |
@@ -591,7 +591,7 @@ int cod_open(struct cod_manager *hmgr, IN char *sz_coff_path, | |||
591 | * Purpose: | 591 | * Purpose: |
592 | * Open base image for reading sections. | 592 | * Open base image for reading sections. |
593 | */ | 593 | */ |
594 | int cod_open_base(struct cod_manager *hmgr, IN char *sz_coff_path, | 594 | int cod_open_base(struct cod_manager *hmgr, char *sz_coff_path, |
595 | dbll_flags flags) | 595 | dbll_flags flags) |
596 | { | 596 | { |
597 | int status = 0; | 597 | int status = 0; |
@@ -629,8 +629,8 @@ int cod_open_base(struct cod_manager *hmgr, IN char *sz_coff_path, | |||
629 | * Purpose: | 629 | * Purpose: |
630 | * Retrieve the content of a code section given the section name. | 630 | * Retrieve the content of a code section given the section name. |
631 | */ | 631 | */ |
632 | int cod_read_section(struct cod_libraryobj *lib, IN char *str_sect, | 632 | int cod_read_section(struct cod_libraryobj *lib, char *str_sect, |
633 | OUT char *str_content, IN u32 content_size) | 633 | OUT char *str_content, u32 content_size) |
634 | { | 634 | { |
635 | int status = 0; | 635 | int status = 0; |
636 | 636 | ||
diff --git a/drivers/staging/tidspbridge/pmgr/dev.c b/drivers/staging/tidspbridge/pmgr/dev.c index c726cf861e6..fad761d847b 100644 --- a/drivers/staging/tidspbridge/pmgr/dev.c +++ b/drivers/staging/tidspbridge/pmgr/dev.c | |||
@@ -132,7 +132,7 @@ u32 dev_brd_write_fxn(void *arb, u32 dsp_add, void *host_buf, | |||
132 | * PM board (device). | 132 | * PM board (device). |
133 | */ | 133 | */ |
134 | int dev_create_device(OUT struct dev_object **device_obj, | 134 | int dev_create_device(OUT struct dev_object **device_obj, |
135 | IN const char *driver_file_name, | 135 | const char *driver_file_name, |
136 | struct cfg_devnode *dev_node_obj) | 136 | struct cfg_devnode *dev_node_obj) |
137 | { | 137 | { |
138 | struct cfg_hostres *host_res; | 138 | struct cfg_hostres *host_res; |
@@ -691,7 +691,7 @@ int dev_get_node_manager(struct dev_object *hdev_obj, | |||
691 | * ======== dev_get_symbol ======== | 691 | * ======== dev_get_symbol ======== |
692 | */ | 692 | */ |
693 | int dev_get_symbol(struct dev_object *hdev_obj, | 693 | int dev_get_symbol(struct dev_object *hdev_obj, |
694 | IN const char *str_sym, OUT u32 * pul_value) | 694 | const char *str_sym, OUT u32 * pul_value) |
695 | { | 695 | { |
696 | int status = 0; | 696 | int status = 0; |
697 | struct cod_manager *cod_mgr; | 697 | struct cod_manager *cod_mgr; |
diff --git a/drivers/staging/tidspbridge/pmgr/dmm.c b/drivers/staging/tidspbridge/pmgr/dmm.c index 592b5e73f3d..0934987e429 100644 --- a/drivers/staging/tidspbridge/pmgr/dmm.c +++ b/drivers/staging/tidspbridge/pmgr/dmm.c | |||
@@ -119,7 +119,7 @@ int dmm_create_tables(struct dmm_object *dmm_mgr, u32 addr, u32 size) | |||
119 | */ | 119 | */ |
120 | int dmm_create(OUT struct dmm_object **dmm_manager, | 120 | int dmm_create(OUT struct dmm_object **dmm_manager, |
121 | struct dev_object *hdev_obj, | 121 | struct dev_object *hdev_obj, |
122 | IN const struct dmm_mgrattrs *mgr_attrts) | 122 | const struct dmm_mgrattrs *mgr_attrts) |
123 | { | 123 | { |
124 | struct dmm_object *dmm_obj = NULL; | 124 | struct dmm_object *dmm_obj = NULL; |
125 | int status = 0; | 125 | int status = 0; |
diff --git a/drivers/staging/tidspbridge/pmgr/dspapi.c b/drivers/staging/tidspbridge/pmgr/dspapi.c index f171567047c..c5d71bd9100 100644 --- a/drivers/staging/tidspbridge/pmgr/dspapi.c +++ b/drivers/staging/tidspbridge/pmgr/dspapi.c | |||
@@ -1127,7 +1127,7 @@ u32 nodewrap_alloc_msg_buf(union trapped_args *args, void *pr_ctxt) | |||
1127 | pattr = &attr; | 1127 | pattr = &attr; |
1128 | 1128 | ||
1129 | } | 1129 | } |
1130 | /* IN OUT argument */ | 1130 | /* OUT argument */ |
1131 | CP_FM_USR(&pbuffer, args->args_node_allocmsgbuf.pbuffer, status, 1); | 1131 | CP_FM_USR(&pbuffer, args->args_node_allocmsgbuf.pbuffer, status, 1); |
1132 | if (DSP_SUCCEEDED(status)) { | 1132 | if (DSP_SUCCEEDED(status)) { |
1133 | status = node_alloc_msg_buf(args->args_node_allocmsgbuf.hnode, | 1133 | status = node_alloc_msg_buf(args->args_node_allocmsgbuf.hnode, |
diff --git a/drivers/staging/tidspbridge/pmgr/io.c b/drivers/staging/tidspbridge/pmgr/io.c index c422bb44711..7855b598f7b 100644 --- a/drivers/staging/tidspbridge/pmgr/io.c +++ b/drivers/staging/tidspbridge/pmgr/io.c | |||
@@ -47,7 +47,7 @@ static u32 refs; | |||
47 | * CHNL and msg_ctrl | 47 | * CHNL and msg_ctrl |
48 | */ | 48 | */ |
49 | int io_create(OUT struct io_mgr **io_man, struct dev_object *hdev_obj, | 49 | int io_create(OUT struct io_mgr **io_man, struct dev_object *hdev_obj, |
50 | IN const struct io_attrs *mgr_attrts) | 50 | const struct io_attrs *mgr_attrts) |
51 | { | 51 | { |
52 | struct bridge_drv_interface *intf_fxns; | 52 | struct bridge_drv_interface *intf_fxns; |
53 | struct io_mgr *hio_mgr = NULL; | 53 | struct io_mgr *hio_mgr = NULL; |
diff --git a/drivers/staging/tidspbridge/rmgr/dbdcd.c b/drivers/staging/tidspbridge/rmgr/dbdcd.c index 35870eab25f..0281eb2db6c 100644 --- a/drivers/staging/tidspbridge/rmgr/dbdcd.c +++ b/drivers/staging/tidspbridge/rmgr/dbdcd.c | |||
@@ -67,21 +67,21 @@ static int get_attrs_from_buf(char *psz_buf, u32 ul_buf_size, | |||
67 | struct dcd_genericobj *gen_obj); | 67 | struct dcd_genericobj *gen_obj); |
68 | static void compress_buf(char *psz_buf, u32 ul_buf_size, s32 char_size); | 68 | static void compress_buf(char *psz_buf, u32 ul_buf_size, s32 char_size); |
69 | static char dsp_char2_gpp_char(char *word, s32 dsp_char_size); | 69 | static char dsp_char2_gpp_char(char *word, s32 dsp_char_size); |
70 | static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr, | 70 | static int get_dep_lib_info(struct dcd_manager *hdcd_mgr, |
71 | IN struct dsp_uuid *uuid_obj, | 71 | struct dsp_uuid *uuid_obj, |
72 | IN OUT u16 *num_libs, | 72 | OUT u16 *num_libs, |
73 | OPTIONAL OUT u16 *num_pers_libs, | 73 | OPTIONAL OUT u16 *num_pers_libs, |
74 | OPTIONAL OUT struct dsp_uuid *dep_lib_uuids, | 74 | OPTIONAL OUT struct dsp_uuid *dep_lib_uuids, |
75 | OPTIONAL OUT bool *prstnt_dep_libs, | 75 | OPTIONAL OUT bool *prstnt_dep_libs, |
76 | IN enum nldr_phase phase); | 76 | enum nldr_phase phase); |
77 | 77 | ||
78 | /* | 78 | /* |
79 | * ======== dcd_auto_register ======== | 79 | * ======== dcd_auto_register ======== |
80 | * Purpose: | 80 | * Purpose: |
81 | * Parses the supplied image and resigsters with DCD. | 81 | * Parses the supplied image and resigsters with DCD. |
82 | */ | 82 | */ |
83 | int dcd_auto_register(IN struct dcd_manager *hdcd_mgr, | 83 | int dcd_auto_register(struct dcd_manager *hdcd_mgr, |
84 | IN char *sz_coff_path) | 84 | char *sz_coff_path) |
85 | { | 85 | { |
86 | int status = 0; | 86 | int status = 0; |
87 | 87 | ||
@@ -102,8 +102,8 @@ int dcd_auto_register(IN struct dcd_manager *hdcd_mgr, | |||
102 | * Purpose: | 102 | * Purpose: |
103 | * Parses the supplied DSP image and unresiters from DCD. | 103 | * Parses the supplied DSP image and unresiters from DCD. |
104 | */ | 104 | */ |
105 | int dcd_auto_unregister(IN struct dcd_manager *hdcd_mgr, | 105 | int dcd_auto_unregister(struct dcd_manager *hdcd_mgr, |
106 | IN char *sz_coff_path) | 106 | char *sz_coff_path) |
107 | { | 107 | { |
108 | int status = 0; | 108 | int status = 0; |
109 | 109 | ||
@@ -124,7 +124,7 @@ int dcd_auto_unregister(IN struct dcd_manager *hdcd_mgr, | |||
124 | * Purpose: | 124 | * Purpose: |
125 | * Creates DCD manager. | 125 | * Creates DCD manager. |
126 | */ | 126 | */ |
127 | int dcd_create_manager(IN char *sz_zl_dll_name, | 127 | int dcd_create_manager(char *sz_zl_dll_name, |
128 | OUT struct dcd_manager **dcd_mgr) | 128 | OUT struct dcd_manager **dcd_mgr) |
129 | { | 129 | { |
130 | struct cod_manager *cod_mgr; /* COD manager handle */ | 130 | struct cod_manager *cod_mgr; /* COD manager handle */ |
@@ -168,7 +168,7 @@ func_end: | |||
168 | * Purpose: | 168 | * Purpose: |
169 | * Frees DCD Manager object. | 169 | * Frees DCD Manager object. |
170 | */ | 170 | */ |
171 | int dcd_destroy_manager(IN struct dcd_manager *hdcd_mgr) | 171 | int dcd_destroy_manager(struct dcd_manager *hdcd_mgr) |
172 | { | 172 | { |
173 | struct dcd_manager *dcd_mgr_obj = hdcd_mgr; | 173 | struct dcd_manager *dcd_mgr_obj = hdcd_mgr; |
174 | int status = -EFAULT; | 174 | int status = -EFAULT; |
@@ -193,7 +193,7 @@ int dcd_destroy_manager(IN struct dcd_manager *hdcd_mgr) | |||
193 | * Purpose: | 193 | * Purpose: |
194 | * Enumerates objects in the DCD. | 194 | * Enumerates objects in the DCD. |
195 | */ | 195 | */ |
196 | int dcd_enumerate_object(IN s32 index, IN enum dsp_dcdobjtype obj_type, | 196 | int dcd_enumerate_object(s32 index, enum dsp_dcdobjtype obj_type, |
197 | OUT struct dsp_uuid *uuid_obj) | 197 | OUT struct dsp_uuid *uuid_obj) |
198 | { | 198 | { |
199 | int status = 0; | 199 | int status = 0; |
@@ -325,11 +325,11 @@ void dcd_exit(void) | |||
325 | /* | 325 | /* |
326 | * ======== dcd_get_dep_libs ======== | 326 | * ======== dcd_get_dep_libs ======== |
327 | */ | 327 | */ |
328 | int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr, | 328 | int dcd_get_dep_libs(struct dcd_manager *hdcd_mgr, |
329 | IN struct dsp_uuid *uuid_obj, | 329 | struct dsp_uuid *uuid_obj, |
330 | u16 num_libs, OUT struct dsp_uuid *dep_lib_uuids, | 330 | u16 num_libs, OUT struct dsp_uuid *dep_lib_uuids, |
331 | OUT bool *prstnt_dep_libs, | 331 | OUT bool *prstnt_dep_libs, |
332 | IN enum nldr_phase phase) | 332 | enum nldr_phase phase) |
333 | { | 333 | { |
334 | int status = 0; | 334 | int status = 0; |
335 | 335 | ||
@@ -349,10 +349,10 @@ int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr, | |||
349 | /* | 349 | /* |
350 | * ======== dcd_get_num_dep_libs ======== | 350 | * ======== dcd_get_num_dep_libs ======== |
351 | */ | 351 | */ |
352 | int dcd_get_num_dep_libs(IN struct dcd_manager *hdcd_mgr, | 352 | int dcd_get_num_dep_libs(struct dcd_manager *hdcd_mgr, |
353 | IN struct dsp_uuid *uuid_obj, | 353 | struct dsp_uuid *uuid_obj, |
354 | OUT u16 *num_libs, OUT u16 *num_pers_libs, | 354 | OUT u16 *num_libs, OUT u16 *num_pers_libs, |
355 | IN enum nldr_phase phase) | 355 | enum nldr_phase phase) |
356 | { | 356 | { |
357 | int status = 0; | 357 | int status = 0; |
358 | 358 | ||
@@ -374,9 +374,9 @@ int dcd_get_num_dep_libs(IN struct dcd_manager *hdcd_mgr, | |||
374 | * Retrieves the properties of a node or processor based on the UUID and | 374 | * Retrieves the properties of a node or processor based on the UUID and |
375 | * object type. | 375 | * object type. |
376 | */ | 376 | */ |
377 | int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr, | 377 | int dcd_get_object_def(struct dcd_manager *hdcd_mgr, |
378 | IN struct dsp_uuid *obj_uuid, | 378 | struct dsp_uuid *obj_uuid, |
379 | IN enum dsp_dcdobjtype obj_type, | 379 | enum dsp_dcdobjtype obj_type, |
380 | OUT struct dcd_genericobj *obj_def) | 380 | OUT struct dcd_genericobj *obj_def) |
381 | { | 381 | { |
382 | struct dcd_manager *dcd_mgr_obj = hdcd_mgr; /* ptr to DCD mgr */ | 382 | struct dcd_manager *dcd_mgr_obj = hdcd_mgr; /* ptr to DCD mgr */ |
@@ -533,8 +533,8 @@ func_end: | |||
533 | /* | 533 | /* |
534 | * ======== dcd_get_objects ======== | 534 | * ======== dcd_get_objects ======== |
535 | */ | 535 | */ |
536 | int dcd_get_objects(IN struct dcd_manager *hdcd_mgr, | 536 | int dcd_get_objects(struct dcd_manager *hdcd_mgr, |
537 | IN char *sz_coff_path, dcd_registerfxn register_fxn, | 537 | char *sz_coff_path, dcd_registerfxn register_fxn, |
538 | void *handle) | 538 | void *handle) |
539 | { | 539 | { |
540 | struct dcd_manager *dcd_mgr_obj = hdcd_mgr; | 540 | struct dcd_manager *dcd_mgr_obj = hdcd_mgr; |
@@ -642,10 +642,10 @@ func_end: | |||
642 | * Retrieves the library name for the given UUID. | 642 | * Retrieves the library name for the given UUID. |
643 | * | 643 | * |
644 | */ | 644 | */ |
645 | int dcd_get_library_name(IN struct dcd_manager *hdcd_mgr, | 645 | int dcd_get_library_name(struct dcd_manager *hdcd_mgr, |
646 | IN struct dsp_uuid *uuid_obj, | 646 | struct dsp_uuid *uuid_obj, |
647 | IN OUT char *str_lib_name, | 647 | OUT char *str_lib_name, |
648 | IN OUT u32 *buff_size, | 648 | OUT u32 *buff_size, |
649 | enum nldr_phase phase, OUT bool *phase_split) | 649 | enum nldr_phase phase, OUT bool *phase_split) |
650 | { | 650 | { |
651 | char sz_reg_key[DCD_MAXPATHLENGTH]; | 651 | char sz_reg_key[DCD_MAXPATHLENGTH]; |
@@ -812,9 +812,9 @@ bool dcd_init(void) | |||
812 | * Registers a node or a processor with the DCD. | 812 | * Registers a node or a processor with the DCD. |
813 | * If psz_path_name == NULL, unregister the specified DCD object. | 813 | * If psz_path_name == NULL, unregister the specified DCD object. |
814 | */ | 814 | */ |
815 | int dcd_register_object(IN struct dsp_uuid *uuid_obj, | 815 | int dcd_register_object(struct dsp_uuid *uuid_obj, |
816 | IN enum dsp_dcdobjtype obj_type, | 816 | enum dsp_dcdobjtype obj_type, |
817 | IN char *psz_path_name) | 817 | char *psz_path_name) |
818 | { | 818 | { |
819 | int status = 0; | 819 | int status = 0; |
820 | char sz_reg_key[DCD_MAXPATHLENGTH]; | 820 | char sz_reg_key[DCD_MAXPATHLENGTH]; |
@@ -974,8 +974,8 @@ func_end: | |||
974 | * Call DCD_Register object with psz_path_name set to NULL to | 974 | * Call DCD_Register object with psz_path_name set to NULL to |
975 | * perform actual object de-registration. | 975 | * perform actual object de-registration. |
976 | */ | 976 | */ |
977 | int dcd_unregister_object(IN struct dsp_uuid *uuid_obj, | 977 | int dcd_unregister_object(struct dsp_uuid *uuid_obj, |
978 | IN enum dsp_dcdobjtype obj_type) | 978 | enum dsp_dcdobjtype obj_type) |
979 | { | 979 | { |
980 | int status = 0; | 980 | int status = 0; |
981 | 981 | ||
@@ -1391,9 +1391,9 @@ static char dsp_char2_gpp_char(char *word, s32 dsp_char_size) | |||
1391 | /* | 1391 | /* |
1392 | * ======== get_dep_lib_info ======== | 1392 | * ======== get_dep_lib_info ======== |
1393 | */ | 1393 | */ |
1394 | static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr, | 1394 | static int get_dep_lib_info(struct dcd_manager *hdcd_mgr, |
1395 | IN struct dsp_uuid *uuid_obj, | 1395 | struct dsp_uuid *uuid_obj, |
1396 | IN OUT u16 *num_libs, | 1396 | OUT u16 *num_libs, |
1397 | OPTIONAL OUT u16 *num_pers_libs, | 1397 | OPTIONAL OUT u16 *num_pers_libs, |
1398 | OPTIONAL OUT struct dsp_uuid *dep_lib_uuids, | 1398 | OPTIONAL OUT struct dsp_uuid *dep_lib_uuids, |
1399 | OPTIONAL OUT bool *prstnt_dep_libs, | 1399 | OPTIONAL OUT bool *prstnt_dep_libs, |
diff --git a/drivers/staging/tidspbridge/rmgr/disp.c b/drivers/staging/tidspbridge/rmgr/disp.c index 56d6429316b..7f3fdfdc663 100644 --- a/drivers/staging/tidspbridge/rmgr/disp.c +++ b/drivers/staging/tidspbridge/rmgr/disp.c | |||
@@ -89,7 +89,7 @@ static int send_message(struct disp_object *disp_obj, u32 timeout, | |||
89 | */ | 89 | */ |
90 | int disp_create(OUT struct disp_object **dispatch_obj, | 90 | int disp_create(OUT struct disp_object **dispatch_obj, |
91 | struct dev_object *hdev_obj, | 91 | struct dev_object *hdev_obj, |
92 | IN const struct disp_attr *disp_attrs) | 92 | const struct disp_attr *disp_attrs) |
93 | { | 93 | { |
94 | struct disp_object *disp_obj; | 94 | struct disp_object *disp_obj; |
95 | struct bridge_drv_interface *intf_fxns; | 95 | struct bridge_drv_interface *intf_fxns; |
@@ -251,7 +251,7 @@ int disp_node_change_priority(struct disp_object *disp_obj, | |||
251 | int disp_node_create(struct disp_object *disp_obj, | 251 | int disp_node_create(struct disp_object *disp_obj, |
252 | struct node_object *hnode, u32 rms_fxn, | 252 | struct node_object *hnode, u32 rms_fxn, |
253 | u32 ul_create_fxn, | 253 | u32 ul_create_fxn, |
254 | IN const struct node_createargs *pargs, | 254 | const struct node_createargs *pargs, |
255 | OUT nodeenv *node_env) | 255 | OUT nodeenv *node_env) |
256 | { | 256 | { |
257 | struct node_msgargs node_msg_args; | 257 | struct node_msgargs node_msg_args; |
diff --git a/drivers/staging/tidspbridge/rmgr/nldr.c b/drivers/staging/tidspbridge/rmgr/nldr.c index 83b5b6ea611..1215f63493d 100644 --- a/drivers/staging/tidspbridge/rmgr/nldr.c +++ b/drivers/staging/tidspbridge/rmgr/nldr.c | |||
@@ -287,7 +287,7 @@ static u32 refs; /* module reference count */ | |||
287 | static int add_ovly_info(void *handle, struct dbll_sect_info *sect_info, | 287 | static int add_ovly_info(void *handle, struct dbll_sect_info *sect_info, |
288 | u32 addr, u32 bytes); | 288 | u32 addr, u32 bytes); |
289 | static int add_ovly_node(struct dsp_uuid *uuid_obj, | 289 | static int add_ovly_node(struct dsp_uuid *uuid_obj, |
290 | enum dsp_dcdobjtype obj_type, IN void *handle); | 290 | enum dsp_dcdobjtype obj_type, void *handle); |
291 | static int add_ovly_sect(struct nldr_object *nldr_obj, | 291 | static int add_ovly_sect(struct nldr_object *nldr_obj, |
292 | struct ovly_sect **lst, | 292 | struct ovly_sect **lst, |
293 | struct dbll_sect_info *sect_inf, | 293 | struct dbll_sect_info *sect_inf, |
@@ -325,9 +325,9 @@ static u32 find_gcf(u32 a, u32 b); | |||
325 | * ======== nldr_allocate ======== | 325 | * ======== nldr_allocate ======== |
326 | */ | 326 | */ |
327 | int nldr_allocate(struct nldr_object *nldr_obj, void *priv_ref, | 327 | int nldr_allocate(struct nldr_object *nldr_obj, void *priv_ref, |
328 | IN const struct dcd_nodeprops *node_props, | 328 | const struct dcd_nodeprops *node_props, |
329 | OUT struct nldr_nodeobject **nldr_nodeobj, | 329 | OUT struct nldr_nodeobject **nldr_nodeobj, |
330 | IN bool *pf_phase_split) | 330 | bool *pf_phase_split) |
331 | { | 331 | { |
332 | struct nldr_nodeobject *nldr_node_obj = NULL; | 332 | struct nldr_nodeobject *nldr_node_obj = NULL; |
333 | int status = 0; | 333 | int status = 0; |
@@ -427,7 +427,7 @@ int nldr_allocate(struct nldr_object *nldr_obj, void *priv_ref, | |||
427 | */ | 427 | */ |
428 | int nldr_create(OUT struct nldr_object **nldr, | 428 | int nldr_create(OUT struct nldr_object **nldr, |
429 | struct dev_object *hdev_obj, | 429 | struct dev_object *hdev_obj, |
430 | IN const struct nldr_attrs *pattrs) | 430 | const struct nldr_attrs *pattrs) |
431 | { | 431 | { |
432 | struct cod_manager *cod_mgr; /* COD manager */ | 432 | struct cod_manager *cod_mgr; /* COD manager */ |
433 | char *psz_coff_buf = NULL; | 433 | char *psz_coff_buf = NULL; |
@@ -1013,7 +1013,7 @@ func_end: | |||
1013 | * Callback function passed to dcd_get_objects. | 1013 | * Callback function passed to dcd_get_objects. |
1014 | */ | 1014 | */ |
1015 | static int add_ovly_node(struct dsp_uuid *uuid_obj, | 1015 | static int add_ovly_node(struct dsp_uuid *uuid_obj, |
1016 | enum dsp_dcdobjtype obj_type, IN void *handle) | 1016 | enum dsp_dcdobjtype obj_type, void *handle) |
1017 | { | 1017 | { |
1018 | struct nldr_object *nldr_obj = (struct nldr_object *)handle; | 1018 | struct nldr_object *nldr_obj = (struct nldr_object *)handle; |
1019 | char *node_name = NULL; | 1019 | char *node_name = NULL; |
diff --git a/drivers/staging/tidspbridge/rmgr/node.c b/drivers/staging/tidspbridge/rmgr/node.c index ba18e58df9c..bb6695971e9 100644 --- a/drivers/staging/tidspbridge/rmgr/node.c +++ b/drivers/staging/tidspbridge/rmgr/node.c | |||
@@ -291,9 +291,9 @@ enum node_state node_get_state(void *hnode) | |||
291 | * Allocate GPP resources to manage a node on the DSP. | 291 | * Allocate GPP resources to manage a node on the DSP. |
292 | */ | 292 | */ |
293 | int node_allocate(struct proc_object *hprocessor, | 293 | int node_allocate(struct proc_object *hprocessor, |
294 | IN const struct dsp_uuid *node_uuid, | 294 | const struct dsp_uuid *node_uuid, |
295 | OPTIONAL IN const struct dsp_cbdata *pargs, | 295 | OPTIONAL const struct dsp_cbdata *pargs, |
296 | OPTIONAL IN const struct dsp_nodeattrin *attr_in, | 296 | OPTIONAL const struct dsp_nodeattrin *attr_in, |
297 | OUT struct node_object **ph_node, | 297 | OUT struct node_object **ph_node, |
298 | struct process_context *pr_ctxt) | 298 | struct process_context *pr_ctxt) |
299 | { | 299 | { |
@@ -685,7 +685,7 @@ func_end: | |||
685 | * Allocates buffer for zero copy messaging. | 685 | * Allocates buffer for zero copy messaging. |
686 | */ | 686 | */ |
687 | DBAPI node_alloc_msg_buf(struct node_object *hnode, u32 usize, | 687 | DBAPI node_alloc_msg_buf(struct node_object *hnode, u32 usize, |
688 | OPTIONAL IN OUT struct dsp_bufferattr *pattr, | 688 | OPTIONAL OUT struct dsp_bufferattr *pattr, |
689 | OUT u8 **pbuffer) | 689 | OUT u8 **pbuffer) |
690 | { | 690 | { |
691 | struct node_object *pnode = (struct node_object *)hnode; | 691 | struct node_object *pnode = (struct node_object *)hnode; |
@@ -833,8 +833,8 @@ func_end: | |||
833 | */ | 833 | */ |
834 | int node_connect(struct node_object *node1, u32 stream1, | 834 | int node_connect(struct node_object *node1, u32 stream1, |
835 | struct node_object *node2, | 835 | struct node_object *node2, |
836 | u32 stream2, OPTIONAL IN struct dsp_strmattr *pattrs, | 836 | u32 stream2, OPTIONAL struct dsp_strmattr *pattrs, |
837 | OPTIONAL IN struct dsp_cbdata *conn_param) | 837 | OPTIONAL struct dsp_cbdata *conn_param) |
838 | { | 838 | { |
839 | struct node_mgr *hnode_mgr; | 839 | struct node_mgr *hnode_mgr; |
840 | char *pstr_dev_name = NULL; | 840 | char *pstr_dev_name = NULL; |
@@ -1673,7 +1673,7 @@ void node_exit(void) | |||
1673 | * Purpose: | 1673 | * Purpose: |
1674 | * Frees the message buffer. | 1674 | * Frees the message buffer. |
1675 | */ | 1675 | */ |
1676 | int node_free_msg_buf(struct node_object *hnode, IN u8 * pbuffer, | 1676 | int node_free_msg_buf(struct node_object *hnode, u8 * pbuffer, |
1677 | OPTIONAL struct dsp_bufferattr *pattr) | 1677 | OPTIONAL struct dsp_bufferattr *pattr) |
1678 | { | 1678 | { |
1679 | struct node_object *pnode = (struct node_object *)hnode; | 1679 | struct node_object *pnode = (struct node_object *)hnode; |
@@ -2094,7 +2094,7 @@ func_end: | |||
2094 | * message, or a timeout occurs. | 2094 | * message, or a timeout occurs. |
2095 | */ | 2095 | */ |
2096 | int node_put_message(struct node_object *hnode, | 2096 | int node_put_message(struct node_object *hnode, |
2097 | IN const struct dsp_msg *pmsg, u32 utimeout) | 2097 | const struct dsp_msg *pmsg, u32 utimeout) |
2098 | { | 2098 | { |
2099 | struct node_mgr *hnode_mgr = NULL; | 2099 | struct node_mgr *hnode_mgr = NULL; |
2100 | enum node_type node_type; | 2100 | enum node_type node_type; |
@@ -3004,7 +3004,7 @@ static int get_proc_props(struct node_mgr *hnode_mgr, | |||
3004 | * Fetch Node UUID properties from DCD/DOF file. | 3004 | * Fetch Node UUID properties from DCD/DOF file. |
3005 | */ | 3005 | */ |
3006 | int node_get_uuid_props(void *hprocessor, | 3006 | int node_get_uuid_props(void *hprocessor, |
3007 | IN const struct dsp_uuid *node_uuid, | 3007 | const struct dsp_uuid *node_uuid, |
3008 | OUT struct dsp_ndbprops *node_props) | 3008 | OUT struct dsp_ndbprops *node_props) |
3009 | { | 3009 | { |
3010 | struct node_mgr *hnode_mgr = NULL; | 3010 | struct node_mgr *hnode_mgr = NULL; |
diff --git a/drivers/staging/tidspbridge/rmgr/proc.c b/drivers/staging/tidspbridge/rmgr/proc.c index e18c098f274..c1559ee2d1b 100644 --- a/drivers/staging/tidspbridge/rmgr/proc.c +++ b/drivers/staging/tidspbridge/rmgr/proc.c | |||
@@ -492,7 +492,7 @@ func_end: | |||
492 | * Call the bridge_dev_ctrl fxn with the Argument. This is a Synchronous | 492 | * Call the bridge_dev_ctrl fxn with the Argument. This is a Synchronous |
493 | * Operation. arg can be null. | 493 | * Operation. arg can be null. |
494 | */ | 494 | */ |
495 | int proc_ctrl(void *hprocessor, u32 dw_cmd, IN struct dsp_cbdata * arg) | 495 | int proc_ctrl(void *hprocessor, u32 dw_cmd, struct dsp_cbdata * arg) |
496 | { | 496 | { |
497 | int status = 0; | 497 | int status = 0; |
498 | struct proc_object *p_proc_object = hprocessor; | 498 | struct proc_object *p_proc_object = hprocessor; |
@@ -582,7 +582,7 @@ int proc_detach(struct process_context *pr_ctxt) | |||
582 | * on a DSP processor. | 582 | * on a DSP processor. |
583 | */ | 583 | */ |
584 | int proc_enum_nodes(void *hprocessor, void **node_tab, | 584 | int proc_enum_nodes(void *hprocessor, void **node_tab, |
585 | IN u32 node_tab_size, OUT u32 *pu_num_nodes, | 585 | u32 node_tab_size, OUT u32 *pu_num_nodes, |
586 | OUT u32 *pu_allocated) | 586 | OUT u32 *pu_allocated) |
587 | { | 587 | { |
588 | int status = -EPERM; | 588 | int status = -EPERM; |
@@ -1055,8 +1055,8 @@ bool proc_init(void) | |||
1055 | * This will be an OEM-only function, and not part of the DSP/BIOS Bridge | 1055 | * This will be an OEM-only function, and not part of the DSP/BIOS Bridge |
1056 | * application developer's API. | 1056 | * application developer's API. |
1057 | */ | 1057 | */ |
1058 | int proc_load(void *hprocessor, IN const s32 argc_index, | 1058 | int proc_load(void *hprocessor, const s32 argc_index, |
1059 | IN const char **user_args, IN const char **user_envp) | 1059 | const char **user_args, const char **user_envp) |
1060 | { | 1060 | { |
1061 | int status = 0; | 1061 | int status = 0; |
1062 | struct proc_object *p_proc_object = (struct proc_object *)hprocessor; | 1062 | struct proc_object *p_proc_object = (struct proc_object *)hprocessor; |
diff --git a/drivers/staging/tidspbridge/rmgr/pwr.c b/drivers/staging/tidspbridge/rmgr/pwr.c index 28845021c46..13f5ed66a14 100644 --- a/drivers/staging/tidspbridge/rmgr/pwr.c +++ b/drivers/staging/tidspbridge/rmgr/pwr.c | |||
@@ -36,7 +36,7 @@ | |||
36 | * ======== pwr_sleep_dsp ======== | 36 | * ======== pwr_sleep_dsp ======== |
37 | * Send command to DSP to enter sleep state. | 37 | * Send command to DSP to enter sleep state. |
38 | */ | 38 | */ |
39 | int pwr_sleep_dsp(IN const u32 sleep_code, IN const u32 timeout) | 39 | int pwr_sleep_dsp(const u32 sleep_code, const u32 timeout) |
40 | { | 40 | { |
41 | struct bridge_drv_interface *intf_fxns; | 41 | struct bridge_drv_interface *intf_fxns; |
42 | struct bridge_dev_context *dw_context; | 42 | struct bridge_dev_context *dw_context; |
@@ -79,7 +79,7 @@ int pwr_sleep_dsp(IN const u32 sleep_code, IN const u32 timeout) | |||
79 | * ======== pwr_wake_dsp ======== | 79 | * ======== pwr_wake_dsp ======== |
80 | * Send command to DSP to wake it from sleep. | 80 | * Send command to DSP to wake it from sleep. |
81 | */ | 81 | */ |
82 | int pwr_wake_dsp(IN const u32 timeout) | 82 | int pwr_wake_dsp(const u32 timeout) |
83 | { | 83 | { |
84 | struct bridge_drv_interface *intf_fxns; | 84 | struct bridge_drv_interface *intf_fxns; |
85 | struct bridge_dev_context *dw_context; | 85 | struct bridge_dev_context *dw_context; |
@@ -112,7 +112,7 @@ int pwr_wake_dsp(IN const u32 timeout) | |||
112 | * ======== pwr_pm_pre_scale======== | 112 | * ======== pwr_pm_pre_scale======== |
113 | * Sends pre-notification message to DSP. | 113 | * Sends pre-notification message to DSP. |
114 | */ | 114 | */ |
115 | int pwr_pm_pre_scale(IN u16 voltage_domain, u32 level) | 115 | int pwr_pm_pre_scale(u16 voltage_domain, u32 level) |
116 | { | 116 | { |
117 | struct bridge_drv_interface *intf_fxns; | 117 | struct bridge_drv_interface *intf_fxns; |
118 | struct bridge_dev_context *dw_context; | 118 | struct bridge_dev_context *dw_context; |
@@ -148,7 +148,7 @@ int pwr_pm_pre_scale(IN u16 voltage_domain, u32 level) | |||
148 | * ======== pwr_pm_post_scale======== | 148 | * ======== pwr_pm_post_scale======== |
149 | * Sends post-notification message to DSP. | 149 | * Sends post-notification message to DSP. |
150 | */ | 150 | */ |
151 | int pwr_pm_post_scale(IN u16 voltage_domain, u32 level) | 151 | int pwr_pm_post_scale(u16 voltage_domain, u32 level) |
152 | { | 152 | { |
153 | struct bridge_drv_interface *intf_fxns; | 153 | struct bridge_drv_interface *intf_fxns; |
154 | struct bridge_dev_context *dw_context; | 154 | struct bridge_dev_context *dw_context; |
diff --git a/drivers/staging/tidspbridge/rmgr/strm.c b/drivers/staging/tidspbridge/rmgr/strm.c index 2a040034607..a439053c1e1 100644 --- a/drivers/staging/tidspbridge/rmgr/strm.c +++ b/drivers/staging/tidspbridge/rmgr/strm.c | |||
@@ -423,7 +423,7 @@ bool strm_init(void) | |||
423 | * Purpose: | 423 | * Purpose: |
424 | * Issues a buffer on a stream | 424 | * Issues a buffer on a stream |
425 | */ | 425 | */ |
426 | int strm_issue(struct strm_object *stream_obj, IN u8 *pbuf, u32 ul_bytes, | 426 | int strm_issue(struct strm_object *stream_obj, u8 *pbuf, u32 ul_bytes, |
427 | u32 ul_buf_size, u32 dw_arg) | 427 | u32 ul_buf_size, u32 dw_arg) |
428 | { | 428 | { |
429 | struct bridge_drv_interface *intf_fxns; | 429 | struct bridge_drv_interface *intf_fxns; |
@@ -468,7 +468,7 @@ int strm_issue(struct strm_object *stream_obj, IN u8 *pbuf, u32 ul_bytes, | |||
468 | * XDAIS socket node on the DSP. | 468 | * XDAIS socket node on the DSP. |
469 | */ | 469 | */ |
470 | int strm_open(struct node_object *hnode, u32 dir, u32 index, | 470 | int strm_open(struct node_object *hnode, u32 dir, u32 index, |
471 | IN struct strm_attr *pattr, | 471 | struct strm_attr *pattr, |
472 | OUT struct strm_object **strm_objct, | 472 | OUT struct strm_object **strm_objct, |
473 | struct process_context *pr_ctxt) | 473 | struct process_context *pr_ctxt) |
474 | { | 474 | { |
@@ -746,7 +746,7 @@ int strm_register_notify(struct strm_object *stream_obj, u32 event_mask, | |||
746 | * Purpose: | 746 | * Purpose: |
747 | * Selects a ready stream. | 747 | * Selects a ready stream. |
748 | */ | 748 | */ |
749 | int strm_select(IN struct strm_object **strm_tab, u32 strms, | 749 | int strm_select(struct strm_object **strm_tab, u32 strms, |
750 | OUT u32 *pmask, u32 utimeout) | 750 | OUT u32 *pmask, u32 utimeout) |
751 | { | 751 | { |
752 | u32 index; | 752 | u32 index; |