Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289225
b: refs/heads/master
c: 2f69a43
h: refs/heads/master
i:
  289223: 6082f88
v: v3
  • Loading branch information
Víctor Manuel Jáquez Leal authored and Greg Kroah-Hartman committed Mar 9, 2012
1 parent 6876a7f commit ffd43d7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 63 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 18ff159260bac8b62bc12bcdfe2aaf1eeb1f2b42
refs/heads/master: 2f69a43b8f5befc3d110c22a2823170f720432ff
31 changes: 0 additions & 31 deletions trunk/drivers/staging/tidspbridge/include/dspbridge/disp.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ struct disp_attr {
* -ENOMEM: Insufficient memory for requested resources.
* -EPERM: Unable to create dispatcher.
* Requires:
* disp_init(void) called.
* disp_attrs != NULL.
* hdev_obj != NULL.
* dispatch_obj != NULL.
Expand All @@ -73,38 +72,12 @@ extern int disp_create(struct disp_object **dispatch_obj,
* disp_obj: Node Dispatcher object.
* Returns:
* Requires:
* disp_init(void) called.
* Valid disp_obj.
* Ensures:
* disp_obj is invalid.
*/
extern void disp_delete(struct disp_object *disp_obj);

/*
* ======== disp_exit ========
* Discontinue usage of DISP module.
*
* Parameters:
* Returns:
* Requires:
* disp_init(void) previously called.
* Ensures:
* Any resources acquired in disp_init(void) will be freed when last DISP
* client calls disp_exit(void).
*/
extern void disp_exit(void);

/*
* ======== disp_init ========
* Initialize the DISP module.
*
* Parameters:
* Returns:
* TRUE if initialization succeeded, FALSE otherwise.
* Ensures:
*/
extern bool disp_init(void);

/*
* ======== disp_node_change_priority ========
* Change the priority of a node currently running on the target.
Expand All @@ -120,7 +93,6 @@ extern bool disp_init(void);
* 0: Success.
* -ETIME: A timeout occurred before the DSP responded.
* Requires:
* disp_init(void) called.
* Valid disp_obj.
* hnode != NULL.
* Ensures:
Expand Down Expand Up @@ -148,7 +120,6 @@ extern int disp_node_change_priority(struct disp_object
* -ETIME: A timeout occurred before the DSP responded.
* -EPERM: A failure occurred, unable to create node.
* Requires:
* disp_init(void) called.
* Valid disp_obj.
* pargs != NULL.
* hnode != NULL.
Expand Down Expand Up @@ -178,7 +149,6 @@ extern int disp_node_create(struct disp_object *disp_obj,
* 0: Success.
* -ETIME: A timeout occurred before the DSP responded.
* Requires:
* disp_init(void) called.
* Valid disp_obj.
* hnode != NULL.
* Ensures:
Expand All @@ -204,7 +174,6 @@ extern int disp_node_delete(struct disp_object *disp_obj,
* 0: Success.
* -ETIME: A timeout occurred before the DSP responded.
* Requires:
* disp_init(void) called.
* Valid disp_obj.
* hnode != NULL.
* Ensures:
Expand Down
7 changes: 1 addition & 6 deletions trunk/drivers/staging/tidspbridge/pmgr/dspapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ void api_exit(void)
msg_exit();
io_exit();
strm_exit();
disp_exit();
mgr_exit();
rmm_exit();
}
Expand All @@ -287,12 +286,11 @@ bool api_init(void)
{
bool ret = true;
bool fdev, fchnl, fmsg, fio;
bool fmgr, fdisp, fstrm, frmm;
bool fmgr, fstrm, frmm;

if (api_c_refs == 0) {
/* initialize driver and other modules */
fmgr = mgr_init();
fdisp = disp_init();
fstrm = strm_init();
frmm = rmm_init();
fchnl = chnl_init();
Expand All @@ -309,9 +307,6 @@ bool api_init(void)
if (fstrm)
strm_exit();

if (fdisp)
disp_exit();

if (fchnl)
chnl_exit();

Expand Down
25 changes: 0 additions & 25 deletions trunk/drivers/staging/tidspbridge/rmgr/disp.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ struct disp_object {
u32 data_mau_size; /* Size of DSP Data MAU */
};

static u32 refs;

static void delete_disp(struct disp_object *disp_obj);
static int fill_stream_def(rms_word *pdw_buf, u32 *ptotal, u32 offset,
struct node_strmdef strm_def, u32 max,
Expand Down Expand Up @@ -172,29 +170,6 @@ void disp_delete(struct disp_object *disp_obj)
delete_disp(disp_obj);
}

/*
* ======== disp_exit ========
* Discontinue usage of DISP module.
*/
void disp_exit(void)
{
refs--;
}

/*
* ======== disp_init ========
* Initialize the DISP module.
*/
bool disp_init(void)
{
bool ret = true;

if (ret)
refs++;

return ret;
}

/*
* ======== disp_node_change_priority ========
* Change the priority of a node currently running on the target.
Expand Down

0 comments on commit ffd43d7

Please sign in to comment.