/* * services.c * * DSP-BIOS Bridge driver support functions for TI OMAP processors. * * Provide SERVICES loading. * * Copyright (C) 2005-2006 Texas Instruments, Inc. * * This package is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ #include #include /* ----------------------------------- DSP/BIOS Bridge */ #include /* ----------------------------------- Trace & Debug */ #include /* ----------------------------------- OS Adaptation Layer */ #include #include #include #include /* ----------------------------------- This */ #include /* * ======== services_exit ======== * Purpose: * Discontinue usage of module; free resources when reference count * reaches 0. */ void services_exit(void) { cfg_exit(); } /* * ======== services_init ======== * Purpose: * Initializes SERVICES modules. */ bool services_init(void) { bool ret = true; bool fcfg; /* Perform required initialization of SERVICES modules. */ fcfg = cfg_init(); ret = fcfg; if (!ret) { if (fcfg) cfg_exit(); } return ret; }