Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
[pandora-kernel.git] / drivers / staging / tidspbridge / include / dspbridge / services.h
1 /*
2  * services.h
3  *
4  * DSP-BIOS Bridge driver support functions for TI OMAP processors.
5  *
6  * Provide loading and unloading of SERVICES modules.
7  *
8  * Copyright (C) 2005-2006 Texas Instruments, Inc.
9  *
10  * This package is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License version 2 as
12  * published by the Free Software Foundation.
13  *
14  * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17  */
18
19 #ifndef SERVICES_
20 #define SERVICES_
21
22 #include <dspbridge/host_os.h>
23 /*
24  *  ======== services_exit ========
25  *  Purpose:
26  *      Discontinue usage of module; free resources when reference count
27  *      reaches 0.
28  *  Parameters:
29  *  Returns:
30  *  Requires:
31  *      SERVICES initialized.
32  *  Ensures:
33  *      Resources used by module are freed when cRef reaches zero.
34  */
35 extern void services_exit(void);
36
37 /*
38  *  ======== services_init ========
39  *  Purpose:
40  *      Initializes SERVICES modules.
41  *  Parameters:
42  *  Returns:
43  *      TRUE if all modules initialized; otherwise FALSE.
44  *  Requires:
45  *  Ensures:
46  *      SERVICES modules initialized.
47  */
48 extern bool services_init(void);
49
50 #endif /* SERVICES_ */